Fix reset flow: keep photo preview visible with fullscreen + manual entry #5

Closed
opened 2026-05-26 00:48:27 +00:00 by shawn · 0 comments
Owner

Problem

When hitting Reset on a photo, the photo just disappeared. User could not see the image again to re-analyze it or manually enter a machine ID. The Previous Photos section also lacked thumbnail previews.

Changes

  • resetPhoto(): fetches photo blob before calling reset endpoint, then re-adds it to the gallery and shows detail view with preview + lightbox + manual entry
  • resetAndReupload(): same treatment for duplicate-flow reset, with fallback to server fetch if local file is gone
  • Reset button on ALL results: added a "🔄 Reset & Re-process from scratch" button to every single-photo view result (was previously only on duplicates)
  • Previous Photos thumbnails: each card now shows a preview image thumbnail, clickable for full-screen lightbox

Files

  • static/index.html (+60/-6 lines)

Verification

  • exif.ourpad.casa 200 — all features present
  • dev.exif.ourpad.casa 200 — all features present
  • Commit db45b38 pushed to Gitea
## Problem When hitting Reset on a photo, the photo just disappeared. User could not see the image again to re-analyze it or manually enter a machine ID. The Previous Photos section also lacked thumbnail previews. ## Changes - **resetPhoto()**: fetches photo blob before calling reset endpoint, then re-adds it to the gallery and shows detail view with preview + lightbox + manual entry - **resetAndReupload()**: same treatment for duplicate-flow reset, with fallback to server fetch if local file is gone - **Reset button on ALL results**: added a "🔄 Reset & Re-process from scratch" button to every single-photo view result (was previously only on duplicates) - **Previous Photos thumbnails**: each card now shows a preview image thumbnail, clickable for full-screen lightbox ## Files - static/index.html (+60/-6 lines) ## Verification - [x] exif.ourpad.casa 200 — all features present - [x] dev.exif.ourpad.casa 200 — all features present - [x] Commit db45b38 pushed to Gitea
shawn closed this issue 2026-05-26 00:48:27 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shawn/exif-test#5