feat(cameras): ‹ › through older/newer snapshots in the large view
On the Snapshot side the large view steps through that camera's snapshots (‹ older, › newer, also ← →), muted at either end; the caption carries the date and always names the picture on screen (the previous one stays while the next loads; a pruned still says "unavailable"). The tile stays on the newest; closing resets. New read-only route GET /api/cameras/:deviceId/snapshots/:snapshotId/neighbors (session:read), ordered by (capturedAt, id) like latest-snapshot, bounded to seek the device/time index. Also carries the user's own label edits in en.ts / sq.ts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RZgP5oMncSaVmKRKk1UvN4
This commit is contained in:
@@ -29,6 +29,15 @@ verified end to end against the two park-lab cameras through the real server and
|
||||
is active (the same stream carries on, no reconnect), else on the Snapshot. The choice then
|
||||
holds while the view is open — a car leaving does not drop it to the snapshot, a car arriving
|
||||
does not switch it to live.
|
||||
- (2026-11-17, fourth round) On the Snapshot side the large view has **‹ ›** (and ← →) to step
|
||||
through that camera's older / newer snapshots; a chevron is muted at either end. The caption
|
||||
carries the date ("Dje 17:22:47"). The tile itself stays on the newest; closing the large view
|
||||
drops the browse position, so it reopens on the newest. On Live there are no chevrons.
|
||||
Server: `GET /api/cameras/:deviceId/snapshots/:snapshotId/neighbors` → `{ older, newer }`
|
||||
(`session:read`; 404 for another camera's snapshot), ordered by (capturedAt, id) like
|
||||
`latest-snapshot`, so equal timestamps neither skip nor loop. The caption always names the picture on screen:
|
||||
while a stepped-to still loads, the previous picture and its date stay; if its bytes are gone
|
||||
(retention), the view says *Snapshot unavailable* rather than show another still.
|
||||
|
||||
### When the stream stops
|
||||
|
||||
|
||||
Reference in New Issue
Block a user