miDeb / digitales_register

Inoffizielle App für das Digitale Register (https://digitalesregister.it)
GNU General Public License v3.0
16 stars 3 forks source link

Indicate when data displayed in offline mode was last fetched #9

Closed miDeb closed 2 years ago

miDeb commented 2 years ago

While offline mode can be convenient in many cases, the data that is displayed might be out of date. It should help displaying a string indicating when the data was last refreshed, to avoid confusing the user.

The main problem that will arise is likely around grades, as the data displayed in the grades page is not from a single source: Whenever it is opened, we only fetch general data about all subjects, and only load subject details whenever a subject's ExpansionTile is expanded. It's going to be confusing to users because they won't know of/understand this concept. This is a UI problem that has to be solved...

Another problem is that the days on the homework page (the main page) aren't loaded all at once, either. Future and past days are loaded separately. Because days naturally move from the "future" page to the "past" page, the days in the "past" page will not be from the same date.

I think the best way to solve both problems is to display the "last synced" string more granularly throughout the UI.

miDeb commented 2 years ago

Fixed by c2a3ef58fbbcc5d9fa10e31151d0dabbbca58f77