beb15973cc
Signed-off-by: kielosz <kielosz@gmail.com>
1.3 KiB
1.3 KiB
@backstage/plugin-tech-insights
| @backstage/plugin-tech-insights |
|---|
| minor |
Added the possibility to display check results of different types on a single scorecard.
- BREAKING Removed the
getScorecardsDefinitionmethod from theTechInsightsApiinterface. Added thegetCheckResultRenderersmethod that returns rendering components for given types. - BREAKING The
CheckResultRenderertype now exposes thecomponentfactory method that creates a React component used to display a result of a provided check result. - The
TechInsightsClientconstructor accepts now the optionalrenderersparameter that can be used to inject a custom renderer. - BREAKING The
titleparameter in theEntityTechInsightsScorecardContentandEntityTechInsightsScorecardCardcomponents is now mandatory. - The
jsonRulesEngineCheckResultRendererused to renderjson-rules-enginecheck results is exported. - The
BooleanCheckcomponent that can be used to render other check results types is also exported.
If you were overriding the getScorecardsDefinition method to adjust the rendering of check results, you should now provide a custom renderer using renderers parameter in the TechInsightsClient class.
See the README for more details.