From b551e4dfd7f21ba7c6a2c7574605e38b01350482 Mon Sep 17 00:00:00 2001 From: 7PH Date: Thu, 1 Feb 2024 14:17:03 +0100 Subject: [PATCH] SONAR-21455 Change software quality tooltip not to be a priorization helper --- .../branches/SoftwareImpactRatingTooltip.tsx | 38 +++++-------------- .../resources/org/sonar/l10n/core.properties | 4 +- 2 files changed, 11 insertions(+), 31 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/overview/branches/SoftwareImpactRatingTooltip.tsx b/server/sonar-web/src/main/js/apps/overview/branches/SoftwareImpactRatingTooltip.tsx index 17d63ec5712..df155a30c74 100644 --- a/server/sonar-web/src/main/js/apps/overview/branches/SoftwareImpactRatingTooltip.tsx +++ b/server/sonar-web/src/main/js/apps/overview/branches/SoftwareImpactRatingTooltip.tsx @@ -17,7 +17,6 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import * as React from 'react'; import { useIntl } from 'react-intl'; import { SoftwareImpactSeverity, SoftwareQuality } from '../../../types/clean-code-taxonomy'; @@ -55,33 +54,16 @@ export function SoftwareImpactRatingTooltip(props: Readonly - - {intl.formatMessage({ - id: 'overview.measures.software_impact.improve_rating_tooltip.title', - })} - - - - {intl.formatMessage( - { - id: 'overview.measures.software_impact.improve_rating_tooltip.content.1', - }, - { - softwareQuality: softwareQualityLabel, - ratingLabel: rating, - severity: severityLabel, - }, - )} - - - - {intl.formatMessage({ - id: 'overview.measures.software_impact.improve_rating_tooltip.content.2', - })} - - + return intl.formatMessage( + { + id: 'overview.measures.software_impact.improve_rating_tooltip', + }, + { + softwareQuality: softwareQualityLabel, + _softwareQuality: softwareQualityLabel.toLowerCase(), + ratingLabel: rating, + severity: severityLabel, + }, ); } diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index 0ccf0d6c394..70fa419af95 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -3952,9 +3952,7 @@ overview.measures.software_impact.severity.MEDIUM.improve_tooltip=medium overview.measures.software_impact.severity.LOW=L overview.measures.software_impact.severity.LOW.tooltip=Low Impact overview.measures.software_impact.severity.LOW.improve_tooltip=low -overview.measures.software_impact.improve_rating_tooltip.title=Improve rating by fixing the highest severity issues first -overview.measures.software_impact.improve_rating_tooltip.content.1={softwareQuality} rating is a {ratingLabel} when there is at least one {severity} impact vulnerability. -overview.measures.software_impact.improve_rating_tooltip.content.2=To improve your rating, start fixing the issues with highest severity first. +overview.measures.software_impact.improve_rating_tooltip={softwareQuality} rating is a {ratingLabel} when there is at least one issue with {severity} impact on the {_softwareQuality} of your software. overview.project.no_lines_of_code=This project has no lines of code. overview.project.empty=This project is empty. -- 2.39.5