Skip to content

Commit 1e8e5e6

Browse files
authored
Merge pull request #1480 from IFRCGo/hotfix/operational-learning
[Hotfix 5] - Operational learning bug fixes
2 parents a5ad667 + 9fa28db commit 1e8e5e6

File tree

64 files changed

+1052
-607
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1052
-607
lines changed

app/CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
11
# go-web-app
22

3+
## 7.6.6
4+
5+
### Patch Changes
6+
7+
- 8cdc946: Hide Local unit contact details on the list view for logged in users in [#1485](https://github.com/ifRCGo/go-web-app/issues/1485)
8+
Update `tinymce-react` plugin to the latest version and enabled additional plugins, including support for lists in [#1481](https://github.com/ifRCGo/go-web-app/issues/1481)
9+
- ecca810: Replace the from-communication-copied text of CoS Health header
10+
- 7cf2514: Prioritize GDACS as the Primary Source for Imminent Risk Watch in [#1547](https://github.com/IFRCGo/go-web-app/issues/1547)
11+
- 8485076: Add Organization type and Learning type filter in Operational learning in [#1469](https://github.com/IFRCGo/go-web-app/issues/1469)
12+
- 766d98d: Auto append https:// for incomplete URLs in [#1505](https://github.com/IFRCGo/go-web-app/issues/1505)
13+
14+
## 7.6.5
15+
16+
### Patch Changes
17+
18+
- 478e73b: Update labels for severity control in Imminent Risk Map
19+
Update navigation for the events in Imminent Risk Map
20+
Fix issue displayed when opening a DREF import template
21+
Fix submission issue when importing a DREF import file
22+
- f82f846: Update Health Section in Catalogue of Surge Services
23+
- ade84aa: Display ICRC Presence
24+
- Display ICRC presence across partner countries
25+
- Highlight key operational countries
26+
27+
## 7.6.4
28+
29+
### Patch Changes
30+
31+
- d85f64d: Update Imminent Events
32+
33+
- Hide WFP ADAM temporarily from list sources
34+
- Show exposure control for cyclones from GDACS only
35+
336
## 7.6.3
437

538
### Patch Changes

app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "go-web-app",
3-
"version": "7.6.3",
3+
"version": "7.6.6",
44
"type": "module",
55
"private": true,
66
"license": "MIT",
@@ -45,7 +45,7 @@
4545
"@ifrc-go/ui": "^1.2.1",
4646
"@mapbox/mapbox-gl-draw": "^1.2.0",
4747
"@sentry/react": "^7.81.1",
48-
"@tinymce/tinymce-react": "^4.3.0",
48+
"@tinymce/tinymce-react": "^5.1.1",
4949
"@togglecorp/fujs": "^2.1.1",
5050
"@togglecorp/re-map": "^0.2.0-beta-6",
5151
"@togglecorp/toggle-form": "^2.0.4",

app/scripts/translatte/main.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ yargs(hideBin(process.argv))
112112
});
113113
},
114114
async (argv) => {
115-
console.warn(argv);
116115
await applyMigrations(
117116
currentDir,
118117
argv.SOURCE_FILE as string,

app/src/App/routes/SurgeRoutes.tsx

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -416,30 +416,30 @@ const surgeCatalogueHealthEmergencyClinic = customWrapRoute({
416416
},
417417
});
418418

419-
const surgeCatalogueHealthEruChloreaTreatment = customWrapRoute({
419+
const surgeCatalogueHealthEruCholeraTreatment = customWrapRoute({
420420
parent: surgeCatalogueLayout,
421-
path: 'health/eru-chlorea-treatment',
421+
path: 'health/eru-cholera-treatment',
422422
component: {
423-
render: () => import('#views/SurgeCatalogueHealthEruChloreaTreatment'),
423+
render: () => import('#views/SurgeCatalogueHealthEruCholeraTreatment'),
424424
props: {},
425425
},
426426
wrapperComponent: Auth,
427427
context: {
428-
title: 'Emergency Response Unit Chlorea Treatment Center',
428+
title: 'Emergency Response Unit Cholera Treatment Center',
429429
visibility: 'anything',
430430
},
431431
});
432432

433-
const surgeCatalogueHealthCommunityCaseManagementChlorea = customWrapRoute({
433+
const surgeCatalogueHealthCommunityCaseManagementCholera = customWrapRoute({
434434
parent: surgeCatalogueLayout,
435-
path: 'health/community-case-management-chlorea',
435+
path: 'health/community-case-management-cholera',
436436
component: {
437-
render: () => import('#views/SurgeCatalogueHealthCommunityCaseManagementChlorea'),
437+
render: () => import('#views/SurgeCatalogueHealthCommunityCaseManagementCholera'),
438438
props: {},
439439
},
440440
wrapperComponent: Auth,
441441
context: {
442-
title: 'Community Case Management of Chlorea',
442+
title: 'Community Case Management of Cholera',
443443
visibility: 'anything',
444444
},
445445
});
@@ -472,6 +472,20 @@ const surgeCatalogueHealthSafeDignifiedBurials = customWrapRoute({
472472
},
473473
});
474474

475+
const surgeCatalogueHealthInfectionPreventionAndControl = customWrapRoute({
476+
parent: surgeCatalogueLayout,
477+
path: 'health/infection-prevention-and-control',
478+
component: {
479+
render: () => import('#views/SurgeCatalogueHealthInfectionPreventionAndControl'),
480+
props: {},
481+
},
482+
wrapperComponent: Auth,
483+
context: {
484+
title: 'Infection Prevention and Control',
485+
visibility: 'anything',
486+
},
487+
});
488+
475489
const surgeCatalogueHealthCommunityManagementMalnutrition = customWrapRoute({
476490
parent: surgeCatalogueLayout,
477491
path: 'health/community-management-malnutrition',
@@ -1301,9 +1315,10 @@ function DeploymentCatalogueNavigate() {
13011315
'eru-pss-module': surgeCatalogueHealthEruPsychosocialSupport,
13021316
'community-case-management-of-malnutrition-ccmm': surgeCatalogueHealthCommunityManagementMalnutrition,
13031317
'safe-and-dignified-burials': surgeCatalogueHealthSafeDignifiedBurials,
1318+
'infection-prevention-and-control': surgeCatalogueHealthInfectionPreventionAndControl,
13041319
'community-based-surveillance-cbs': surgeCatalogueHealthCommunityBasedSurveillance,
1305-
'community-case-management-of-cholera-ccmc': surgeCatalogueHealthCommunityCaseManagementChlorea,
1306-
'eru-cholera-treatment-center': surgeCatalogueHealthEruChloreaTreatment,
1320+
'community-case-management-of-cholera-ccmc': surgeCatalogueHealthCommunityCaseManagementCholera,
1321+
'eru-cholera-treatment-center': surgeCatalogueHealthEruCholeraTreatment,
13071322
'emergency-mobile-clinic': surgeCatalogueHealthEmergencyClinic,
13081323
'maternal-newborn-health-clinic': surgeCatalogueHealthMaternalNewbornClinic,
13091324
'surgical-surge': surgeCatalogueHealthEruSurgical,
@@ -1457,10 +1472,11 @@ export default {
14571472
surgeCatalogueHealthEruSurgical,
14581473
surgeCatalogueHealthMaternalNewbornClinic,
14591474
surgeCatalogueHealthEmergencyClinic,
1460-
surgeCatalogueHealthEruChloreaTreatment,
1461-
surgeCatalogueHealthCommunityCaseManagementChlorea,
1475+
surgeCatalogueHealthEruCholeraTreatment,
1476+
surgeCatalogueHealthCommunityCaseManagementCholera,
14621477
surgeCatalogueHealthCommunityBasedSurveillance,
14631478
surgeCatalogueHealthSafeDignifiedBurials,
1479+
surgeCatalogueHealthInfectionPreventionAndControl,
14641480
surgeCatalogueHealthCommunityManagementMalnutrition,
14651481
surgeCatalogueHealthEruPsychosocialSupport,
14661482
surgeCatalogueInformationManagement,

app/src/components/RichTextArea/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ const editorOptions: Omit<RawEditorOptions, 'selector' | 'target'> = {
1919
menubar: false, // https://www.tiny.cloud/docs/advanced/available-toolbar-buttons
2020
statusbar: false,
2121
paste_data_images: false,
22-
plugins: ['advlist autolink code help link lists preview'],
23-
toolbar: 'formatselect | bold italic superscript link | '
22+
plugins: 'advlist autolink code help link lists preview',
23+
toolbar: 'bold italic subscript superscript link | '
2424
+ 'alignleft aligncenter alignright alignjustify | '
25-
+ 'bullist numlist outdent indent | code removeformat preview | help',
26-
contextmenu: 'formats link',
25+
+ 'bullist numlist outdent indent | code removeformat preview fullscreen | help',
26+
contextmenu: 'link',
2727
// https://www.tiny.cloud/docs/configure/content-filtering/#invalid_styles
2828
invalid_styles: { '*': 'opacity' },
2929
};
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"namespace": "common",
33
"strings": {
4-
"exportTableButtonLabel": "Export",
5-
"exportTableDownloadingButtonLabel": "Downloading... ({progress}%)",
4+
"exportButtonLabel": "Export",
5+
"exportDownloadingButtonLabel": "Downloading... ({progress}%)",
66
"pendingExportLabel": "Downloading..."
77
}
88
}

app/src/components/domain/ExportButton/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ function ExportButton(props: Props) {
2929

3030
const exportButtonLabel = useMemo(() => {
3131
if (!pendingExport) {
32-
return strings.exportTableButtonLabel;
32+
return strings.exportButtonLabel;
3333
}
3434
if (progress) {
3535
return resolveToComponent(
36-
strings.exportTableDownloadingButtonLabel,
36+
strings.exportDownloadingButtonLabel,
3737
{
3838
progress: (
3939
<NumberOutput
@@ -46,8 +46,8 @@ function ExportButton(props: Props) {
4646
}
4747
return strings.pendingExportLabel;
4848
}, [
49-
strings.exportTableButtonLabel,
50-
strings.exportTableDownloadingButtonLabel,
49+
strings.exportButtonLabel,
50+
strings.exportDownloadingButtonLabel,
5151
strings.pendingExportLabel,
5252
progress,
5353
pendingExport,

app/src/components/domain/RiskImminentEventMap/LayerOptions/index.tsx

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -43,31 +43,36 @@ function colorSelector(item: SeverityLegendItem) {
4343
interface Props {
4444
value: LayerOptionsValue;
4545
onChange: React.Dispatch<React.SetStateAction<LayerOptionsValue>>;
46+
47+
exposureAreaControlHidden?: boolean;
4648
}
4749

4850
function LayerOptions(props: Props) {
4951
const {
52+
exposureAreaControlHidden,
5053
value,
5154
onChange,
5255
} = props;
5356

5457
const setFieldValue = useSetFieldValue(onChange);
5558

5659
// FIXME: use strings
60+
// FIXME: These are hard-coded for Gdacs source.
61+
// Currently we are only showing severity control for Gdacs
5762
const severityLegendItems = useMemo<SeverityLegendItem[]>(() => ([
5863
{
5964
severity: 'green',
60-
label: 'Green',
65+
label: '60 km/h',
6166
color: COLOR_GREEN,
6267
},
6368
{
6469
severity: 'orange',
65-
label: 'Orange',
70+
label: '90 km/h',
6671
color: COLOR_ORANGE,
6772
},
6873
{
6974
severity: 'red',
70-
label: 'Red',
75+
label: '120 km/h',
7176
color: COLOR_RED,
7277
},
7378
{
@@ -92,28 +97,30 @@ function LayerOptions(props: Props) {
9297
withBackground
9398
withInvertedView
9499
/>
95-
<div className={styles.exposedAreaInputWrapper}>
96-
<Switch
97-
// FIXME: use strings
98-
label="Exposed area to tropical storm or cyclone strength wind"
99-
name="showExposedArea"
100-
value={value.showExposedArea}
101-
onChange={setFieldValue}
102-
withInvertedView
103-
/>
104-
{value.showExposedArea && (
105-
<Legend
106-
className={styles.exposedAreaLegend}
100+
{!exposureAreaControlHidden && (
101+
<div className={styles.exposedAreaInputWrapper}>
102+
<Switch
107103
// FIXME: use strings
108-
label="Severity:"
109-
items={severityLegendItems}
110-
keySelector={severitySelector}
111-
labelSelector={labelSelector}
112-
colorSelector={colorSelector}
113-
labelClassName={styles.legendLabel}
104+
label="Exposed area to tropical storm or cyclone strength wind"
105+
name="showExposedArea"
106+
value={value.showExposedArea}
107+
onChange={setFieldValue}
108+
withInvertedView
114109
/>
115-
)}
116-
</div>
110+
{value.showExposedArea && (
111+
<Legend
112+
className={styles.exposedAreaLegend}
113+
// FIXME: use strings
114+
label="Severity:"
115+
items={severityLegendItems}
116+
keySelector={severitySelector}
117+
labelSelector={labelSelector}
118+
colorSelector={colorSelector}
119+
labelClassName={styles.legendLabel}
120+
/>
121+
)}
122+
</div>
123+
)}
117124
<Switch
118125
// FIXME: use strings
119126
label="Storm track"

app/src/components/domain/RiskImminentEventMap/i18n.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"namespace": "common",
33
"strings": {
44
"riskImminentEventsMap": "Risk Imminent Events Map",
5-
"backToEventsLabel": "Back to events",
65
"emptyImminentEventMessage": "No imminent event forecasted"
76
}
87
}

0 commit comments

Comments
 (0)