- backend keeps the latest meter sample per active transaction in memory
and ships it as active_transactions[tx].telemetry on /api/status
(Transaction.Begin snapshots skipped: taken before the BMS is read)
- Battery component: fill + color sweep red (empty) -> blue (half) ->
green (full) per the owner's spec; aria meter semantics
- charging bays show the gauge, a prominent kW readout, and delivered
kWh / voltage / current rows; hint while awaiting the first sample
- smoke: 60 checks (telemetry rides /api/status)
- Control renders every gun declared in the chargers registry, even when
the charger is offline or has not reported that connector yet (state
shows Offline / No status yet in gray)
- owner-specified state language: gray = idle, pulsing blue = cable in
the socket (Preparing), green = charging; suspended/finishing = steady
blue; fault = red
- POST /api/me/password (requires current password) + /account page,
username in the topbar links to it
- smoke test: 58 checks (password change round-trip incl. old-password
invalidation)
Frontend rewrite (frontend/, replacing backend/static/):
- Vite + TypeScript + React 19, React Router 7, zustand, TanStack Query 5
- dev: vite proxy /api -> :9000; prod: npm run build -> dist/, served by
the backend with SPA fallback
- pages: Control (gun bays w/ scope+readiness-gated start/stop, relays),
History (who/via/gun/when/duration/kWh audit), Cards (pending review,
enrolled, rejected), Users (permission checkbox matrix)
- self-contained: fonts bundled, no CDN; light/dark; reduced-motion safe
Backend:
- learn mode removed: unknown cards are always refused and queued in
pending_cards; admin approves (name + owner + gun restrictions in one
step) or rejects (denied_cards, silent, un-rejectable); pending count
rides /api/status as the notification signal
- sessions record the auth method (card tap vs in-app button) for audit
- GET /api/permissions: grantable-permission catalog driving the UI matrix
- SPA static serving with path-traversal guard; 503 hint when not built
Smoke test: 54 checks incl. approve/reject round-trips over a fake charge
point and method audit assertions.