openclimatefix / quartz-frontend

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

Issue/365 loading states #396

Closed braddf closed 1 year ago

braddf commented 1 year ago

Pull Request

Description

Add some loading states, similar to those suggested in the below issue. Not from designs, so testing and feedback welcome!

Fixes #365

How Has This Been Tested?

Locally, forcing API to update every 30 seconds and also manually triggering updates to different API endpoints to check messages.

Checklist:

Screenshots of example loading messages:

image image
vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nowcasting-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 4, 2023 4:39pm
nowcasting-website ✅ Ready (Inspect) Visit Preview Aug 4, 2023 4:39pm
peterdudfield commented 1 year ago

Thanks @braddf for doing this. I've had a look on the preview vercel site but I couldnt see any loading states.

Perhaps they are not meant to be visible? If so where are they? and is it just for us internally to use? If not, could add a few screen shot to the PR of these features?

Thanks

braddf commented 1 year ago

@peterdudfield have amended description, hopefully should be clearer before and I can see why you may not have seen it in the Preview deploy! Have to have the tab open and check back in after 2 mins to see it in the wild – this might not be how we want it, open to discussion! 👍

peterdudfield commented 1 year ago

@peterdudfield have amended description, hopefully should be clearer before and I can see why you may not have seen it in the Preview deploy! Have to have the tab open and check back in after 2 mins to see it in the wild – this might not be how we want it, open to discussion! 👍

Thanks @braddf , I now see them.

I think they are useful and handy and give some nice user feedback. How do you feel about the design of them?

braddf commented 1 year ago

I feel like is a good v1 - I don't like designing in a vacuum so keen to get them onto development etc. to get prompt some feedback but they seem to be doing what I hoped they would, and show promise for further feature expansion I think? 👍