feat(map): geofence inbox shows cameras and the news line #60
Loading…
Reference in a new issue
No description provided.
Delete branch "wt/t_7ae36203"
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?
A geofence hit with
evidencekeeps 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 callsstopPropagationso the row click still pans the map.Hits with no
evidencerender the one-liner only.snapshot_urlis never written into the inbox, sortsp://cannot become an href.Evidence is read from
payload.evidencefirst, then top-levelevidence. A JSON-stringpayloadis 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 atmaster.Tests:
pytest tests/test_geofence_frontend.py -q→ 8 passed.Do not merge. Known-red CI
docker login 127.0.0.1:3000is not this change.