From 63349576d2308c8a170a731945f7bb671094975c Mon Sep 17 00:00:00 2001 From: Belen Pruvost Date: Fri, 8 Apr 2022 17:07:50 +0200 Subject: [PATCH] SONAR-16254 - Explicit the content of the Last Analysis warning --- .../js/app/components/nav/component/ComponentNavWarnings.tsx | 4 ++++ .../src/main/js/app/components/nav/component/HeaderMeta.tsx | 2 ++ .../nav/component/__tests__/ComponentNavWarnings-test.tsx | 1 + .../__snapshots__/ComponentNavWarnings-test.tsx.snap | 1 + .../__tests__/__snapshots__/HeaderMeta-test.tsx.snap | 4 ++++ sonar-core/src/main/resources/org/sonar/l10n/core.properties | 4 +++- 6 files changed, 15 insertions(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavWarnings.tsx b/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavWarnings.tsx index e7df51cae19..4d60b9080ae 100644 --- a/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavWarnings.tsx +++ b/server/sonar-web/src/main/js/app/components/nav/component/ComponentNavWarnings.tsx @@ -31,6 +31,7 @@ const AnalysisWarningsModal = lazyLoadComponent( interface Props { componentKey: string; + isBranch: boolean; onWarningDismiss: () => void; warnings: TaskWarning[]; } @@ -60,6 +61,9 @@ export default class ComponentNavWarnings extends React.PureComponent 0 && ( { const wrapper = shallow( diff --git a/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavWarnings-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavWarnings-test.tsx.snap index f7893380d5b..4a4509f61f3 100644 --- a/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavWarnings-test.tsx.snap +++ b/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavWarnings-test.tsx.snap @@ -12,6 +12,7 @@ exports[`should render 1`] = ` id="component_navigation.last_analysis_had_warnings" values={ Object { + "branchType": "branches.branch", "warnings":