Merge pull request #19994 from Rbillon59/feat/techInsight/export-more-components

TechInsight plugin - Export ScorecardInfo and ScorecardsList Components
This commit is contained in:
Fredrik Adelöw
2023-10-05 12:14:58 +02:00
committed by GitHub
4 changed files with 43 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-tech-insights': patch
---
Export `ScorecardInfo` and `ScorecardsList` components to be able to use manually queried check results directly.
+12
View File
@@ -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)
+2
View File
@@ -17,6 +17,8 @@ export {
techInsightsPlugin,
EntityTechInsightsScorecardContent,
EntityTechInsightsScorecardCard,
ScorecardInfo,
ScorecardsList,
} from './plugin';
export { techInsightsApiRef, TechInsightsClient } from './api';
+24
View File
@@ -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
*/