Spaces:
Sleeping
Sleeping
Commit History
-
Quality pass: CI, accessibility, and gzip/perf
CI (GitHub Actions): - .github/workflows/ci.yml runs on every push/PR: byte-compiles Python, checks JS syntax (esprima), and runs tests/smoke_test.py (build render, JSON-LD validity, payload keys, social-card generation). Accessibility: - Collapsible panel/itinerary headers are keyboard-operable (role=button, tabindex, Enter/Space) with aria-expanded kept in sync. - aria-labels on icon-only and unlabelled controls (search, clear, locate, vehicle inputs, brand filter); aria-live on status regions (hint, route msg, cost, charger count, route status). - Cheapest-list rows are focusable buttons with keyboard activation. - Visible :focus-visible outlines; darker secondary text (#999 -> #6b7280) for AA contrast; map labelled as an application region. Perf / Lighthouse: - app.py now gzips text responses (html/css/js/json/xml/svg) when accepted — a big win for the ~1.4 MB embedded-data index — and sets a 1-day cache on images/manifest while keeping the page and SW no-cache. …590c919