openclimatefix / quartz-frontend

Front End repo for the Nowcasting project.
https://openclimatefix.org/projects/nowcasting/
MIT License
103 stars 16 forks source link

Improve loading states/feedback in UI #365

Closed braddf closed 1 year ago

braddf commented 1 year ago

Detailed Description

Provide more granular loading states and messages in the app to tell the user (and us) what is currently loading, and if anything specific has failed to load.

Context

Right now, we have mostly just general spinners that hide the main chart components when the data is loading - this includes both first load, and currently also when data is being refetched (which is potentially jarring and frustrating as a user, I would personally rather see the current, existing data in the cache, even if slightly "stale", rather than no data and a spinner.

Possible Implementation

N.B. This refactoring could also give easy opportunity to record which API calls are failing and when