Skip to content

Commit 1b5e0c0

Browse files
committed
Add new assisted population field in dref final export
1 parent 536f7b9 commit 1b5e0c0

File tree

3 files changed

+114
-18
lines changed

3 files changed

+114
-18
lines changed

app/src/views/DrefFinalReportExport/i18n.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"hasChildProtectionPolicy": "Does your National Society have child protection/child safeguarding policy?",
2323
"hasWhistleblowerProtectionPolicy": "Does your National Society have whistleblower protection policy?",
2424
"hasAntiSexualHarassmentPolicy": "Does your National Society have anti-sexual harassment policy?",
25-
"peopleAssistedLabel": "People Assisted",
25+
"peopleAssistedLabel": "Total Population Assisted",
2626
"peopleSuffix": " people",
2727
"operationStartDateLabel": "Operation Start Date",
2828
"operationTimeframeLabel": "Total Operating Timeframe",
@@ -58,11 +58,11 @@
5858
"targetingStrategySectionHeading": "Targeting Strategy",
5959
"peopleAssistedHeading": "Who was targeted by this operation?",
6060
"selectionCriteriaHeading": "Explain the selection criteria for the targeted population",
61-
"targetPopulationSectionHeading": "Total Targeted Population",
62-
"womenLabel": "Women",
63-
"girlsLabel": "Girls (under 18)",
64-
"menLabel": "Men",
65-
"boysLabel": "Boys (under 18)",
61+
"targetPopulationSectionHeading": "Total Assisted Population",
62+
"womenLabel": "Assisted Women",
63+
"girlsLabel": "Assisted Girls (under 18)",
64+
"menLabel": "Assisted Men",
65+
"boysLabel": "Assisted Boys (under 18)",
6666
"targetedPopulationLabel": "Total targeted population",
6767
"ruralLabel": "Rural",
6868
"urbanLabel": "Urban",

app/src/views/DrefFinalReportExport/index.tsx

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -384,14 +384,6 @@ export function Component() {
384384
valueType="number"
385385
strongValue
386386
/>
387-
<TextOutput
388-
className={styles.metaItem}
389-
label={strings.peopleAssistedLabel}
390-
value={drefResponse?.num_assisted}
391-
suffix={strings.peopleSuffix}
392-
valueType="number"
393-
strongValue
394-
/>
395387
<TextOutput
396388
className={styles.metaItem}
397389
label={strings.eventOnsetLabel}
@@ -718,7 +710,7 @@ export function Component() {
718710
{drefResponse?.type_of_dref !== DREF_TYPE_ASSESSMENT && (
719711
<BlockTextOutput
720712
label={strings.womenLabel}
721-
value={drefResponse?.women}
713+
value={drefResponse?.assisted_num_of_women}
722714
valueType="number"
723715
strongValue
724716
/>
@@ -733,7 +725,7 @@ export function Component() {
733725
{drefResponse?.type_of_dref !== DREF_TYPE_ASSESSMENT && (
734726
<BlockTextOutput
735727
label={strings.girlsLabel}
736-
value={drefResponse?.girls}
728+
value={drefResponse?.assisted_num_of_girls_under_18}
737729
valueType="number"
738730
strongValue
739731
/>
@@ -748,7 +740,7 @@ export function Component() {
748740
{drefResponse?.type_of_dref !== DREF_TYPE_ASSESSMENT && (
749741
<BlockTextOutput
750742
label={strings.menLabel}
751-
value={drefResponse?.men}
743+
value={drefResponse?.assisted_num_of_men}
752744
valueType="number"
753745
strongValue
754746
/>
@@ -764,12 +756,21 @@ export function Component() {
764756
{drefResponse?.type_of_dref !== DREF_TYPE_ASSESSMENT && (
765757
<BlockTextOutput
766758
label={strings.boysLabel}
767-
value={drefResponse?.boys}
759+
value={drefResponse?.assisted_num_of_boys_under_18}
768760
valueType="number"
769761
strongValue
770762
/>
771763
)}
772764
<div className={styles.emptyBlock} />
765+
<BlockTextOutput
766+
className={styles.metaItem}
767+
label={strings.peopleAssistedLabel}
768+
value={drefResponse?.num_assisted}
769+
suffix={strings.peopleSuffix}
770+
valueType="number"
771+
strongValue
772+
/>
773+
<div className={styles.emptyBlock} />
773774
<BlockTextOutput
774775
label={strings.targetedPopulationLabel}
775776
value={drefResponse?.total_targeted_population}
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"parent": "000034-1749016435785.json",
3+
"actions": [
4+
{
5+
"action": "update",
6+
"key": "boysLabel",
7+
"namespace": "drefFinalReportExport",
8+
"newValue": "Assisted Boys (under 18)"
9+
},
10+
{
11+
"action": "update",
12+
"key": "girlsLabel",
13+
"namespace": "drefFinalReportExport",
14+
"newValue": "Assisted Girls (under 18)"
15+
},
16+
{
17+
"action": "update",
18+
"key": "menLabel",
19+
"namespace": "drefFinalReportExport",
20+
"newValue": "Assisted Men"
21+
},
22+
{
23+
"action": "update",
24+
"key": "peopleAssistedLabel",
25+
"namespace": "drefFinalReportExport",
26+
"newValue": "Total Population Assisted"
27+
},
28+
{
29+
"action": "update",
30+
"key": "targetPopulationSectionHeading",
31+
"namespace": "drefFinalReportExport",
32+
"newValue": "Total Assisted Population"
33+
},
34+
{
35+
"action": "update",
36+
"key": "womenLabel",
37+
"namespace": "drefFinalReportExport",
38+
"newValue": "Assisted Women"
39+
},
40+
{
41+
"action": "add",
42+
"key": "drefFormOperationClickEmergencyResponseFramework",
43+
"namespace": "drefFinalReportForm",
44+
"value": "Click to view Emergency Response Framework"
45+
},
46+
{
47+
"action": "update",
48+
"key": "drefFinalReportTotalTargeted",
49+
"namespace": "drefFinalReportForm",
50+
"newValue": "Total assisted population is not equal to sum of other population fields"
51+
},
52+
{
53+
"action": "update",
54+
"key": "drefFormAssistedPopulation",
55+
"namespace": "drefFinalReportForm",
56+
"newValue": "Total Assisted Population"
57+
},
58+
{
59+
"action": "update",
60+
"key": "drefFormBoys",
61+
"namespace": "drefFinalReportForm",
62+
"newValue": "Assisted Boys (under 18)"
63+
},
64+
{
65+
"action": "update",
66+
"key": "drefFormGirls",
67+
"namespace": "drefFinalReportForm",
68+
"newValue": "Assisted Girls (under 18)"
69+
},
70+
{
71+
"action": "update",
72+
"key": "drefFormMen",
73+
"namespace": "drefFinalReportForm",
74+
"newValue": "Assisted Men"
75+
},
76+
{
77+
"action": "update",
78+
"key": "drefFormPeopleAssisted",
79+
"namespace": "drefFinalReportForm",
80+
"newValue": "Total population assisted"
81+
},
82+
{
83+
"action": "update",
84+
"key": "drefFormTargetedPopulation",
85+
"namespace": "drefFinalReportForm",
86+
"newValue": "Assisted Population"
87+
},
88+
{
89+
"action": "update",
90+
"key": "drefFormWomen",
91+
"namespace": "drefFinalReportForm",
92+
"newValue": "Assisted Women"
93+
}
94+
]
95+
}

0 commit comments

Comments
 (0)