From 6cecda3b3aeb07e87be0c79675f9a8be31b2d802 Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Tue, 2 Aug 2022 15:09:25 +0200 Subject: [PATCH] SONAR-16885 [892385] [892390] * [892385] Short text alternative is missing * [892390] Detailed alternative description is missing --- .../components/MeasureOverview.tsx | 2 + .../MeasureOverview-test.tsx.snap | 10 +++++ .../drilldown/BubbleChart.tsx | 19 ++++++++- .../drilldown/__tests__/BubbleChart-test.tsx | 1 + .../__snapshots__/BubbleChart-test.tsx.snap | 42 +++++++++++++++++++ .../resources/org/sonar/l10n/core.properties | 13 +++--- 6 files changed, 80 insertions(+), 7 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/component-measures/components/MeasureOverview.tsx b/server/sonar-web/src/main/js/apps/component-measures/components/MeasureOverview.tsx index 8d04180dc07..73eb01ba3cf 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/components/MeasureOverview.tsx +++ b/server/sonar-web/src/main/js/apps/component-measures/components/MeasureOverview.tsx @@ -139,6 +139,8 @@ export default class MeasureOverview extends React.PureComponent { return ( ; paging?: Paging; @@ -242,13 +248,24 @@ export default class BubbleChart extends React.PureComponent { if (this.props.components.length <= 0) { return ; } - const { domain } = this.props; + const { domain, componentKey, branchLike } = this.props; const metrics = getBubbleMetrics(domain, this.props.metrics); return (
{this.renderChartHeader(domain, metrics.size, metrics.colors)}
+
+ + {translate('component_measures.overview.see_data_as_list')} + +
{this.renderBubbleChart(metrics)}
diff --git a/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/BubbleChart-test.tsx b/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/BubbleChart-test.tsx index a52f882cf91..682b417074b 100644 --- a/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/BubbleChart-test.tsx +++ b/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/BubbleChart-test.tsx @@ -75,6 +75,7 @@ it('should handle filtering', () => { function shallowRender(overrides: Partial = {}) { return shallow( +
+ + component_measures.overview.see_data_as_list + +
+
+ + component_measures.overview.see_data_as_list + +
+
+ + component_measures.overview.see_data_as_list + +