From 7bd48b52b42440f272de9a653f23af91d2a54aa9 Mon Sep 17 00:00:00 2001 From: Henry Oforeh Date: Wed, 6 Mar 2024 14:17:45 -0800 Subject: [PATCH] [MDS-5792] Update report status. (#2990) Update report status. --- services/common/src/redux/utils/helpers.ts | 3 +++ .../src/components/dashboard/mine/reports/ReportPage.tsx | 2 ++ 2 files changed, 5 insertions(+) diff --git a/services/common/src/redux/utils/helpers.ts b/services/common/src/redux/utils/helpers.ts index af55111ce1..41c1b12e09 100644 --- a/services/common/src/redux/utils/helpers.ts +++ b/services/common/src/redux/utils/helpers.ts @@ -624,6 +624,9 @@ export const getMineReportStatusDescription = ( ) => { const currentDate = moment().format("YYYY-MM-DD"); const MINE_REPORT_STATUS_DESCRIPTION_HASH = { + [MINE_REPORT_SUBMISSION_CODES.NON]: `The ministry has requested for the report from the proponent through MineSpace. Requested by ${ + latestSubmission?.update_user + } on ${formatDate(currentDate)}`, [MINE_REPORT_SUBMISSION_CODES.ACC]: "The Ministry has reviewed the report, no more revision is required", [MINE_REPORT_SUBMISSION_CODES.REC]: diff --git a/services/minespace-web/src/components/dashboard/mine/reports/ReportPage.tsx b/services/minespace-web/src/components/dashboard/mine/reports/ReportPage.tsx index 493c37a1a6..3ce5f9e647 100644 --- a/services/minespace-web/src/components/dashboard/mine/reports/ReportPage.tsx +++ b/services/minespace-web/src/components/dashboard/mine/reports/ReportPage.tsx @@ -77,6 +77,8 @@ const ReportPage = () => { const status = MINE_REPORT_STATUS_HASH[latestSubmission?.mine_report_submission_status_code]; const MINE_REPORT_STATUS_DESCRIPTION_HASH = { + [MINE_REPORT_SUBMISSION_CODES.NON]: + "This ministry has requested the report below. Please finish and submit this submission.", [MINE_REPORT_SUBMISSION_CODES.ACC]: "This report has been submitted and has been reviewed by ministry staff.", [MINE_REPORT_SUBMISSION_CODES.REC]: