fix(map): geofence delete, vessel snapshots, sentinel cache, news briefs

Geofences could be drawn but not removed. VesselAPI Hormuz dots vanished
on restart and DVR skipped between the 5 daily polls. Sentinel-1 re-hit
STAC on every pan and often painted a neighbouring swath. Executive
briefs truncated; ticker stayed empty unless something was critical.

- Layer-panel list + polygon popup DELETE /api/geofences/{id}
- Persist VesselAPI polls to vessels (UTC-day purge, DVR as-of, boot hydrate)
- Cache Sentinel-1 by 2° cell; pick covering scene; clip Leaflet tiles
- Retry truncated LLM JSON; ticker falls back to medium/low; 3-min HUD poll
This commit is contained in:
Sirius DevOps 2026-08-29 20:40:27 -04:00
commit c48788d4b6
No known key found for this signature in database
20 changed files with 669 additions and 57 deletions

View file

@ -32,6 +32,16 @@ def test_select_ticker_keeps_critical_high_caps_12():
assert len(out) == 12
assert all(r["importance"] in ("critical", "high") for r in out)
def test_select_ticker_falls_back_to_medium_low_when_nothing_flagged():
rows = [
{"headline": "shop theft", "importance": "low"},
{"headline": "highway crash", "importance": "medium"},
{"headline": "none", "importance": "none"},
]
out = select_ticker(rows)
assert [r["headline"] for r in out] == ["highway crash", "shop theft"]
def test_select_map_requires_valid_coords_and_flag():
items = [
{"headline": "A", "importance": "critical", "lat": 50.45, "lon": 30.52, "location_name": "Kyiv"},