skalnik / aqi-wtf

😷 WTF is the AQI near me right now?!
https://aqi.wtf
MIT License
44 stars 12 forks source link

Add metadata and offline storage to pass PWA check #70

Closed slightlyoff closed 3 years ago

slightlyoff commented 4 years ago

Also uses a smaller geographic query for sensors in order to minimize startup time, both online and from localstorage.

Small nits fixed:

- adds a <meta name="theme-color"> for full-bleed color
- sets manifest `start_url` w/ PWA query params
- adds name/short_name values for homescreen shortcut
- caches all non-PA assets, including analytics
- adds MIT license to package.json

To update the site in future, ensure that new assets are added to the list in sw.js and bump the "version" number in that file.

TODO: more aggressive cache busting for the SW impl.

vercel[bot] commented 4 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/skalnik/aqi-wtf/aoiubnz4o
✅ Preview: https://aqi-wtf-git-fork-slightlyoff-pwa.skalnik.vercel.app

slightlyoff commented 4 years ago

Screenshots for the Android flow:

Screenshot_20201003-141154 Screenshot_20201003-141201 Screenshot_20201003-141219

slightlyoff commented 4 years ago

And it's a desktop app too, because PWAs.

Screenshot 2020-10-03 at 14 23 18