bcgov / nr-rfc-alertauthoring

a tool to help create structured data for River Forecast Centre alert feeds
Apache License 2.0
1 stars 0 forks source link

Add Map to Create Alert Page #127

Closed franTarkenton closed 1 month ago

franTarkenton commented 2 months ago

Add a map to the create page that allows hydrologists to select basins and set their alert levels via a map / spatial interface

This is for the create page, where new alerts get authored

franTarkenton commented 2 months ago

Pushed the branch: feat/127-map-create

Now contains the create alert map changes to alert level via map update non spatial component non spatial component update update map

Can submit changes, unfortunately the resulting view page does not display the map correctly. Looks like the data is there, as the non spatial component is displaying it correctly, but for some reason the updates are preventing the map from displaying things correctly.

franTarkenton commented 2 months ago

The downstream view alert page has now been fixed.

Remaining tasks:

franTarkenton commented 1 month ago

Downstream is fixed, remaining deficiency:

When a basin and alert level has been assigned, when the basin that has been assigned is clicked on in the map, the pulldown widget should display the currently selected alert level.

The same should apply if no alert-level has been assigned. In this scenario a basin on the map is clicked on that has no alert level assigned for it, in this scenario the pulldown display should show a 'None' option as selected with 'High streamflow Advisory', 'Flood Watch' and 'Flood warning' as options for selection.

franTarkenton commented 1 month ago

see