feat(map): geofence watch HUD — finish/cancel, inbox, fence DVR #48
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/geofence-watch-ui"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Frontend for the geofence watch work in PR #47 (backend).
Summary
#gf-listis the control surface: active checkbox, name (fitBounds), Go, rename, Delete. Polygon popup: name + active + delete.#gf-inboxseedsGET /api/geofence-alerts?limit=50and prepends WSgeofence_alert(toast kept). Click flies to the hit and opens the fence popup. Cap 50.watch_geofencessent on WS open (sendLiveViewport) and after everyloadGeofences(skip if socket not OPEN).GET /api/geofences/{id}/at?timestamp=instead of viewport aircraft/vessels. 404 falls back to current DVR with no toast. LIVE / deselect restore normal overlays.initDvrRange()re-runs after first successful aircraft/vessel load.Tests
pytest tests/test_geofence_frontend.py— 7 passed.Do not merge before
Backend PR #47 (
feat/geofence-watch) —/at,/api/geofence-alerts, andwatch_geofenceslive there. HUD degrades (404 fallback, empty inbox) if this lands first.Phone can finish a polygon without double-click. List is mute/go/rename/delete. Inbox seeds from /api/geofence-alerts and appends WS hits. Watch all fence ids on /ws/live. Selected-fence DVR uses GET /api/geofences/{id}/at.