]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-21744 Fixing line label for overall duplication and coverage
authorRevanshu Paliwal <revanshu.paliwal@sonarsource.com>
Tue, 19 Mar 2024 08:58:15 +0000 (09:58 +0100)
committersonartech <sonartech@sonarsource.com>
Tue, 19 Mar 2024 20:02:38 +0000 (20:02 +0000)
server/sonar-web/src/main/js/apps/overview/components/MeasuresCardPercent.tsx
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index fa181275dfe461d97bcf9515bcc9d264c40dc98b..8bdb401d6f4d4b31e800e00e65bea894761b6714 100644 (file)
@@ -84,10 +84,7 @@ export default function MeasuresCardPercent(
   const linesValue = useDiffMetric
     ? getLeakValue(findMeasure(measures, linesMetric))
     : findMeasure(measures, linesMetric)?.value;
-  const linesLabel =
-    measurementType === MeasurementType.Coverage
-      ? 'overview.quality_gate.on_x_new_lines_to_cover'
-      : 'overview.quality_gate.on_x_new_lines';
+  const linesLabel = `overview.${metricKey}.on_x_new_lines`;
   const linesUrl = getComponentDrilldownUrl({
     componentKey,
     metric: linesMetric,
index 2e222a4f9852b644feca96f1e43684c1bcdf5f84..6fe31ea22cdc4e70e35baaba8a26cacfeda3c8f8 100644 (file)
@@ -3888,8 +3888,10 @@ overview.quality_gate.show_project_conditions_x=Show failed conditions for proje
 overview.quality_gate.hide_project_conditions_x=Hide failed conditions for project {0}
 overview.quality_gate.coverage=Coverage
 overview.quality_gate.duplications=Duplications
-overview.quality_gate.on_x_new_lines_to_cover=On {link} New Lines to cover.
-overview.quality_gate.on_x_new_lines=On {link} New Lines.
+overview.new_coverage.on_x_new_lines=On {link} New Lines to cover.
+overview.coverage.on_x_new_lines=On {link} lines to cover.
+overview.new_duplicated_lines_density.on_x_new_lines=On {link} New Lines.
+overview.duplicated_lines_density.on_x_new_lines=On {link} lines.
 overview.quality_gate.x_estimated_after_merge={value} Estimated after merge
 overview.quality_gate.require_fixing={count, plural, one {requires} other {require}} fixing
 overview.quality_gate.require_reviewing={count, plural, one {requires} other {require}} reviewing