IMLS / estimating-wifi

Estimating Wifi is a pilot project to automate the censusing of proximal wifi devices via low-cost and open source tools.
https://10x.gsa.gov/projects/shared-components-for-museums-and-libraries/
Other
10 stars 2 forks source link

Make library page use 'yesterday' by default unless .env provides an override #338

Closed sknep closed 1 year ago

sknep commented 1 year ago

Closes #329 and prepares the frontend for end-to-end testing.

Removes the guard on either side of May 2022 that limits the library page from selecting other dates. The default start date for backend data is now "yesterday", so we can see recently posted presence data on first load on production.

For future development:

If a default start date is provided to the front end via .env variable (VITE_DEFAULT_DATE_OVERRIDE=2022-05-31), the Library page will load at that start date on first visit (so we can continue to test using May 2022 data without always scrolling through 6 months of the date picker). It's just for developer quality of life/testing.

anagradova commented 1 year ago

LGTM