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:
2026-11-17 17:31:58 +01:00
parent bccef3875b
commit cb43ad78ca
8 changed files with 267 additions and 43 deletions
+12 -9
View File
@@ -273,16 +273,19 @@ export const sq = {
},
camera: {
expand: "Shfaq më të madhe",
snapshot: "Foto",
liveOnDemand: "Live me kërkesë",
snapshot: "Snapshot",
liveOnDemand: "Live on-demand",
live: "Live",
showTile: "Shfaq këtë kamerë",
hideTile: "Fshih këtë kamerë",
noSnapshot: "Ende pa foto",
noSnapshot: "Ende pa snapshot",
idle: "Videoja live nis kur vjen një automjet",
connecting: "Po lidhet videoja live…",
liveUnavailable: "Videoja live nuk është e disponueshme",
vehicleInView: "Automjet në pamje",
older: "Foto më e vjetër",
newer: "Foto më e re",
snapshotUnavailable: "Fotoja nuk është e disponueshme",
},
booth: {
processTicket: "Proceso biletën",
@@ -337,7 +340,7 @@ export const sq = {
forgiveExitOk: "Dalja u hap manualisht, pa pagesë.",
forgiveExitNotOpened: "U regjistrua, por barriera nuk u hap: {{reason}}",
forgiveDialogTitle: "Hapje manuale",
forgiveDialogBody: "Hap barrierën e DALJES manualisht. Nuk merret asnjë pagesë dhe nuk printohet asgjë; hapja nënshkruhet me emrin tënd bashkë me foton e kamerës së daljes dhe shfaqet në raportin e turnit tënd.",
forgiveDialogBody: "Hap barrierën e DALJES manualisht. Nuk merret asnjë pagesë dhe nuk printohet asgjë; hapja nënshkruhet me emrin tënd bashkë me snapshot-in e kamerës së daljes dhe shfaqet në raportin e turnit tënd.",
forgiveDialogReason: "Arsyeja (opsionale)",
forgiveDialogReasonPlaceholder: "p.sh. hyri kur barrierat ishin të hapura…",
forgiveDialogConfirm: "Hap daljen — pa pagesë",
@@ -397,7 +400,7 @@ export const sq = {
edSource: "Burimi",
edIdentity: "Identiteti",
edReason: "Arsyeja",
edSnapshots: "Fotot",
edSnapshots: "Snapshot-et",
edPayload: "Të dhënat e nënshkruara",
edChain: "Zinxhiri",
edSignature: "Nënshkrimi",
@@ -533,7 +536,7 @@ export const sq = {
// Category titles + the singular noun used in buttons/modal titles.
catControllers: "Kontrollerat (barrierat + butoni i hyrjes)",
catReaders: "Lexuesit (QR / RFID)",
catCameras: "Kamerat (foto + targë)",
catCameras: "Kamerat (snapshot + targë)",
catPrinters: "Printerat (bileta / vouchera)",
nounController: "kontroller",
nounReader: "lexues",
@@ -874,7 +877,7 @@ export const sq = {
reserveSubs: "Rezervo vendet e abonentëve",
reserveSubsHint: "Mban një vend për makinat e çdo abonenti aktiv edhe kur nuk janë të parkuar — kalimtarët e shohin 'plot' më shpejt. Joaktiv: numërohen vetëm makinat brenda (mbingarkesa menaxhohet me parkim manual).",
anprEntry: "Hapje automatike për targat e abonentëve (ANPR)",
anprEntryHint: "Kur është aktiv, targa e një abonenti e lexuar nga kamera e korsisë hap barrierën përmes portës normale të abonimit. Joaktiv: abonentët duhet të përdorin kartën/QR-në. Fotot e targave regjistrohen gjithsesi.",
anprEntryHint: "Kur është aktiv, targa e një abonenti e lexuar nga kamera e korsisë hap barrierën përmes portës normale të abonimit. Joaktiv: abonentët duhet të përdorin kartën/QR-në. Snapshot-et e targave regjistrohen gjithsesi.",
parkDetails: "Të dhënat e parkimit (opsionale — shfaqen në bileta/fatura)",
save: "Ruaj",
saved: "U ruajt.",
@@ -1298,8 +1301,8 @@ export const sq = {
exitForgiven: "Dalje manuale — {{amount}}, barriera u hap.",
exitForgivenNotOpened: "Dalje manuale — {{amount}}, barriera nuk u hap: {{reason}}",
// snapshots
noSnapshots: "asnjë foto",
loadingSnapshots: "duke ngarkuar fotot…",
noSnapshots: "asnjë snapshot",
loadingSnapshots: "duke ngarkuar snapshot-et…",
snapEntry: "hyrje",
snapExit: "dalje",
snapFailed: "kamera e paarritshme",