- 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
.mu-stop-grid sets display:grid, which overrides the hidden attribute, so the
list stayed visible on the near-me tab even though the code set hidden.
Same class of bug as .mu-search-mode, which now has an explicit [hidden] rule
in both repos.
- 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.
- Topbar: switch from overflow-x:auto to a two-line layout on mobile
(brand + language on line 1, nav full-width on line 2) so the header
never scrolls left/right
- Province filter strip: flex-wrap instead of overflow-x:auto so the
province chips wrap onto multiple lines
- Reset topbar/nav to single-line at >=640px
Site now scrolls vertically only on phone; zero user horizontal scroll.
- Fix .mu-select-field flex-basis bug: flex:1 1 250px became a 250px
HEIGHT basis when the selector stacks to a column on phone, bloating
the home/check heroes to ~700-760px. Reset to flex:0 0 auto (content
height) -> heroes now ~350-420px
- Enlarge tap targets on phone: language buttons 21px -> 40px, footer
links and contact link -> 44px min-height
Verified with headless Chrome: 0 horizontal overflow at 320-1600px, hero
heights sane on phone.
- Add box-sizing: border-box and img/svg/video max-width:100% reset
- Add min-width:0 to grid/flex children so they can shrink (hero panel,
layout grid, metric grid)
- Allow long text to wrap (mock-state query strings, long stop names)
- Topbar: hide CTA button until 1024px, hide brand subtitle until 768px,
and wrap the bar onto two lines under 360px so nav is never cut off
Verified with headless Chrome at 320/375/414/640/768/1024/1280/1600px:
zero horizontal overflow on all 7 routes.
- Add Makefile with help/setup/pack/serve targets (PORT overridable)
- README: document make setup / make serve / make pack instead of raw
./setup.sh and python http.server commands
- setup.sh now supports `./setup.sh pack` to re-zip .image/ into
resource/images.zip (cds to repo root, guards missing .image/, removes
stale zip first)
- README: document extract-then-edit-then-pack order instead of the raw
zip command that failed on a fresh clone
.resource/ clashed with resource/ (the tracked data folder), so rename the
hidden image folder to .image/ for clarity. Re-zip resource/images.zip to
contain .image/ and update setup.sh, .gitignore, README.md, AGENTS.md and
all image references in ui/.
- Rename resource/images/ to .resource/ (dot-prefixed, gitignored, never pushed)
- Repackage resource/images.zip to contain .resource/ at the archive root
- Update setup.sh to extract the zip to .resource/
- Update all image references from ../resource/images/ to ../.resource/
across ui HTML, manifest.json and sw.js
- Sync .gitignore, README.md and AGENTS.md with the new layout
- Compress resource/images/ (~31MB) into resource/images.zip and untrack
the 62 individual binaries so future image changes do not bloat git history
- Add setup.sh to unpack the zip after clone (idempotent)
- gitignore resource/images/ and .DS_Store
- Document run + image-management steps in README.md
- 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#/...
- Created index_backup.html with complete layout and styling for the homepage.
- Added home.html partial for the hero section, including province and station selectors.
- Implemented responsive design elements and navigation for bus routes.
- Included sponsor section with partner logos in a marquee format.
- Deleted the script for capturing live flow UI diagrams (build_live_flow.py).
- Removed the flow summary documentation (flow-summary.md).
- Eliminated the HTML overview of the flow (flow_overview.html).
- Deleted generated images (frontend-web-transit-flow-live.png, frontend-web-transit-flow-live.jpg, and others).
- Cleared out all associated screenshot assets from the screenshots and screenshots_live directories.