thermograph/templates
Emi Griffith d4bcf01612 Make the PWA installable as a standalone iOS home-screen app (#202)
iOS only grants Web Push to a site the user has added to the Home Screen via
Safari (16.4+), and it needs the apple-mobile-web-app meta tags to launch
standalone rather than in a Safari tab. Those were absent. Adds them to both
header families — the five standalone frontend pages and base.html.j2 — alongside
the existing theme-color:

  apple-mobile-web-app-capable, mobile-web-app-capable,
  apple-mobile-web-app-status-bar-style, apple-mobile-web-app-title

Adds ios-install.js: a dismissible hint shown only to real iOS Safari visitors
who haven't installed yet (skips Chrome/Firefox-iOS and standalone launches),
pointing them at Share -> Add to Home Screen and noting it's how to enable alerts.
There is no beforeinstallprompt on iOS, so a pointer to the control is the only
nudge available. The dismissal persists under the thermograph: localStorage
prefix — not tg:, which cache.js sweeps on every load.

No backend change: an installed iOS home-screen app reuses the existing service
worker and VAPID web-push stack as-is.

Claude-Session: https://claude.ai/code/session_013dRZmX9D3JEntfMKWMTWZ8
2026-07-20 00:40:04 +00:00
..
about.html.j2 Give climate/city/record pages full header parity + working °F/°C (#124) 2026-07-16 17:48:30 +00:00
base.html.j2 Make the PWA installable as a standalone iOS home-screen app (#202) 2026-07-20 00:40:04 +00:00
city.html.j2 Render every percentile through one rule (#186) 2026-07-18 09:08:28 +00:00
glossary.html.j2 SEO: crawlable programmatic climate pages + technical hygiene (#96) 2026-07-15 23:53:11 +00:00
glossary_term.html.j2 SEO: crawlable programmatic climate pages + technical hygiene (#96) 2026-07-15 23:53:11 +00:00
home.html.j2 Stop the records strip showing stale readings as "right now" (#185) 2026-07-18 08:58:34 +00:00
hub.html.j2 Climate hub: client-side search + alphabetical results (#110) 2026-07-16 04:44:18 +00:00
month.html.j2 Mobile hamburger nav; crisp SVG logo; month travel-note callout (#117) 2026-07-16 05:42:59 +00:00
privacy.html.j2 Rebuild the homepage as a distribution landing; add an SMTP seam (#178) 2026-07-18 07:39:47 +00:00
records.html.j2 Give climate/city/record pages full header parity + working °F/°C (#124) 2026-07-16 17:48:30 +00:00