feat(web): standard Filter & Sort menu across media walls #922

Merged
chris merged 2 commits from feat/filter-sort-web into main 2026-09-27 17:37:57 +02:00
Owner

Implements the frontend half of ADR 0098.

Summary

  • New FilterSortMenu component: 48px icon trigger (sliders-horizontal, PageMenu house class) + emerald active-filter count badge, popover panel (w-64, role=menu) with per-surface sections: Sortering / Medietype / Favoritter / Datointerval (Fra/Til, debounced) + Nulstil filtre.
  • Wired: main timeline (no sort — capture fixed per ADR), instance detail (replaces Optagelse/Tilføjet pills), discovery domain media list (filters only), album detail (Manuel/Optagelse/Tilføjet + filters), search (year/from/to/favorite migrated from form; person/album selectors and chips stay, chips reflect menu state; mediaType added).
  • All new params omitted when unset → inactive-filter request URLs byte-identical.
  • Dark neutral + emerald house styling, ARIA menu patterns, Esc/backdrop close, focus return. Version 0.0.24.

Tests

  • 200 passed / 0 failed across filter-sort (12 new), discovery-domain-instance-detail, discovery-media-list, timeline, search-filters, albums; svelte-check 0 errors; build green.

Depends on API PR (merge first).

Implements the frontend half of ADR 0098. ## Summary - New FilterSortMenu component: 48px icon trigger (sliders-horizontal, PageMenu house class) + emerald active-filter count badge, popover panel (w-64, role=menu) with per-surface sections: Sortering / Medietype / Favoritter / Datointerval (Fra/Til, debounced) + Nulstil filtre. - Wired: main timeline (no sort — capture fixed per ADR), instance detail (replaces Optagelse/Tilføjet pills), discovery domain media list (filters only), album detail (Manuel/Optagelse/Tilføjet + filters), search (year/from/to/favorite migrated from form; person/album selectors and chips stay, chips reflect menu state; mediaType added). - All new params omitted when unset → inactive-filter request URLs byte-identical. - Dark neutral + emerald house styling, ARIA menu patterns, Esc/backdrop close, focus return. Version 0.0.24. ## Tests - 200 passed / 0 failed across filter-sort (12 new), discovery-domain-instance-detail, discovery-media-list, timeline, search-filters, albums; svelte-check 0 errors; build green. Depends on API PR (merge first).
One FilterSortMenu control (icon trigger + active-filter count badge)
replaces scattered sort pills and the search filter form on all media
walls (ADR 0098):

- Main timeline: menu next to content top (no sort section — capture
  fixed), wires mediaType/favorite/from-to into getTimelineDays/Items.
- Discovery instance detail: replaces sort-captured/sort-added pills;
  sort + filters refetch timeline with per-mode cache reset.
- Discovery domain media list: filter-only menu.
- Album detail: Manuel/Optagelse/Tilføjet sort + filters on getAlbum.
- Search: year/from/to/favorite migrated from the form into the menu
  (token-backed, chips stay in sync); new mediaType param on searchMedia.

All new API params are omitted when unset so inactive-filter request
URLs stay byte-identical (existing mocks keep matching). Per-visit
component state only. House dark-neutral/emerald styling, role=menu
ARIA patterns, focus management, Esc close, debounced date range.
chore(web): bump version to 0.0.24
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 3s
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 3m52s
474a7548b9
chris merged commit a3e1ebda8e into main 2026-09-27 17:37:57 +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!922
No description provided.