fix: BUG-11 — Dashboard GPS now shows lat/lon from API when stale, Status page uses same 30s staleness threshold
This commit is contained in:
@@ -40,6 +40,25 @@ When CLOSED, move the entire entry to Resolved — don't duplicate.
|
||||
|
||||
---
|
||||
|
||||
### BUG-11 — Dashboard GPS shows "Stale fix" while Status shows "Live fix"
|
||||
- **Status**: `OPEN`
|
||||
- **Severity**: Low
|
||||
- **Area**: `static/js/yaris.js`, `static/js/status.js`
|
||||
- **Phase**: Phase 26
|
||||
- **Symptom**: Dashboard shows "Stale fix", lat/lon blank. Status page shows "Live fix"
|
||||
with valid coordinates. Both pages query the same `/api/gps/status` endpoint.
|
||||
- **Root cause**: Dashboard `renderGpsStatus()` updates badge + age text but never
|
||||
populates lat/lon fields — those only receive data from the live `socket.on('gps_location')`
|
||||
event. Status page reads `gps.latitude`/`gps.longitude` directly from the API response.
|
||||
Also, the staleness thresholds differ: Dashboard marks stale at >30s, Status page
|
||||
ignores age entirely.
|
||||
- **Fix scope**: `renderGpsStatus()` should populate lat/lon from the API response
|
||||
(already present in `status.latitude`, `status.longitude`).
|
||||
- **Acceptance**: Dashboard GPS card matches Status page — both show same fix status
|
||||
and coordinates.
|
||||
|
||||
---
|
||||
|
||||
## Resolved
|
||||
|
||||
### BUG-03 — DTC/MIL codes never persisted
|
||||
|
||||
Reference in New Issue
Block a user