- ui/version.json: server-side version marker, polled by pwa.js (load, 5 min,
tab focus, network online); mismatch -> toast + auto reload once per version
- pwa.js: silent reload when tab hidden, guarded reload (sessionStorage) so a
partial deploy cannot loop, ATUpdate.check() exposed for testing
- _shared.css: .mu-update-toast pill (bottom center, reduced-motion aware)
- shell js/css get ?v=<version> automatically (bump-version.py) so HTTP cache
cannot serve stale files before the service worker takes control
- sw: cache fallback now ignores query string (precache still matches ?v= URLs)
- bump-version.py: writes version.json + verifies it in --check
- VERSION 2026.09.27.108
Pulled the newer values from the Next port where it had already been aligned
with DESIGN.md:
- .mu-search-tab font-size .88 -> .85rem
- .mu-btn border-radius 12px -> 8px (DESIGN allows 4/8/999 only)
- .mu-btn.ghost colour #5b3b71 -> #7a4cc0 (brand)
- .mu-search-hint colour #6f7b95 -> #5f6b83 (AA contrast) and .82 -> .85rem
- locales: share.label now 'แชร์หน้านี้' / 'Share this page', stops.nearHint
matches the longer English copy
- busStop.html: added the third tab (data-mode=near) and its own panel with
the location button, hint and result area; removed the near button from the
toolbar and deleted the old on-screen numpad markup
- busStop.search.js: MODE_NEAR in setMode, disables the other panels, hides
the stop list while ranked results are shown, skips filtering in that mode,
and removed the dead initNumpad code
- security gate: the tab is revealed only when isSecureContext and
navigator.geolocation exist; otherwise it stays hidden and the mode is
refused
- map.js: re-enable the button after a successful lookup
- i18n: stops.modeNear / nearCta / nearHint
- bump SW version to 2026.09.27.98
Verified on localhost:8090 - three tabs, near mode shows a map with 8 ranked
stops, button re-enables and works again, switching back restores the list;
with isSecureContext forced false the tab is hidden and unselectable.