- markup: lang + theme moved into .mu-topbar-tools (theme first, then lang),
same order as web-at-transit: brand, nav, menu, tools, CTA
- CSS: replaced mock's .mu-lang-*/.mu-theme-* buttons with the Next rules
(.mu-pop / .mu-pop-btn / .mu-pop-btn-lang / .mu-pop-panel / .mu-pop-item,
40px tall, radius 8px, surface bg, 44px on coarse pointers)
- lang button keeps short label + 12px chevron; menu items use
.mu-pop-item-th/.mu-pop-item-en and data-active for the selected row
- nav 0.95rem (was .92rem), header border -> var(--c-border)
- theme.js was never included in the shell (regex missed the versioned src) —
added after i18n.js + precached with theme.css; that was why the theme menu
did not open in the previous build
- VERSION 2026.09.27.120
- ui/theme.css: token set copied value-for-value from the Next app
(--c-surface/-ink/-border/-brand/-tint/-glass + radius), light and dark blocks
- ui/theme.js: 3-mode switch (light / dark / auto=prefers-color-scheme) with a
header dropdown, aria-haspopup/menu, Esc/outside close, live matchMedia listener
- index.html: pre-paint theme script (no flash), theme.css link before _shared.css
- remapped ~290 literal colours in _shared.css/index.html/partials to var(--c-*)
so both projects render from the same tokens; dark patch block covers the
remaining decorative gradients
- DESIGN.md: new section 3.2 (theme tokens + where to add colours)
- VERSION 2026.09.27.114
- replace the two inline TH/EN buttons with a single dropdown (icon + label +
caret) mirroring the Next app's LangSwitch: aria-haspopup/expanded,
menuitemradio + aria-checked, close on Esc/outside, focus management
- i18n.js: default language is Thai (no longer guesses from navigator.language);
saved choice still wins via at_lang
- bump VERSION 2026.09.27.109
- 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
- Single-page shell (ui/index.html) + vanilla hash router; each screen is a partial
- New #/check schedule view (all stop times open, no collapse) wired to the
'check schedules' CTA; contact-operator box, route map and gallery trimmed from it
- Mobile-first responsive.css (375px iPhone 8 up to 27-inch/1440p)
- TH/EN i18n system (data-i18n, browser-language detect, topbar switcher)
- Shared form controls moved to _shared.css (mu-btn, custom select chevron,
focus-visible ring); footer contact column now mailto:[email protected]
- SW v9: JS network-first, precache i18n.js + all partials
- Legacy pages become redirect stubs to index.html#/...