SPA parity: Collections management screen (#91 blocker) #140

Closed
opened 2026-07-07 10:45:06 +02:00 by timothy · 1 comment
Owner

Blocking sub-issue for #91 (Blazor retirement, phase b). Recon (2026-07-07) found this functionality exists only in the legacy Blazor UI — deleting Blazor before the SPA covers it would remove the feature. Part of epic #59.

Replace the Blazor collections UI. /app/collections is routed but renders PlaceholderScreen only.

Blazor routes covered: /media/collections (+items/add/edit), /media/smart-collections (+editor), /media/multi-collections (+editor), /media/rerun-collections (+editor), /media/playlists (+editor).
Backend: collection/smart-collection APIs exist; check gaps for multi/rerun/playlist CRUD.

Blocking sub-issue for #91 (Blazor retirement, phase b). Recon (2026-07-07) found this functionality exists only in the legacy Blazor UI — deleting Blazor before the SPA covers it would remove the feature. Part of epic #59. Replace the Blazor collections UI. `/app/collections` is routed but renders PlaceholderScreen only. Blazor routes covered: `/media/collections` (+items/add/edit), `/media/smart-collections` (+editor), `/media/multi-collections` (+editor), `/media/rerun-collections` (+editor), `/media/playlists` (+editor). Backend: collection/smart-collection APIs exist; check gaps for multi/rerun/playlist CRUD.
Author
Owner

Closed via PR #156 (merged to main).

Done: /app/collections placeholder replaced with a real collections workspace (web/src/screens/CollectionsScreen.tsx + new web/src/api/collections.ts):

  • Manual collections: list/create/rename/delete + UseCustomPlaybackOrder toggle; items view with add-picker (library search → typed AddItemsToCollectionRequest bucket mapping) and per-item remove.
  • Smart collections: list/create/edit (name + query)/delete with live query preview via /api/library/browse.
  • getCollections/getSmartCollections moved from schedules.ts into collections.ts (ScheduleScreen unchanged).

Verification: 174 web tests green (21 new incl. bucket-mapping units); tsc/eslint/build clean; live E2E = full manual+smart lifecycle via curl against a real server + Playwright pass over the rendered screen (zero console errors), test data cleaned up. Adversarial review SHIP (bucket mapping + remove-id semantics verified against backend source; browse id == media-item id for all reachable kinds).

Deferred / follow-ups filed:

  • #151 multi-collections, #152 rerun collections, #153 playlists — NO API exists (GET /api/collections returns only manual collections; mapper hardcodes CollectionType.Collection). UI shows a Classic-UI note.
  • #155 — no endpoint lists a manual collection's items; items view ships as an honest best-effort collection:"name" search preview (movies/shows/seasons/artists only). Also covers the POST /items 500-on-unknown-media-id quirk.
  • Review nits (polish, ride along later): backslash escaping in the quoted Lucene name, picker's silent 50-item cap (totalCount unused), stale dialogError when opening the delete dialog, one toMatchObject→toEqual test upgrade.

No reorder support (no endpoint). Docs: none needed beyond the filed issues; #91 phase (b) tracking updated via the handoff doc.

**Closed via PR #156** (merged to main). **Done:** `/app/collections` placeholder replaced with a real collections workspace (`web/src/screens/CollectionsScreen.tsx` + new `web/src/api/collections.ts`): - Manual collections: list/create/rename/delete + UseCustomPlaybackOrder toggle; items view with add-picker (library search → typed AddItemsToCollectionRequest bucket mapping) and per-item remove. - Smart collections: list/create/edit (name + query)/delete with live query preview via /api/library/browse. - getCollections/getSmartCollections moved from schedules.ts into collections.ts (ScheduleScreen unchanged). **Verification:** 174 web tests green (21 new incl. bucket-mapping units); tsc/eslint/build clean; live E2E = full manual+smart lifecycle via curl against a real server + Playwright pass over the rendered screen (zero console errors), test data cleaned up. Adversarial review SHIP (bucket mapping + remove-id semantics verified against backend source; browse id == media-item id for all reachable kinds). **Deferred / follow-ups filed:** - #151 multi-collections, #152 rerun collections, #153 playlists — NO API exists (GET /api/collections returns only manual collections; mapper hardcodes CollectionType.Collection). UI shows a Classic-UI note. - #155 — no endpoint lists a manual collection's items; items view ships as an honest best-effort `collection:"name"` search preview (movies/shows/seasons/artists only). Also covers the POST /items 500-on-unknown-media-id quirk. - Review nits (polish, ride along later): backslash escaping in the quoted Lucene name, picker's silent 50-item cap (totalCount unused), stale dialogError when opening the delete dialog, one toMatchObject→toEqual test upgrade. No reorder support (no endpoint). Docs: none needed beyond the filed issues; #91 phase (b) tracking updated via the handoff doc.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: timothy/ersatztv#140