Open emibcn opened 4 years ago
Can i take this?
@MeghalBisht Assigned!
@emibcn Since I am new here, please guide me, do I need to add snackbar for everytime user chooses a chart/map or only when it updates from the official publication.I am confused if the data updates only once per day, how is snackbar useful? Thanks
Since I am new here, please guide me, do I need to add snackbar for everytime user chooses a chart/map or only when it updates from the official publication
Only on data update and until user closes. Probably would be a good idea to:
Widget/List.jsx
component's state, like: [ {title: "Map data has been updated", icon: faOk, color: "blue"} ]
.onAck(index)
handler for this array to handle the event when user ACK's it (remove it after remove transition ends?).I am confused if the data updates only once per day, how is snackbar useful? Thanks
It's only once a day, but it's nice to give feedback if a background and automatic action (DB update) that, in fact, changes some of the data the user may be visualizing (among them, the list of days, so all widgets need to update the view on DB update). Even more, some future data sources may need to update more than once a day.
Currently, the unique feedback given by the app on data update are some console.log
messages (only in development environment).
Maybe it's better to have a Notifications menu and show a snackbar after the first 5 minutes of each new notification?
Each backend (currently, Maps and Charts) automatically tries to update the data -at least- once a day, when the official publication and covid-data Worflow finishes.
All of that is done without user intervention, neither giving any feedback.
Proposal
Add a Material/UI Snackbar to each backend update callback/subscription success execution.
Data updates callbacks: