ECMWFCode4Earth / vAirify

code repository for 2024 Code for Earth project #16
http://136.156.139.13
MIT License
4 stars 1 forks source link

Additional UI update: Page appears not to refresh when selecting a date window that encompasses the same overall time period. #310

Open Ben-EJ opened 3 months ago

Ben-EJ commented 3 months ago

Noticed an issue right before the end of the day with my code in regard to the forecast window code. Sometimes doesn't send any requests at all for example when changing from 4 to 5, but this is very inconsistent for me, sometimes it works, sometimes it doesn't, this only seems to be an issue on the summary page, however. It works great on the single city page.

Steps to reproduce:

https://github.com/user-attachments/assets/ebf27721-1d5f-4cef-832c-514040b388e3

Expected behaviour:

Actual Behaviour:

AC:

On a hard refresh, user is unable to click lower forecast window times besides 1. Note that this does not happen for dates that are able to fully encompass a 5-day dataset. For example, if we try on the 14/08/2024 we will not see this. Plus, the forecast time range also updates as expected.