feat(web): sort instance media by added date #908

Merged
chris merged 2 commits from feat/person-added-sort-web into main 2026-09-27 12:42:35 +02:00
Owner

Summary

  • Person/instance page media timeline gains an Optagelse/Tilføjet sort toggle (segmented pill next to Galleri/Kort), defaulting to capture-date sorting.
  • Tilføjet fetches days/items with sort=added, renders added:YYYY-MM-DD sections newest-first; hydration cache keyed per sort mode; confirm/accept flows refresh the added view.
  • MediaGrid: sortMode prop — added mode groups by addedTimestamp (fallback createdAt/captureTimestamp) and preserves server order; captured path untouched.
  • Version bump 0.0.23.

Tests

  • svelte-check + build green; discovery-domain-instance-detail.spec.ts 46/46 incl. new sort toggle test; all other /days-mocking specs green (70 + 26 passed).

Depends on: API PR with assigned_at + sort=added (merge API first).

## Summary - Person/instance page media timeline gains an Optagelse/Tilføjet sort toggle (segmented pill next to Galleri/Kort), defaulting to capture-date sorting. - Tilføjet fetches days/items with sort=added, renders added:YYYY-MM-DD sections newest-first; hydration cache keyed per sort mode; confirm/accept flows refresh the added view. - MediaGrid: sortMode prop — added mode groups by addedTimestamp (fallback createdAt/captureTimestamp) and preserves server order; captured path untouched. - Version bump 0.0.23. ## Tests - svelte-check + build green; discovery-domain-instance-detail.spec.ts 46/46 incl. new sort toggle test; all other /days-mocking specs green (70 + 26 passed). Depends on: API PR with assigned_at + sort=added (merge API first).
chore(web): bump version to 0.0.23
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 8m11s
d523ccd31d
chris merged commit c82bb2e929 into main 2026-09-27 12:42:35 +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!908
No description provided.