docs: update Phase 26, simplify readme project status, de-emoji

This commit is contained in:
Mathieu Moran
2026-08-11 02:57:01 -04:00
parent 1487fd3478
commit f7d305a036
2 changed files with 18 additions and 99 deletions
+12 -52
View File
@@ -1860,61 +1860,21 @@ phase roadmap.
---
### Phase 26: Road-test bug fixes — 🚧 PLANNED
**Renumbered/added 2026-08-10 after the Phase 25 owner road test.** This phase (the former Phase 26
Android slot, which is now **Phase 27**) is a targeted bug-fix pass for the defects surfaced by the
in-car road test. Each item references its tracking entry in `BUGS.md`; distinct fixes should be
committed individually with a `fix(bug-N): ...` prefix and each closed out in `BUGS.md` as it
lands. The current known issues from the road test (also recorded in `BUGS.md`):
### Phase 26: Road-test bug fixes — 🚧 IN PROGRESS (6/8 closed)
Targeted bug-fix pass for defects surfaced by the Phase 25 in-car road test.
Each item tracked in [BUGS.md](./BUGS.md). See that file for full symptom/root-cause/fix details.
1. **BUG-01 (WiFi/hotspot reachability).** While cell data is on, a phone connected to the Pi's
no-internet hotspot cannot load `yaris.local`, `10.42.0.1`, or the Pi's DHCP address at all —
the phone OS keeps cellular as the default route (Phase 11/22 "smart network switching"
behavior). It only works once the user disables cell data, then `http://<dhcp-ip>/` loads but
`yaris.local` and `10.42.0.1` still do not. Also: the live hotspot subnet is `10.112.0.x`, not
the documented `10.42.0.1`. Fix scope: make the documented/reachable address correct, surface
the real DHCP address in the Pi UI, document the cell-data behavior, and see if `yaris.local`
unicast fallback can be extended to the AP subnet.
2. **BUG-02 (micro-USB power port damaged).** Hardware-only (worn power connector). Action is
documentation + owner hard-wiring 5V/GND to the GPIO header pins; no code.
3. **BUG-03 (DTCs not persisted).** ✅ FIXED (`e2f2314`) — The SQLite `dtc` table is created but never
written or read;
DTC codes/MIL live only in memory in `app_obd.py` and vanish on OBD disconnect/reboot.
`get_overview_stats` also queries a non-existent `dtc_codes` table. Fix: persist on each poll,
read back when disconnected, fix the stats query, add a "cleared/since" concept.
4. **BUG-04 (server merges two trips into one).** The Pi splits trips by *motion* (OBD wheel
speed + sustained GPS displacement, inactivity gap); the server splits only by *time gap* and
filters by duration. Parked idle tracking rows bridge two drives into one server-side trip.
Fix: mirror the Pi's motion-boundary logic server-side.
**Closed (2026-08-11):**
- BUG-03: DTC/MIL persistence (`e2f2314`)
- BUG-04: Server trip merge — motion-aware logic (`96fb897`)
- BUG-05: Server speed_source (`e2f2314`)
- BUG-08: Pi trip deletion (`c5c478b`)
- BUG-09: Geocode pre-caching for fast scrubber
- BUG-10: GPS-only false trips gated on OBD presence
5. **BUG-05 (server replay speed_source).** ✅ FIXED (`e2f2314`) — Server `get_trip_route` hardcodes `speed_source: "gps"`
even when OBD speed is present (it already returns raw `speed`). Fix: mirror the Pi's
`obd if speed>0 else gps` logic.
6. **BUG-06 (server timezone is UTC-shifted).** `tracking_points.recorded_at` is `TIMESTAMPTZ`
but the Pi sends naive local (Montreal) time with no offset; Postgres (UTC container) treats
it as UTC, so server times/trip boundaries are off by the EDT offset. Fix: Pi sends
timezone-aware timestamps; server displays/stores in `America/Toronto`; optional one-time
migration to correct already-stored rows.
7. **BUG-07 (trip replay sometimes does nothing).** Intermittent `/history` replay failure —
needs reproduction/diagnostics (likely an API/DB race or map-not-ready timing). Add targeted
diagnostics before fixing.
8. **BUG-08 (no trip deletion on the local Pi).** The Pi's `components.html` `data_table` macro
lacks the `deletable` arg, `base.html` lacks `window.confirmDelete`, `history.js` hardcodes the
*server* delete endpoint, and there is no `DELETE /api/trip/<id>` route on the Pi. Fix: add all
four pieces and make the delete endpoint configurable in `history.js`.
**Still open:** BUG-01 (hotspot/phone), BUG-02 (hardware power), BUG-06 (timezone), BUG-07 (intermittent replay).
**Progress (2026-08-11, 6/8 closed):**
- **BUG-03** ✅ CLOSED (`e2f2314`) — DTC/MIL persisted to SQLite, `/api/dtc` fallback, stats fixed.
- **BUG-04** ✅ CLOSED (`96fb897`) — Server trip detection now mirrors Pi's motion-aware logic.
- **BUG-05** ✅ CLOSED (`e2f2314`) — Server `speed_source` matches Pi: `obd if speed>0 else gps`.
- **BUG-08** ✅ CLOSED (`c5c478b`) — Pi trip deletion: `deletable` macro, `confirmDelete`, `DELETE` route, configurable endpoint.
- **BUG-09** ✅ CLOSED — Geocode pre-caching in `history.js` for fast scrubber.
- **BUG-10** ✅ CLOSED — GPS-only false trips gated on `was_car_ever_connected()`.
- **BUG-01/02/06/07**: Still OPEN. See `BUGS.md`.
Both pending deploy/verify. The remaining items (BUG-01, 02, 04, 06, 07, 08) stay open.
**Acceptance for Phase 26:** every `BUGS.md` entry in scope is fixed, regression-tested, deployed,
marked resolved, and the corresponding fix recorded here.
**Acceptance:** every `BUGS.md` entry in scope is fixed, regression-tested, deployed, and marked resolved.
---