SPA parity: Media browsing, search & trash (#91 blocker) #141

Closed
opened 2026-07-07 10:45:06 +02:00 by timothy · 3 comments
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.

Blazor routes covered: /media/movies (+detail), /media/tv/shows|seasons|episodes (+details), /media/music/artists (+detail), /media/music/videos, /media/music/songs, /media/other/videos, /media/images, /media/browser/images, /media/remote/streams, /search, /media/trash.
Backend: /api/library/browse exists (single mediaType per call); search/detail/trash endpoints likely need work.

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. Blazor routes covered: `/media/movies` (+detail), `/media/tv/shows|seasons|episodes` (+details), `/media/music/artists` (+detail), `/media/music/videos`, `/media/music/songs`, `/media/other/videos`, `/media/images`, `/media/browser/images`, `/media/remote/streams`, `/search`, `/media/trash`. Backend: `/api/library/browse` exists (single mediaType per call); search/detail/trash endpoints likely need work.
Author
Owner

API recon done (2026-07-07): gap issue #161 filed. Predominantly backend-first: /api/library/browse serves only 4 of 10 media kinds (MediaTypesFor returns [] for Episode/MusicVideo/Song/OtherVideo/Image/RemoteStream); no search/detail/delete/image-folder endpoints. Highest-leverage single change: extend browse to all kinds — backfills flat list pages, trash, and per-kind search at once. Empty-trash endpoint already exists (POST /api/maintenance/empty_trash).

API recon done (2026-07-07): gap issue #161 filed. Predominantly backend-first: `/api/library/browse` serves only 4 of 10 media kinds (`MediaTypesFor` returns `[]` for Episode/MusicVideo/Song/OtherVideo/Image/RemoteStream); no search/detail/delete/image-folder endpoints. Highest-leverage single change: extend browse to all kinds — backfills flat list pages, trash, and per-kind search at once. Empty-trash endpoint already exists (`POST /api/maintenance/empty_trash`).
Author
Owner

PR #168 MERGED (2026-07-07): main slice live — /app/media (all 9 top-level kinds via in-screen switcher, per-kind search, paging), /app/search (grouped multi-kind, TopBar search wired), /app/trash (FileNotFound grid, multi-select delete via new DELETE /api/media-items, Empty Trash). Backend: browse extended to all 10 media kinds (+ Subtitle context field), new GET /api/search. Review fixes applied: ChannelBuilder library picker + Collections add-items dialog now fan out per-kind so the widened browse doesn't flood them.

Still open for this issue (with #161): media detail endpoints/pages (movie/show/season/artist), GetMediaItemInfo, image folder browser (/media/browser/images), remote-stream detail. Notes for the follow-up: search handler runs its 10 per-kind queries serially (parallelize with Task.WhenAll — safe, per-dispatch DbContext); ADDABLE_TYPES in CollectionsScreen could grow to episodes/seasons/etc. now that browse serves them (Blazor allowed it); the Trakt screen's matched-items link can now point at /app/search?query=trakt_list:{id} instead of classic UI.

PR #168 MERGED (2026-07-07): main slice live — `/app/media` (all 9 top-level kinds via in-screen switcher, per-kind search, paging), `/app/search` (grouped multi-kind, TopBar search wired), `/app/trash` (FileNotFound grid, multi-select delete via new `DELETE /api/media-items`, Empty Trash). Backend: browse extended to all 10 media kinds (+ `Subtitle` context field), new `GET /api/search`. Review fixes applied: ChannelBuilder library picker + Collections add-items dialog now fan out per-kind so the widened browse doesn't flood them. **Still open for this issue** (with #161): media detail endpoints/pages (movie/show/season/artist), `GetMediaItemInfo`, image folder browser (`/media/browser/images`), remote-stream detail. Notes for the follow-up: search handler runs its 10 per-kind queries serially (parallelize with Task.WhenAll — safe, per-dispatch DbContext); `ADDABLE_TYPES` in CollectionsScreen could grow to episodes/seasons/etc. now that browse serves them (Blazor allowed it); the Trakt screen's matched-items link can now point at `/app/search?query=trakt_list:{id}` instead of classic UI.
Author
Owner

Closing — SPA parity for media browsing, search, trash, detail, and the image browser is complete.

  • Browse (all kinds), search, trash: landed in earlier PRs (#165–#169 era).
  • Detail pages: PR #183 (merged, dbda2d89) — /app/media/{movies|shows|seasons|artists}/{id} via a MediaRouteScreen sub-path wrapper (pathname+popstate ownership); poster/fanart, metadata chips, actors, media-info dialog (streams/chapters), child grids (show→seasons→episodes, artist→music videos). Browse cards navigate for those four kinds; episodes/music videos/songs render as inert leaf cards.
  • Image folder browser: PR #183 — /app/media/images/browser (lazy folder tree, per-folder duration set/clear, search link), reachable via the Images kind's "Folder Browser" button.

Deferred (tracked elsewhere): add-to-collection/playlist buttons on detail pages are TODO'd pending the #153/#155 CRUD APIs; episode-level media-info button out of scope (movie pages have it). Blazor media pages stay until #91 phase (b).

Root-cause note for the record: no bug here, pure parity gap. Verification: fork review clean, live E2E passed, pre+post-merge CI green. Docs: docs/blazor-route-parity.md (landing on main shortly) reflects these routes as migrated.

**Closing** — SPA parity for media browsing, search, trash, detail, and the image browser is complete. - Browse (all kinds), search, trash: landed in earlier PRs (#165–#169 era). - Detail pages: PR #183 (merged, dbda2d89) — `/app/media/{movies|shows|seasons|artists}/{id}` via a `MediaRouteScreen` sub-path wrapper (pathname+popstate ownership); poster/fanart, metadata chips, actors, media-info dialog (streams/chapters), child grids (show→seasons→episodes, artist→music videos). Browse cards navigate for those four kinds; episodes/music videos/songs render as inert leaf cards. - Image folder browser: PR #183 — `/app/media/images/browser` (lazy folder tree, per-folder duration set/clear, search link), reachable via the Images kind's "Folder Browser" button. **Deferred (tracked elsewhere)**: add-to-collection/playlist buttons on detail pages are TODO'd pending the #153/#155 CRUD APIs; episode-level media-info button out of scope (movie pages have it). Blazor media pages stay until #91 phase (b). Root-cause note for the record: no bug here, pure parity gap. Verification: fork review clean, live E2E passed, pre+post-merge CI green. Docs: `docs/blazor-route-parity.md` (landing on main shortly) reflects these routes as migrated.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: timothy/ersatztv#141