From ed5ada98308da86ef23a03d1b0a011b8e4375bef Mon Sep 17 00:00:00 2001 From: Xavier FACQ Date: Sun, 10 Nov 2024 21:40:49 +0100 Subject: [PATCH] Release notes add notice message (#3217) --- .../ReleaseNotesRender.test.tsx.snap | 24 +++++++++++++++++++ src/components/ReleaseNotesRender/index.tsx | 3 +++ .../__snapshots__/release-notes.test.tsx.snap | 12 ++++++++++ 3 files changed, 39 insertions(+) diff --git a/src/components/ReleaseNotesRender/__tests__/__snapshots__/ReleaseNotesRender.test.tsx.snap b/src/components/ReleaseNotesRender/__tests__/__snapshots__/ReleaseNotesRender.test.tsx.snap index 660599988..764959165 100644 --- a/src/components/ReleaseNotesRender/__tests__/__snapshots__/ReleaseNotesRender.test.tsx.snap +++ b/src/components/ReleaseNotesRender/__tests__/__snapshots__/ReleaseNotesRender.test.tsx.snap @@ -48,6 +48,18 @@ exports[`ReleaseNotesRender component > should render correctly - version not de

This section organizes the changes in the selected update release by the main component under which each issue is filed.

+

+ + NOTE: + + These are the release notes for the latest LTS version. If you need a different version, please visit the + + download page + + to select another one. +

The total number of fixes marked as P1 is: 2 @@ -893,6 +905,18 @@ exports[`ReleaseNotesRender component > should render correctly 1`] = `

This section organizes the changes in the selected update release by the main component under which each issue is filed.

+

+ + NOTE: + + These are the release notes for the latest LTS version. If you need a different version, please visit the + + download page + + to select another one. +

The total number of fixes marked as P1 is: 2 diff --git a/src/components/ReleaseNotesRender/index.tsx b/src/components/ReleaseNotesRender/index.tsx index 38955c068..f26fe6c73 100644 --- a/src/components/ReleaseNotesRender/index.tsx +++ b/src/components/ReleaseNotesRender/index.tsx @@ -174,6 +174,9 @@ const ReleaseNotesRender = (): null | JSX.Element => { ) : ( <>

This section organizes the changes in the selected update release by the main component under which each issue is filed.

+ {version !== releaseNotesVersion && +

NOTE: These are the release notes for the latest LTS version. If you need a different version, please visit the download page to select another one.

+ }

{`The total number of fixes marked as P1 is: ${totalP1}`}

renders correctly 1`] = `

This section organizes the changes in the selected update release by the main component under which each issue is filed.

+

+ + NOTE: + + These are the release notes for the latest LTS version. If you need a different version, please visit the + + download page + + to select another one. +

The total number of fixes marked as P1 is: 1