feat(map): geofence inbox shows cameras and the news line #60

Merged
sirius merged 1 commit from wt/t_7ae36203 into master 2026-11-17 19:56:42 +00:00
Owner

A geofence hit with evidence keeps the existing meta line and adds a second line: camera count (2 cams), the first camera name, and the first news headline. A non-empty news url is an <a target="_blank" rel="noopener">; an empty url stays text. The link click calls stopPropagation so the row click still pans the map.

Hits with no evidence render the one-liner only. snapshot_url is never written into the inbox, so rtsp:// cannot become an href.

Evidence is read from payload.evidence first, then top-level evidence. A JSON-string payload is parsed. Keys are unchanged from the frozen contract (cameras, news, snapshot).

Rebased onto wt/t_617c8a08 (c572f0e, PR #56, not merged). That feed-hide commit is included and was not reimplemented. This PR is still targeted at master.

Tests: pytest tests/test_geofence_frontend.py -q → 8 passed.

Do not merge. Known-red CI docker login 127.0.0.1:3000 is not this change.

A geofence hit with `evidence` keeps the existing meta line and adds a second line: camera count (`2 cams`), the first camera name, and the first news headline. A non-empty news url is an `<a target="_blank" rel="noopener">`; an empty url stays text. The link click calls `stopPropagation` so the row click still pans the map. Hits with no `evidence` render the one-liner only. `snapshot_url` is never written into the inbox, so `rtsp://` cannot become an href. Evidence is read from `payload.evidence` first, then top-level `evidence`. A JSON-string `payload` is parsed. Keys are unchanged from the frozen contract (`cameras`, `news`, `snapshot`). Rebased onto `wt/t_617c8a08` (`c572f0e`, PR #56, not merged). That feed-hide commit is included and was not reimplemented. This PR is still targeted at `master`. Tests: `pytest tests/test_geofence_frontend.py -q` → 8 passed. Do not merge. Known-red CI `docker login 127.0.0.1:3000` is not this change.
Read feeds.vessels.configured and feeds.fires.configured from /api/stats.
A missing feeds object leaves both rows visible. WFIGS and trains stay.
A hit with evidence keeps the meta line and adds a second line: camera
count, the first camera name, and the first headline. A non-empty news
url is an anchor; an empty url stays text. Hits without evidence stay
the one-liner. snapshot_url is never written into the inbox.
sirius merged commit 0f91127233 into master 2026-11-17 19:56:42 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/osint-dashboard!60
No description provided.