This PR aims at introducing two new features in the overview area of each alert/event:
a button to close the overview and come back to the selection of the alerts;
a button to erase an alert from the platform for the rest of the browser session.
These simple interactions required a bit of work, essentially in main.py, as several outputs are now determined by a multitude of inputs (not only the center and zoom attributes of the map anymore). It also required to modify the build_individual_alert_components in alerts.py, some of its outputs being transferred to a new function (display_alert_selection_area).
I have tried to comment the code as much as possible but let me know if you have any question of course!
Screenshots
Two alerts are initially displayed on the platform
As usual, we click on the alert button in the top-right corner of the map and then, select one of the alerts which lets the overview appear on the left-hand side of the map
By clicking on "Fermer l'aperçu de l'alerte", one can close the alert overview
After reopening it (cf. second screenshot) and clicking on "Ne plus voir cette alerte", only 1 alert is displayed by the platform now
We can open the remaining alert overview
And we can do the same for this alert, no alert being displayed on the platform (back to its initial, no-alert state)
Question
I don't know if you have the same issue but as you can see on the screenshots, the map doesn't load properly when I build the app locally with Docker. Using `python3 app/main.py" works (slightly) better and the deployed platform seems to display the map correctly, so it should not be too big an issue. But still, it does not help with the debugging...
Hello everyone!
Brief description of the PR
This PR aims at introducing two new features in the overview area of each alert/event:
These simple interactions required a bit of work, essentially in
main.py
, as several outputs are now determined by a multitude of inputs (not only the center and zoom attributes of the map anymore). It also required to modify thebuild_individual_alert_components
inalerts.py
, some of its outputs being transferred to a new function (display_alert_selection_area
).I have tried to comment the code as much as possible but let me know if you have any question of course!
Screenshots
Question
I don't know if you have the same issue but as you can see on the screenshots, the map doesn't load properly when I build the app locally with Docker. Using `python3 app/main.py" works (slightly) better and the deployed platform seems to display the map correctly, so it should not be too big an issue. But still, it does not help with the debugging...