Skip to content

Commit 9ef3f65

Browse files
committed
feat(eap-export): add full eap export
1 parent 5522fad commit 9ef3f65

File tree

6 files changed

+1917
-1
lines changed

6 files changed

+1917
-1
lines changed

app/src/App/routes/index.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,20 @@ const eapDevelopmentRegistrationForm = customWrapRoute({
12261226
},
12271227
});
12281228

1229+
const eapFullExport = customWrapRoute({
1230+
parent: rootLayout,
1231+
path: 'eap/:eapId/full/export',
1232+
component: {
1233+
render: () => import('#views/EapFullExport'),
1234+
props: {},
1235+
},
1236+
wrapperComponent: Auth,
1237+
context: {
1238+
title: 'Full EAP Export',
1239+
visibility: 'is-authenticated',
1240+
},
1241+
});
1242+
12291243
const simplifiedEapExport = customWrapRoute({
12301244
parent: rootLayout,
12311245
path: 'eap/:eapId/export',
@@ -1519,6 +1533,7 @@ const wrappedRoutes = {
15191533
eapRegistrationLayout,
15201534
eapDevelopmentRegistrationForm,
15211535
simplifiedEapExport,
1536+
eapFullExport,
15221537
};
15231538

15241539
export const unwrappedRoutes = unwrapRoute(Object.values(wrappedRoutes));

app/src/components/printable/PrintableDataDisplay/styles.module.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
flex-direction: row;
55
}
66

7+
&.with-diff-view {
8+
border: thick double var(--go-ui-color-red);
9+
}
10+
711
&.block-variant {
812
display: flex;
913
flex-direction: column;

app/src/views/AccountMyFormsEap/EapTableActions/index.tsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,19 @@ function EapTableActions(props: Props) {
7373
{strings.previewExportLink}
7474
</Link>
7575
)}
76+
{type === 'development' && eap.eap_type === EAP_TYPE_FULL && (
77+
<Link
78+
to="eapFullExport"
79+
urlParams={{ eapId: eap.id }}
80+
urlSearch={isDefined(details?.data.version)
81+
? `version=${details.data.version}`
82+
: undefined}
83+
title="Preview export"
84+
before={<DocumentPdfLineIcon fontSize={18} />}
85+
>
86+
Preview export
87+
</Link>
88+
)}
7689
{type === 'development' && details?.data.is_locked && isDefined(eap.review_checklist_file) && (
7790
<Link
7891
external
@@ -82,7 +95,7 @@ function EapTableActions(props: Props) {
8295
{strings.reviewCheckList}
8396
</Link>
8497
)}
85-
{type === 'development' && eap.eap_type === EAP_TYPE_SIMPLIFIED && (
98+
{type === 'development' && (
8699
<Button
87100
name={false}
88101
onClick={setShowExportModalTrue}
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"namespace": "eapFullExport",
3+
"strings": {
4+
"pageTitleFullText": "Full",
5+
"pageTitleEapText": "Early Action Protocol",
6+
"eapNoLabel": "EAP No",
7+
"eapTimeframeLabel": "EAP Timeframe",
8+
"eapApprovedLabel": "EAP Approved",
9+
"objectiveLabel": "Objective",
10+
"nationalLabel": "National",
11+
"nationalSocietyContactLabel": "National Society Contact",
12+
"partnerNationalSocietyContactLabel": "Partner National Society Contact",
13+
"delegationLabel": "Delegation",
14+
"delegationFocalLabel": "IFRC Delegation AA Focal Point",
15+
"delegationHeadLabel": "IFRC Head of Delegation",
16+
"regionalGlobalLabel": "Regional and Global",
17+
"drefFocalLabel": "DREF Focal Point",
18+
"regionalFocalLabel":"IFRC Regional AA Focal Point",
19+
"regionalOpsLabel":"IFRC Regional Ops Manager",
20+
"regionalHeadLabel":"IFRC Regional Head of DCC",
21+
"globalOpsLabel":"IFRC Global Ops Coordinator",
22+
"stakeholdersHeading":"Stakeholders",
23+
"workWithGovernmentLabel":"Did you work with the government and other relevant actors in the development of this EAP? *",
24+
"workWithGovernmentDescription":"Please briefly describe the process",
25+
"keyActorsHeading": "Key Actors",
26+
"technicalWorkingHeading": "Technical working groups in place",
27+
"isTechnicalLabel": "Is there TWG in place?",
28+
"workingDescriptionLabel": "Please briefly describe the process",
29+
"riskAnalysisHeading": "Risk Analysis",
30+
"hazardSelectionHeading": "Hazard Selection",
31+
"exposedElementsLabel": "Exposed elements and their vulnerability factors",
32+
"prioritizedImpactHeading": "Prioritized Impact",
33+
"listPrioritizedImpactLabel": "List of prioritized impacts",
34+
"triggerModelHeading": "Trigger Model",
35+
"triggerStatementLabel": "Trigger Statement",
36+
"leadTimeLabel": "Lead Time",
37+
"forecastSelectionLabel": "Forecast Selection",
38+
"downloadForecastTableLabel": "Download forecast table",
39+
"definitionJustificationLabel": "Definition and justification of impact level",
40+
"identificationInterventionLabel": "Identification of the intervention area",
41+
"selectionOfActionHeading": "Selection of Actions",
42+
"listEarlyActionsLabel": "List of Early Actions",
43+
"earlySelectionLabel": "Early Action Selection Process",
44+
"downloadTheoryChangeTableLabel": "Download Theory of Change Table",
45+
"evidenceBaseLabel": "Evidence Base",
46+
"usefullnessActionsLabel": "Usefulness of actions in case of non-occurring event",
47+
"totalBudgetLabel": "Total Budget",
48+
"peopleTargetedLabel": "People to be assisted",
49+
"feasibilityLabel": "Feasibility",
50+
"activationProcessHeading": "EAP Activation Process",
51+
"actionProcessLabel": "Early Action implementation process",
52+
"triggerActivationLabel": "Trigger activation system",
53+
"peopleTargetLabel": "People Target",
54+
"selectionTargetLabel": "Selection of target population",
55+
"stopMechanismLabel": "Stop Mechanism",
56+
"sourceInformationLabel": "Sources of Information",
57+
"sourceForecastLabel": "Sources of Forecast",
58+
"nameLabel": "Name",
59+
"linkLabel": "Link",
60+
"descriptionLabel": "Description",
61+
"partnerLabel": "Partner",
62+
"titleLabel": "Title",
63+
"mealHeading": "Monitoring, Evaluation, Accountability Learning(Meal)",
64+
"mealLabel": "Meal",
65+
"nationalSocietyHeading": "National Society Capacity",
66+
"operationalThematicLabel": "Operational, thematic and administrative capacity",
67+
"strategiesPlanLabel": "Strategies and plans",
68+
"financialCapacityLabel": "Financial capacity to advance funds",
69+
"financeLogisticsHeading": "Finance and Logistics",
70+
"budgetDescriptionLabel": "Budget Description",
71+
"totalReadinessLabel": "Total Readiness",
72+
"readinessBudgetDescriptionLabel": "Readiness Budget Description",
73+
"totalPrepositioningLabel": "Total Pre-positioning",
74+
"prepositioningBudgetDescriptionLabel": "Pre-positioning Budget Description",
75+
"totalEarlyActionsLabel": "Total Early Actions",
76+
"earlyActionsBudgetDescriptionLabel": "Early Actions Budget Description",
77+
"eapEndorsementLabel": "EAP Endorsement",
78+
"plannedOperationsHeading": "Planned Operations",
79+
"operationBudgetLabel": "Budget",
80+
"operationPeopleTargetedLabel": "No. people targeted",
81+
"indicatorsHeading": "Indicators",
82+
"indicatorTitleLabel": "Title",
83+
"indicatorTargetLabel": "Target",
84+
"readinessActivitiesHeading": "Readiness activities",
85+
"prepositioningActivitiesHeading": "Prepositioning activities",
86+
"earlyActionActivitiesHeading": "Prioritized early actions",
87+
"enablingApproachesLabel": "Enabling Approaches",
88+
"contactInformationHeading": "Contact information",
89+
"contactInformationDescription": "For further information, specifically related to this simplified EAP please contact:"
90+
}
91+
}

0 commit comments

Comments
 (0)