6 Commits

Author SHA1 Message Date
897f49ae22 Add installable PWA (manifest, service worker, icons) + per-type notification toggles
All checks were successful
Test, Build & Deploy / test-and-build (push) Successful in 1m1s
Test, Build & Deploy / deploy (push) Successful in 22s
- manifest.webmanifest + apple/maskable PNG icons; relative paths so the
  app works both at dev root and under /weather
- plain-JS service worker (sw.js) with notificationclick/push handlers and
  an SW-mediated showNotification() path for native Android notifications
- src/lib/pwa.js bootstraps registration and routes alerts to the SW
- Every alert kind (storm/precip/heat/cold/uv/wind) is now a per-type
  preference toggle in Settings; removed the old alertThresholds.thunderstorm
  boolean in favor of notificationTypes.storm
- Store dedups native notifications per forecast day and fires best-effort
  native notifications for newly-appeared alerts
- inline-assets keeps manifest/sw/icons in dist; deploy.yml uploads + verifies
  all PWA files via WebDAV
2026-09-08 00:59:19 +00:00
7a64e34d7a Drop npm cache in CI (Docker-mode runner cache server causes failures)
Some checks failed
Test, Build & Deploy / test-and-build (push) Failing after 40s
Test, Build & Deploy / deploy (push) Has been skipped
2026-08-30 20:43:11 +00:00
6cbc9d4eda Switch CI runner to Ubuntu (containerized act_runner)
Some checks failed
Test, Build & Deploy / test-and-build (push) Failing after 2m3s
Test, Build & Deploy / deploy (push) Has been skipped
2026-08-30 20:33:38 +00:00
09cea275b7 Fix WebDAV deploy: DELETE-then-PUT to bypass stale-file cache
All checks were successful
Test, Build & Deploy / test-and-build (push) Successful in 38s
Test, Build & Deploy / deploy (push) Successful in 20s
The serving layer caches uploaded files, so a plain PUT over the existing
index.html returned 201 but kept serving the old copy, failing the
verify step. Delete first, then PUT (single-line curls: YAML block
scalars don't process backslash continuations).
2026-08-30 19:03:38 +00:00
38f0c04b3e Bake commit hash into build; log it via console.info on startup
Some checks failed
Test, Build & Deploy / test-and-build (push) Successful in 38s
Test, Build & Deploy / deploy (push) Failing after 20s
Build injects __WEATHER_COMMIT__ (VITE_COMMIT_HASH from CI's github.sha on
branch builds, git rev-parse HEAD locally) and main.js logs
console.info({ commit_hash }) so a deploy can be verified to match the
commit that produced it.
2026-08-30 19:01:13 +00:00
789f781c56 Add CI workflow: test, build, and auto-deploy /weather on push to master
Some checks are pending
Test, Build & Deploy / test-and-build (push) Waiting to run
Test, Build & Deploy / deploy (push) Blocked by required conditions
Deploys dist/index.html to the WebDAV mirror via basic-auth curl PUT from
WEBDAV_USER/WEBDAV_PASS repo secrets, then verifies the deployed bytes
match the local build. Hard-fails if the secrets are missing so a silent
non-deploy can never look like a success.
2026-08-30 14:14:42 +00:00