Inline machine ID editing in Previous Photos #6

Closed
opened 2026-05-26 00:55:07 +00:00 by shawn · 0 comments
Owner

Summary

The machine ID in Previous Photos is now editable inline — tap it to edit, press Enter to save.

Changes

  • static/index.html: Replaced static machine ID text with clickable <span> that turns into an <input> on tap
  • New editMachineIdInline() and saveMachineIdInline() JS functions
  • API: /api/assign-machine-id (existing) does the save
  • On save, badge and asset info refresh automatically

Usage

  1. Go to Previous Photos
  2. Tap the machine ID (shows ✏️ on hover)
  3. Type the new ID
  4. Press Enter or tap away to save
  5. Asset info refreshes instantly

Verification

  • Tap machine ID → input appears
  • Type new ID, Enter → saves, badge updates, asset info refreshes
  • Esc → restores original
  • Save fails → original restored + error toast
## Summary The machine ID in Previous Photos is now editable inline — tap it to edit, press Enter to save. ## Changes - `static/index.html`: Replaced static machine ID text with clickable `<span>` that turns into an `<input>` on tap - New `editMachineIdInline()` and `saveMachineIdInline()` JS functions - API: `/api/assign-machine-id` (existing) does the save - On save, badge and asset info refresh automatically ## Usage 1. Go to Previous Photos 2. Tap the machine ID (shows ✏️ on hover) 3. Type the new ID 4. Press Enter or tap away to save 5. Asset info refreshes instantly ## Verification - [ ] Tap machine ID → input appears - [ ] Type new ID, Enter → saves, badge updates, asset info refreshes - [ ] Esc → restores original - [ ] Save fails → original restored + error toast
shawn closed this issue 2026-05-26 00:55:12 +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#6