Skip to content

Commit fbffc7c

Browse files
authored
Merge pull request #1445 from IFRCGo/feature/uat-requested-changes
Update Operational Learning and PER Pages
2 parents a651f07 + 43325c2 commit fbffc7c

File tree

26 files changed

+159
-125
lines changed

26 files changed

+159
-125
lines changed

.changeset/green-crews-marry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"go-web-app": patch
3+
---
4+
5+
Updated PER terminology and add PER logo in PER PDF export.

.changeset/loud-wombats-breathe.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"go-web-app": patch
3+
---
4+
5+
Add link to GO UI storybook in resources page

.changeset/twenty-paws-happen.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"go-web-app": patch
3+
---
4+
5+
Add beta tag, URL redirect, and link to old dashboard on Ops Learning

app/src/App/routes/index.tsx

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,6 @@ const preparednessIndex = customWrapRoute({
344344
'#global-summary': 'global-summary',
345345
'#global-performance': 'global-performance',
346346
'#resources-catalogue': 'resources-catalogue',
347-
'#operational-learning': 'operational-learning',
348347
},
349348
},
350349
},
@@ -396,21 +395,6 @@ const preparednessGlobalCatalogue = customWrapRoute({
396395
},
397396
});
398397

399-
// FIXME: update name to `preparednessOperationalLearning`
400-
const preparednessGlobalOperational = customWrapRoute({
401-
parent: preparednessLayout,
402-
path: 'operational-learning',
403-
component: {
404-
render: () => import('#views/PreparednessOperationalLearning'),
405-
props: {},
406-
},
407-
wrapperComponent: Auth,
408-
context: {
409-
title: 'Preparedness - Operational Learning',
410-
visibility: 'anything',
411-
},
412-
});
413-
414398
const globalThreeW = customWrapRoute({
415399
parent: rootLayout,
416400
path: 'three-w/projects',
@@ -1186,6 +1170,22 @@ const perWorkPlanForm = customWrapRoute({
11861170
});
11871171

11881172
// Redirect Routes
1173+
const preparednessOperationalLearning = customWrapRoute({
1174+
parent: preparednessLayout,
1175+
path: 'operational-learning',
1176+
component: {
1177+
eagerLoad: true,
1178+
render: Navigate,
1179+
props: {
1180+
to: operationalLearning.absolutePath,
1181+
},
1182+
},
1183+
wrapperComponent: Auth,
1184+
context: {
1185+
title: 'Operational Learning',
1186+
visibility: 'anything',
1187+
},
1188+
});
11891189

11901190
const wrappedRoutes = {
11911191
fourHundredFour,
@@ -1214,7 +1214,6 @@ const wrappedRoutes = {
12141214
preparednessGlobalSummary,
12151215
preparednessGlobalPerformance,
12161216
preparednessGlobalCatalogue,
1217-
preparednessGlobalOperational,
12181217
preparednessIndex,
12191218
perProcessFormIndex,
12201219
globalThreeW,
@@ -1272,6 +1271,8 @@ const wrappedRoutes = {
12721271
...countryRoutes,
12731272
...surgeRoutes,
12741273

1274+
// Redirects
1275+
preparednessOperationalLearning,
12751276
};
12761277

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

app/src/assets/icons/per_logo.png

18.8 KB
Loading

app/src/components/Navbar/i18n.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"userMenuGlobalSummary":"Global Summary",
3232
"userMenuGlobalPerformance":"Global Performance",
3333
"userMenuCatalogueResources":"Catalogue of Resources",
34-
"userMenuOperationalLearning":"Operational Learning",
3534
"userMenuStartPER":"Start PER Process",
3635
"userMenuGlobal3WProjectDescription":"The \"Who does What, Where\" or 3W aims to map the global footprint of the Red Cross Red Crescent Movement, as reported by the National Societies.",
3736
"userMenuSubmit3WProject":"Submit 3W Project",

app/src/components/Navbar/index.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -212,13 +212,6 @@ function Navbar(props: Props) {
212212
>
213213
{strings.userMenuCatalogueResources}
214214
</DropdownMenuItem>
215-
<DropdownMenuItem
216-
type="link"
217-
to="preparednessGlobalOperational"
218-
variant="tertiary"
219-
>
220-
{strings.userMenuOperationalLearning}
221-
</DropdownMenuItem>
222215
<DropdownMenuItem
223216
type="link"
224217
to="perProcessLayout"

app/src/views/CountryPreparedness/PrivateCountryPreparedness/i18n.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"lastUpdatedLabel": "Last update",
2929
"perExport": "Export",
3030
"upload": "Upload",
31-
"typeOfOperation": "Type of Operation",
31+
"perAreas": "PER Areas",
3232
"relevantDocumentHeader": "Relevant Documents",
3333
"uploadLimitDisclaimer": "Note: You can only upload upto 10 documents.",
3434
"perArea": "Area {areaNumber}: {title}"

app/src/views/CountryPreparedness/PrivateCountryPreparedness/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ function PrivateCountryPreparedness() {
637637
<Heading
638638
level={5}
639639
>
640-
{strings.typeOfOperation}
640+
{strings.perAreas}
641641
</Heading>
642642
<div className={styles.separator} />
643643
{perFormAreaResponse?.results?.map((perFormArea) => {

app/src/views/DrefApplicationForm/EventDetail/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function EventDetail(props: Props) {
8989
}, [setFieldValue]);
9090

9191
const operationalLearningUrl = useLink({
92-
to: 'preparednessGlobalOperational',
92+
to: 'operationalLearning',
9393
external: false,
9494
});
9595

0 commit comments

Comments
 (0)