You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/src/views/AccountMyFormsDref/DownloadImportTemplateButton/DownloadImportTemplateModal/useImportTemplateSchema.ts
+18-60Lines changed: 18 additions & 60 deletions
Original file line number
Diff line number
Diff line change
@@ -136,8 +136,6 @@ function useImportTemplateSchema() {
136
136
// OPERATION OVERVIEW
137
137
138
138
national_society: {
139
-
// FIXME: We don't need this anymore?
140
-
// headingBefore: 'Essential Information',
141
139
type: 'select',
142
140
label: 'National society',
143
141
validation: 'number',
@@ -224,7 +222,6 @@ function useImportTemplateSchema() {
224
222
label: 'Did it affect the same population groups?',
225
223
optionsKey: '__boolean',
226
224
validation: 'boolean',
227
-
// FIXME: Cannot group the cells
228
225
description: (
229
226
'Indicate only if there was a similar event affecting the same area in the last 3 years.\n'
230
227
+'Otherwise, leave the box empty.'
@@ -236,7 +233,6 @@ function useImportTemplateSchema() {
236
233
label: 'Did the National Society respond?',
237
234
optionsKey: '__boolean',
238
235
validation: 'boolean',
239
-
// FIXME: Cannot group the cells
240
236
description: (
241
237
'Indicate only if there was a similar event affecting the same area in the last 3 years.\n'
242
238
+'Otherwise, leave the box empty.'
@@ -248,7 +244,6 @@ function useImportTemplateSchema() {
248
244
label: 'Did the National Society request funding from DREF for that event(s)?',
249
245
optionsKey: '__boolean',
250
246
validation: 'boolean',
251
-
// FIXME: Cannot group the cells
252
247
description: (
253
248
'Indicate only if there was a similar event affecting the same area in the last 3 years.\n'
254
249
+'Otherwise, leave the box empty.'
@@ -259,14 +254,12 @@ function useImportTemplateSchema() {
259
254
type: 'input',
260
255
label: '<i>If yes, please specify which operations</i>',
261
256
validation: 'string',
262
-
// FIXME: Cannot group the cells
263
257
description: (
264
258
'Indicate only if there was a similar event affecting the same area in the last 3 years.\n'
265
259
+'Otherwise, leave the box empty.'
266
260
),
267
261
},
268
262
269
-
// FIXME: remove this?
270
263
dref_recurrent_text: {
271
264
type: 'input',
272
265
label: 'If you have answered yes to all questions above, justify why the use of DREF for a recurrent event, or how this event should not be considered recurrent',
@@ -292,10 +285,8 @@ function useImportTemplateSchema() {
292
285
event_date: {
293
286
headingBefore: 'Description of the Event',
294
287
type: 'input',
295
-
// FIXME: Is this label change correct?
296
-
label: 'Date of the Event',
288
+
label: 'Date of the Event / Date when the trigger was met',
297
289
validation: 'date',
298
-
// FIXME: Not sure if this is correct
299
290
description: 'DD/MM/YYY',
300
291
},
301
292
@@ -330,7 +321,6 @@ function useImportTemplateSchema() {
330
321
),
331
322
},
332
323
333
-
// FIXME: Added bold on "Comparative Analysis"
334
324
event_scope: {
335
325
type: 'input',
336
326
validation: 'textArea',
@@ -359,9 +349,6 @@ function useImportTemplateSchema() {
359
349
source_information: {
360
350
type: 'list',
361
351
label: 'Source Information',
362
-
// FIXME: description has been removed
363
-
// description: 'Add the links and the name of the sources, the
364
-
// name will be shown in the export, as an hyperlink.',
365
352
optionsKey: 'source_information',
366
353
children: {
367
354
type: 'object',
@@ -375,8 +362,6 @@ function useImportTemplateSchema() {
375
362
type: 'input',
376
363
validation: 'string',
377
364
label: 'Link',
378
-
// FIXME: Cannot group the cells
379
-
// FIXME: This will be visible on all the repetitions
380
365
description: 'Specify the names (up to 5) of the key information sources. If possible, provide links.\nThe names will be shown in the export as an hyperlink.',
381
366
},
382
367
},
@@ -398,24 +383,17 @@ function useImportTemplateSchema() {
398
383
type: 'input',
399
384
validation: 'date',
400
385
label: 'If yes, start date of National Society actions',
401
-
// FIXME: Not sure if this is correct
402
386
description: 'DD/MM/YYY',
403
387
},
404
388
405
389
national_society_actions: {
406
390
type: 'list',
407
391
label: 'National Society Actions',
408
-
// FIXME: This has not been hidden in the UI, but to make this
392
+
// NOTE: This has not been hidden in the shared template, but to make this
409
393
// consistent we can hide this
410
394
hiddenLabel: true,
411
395
keyFieldName: 'title',
412
396
optionsKey: 'national_society_actions',
413
-
// FIXME: description has been removed
414
-
// description: 'Please indicate a description of the ongoing
415
-
// response with if possible: Branches involved, number of
416
-
// volunteers/staff involved in actions, assets
417
-
// deployed/distributed, number of people reach. Impact/added
418
-
// value of the NS in the response already ongoing.',
419
397
children: {
420
398
type: 'object',
421
399
fields: {
@@ -424,7 +402,6 @@ function useImportTemplateSchema() {
@@ -449,7 +426,6 @@ function useImportTemplateSchema() {
449
426
headingBefore: 'ICRC Actions Related To The Current Event',
450
427
type: 'input',
451
428
validation: 'textArea',
452
-
// FIXME: Is this label change correct?
453
429
label: 'Description',
454
430
description: '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.',
455
431
},
@@ -489,13 +465,6 @@ function useImportTemplateSchema() {
489
465
),
490
466
},
491
467
492
-
// FIXME: remove this?
493
-
major_coordination_mechanism: {
494
-
type: 'input',
495
-
validation: 'string',
496
-
label: 'List coordination mechanisms/platform in place at local/district and national level. Indicate the lead authorities/agencies. How the National Society is involved/positioned in this coordination. Does the NS in any lead/co-lead role? Any identified gap/overlap in the coordination (e.g., sector missing…)?',
497
-
},
498
-
499
468
needs_identified: {
500
469
type: 'list',
501
470
label: 'Needs (Gaps) Identified',
@@ -509,7 +478,6 @@ function useImportTemplateSchema() {
label: 'Estimated Percentage: <b>People with Disability</b>',
627
590
description: '<i>Percentage, e.g. XX%.</i>',
628
-
// FIXME: Does this need to be left aligned?
629
591
},
630
592
631
593
people_per_urban: {
632
594
type: 'input',
633
595
validation: 'number',
634
596
label: 'Estimated Percentage: <b>Urban</b>',
635
597
description: '<i>Percentage, e.g. XX%.</i>',
636
-
// FIXME: Does this need to be left aligned?
637
598
},
638
599
639
600
people_per_local: {
640
601
type: 'input',
641
602
validation: 'number',
642
603
label: 'Estimated Percentage: <b>Rural</b>',
643
604
description: '<i>Percentage, e.g. XX%.</i>',
644
-
// FIXME: Does this need to be left aligned?
645
605
},
646
606
647
607
displaced_people: {
648
608
type: 'input',
649
609
validation: 'number',
650
610
label: 'Estimated number of <b>People on the move</b> (if any)',
651
611
description: '<i>Percentage, e.g. XX%.</i>',
652
-
// FIXME: Does this need to be left aligned?
653
612
},
654
613
655
614
risk_security: {
@@ -663,15 +622,24 @@ function useImportTemplateSchema() {
663
622
type: 'input',
664
623
validation: 'string',
665
624
label: '<b>Risk</b>',
666
-
// FIXME: Add dynamic description
667
-
// FIXME: Does this need to be left aligned?
625
+
description: (
626
+
'<b>Identify up to 5 key potential risks or threats that could negatively impact the success of the operation.</b> These can range from environmental risks to social or logistical challenges.\n'
627
+
+'\n'
628
+
+'- What are the primary risks that could affect the operation’s implementation?\n'
629
+
+'- Are there any context-specific risks that need to be considered?\n'
630
+
+'- How might these risks impact the operation’s objectives, timeline, or resources?'
631
+
),
668
632
},
669
633
mitigation: {
670
634
type: 'input',
671
635
validation: 'string',
672
636
label: '<b>Mitigation action</b>',
673
-
// FIXME: Add dynamic description
674
-
// FIXME: Does this need to be left aligned?
637
+
description: (
638
+
'<b>Actions or strategies that will be implemented to reduce or manage the identified risks, ensuring the operation can proceed as planned.</b>\n'
639
+
+'\n'
640
+
+'- What specific measures or strategies will be put in place to mitigate the risks identified?\n'
641
+
+'- Will contingency plans or additional resources be required to address these risks?'
642
+
),
675
643
},
676
644
},
677
645
},
@@ -703,11 +671,11 @@ function useImportTemplateSchema() {
703
671
type: 'input',
704
672
validation: 'number',
705
673
label: '<b>Requested Amount in CHF</b>',
706
-
// FIXME: Does this need to be left aligned?
707
674
},
708
675
709
676
planned_interventions: {
710
677
type: 'list',
678
+
// NOTE: This has been hidden in the shared template
711
679
label: 'Add the interventions that apply',
712
680
hiddenLabel: true,
713
681
optionsKey: 'planned_interventions',
@@ -720,16 +688,12 @@ function useImportTemplateSchema() {
720
688
validation: 'number',
721
689
label: '<b>Budget</b>',
722
690
description: 'Budget planned to be spent on the activities under this sector.',
723
-
// FIXME: This will be visible on all repeated fields
724
-
// FIXME: Does this need to be left aligned?
725
691
},
726
692
person_targeted: {
727
693
type: 'input',
728
694
validation: 'number',
729
695
label: '<b>Person targeted</b>',
730
696
description: 'Number of people planned to be reached through the activities under this sector.',
731
-
// FIXME: This will be visible on all repeated fields
732
-
// FIXME: Does this need to be left aligned?
733
697
},
734
698
description: {
735
699
type: 'input',
@@ -747,13 +711,12 @@ function useImportTemplateSchema() {
747
711
+'<b>* Activity B</b>\n'
748
712
+'<b>* Activity B</b>\n'
749
713
),
750
-
// FIXME: Does this need to be left aligned?
751
714
},
752
715
indicators: {
753
716
type: 'list',
754
717
label: 'Indicators',
755
-
// FIXME: This has not been hidden in the UI, but to make this
756
-
// consistent we can hide this
718
+
// NOTE: This has not been hidden in the shared
719
+
// template, but to make this consistent we can hide this
757
720
hiddenLabel: true,
758
721
optionsKey: 'planned_interventions_indicators',
759
722
children: {
@@ -763,7 +726,6 @@ function useImportTemplateSchema() {
763
726
type: 'input',
764
727
validation: 'string',
765
728
label: 'Title',
766
-
// FIXME: Does this need to be left aligned?
767
729
description: (
768
730
'Start by choosing indicators from the IFRC indicator databank whenever possible. This makes it easier to compare and analyse results across all emergency operations.\n'
769
731
+'\n'
@@ -773,15 +735,12 @@ function useImportTemplateSchema() {
773
735
+'\n'
774
736
+'Consider the type of indicator unit. For example, it’s often simpler and clearer to track and report on the “number of people” rather than a “percentage of people.”'
775
737
),
776
-
// FIXME: This will be visible on all the repetitions
777
738
},
778
739
target: {
779
740
type: 'input',
780
741
validation: 'number',
781
742
label: 'Target',
782
-
// FIXME: Does this need to be left aligned?
783
743
description: 'For each indicator, set a target. This helps track progress and measure whether the operation is achieving its key objectives, making it easier to report results later on.',
784
-
// FIXME: This will be visible on all the repetitions
785
744
},
786
745
},
787
746
},
@@ -874,7 +833,6 @@ function useImportTemplateSchema() {
0 commit comments