From 73ebd12cd2dff72005e2bebe7d9b59d92e0a1178 Mon Sep 17 00:00:00 2001
From: rdbsolutions
Date: Wed, 5 Mar 2025 10:39:22 +0000
Subject: [PATCH 1/2] Document filtering
---
components/case/documents.js | 9 ++++++---
locales/cy/case.json | 2 ++
locales/en/case.json | 2 ++
3 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/components/case/documents.js b/components/case/documents.js
index 9f4e6b88..646581fb 100644
--- a/components/case/documents.js
+++ b/components/case/documents.js
@@ -497,7 +497,7 @@ const DocumentDetails = (props) => {
@@ -518,7 +518,10 @@ const DocumentDetails = (props) => {
className="govuk-label-s govuk-checkboxes__label"
htmlFor={"all" + "__" + 0}
>
- All - (
+ {router.locale == "cy"
+ ? "Pawb"
+ : "All"}{" "}
+ - (
{documentTypes.reduce(
(accumulator, currentItem) => {
return (
@@ -596,7 +599,7 @@ const DocumentDetails = (props) => {
setCurrentPage(1);
}}
>
- Filter documents
+ {t("case:documents-filter-button")}
{documentDetailsObj["@odata.count"] > 5 && (
diff --git a/locales/cy/case.json b/locales/cy/case.json
index cd2e3c3b..6fcfb77c 100644
--- a/locales/cy/case.json
+++ b/locales/cy/case.json
@@ -60,6 +60,8 @@
"documents-count-label-1a": "Mae yna",
"documents-count-label-2a": "dogfen",
"documents-show-label": "Dangos",
+ "documents-clear-filter-label": "Clirio'r hidlydd",
+ "documents-filter-button": "Hidlo dogfen",
"summary-application-accepted-as-valid": "Derbyniwyd y Cais yn Un Dilys",
"summary-application-rejected-as-invalid": "Gwrthodwyd y Cais fel Un Annilys",
"summary-confirm-request-to-vary-application": "Cadarnhewch y Cais i Amrywio Cais",
diff --git a/locales/en/case.json b/locales/en/case.json
index 24105b18..67b96387 100644
--- a/locales/en/case.json
+++ b/locales/en/case.json
@@ -60,6 +60,8 @@
"documents-count-label-1a": "There is",
"documents-count-label-2a": "document",
"documents-show-label": "Show",
+ "documents-clear-filter-label": "Clear filter",
+ "documents-filter-button": "Filter document",
"summary-application-accepted-as-valid": "Application Accepted as Valid",
"summary-application-rejected-as-invalid": "Application rejected as Invalid",
"summary-confirm-request-to-vary-application": "Confirm Request to Vary Application",
From 884c62ee46047f899cc1c438003fb706a6326c9a Mon Sep 17 00:00:00 2001
From: rdbsolutions
Date: Wed, 5 Mar 2025 11:00:19 +0000
Subject: [PATCH 2/2] banner notification
---
components/case/caseNoticeBanner.js | 4 +++-
locales/cy/case.json | 3 ++-
locales/en/case.json | 3 ++-
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/components/case/caseNoticeBanner.js b/components/case/caseNoticeBanner.js
index a22d5cd2..3ff6dff1 100644
--- a/components/case/caseNoticeBanner.js
+++ b/components/case/caseNoticeBanner.js
@@ -20,7 +20,9 @@ export default function CaseNoticeBanner(props) {
{messagesObjArr.map((message, index) => (
- Warning
+
+ {t("case:notice-label")}
+
diff --git a/locales/cy/case.json b/locales/cy/case.json
index 6fcfb77c..4db263fa 100644
--- a/locales/cy/case.json
+++ b/locales/cy/case.json
@@ -107,5 +107,6 @@
"event-address-label": "Cyfeiriad ",
"event-start-date-label": "Dyddiad cychwyn ",
"event-end-date-label": "Dyddiad gorffen ",
- "event-type-of-event-label": "Math o ddigwyddiad "
+ "event-type-of-event-label": "Math o ddigwyddiad",
+ "notice-label": "Hysbysiad"
}
\ No newline at end of file
diff --git a/locales/en/case.json b/locales/en/case.json
index 67b96387..c9292f80 100644
--- a/locales/en/case.json
+++ b/locales/en/case.json
@@ -107,5 +107,6 @@
"event-address-label": "Address",
"event-start-date-label": "Start date",
"event-end-date-label": "End date",
- "event-type-of-event-label": "Type of event"
+ "event-type-of-event-label": "Type of event",
+ "notice-label": "Notice"
}
\ No newline at end of file