emibcn / covid

Progressive Web Application that displays extracted data from the official web https://dadescovid.cat
https://emibcn.github.io/covid/
GNU General Public License v3.0
10 stars 20 forks source link

Add a Snackbar for each backend data update #26

Open emibcn opened 4 years ago

emibcn commented 4 years ago

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:

MeghalBisht commented 4 years ago

Can i take this?

emibcn commented 4 years ago

@MeghalBisht Assigned!

MeghalBisht commented 4 years ago

@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

emibcn commented 4 years ago

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:

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).

emibcn commented 4 years ago

Maybe it's better to have a Notifications menu and show a snackbar after the first 5 minutes of each new notification?