Add auto-advancing slideshow and open-in-tab to snapshot viewer #99

Merged
coding-agent-marvin8 merged 0 commits from refs/pull/99/head into main 2026-06-22 02:29:14 +00:00
coding-agent-marvin8 commented 2026-06-22 02:15:33 +00:00 (Migrated from codeberg.org)

Closes #98

Changes

  • _album_response now passes a labels list (all snapshot labels) to the template context, replacing the single per-frame label key.
  • snapshots.html rewritten with a vanilla-JS slideshow: frames advance every SLIDE_INTERVAL_MS ms (default 2000), looping at the end via modular wrap-around.
  • Pause/Play button toggles auto-advance without leaving the page.
  • Prev/Next navigate via JS goTo() instead of full-page reloads; manual navigation while paused does not resume auto-advance.
  • "Open in new tab" link always points to the currently displayed snapshot image and updates on every frame change.

Testing

  • 3 new Tryke tests: slideshow JS constant/goTo presence, Pause button presence, open-in-tab link presence (140 tests total, all green).
  • Manual verification checklist in the implementation plan (Task 2, Step 6) covers loop, Pause/Play, Prev/Next-while-paused, and href accuracy.
Closes #98 ## Changes - `_album_response` now passes a `labels` list (all snapshot labels) to the template context, replacing the single per-frame `label` key. - `snapshots.html` rewritten with a vanilla-JS slideshow: frames advance every `SLIDE_INTERVAL_MS` ms (default 2000), looping at the end via modular wrap-around. - Pause/Play button toggles auto-advance without leaving the page. - Prev/Next navigate via JS `goTo()` instead of full-page reloads; manual navigation while paused does not resume auto-advance. - "Open in new tab" link always points to the currently displayed snapshot image and updates on every frame change. ## Testing - 3 new Tryke tests: slideshow JS constant/`goTo` presence, Pause button presence, open-in-tab link presence (140 tests total, all green). - Manual verification checklist in the implementation plan (Task 2, Step 6) covers loop, Pause/Play, Prev/Next-while-paused, and href accuracy.
Sign in to join this conversation.
No reviewers
No labels
No milestone
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
marvin8/cang!99
No description provided.