75869364b0
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.
2.0 KiB
2.0 KiB
type, updated, tags
| type | updated | tags | |
|---|---|---|---|
| meta | 2026-07-11 |
|
Index
Catalog of every wiki page. Updated on every ingest. (Schema/conventions live in CLAUDE.md.)
Synthesis
- overview — current project state, what's next, open decisions ❓ (2026-07-09)
Entities
- anfu-charger — the charging pile: its three internal devices + working touchscreen config
- jc-6620 — the OCPP communication controller / client; its IPs and shipped-gateway gotcha
- backend — the production backend in
../backend/: CSMS + REST API + relay control + user auth + consumption store, all on :9000 - frontend — the React control panel in
../frontend/: Vite/TS, React Router, zustand, TanStack Query; served by the backend - csms-toolkit — the Python CSMS scripts in
../discovering/; discovery/diagnostic tooling (production role superseded by backend) - wifi-relays — the Tuya/SmartLife WiFi relays; local tinytuya control path + key-extraction steps
- netbird — the private overlay network; security boundary for the future web panel
Concepts
- network-topology — charger LAN behind the Four-Faith router, NAT direction, what's verified
- authorization — charger auth methods (RFID ✅ / by-vehicle ❌ / app ✅), per-gun cards, and the API user/scope permission system
- troubleshooting — ordered "charger won't connect" checklist of hard-won gotchas
- ocpp — OCPP 1.6J basics and how the roles/messages map to this project
Notes
- architecture-plan — stack decision (FastAPI + PWA now, Flutter optional later) and 6-phase build plan
- discovery-runbook — step-by-step physical test session: Autocharge first, then RFID taps, then remote start
Sources
- 2026-07-09-findings-and-requirements — founding findings/requirements doc (ingested 2026-07-09)
- 2026-07-09-discovery-eu092025 — live GetConfiguration capability dump from the real charger: 2 guns, feature profiles, meter data (ingested 2026-07-09)