From a3cd2185b8705f96a1a6f042e475290d2d4127c6 Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Mon, 16 Jan 2023 15:17:42 +0100 Subject: SONAR-17816 Better wording --- .../overview/branches/CleanAsYouCodeWarning.tsx | 32 ++++++++++++++++------ .../sonar-web/src/main/js/apps/overview/styles.css | 9 ++++++ .../main/resources/org/sonar/l10n/core.properties | 8 +++--- 3 files changed, 37 insertions(+), 12 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/overview/branches/CleanAsYouCodeWarning.tsx b/server/sonar-web/src/main/js/apps/overview/branches/CleanAsYouCodeWarning.tsx index c3dca159e4b..f41c9c11d42 100644 --- a/server/sonar-web/src/main/js/apps/overview/branches/CleanAsYouCodeWarning.tsx +++ b/server/sonar-web/src/main/js/apps/overview/branches/CleanAsYouCodeWarning.tsx @@ -32,25 +32,41 @@ interface Props { export default function CleanAsYouCodeWarning({ component }: Props) { return ( <> - {translate('overview.quality_gate.conditions.cayc.warning')} -

+ {component.qualityGate ? ( - {translate('overview.quality_gate.conditions.cayc.details.link')} - +

+ + {component.qualityGate.name} + +
), }} /> ) : ( - translate('overview.quality_gate.conditions.cayc.details.no_link') + translate('overview.quality_gate.conditions.cayc.warning.no_link') )} + + +

+ {translate('overview.quality_gate.conditions.cayc.details')}

+ {component.qualityGate && ( +
+ + {translate('overview.quality_gate.conditions.cayc.review')} + +
+ )} +