feat(web): owner capture-date + location edits in media info sidebar (SC-019) #1096

Merged
chris merged 3 commits from feat/metadata-edit-ui into main 2026-10-10 22:02:22 +02:00
Owner

Frontend for SC-019 / FR-041: owners can edit/add the capture date and GPS coordinates in the MediaInfoPanel sidebar, with revert-to-original (DELETE metadata-overrides/{class}, optimistic fallback to sourceValue, inline confirm when no original), an Edited indicator for user_override values, and CSS ellipsis truncation + title tooltips on Info-section and location values (works for double-encoded filenames).

Includes createMetadataOverride/revertMetadataOverride API clients, MediaDetail captureTimestampSource/locationSource/activeMetadataOverrides fields, and a route-mocked Playwright spec (9 tests, desktop + mobile green; media-detail-map and timeline media-detail tests also pass). Codes against the backend contract built in the parallel API lane; E2E mocks it. No map coordinate-pick (out of scope, MapView has no pick event).

Draft — do not merge until the backend metadata-override lane lands.

Frontend for SC-019 / FR-041: owners can edit/add the capture date and GPS coordinates in the MediaInfoPanel sidebar, with revert-to-original (DELETE metadata-overrides/{class}, optimistic fallback to sourceValue, inline confirm when no original), an Edited indicator for user_override values, and CSS ellipsis truncation + title tooltips on Info-section and location values (works for double-encoded filenames). Includes createMetadataOverride/revertMetadataOverride API clients, MediaDetail captureTimestampSource/locationSource/activeMetadataOverrides fields, and a route-mocked Playwright spec (9 tests, desktop + mobile green; media-detail-map and timeline media-detail tests also pass). Codes against the backend contract built in the parallel API lane; E2E mocks it. No map coordinate-pick (out of scope, MapView has no pick event). **Draft — do not merge until the backend metadata-override lane lands.**
Add ActiveMetadataOverride/MediaDetail source fields plus
createMetadataOverride/revertMetadataOverride clients for SC-019
owner edits (spec 019: effective value updates with the extracted
source still inspectable).
MediaInfoPanel (SC-019 / FR-041):
- Captured row: pencil edit affordance for owners opens a compact
  datetime-local dialog (browser timezone -> ISO instant); missing
  capture shows a calm "Add date" empty state.
- Location section now renders for owners even without coordinates,
  with an "Add location" affordance and lat/lon dialog (client-side
  range-checked, min/max + novalidate custom errors).
- "Edited" indicators when the effective value comes from a user
  override; "Restore original" reverts via DELETE, falling back to
  the extracted sourceValue, with an inline confirm when there is no
  original (revert removes the value).
- Info rows (Filename/Type/Captured/Preservation/Lifecycle) and
  location coordinates truncate with CSS ellipsis and carry title
  attributes with the full value.

MediaDetailViewer: saveCaptureTime/saveLocation/revertMetadataOverride
handlers with optimistic detail updates, error toasts via
describeApiError; location section shows for owners without coords.
test(web): E2E coverage for SC-019 metadata edits
All checks were successful
Wiki Sync / Sync wiki from docs (push) Has been skipped
Build and Deploy / Detect changed services and test scopes (push) Successful in 5s
Build and Deploy / Android unit tests and debug APK (push) Has been skipped
Build and Deploy / Smoke API and media worker (push) Has been skipped
Build and Deploy / Smoke web (push) Has been skipped
Build and Deploy / Smoke ML worker (push) Has been skipped
Build and Deploy / Smoke people worker (push) Has been skipped
Build and Deploy / Build postgres image (push) Has been skipped
Build and Deploy / Build plants worker image (push) Has been skipped
Build and Deploy / Build converter worker image (push) Has been skipped
Build and Deploy / Deploy postgres (push) Has been skipped
Build and Deploy / Build API image (push) Has been skipped
Build and Deploy / Build media worker image (push) Has been skipped
Build and Deploy / Build ML worker image (push) Has been skipped
Build and Deploy / Build people worker image (push) Has been skipped
Build and Deploy / Build web image (push) Has been skipped
Build and Deploy / Deploy API (push) Has been skipped
Build and Deploy / Deploy web (push) Has been skipped
Build and Deploy / Deploy media worker (push) Has been skipped
Build and Deploy / Deploy ML worker (push) Has been skipped
Build and Deploy / Deploy plants worker (push) Has been skipped
Build and Deploy / Deploy people worker (push) Has been skipped
Build and Deploy / Deploy converter worker (push) Has been skipped
Build and Deploy / Clean Docker build artifacts (push) Has been skipped
Build and Deploy / Run scoped PR tests (push) Successful in 6m7s
4345892971
Route-mocked Playwright spec: owner edits/adds capture date, owner
adds location, client-side coordinate range rejection, revert with
and without a stored original, non-owner sees no affordances, and
long double-encoded filenames truncate with a full-value title.
chris merged commit 5900589204 into main 2026-10-10 22:02:22 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
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
chris/memories!1096
No description provided.