docs: BUG-07 closed — history.js rewrite verified on Pi and server

This commit is contained in:
Mathieu Moran
2026-08-11 14:33:38 -04:00
parent fa93384a8e
commit 7a6de8b589
2 changed files with 15 additions and 15 deletions
+11 -12
View File
@@ -40,18 +40,6 @@ When CLOSED, move the entire entry to Resolved — don't duplicate.
---
### BUG-07 — Trip replay on portal sometimes does nothing
- **Status**: `OPEN`
- **Severity**: Low/Medium
- **Area**: `static/js/history.js`, server `/api/v1/portal/trip/<id>`
- **Phase**: Phase 26
- **Symptom**: Clicking a trip to replay intermittently does nothing — no route, no error.
- **Root cause**: Not isolated. Possible API/DB race, DB lock, map readiness.
- **Fix scope**: Add diagnostics. Add explicit error state.
- **Acceptance**: Replay reliable; failures show visible error.
---
## Resolved
### BUG-03 — DTC/MIL codes never persisted
@@ -74,6 +62,17 @@ When CLOSED, move the entire entry to Resolved — don't duplicate.
- **Fix**: `"obd" if speed > 0 else "gps"` matching Pi logic.
- **Verification**: Docker rebuild, `/health` OK LAN + Cloudflare.
### BUG-07 — Trip replay on portal sometimes does nothing
- **Status**: `CLOSED` 2026-08-11
- **Commit**: `fa93384`
- **Fix**: Full rewrite of `static/js/history.js`: unified AbortController cancels fetch
+ all downstream rendering on trip switch; 300ms debounce prevents double-tap stacking;
loading spinner on map + `.table-active` row highlight give clear feedback; geocode
preload starts immediately before map rendering so cache is warm for the scrubber;
`signal.aborted` guards after every async step (route build, fitBounds, timeline init).
- **Verification**: Deployed to Pi and server. Rapid trip-switching no longer freezes.
Verified on both platforms 2026-08-11.
### BUG-08 — No trip deletion on local Pi
- **Status**: `CLOSED` 2026-08-11
- **Commit**: `c5c478b`