From de2866f94bb905944cc82dab64ee5d7212ad0b5d Mon Sep 17 00:00:00 2001 From: Aditya Khatri Date: Wed, 5 Mar 2025 14:43:17 +0545 Subject: [PATCH 1/3] Update strings & add fields to all dref forms --- .../useImportTemplateSchema.ts | 8 - app/src/views/DrefApplicationExport/i18n.json | 6 +- .../DrefApplicationForm/Actions/i18n.json | 8 + .../DrefApplicationForm/Actions/index.tsx | 26 ++ .../DrefApplicationForm/EventDetail/i18n.json | 9 + .../DrefApplicationForm/EventDetail/index.tsx | 61 +++++ .../DrefApplicationForm/Operation/i18n.json | 70 +++++- .../DrefApplicationForm/Operation/index.tsx | 225 +++++++++++++++++- .../Overview/CopyFieldReportSection/i18n.json | 2 +- .../DrefApplicationForm/Overview/i18n.json | 4 +- .../DrefApplicationForm/Overview/index.tsx | 79 ++++-- .../DrefApplicationForm/Submission/i18n.json | 7 + .../DrefApplicationForm/Submission/index.tsx | 50 ++++ app/src/views/DrefApplicationForm/common.tsx | 15 +- app/src/views/DrefApplicationForm/i18n.json | 1 - app/src/views/DrefApplicationForm/index.tsx | 91 ++----- app/src/views/DrefApplicationForm/schema.ts | 28 ++- app/src/views/DrefFinalReportExport/i18n.json | 6 +- .../DrefFinalReportForm/EventDetail/i18n.json | 3 + .../DrefFinalReportForm/EventDetail/index.tsx | 24 ++ .../EventDetail/styles.module.css | 6 + .../DrefFinalReportForm/Operation/i18n.json | 19 +- .../DrefFinalReportForm/Operation/index.tsx | 95 +++++++- .../DrefFinalReportForm/Overview/i18n.json | 3 +- .../DrefFinalReportForm/Overview/index.tsx | 66 ++++- .../DrefFinalReportForm/Submission/i18n.json | 7 + .../DrefFinalReportForm/Submission/index.tsx | 50 ++++ app/src/views/DrefFinalReportForm/common.tsx | 17 +- app/src/views/DrefFinalReportForm/i18n.json | 1 - app/src/views/DrefFinalReportForm/index.tsx | 93 +++----- app/src/views/DrefFinalReportForm/schema.ts | 13 + .../DrefOperationalUpdateExport/i18n.json | 8 +- .../DrefOperationalUpdateExport/index.tsx | 9 +- .../EventDetail/i18n.json | 7 +- .../EventDetail/index.tsx | 38 ++- .../EventDetail/styles.module.css | 6 + .../Operation/i18n.json | 28 ++- .../Operation/index.tsx | 126 +++++++++- .../Overview/i18n.json | 4 +- .../Overview/index.tsx | 94 +++++--- .../Submission/i18n.json | 7 + .../Submission/index.tsx | 50 ++++ .../DrefOperationalUpdateForm/common.tsx | 17 +- .../views/DrefOperationalUpdateForm/i18n.json | 5 +- .../views/DrefOperationalUpdateForm/index.tsx | 98 ++------ .../views/DrefOperationalUpdateForm/schema.ts | 37 ++- 46 files changed, 1263 insertions(+), 364 deletions(-) diff --git a/app/src/views/AccountMyFormsDref/DownloadImportTemplateButton/DownloadImportTemplateModal/useImportTemplateSchema.ts b/app/src/views/AccountMyFormsDref/DownloadImportTemplateButton/DownloadImportTemplateModal/useImportTemplateSchema.ts index 782036812b..2777df95fe 100644 --- a/app/src/views/AccountMyFormsDref/DownloadImportTemplateButton/DownloadImportTemplateModal/useImportTemplateSchema.ts +++ b/app/src/views/AccountMyFormsDref/DownloadImportTemplateButton/DownloadImportTemplateModal/useImportTemplateSchema.ts @@ -199,14 +199,6 @@ function useImportTemplateSchema() { validation: 'string', }, - emergency_appeal_planned: { - type: 'select', - label: 'Emergency appeal planned', - optionsKey: '__boolean', - validation: 'boolean', - description: 'Select Yes or No from the drop-down list.', - }, - // EVENT DETAIL did_it_affect_same_area: { diff --git a/app/src/views/DrefApplicationExport/i18n.json b/app/src/views/DrefApplicationExport/i18n.json index 3417b09725..70710540e1 100644 --- a/app/src/views/DrefApplicationExport/i18n.json +++ b/app/src/views/DrefApplicationExport/i18n.json @@ -21,7 +21,7 @@ "monthsSuffix": " months", "operationEndDateLabel": "Operation End Date", "drefPublishedLabel": "DREF Published", - "targetedAreasLabel": "Targeted Areas", + "targetedAreasLabel": "Targeted Regions", "eventDescriptionSectionHeading": "Description of the Event", "approximateDateOfImpactHeading": "Approximate date of impact", "whatWhereWhenSectionHeading": "What happened, where and when?", @@ -67,8 +67,8 @@ "ruralLabel": "Rural", "urbanLabel": "Urban", "peopleWithDisabilitiesLabel": "People with disabilities (estimated)", - "riskAndSecuritySectionHeading": "Risk and Security Considerations", - "riskSecurityHeading": "Please indicate about potential operation risk for this operations and mitigation actions", + "riskAndSecuritySectionHeading": "Risk and Security Considerations (including \"management\")", + "riskSecurityHeading": "Please analyse and indicate potential risks for this operation, its root causes and mitigation actions.", "safetyConcernHeading": "Please indicate any security and safety concerns for this operation", "hasChildRiskCompleted": "Has the child safeguarding risk analysis assessment been completed?", "plannedInterventionSectionHeading": "Planned Intervention", diff --git a/app/src/views/DrefApplicationForm/Actions/i18n.json b/app/src/views/DrefApplicationForm/Actions/i18n.json index 845bbd444d..c86ead0232 100644 --- a/app/src/views/DrefApplicationForm/Actions/i18n.json +++ b/app/src/views/DrefApplicationForm/Actions/i18n.json @@ -10,6 +10,12 @@ "drefFormDidNationalSocietyStartedImminent": "Did the National Society started any anticipatory actions?", "drefFormDidNationalSocietyStartedSlow": "Has the National Society started any actions?", "drefFormGapsInAssessment": "Any identified gaps/limitations in the assessment", + "drefFormGapsInAssessmentDescriptionHeading": "Consider the following:", + "drefFormGapsInAssessmentDescriptionPoint1": "Unmet needs: are there specific sectors (e.g., shelter, WASH, health) where needs remain unmet or only partially addressed?", + "drefFormGapsInAssessmentDescriptionPoint2": "Resource shortages: highlight any shortages in available resources (e.g., funding, personnel, supplies) that limit the ability to meet the identified needs.", + "drefFormGapsInAssessmentDescriptionPoint3": "Operational challenges: mention any operational constraints that are preventing a full response to the needs (e.g., logistical issues, insufficient capacity).", + "drefFormGapsInAssessmentDescriptionPoint4": "Coordination issues: note any challenges in coordinating with other actors or agencies that have resulted in gaps in service delivery or response coverage.", + "drefFormGapsInAssessmentDescriptionPoint5": "Vulnerable groups: identify any specific vulnerable groups whose needs may not have been fully captured or addressed during the assessment (e.g., displaced persons, elderly, people with disabilities).", "drefFormIcrc": "ICRC", "drefFormIcrcDescription": "Presence or not of ICRC in country, and support directly provided for this emergency response. Other programs and support provided outside of the scope of this emergency should not be indicated here.", "drefFormIfrc": "IFRC", @@ -19,6 +25,7 @@ "ifrcNetworkActionsHeading": "IFRC Network Actions Related To The Current Event", "icrcActionsHeading": "ICRC Actions Related To The Current Event", "drefFormNationalAuthorities": "National authorities", + "drefFormNationalAuthoritiesDescription": "Brief description of actions taken by the national authorities.", "drefFormNationalOtherActors": "Other Actors Actions Related To The Current Event", "drefFormNationalSocietiesActions": "Current National Society Actions", "drefFormNationalSocietiesActionsDescription": "Please indicate a description of the ongoing response with if possible: Branches involved, number of volunteers/staff involved in actions, assets deployed/distributed, number of people reach. Impact/added value of the NS in the response already ongoing.", @@ -29,6 +36,7 @@ "drefFormPartnerNationalSociety": "Participating National Societies", "drefFormPartnerNationalSocietyDescription": "Briefly set out which PNS are present and give details of PNS contributions/roles on the ground and remotely for this specific operation", "drefFormUNorOtherActors": "UN or other actors", + "drefFormUNorOtherActorsDescription": "Brief description of actions taken by the UN or other actors.", "drefFormAddButton": "Add" } } diff --git a/app/src/views/DrefApplicationForm/Actions/index.tsx b/app/src/views/DrefApplicationForm/Actions/index.tsx index 68615ecd44..83587f6161 100644 --- a/app/src/views/DrefApplicationForm/Actions/index.tsx +++ b/app/src/views/DrefApplicationForm/Actions/index.tsx @@ -333,6 +333,7 @@ function Actions(props: Props) {