From c50dfceb2bea7e50bb37cb31e3c00a0b857a5cea Mon Sep 17 00:00:00 2001 From: Sampo Tawast Date: Mon, 7 Oct 2024 10:43:16 +0300 Subject: [PATCH] feat: add application number to 'Ahjo submission complete' splash screen --- .../benefit/handler/public/locales/en/common.json | 3 ++- .../benefit/handler/public/locales/fi/common.json | 3 ++- .../benefit/handler/public/locales/sv/common.json | 3 ++- .../notificationView/NotificationView.tsx | 14 +++++++++++++- 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/frontend/benefit/handler/public/locales/en/common.json b/frontend/benefit/handler/public/locales/en/common.json index 89c1718755..c30f3b2282 100644 --- a/frontend/benefit/handler/public/locales/en/common.json +++ b/frontend/benefit/handler/public/locales/en/common.json @@ -1238,7 +1238,8 @@ }, "submitted": { "title": "Päätösehdotus on lähetetty Ahjoon", - "text": "Viimeistele päätöskäsittely Ahjossa." + "text": "Viimeistele päätöskäsittely Ahjossa.", + "altText": "Hakemusnumero" } } }, diff --git a/frontend/benefit/handler/public/locales/fi/common.json b/frontend/benefit/handler/public/locales/fi/common.json index f058ef82f5..4d576c96b4 100644 --- a/frontend/benefit/handler/public/locales/fi/common.json +++ b/frontend/benefit/handler/public/locales/fi/common.json @@ -1238,7 +1238,8 @@ }, "submitted": { "title": "Päätösehdotus on lähetetty Ahjoon", - "text": "Viimeistele päätöskäsittely Ahjossa." + "text": "Viimeistele päätöskäsittely Ahjossa.", + "altText": "Hakemusnumero" } } }, diff --git a/frontend/benefit/handler/public/locales/sv/common.json b/frontend/benefit/handler/public/locales/sv/common.json index 89c1718755..c30f3b2282 100644 --- a/frontend/benefit/handler/public/locales/sv/common.json +++ b/frontend/benefit/handler/public/locales/sv/common.json @@ -1238,7 +1238,8 @@ }, "submitted": { "title": "Päätösehdotus on lähetetty Ahjoon", - "text": "Viimeistele päätöskäsittely Ahjossa." + "text": "Viimeistele päätöskäsittely Ahjossa.", + "altText": "Hakemusnumero" } } }, diff --git a/frontend/benefit/handler/src/components/applicationReview/notificationView/NotificationView.tsx b/frontend/benefit/handler/src/components/applicationReview/notificationView/NotificationView.tsx index 1bd78f4dad..2d735408e6 100644 --- a/frontend/benefit/handler/src/components/applicationReview/notificationView/NotificationView.tsx +++ b/frontend/benefit/handler/src/components/applicationReview/notificationView/NotificationView.tsx @@ -4,6 +4,7 @@ import { useDetermineAhjoMode } from 'benefit/handler/hooks/useDetermineAhjoMode import { APPLICATION_STATUSES } from 'benefit-shared/constants'; import { Application } from 'benefit-shared/types/application'; import { Button, IconLinkExternal } from 'hds-react'; +import Link from 'next/link'; import { useRouter } from 'next/router'; import { useTranslation } from 'next-i18next'; import * as React from 'react'; @@ -60,10 +61,21 @@ const NotificationView: React.FC = ({ data }) => { <$GridCell $colSpan={10}> <$NotificationTitle> {isNewAhjoMode - ? t(`common:review.decisionProposal.submitted.title`) + ? t(`common:review.decisionProposal.submitted.title`, { + applicationNumber: data?.applicationNumber, + }) : t(`${translationsBase}.${translationKey}.title`)} <$NotificationMessage> + {isNewAhjoMode && ( +

+ {t('common:review.decisionProposal.submitted.altText')} + {': '} + + {data?.applicationNumber} + +

+ )} {isNewAhjoMode ? t(`common:review.decisionProposal.submitted.text`) : t(`${translationsBase}.${translationKey}.message`, {