Merge pull request #19994 from Rbillon59/feat/techInsight/export-more-components
TechInsight plugin - Export ScorecardInfo and ScorecardsList Components
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-tech-insights': patch
|
||||
---
|
||||
|
||||
Export `ScorecardInfo` and `ScorecardsList` components to be able to use manually queried check results directly.
|
||||
@@ -68,6 +68,18 @@ export interface InsightFacts {
|
||||
// @public
|
||||
export const jsonRulesEngineCheckResultRenderer: CheckResultRenderer;
|
||||
|
||||
// @public (undocumented)
|
||||
export const ScorecardInfo: (props: {
|
||||
checkResults: CheckResult[];
|
||||
title: string;
|
||||
description?: string | undefined;
|
||||
}) => JSX_2.Element;
|
||||
|
||||
// @public (undocumented)
|
||||
export const ScorecardsList: (props: {
|
||||
checkResults: CheckResult[];
|
||||
}) => JSX_2.Element;
|
||||
|
||||
// @public
|
||||
export interface TechInsightsApi {
|
||||
// (undocumented)
|
||||
|
||||
@@ -17,6 +17,8 @@ export {
|
||||
techInsightsPlugin,
|
||||
EntityTechInsightsScorecardContent,
|
||||
EntityTechInsightsScorecardCard,
|
||||
ScorecardInfo,
|
||||
ScorecardsList,
|
||||
} from './plugin';
|
||||
|
||||
export { techInsightsApiRef, TechInsightsClient } from './api';
|
||||
|
||||
@@ -42,6 +42,30 @@ export const techInsightsPlugin = createPlugin({
|
||||
},
|
||||
});
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export const ScorecardInfo = techInsightsPlugin.provide(
|
||||
createRoutableExtension({
|
||||
name: 'ScorecardInfo',
|
||||
component: () =>
|
||||
import('./components/ScorecardsInfo').then(m => m.ScorecardInfo),
|
||||
mountPoint: rootRouteRef,
|
||||
}),
|
||||
);
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export const ScorecardsList = techInsightsPlugin.provide(
|
||||
createRoutableExtension({
|
||||
name: 'ScorecardsList',
|
||||
component: () =>
|
||||
import('./components/ScorecardsList').then(m => m.ScorecardsList),
|
||||
mountPoint: rootRouteRef,
|
||||
}),
|
||||
);
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user