Closes the two remaining search/media #91-phase-(b) gates.
#208 — search screen mutations: result-card drill-in navigation, per-card Add-to menu, screen-level Select mode with add-selection to collection/playlist, query-wide Add All (via new GET /api/search/all-items), Save As Smart Collection dialog.
#209 — media browse/detail mutations: shared Add-to layer (web/src/media/addTo/: AddToCollectionDialog with inline create, AddToPlaylistDialog, AddToScheduleDialog replicating AddProgramScheduleItem.ForMediaItem defaults, SaveAsSmartCollectionDialog, AddToMenu) wired onto browse tiles (+ multi-select w/ select-all-on-page) and all four detail screens; per-show Quick/Deep scan gated to Plex/Jellyfin/Emby; per-episode Media Info + Troubleshoot entries; stale #153/#155 pointer removed; MediaPosterCard gains an actions overlay slot.
API: new POST /api/playlists/{id}/items (wraps existing AddItemsToPlaylist; handler hardened to reject system playlists — a latent Blazor-path gap) and GET /api/search/all-items (wraps QuerySearchIndexAllItems; Blazor two-step Add-All parity). OpenAPI/v1.json, endpoint-index, generated TS types regenerated.
- POST /api/playlists/{id:int}/items wraps the existing AddItemsToPlaylist
command (mirrors CollectionController.AddItems); controller pre-checks
playlist existence for a real 404, and the handler now rejects adds to
system (generated) playlists, matching the guard already applied to
rename/delete/replace-items so the Blazor path gets the same protection.
- GET /api/search/all-items wraps the existing QuerySearchIndexAllItems
query, returning a new SearchResultAllItemsResponseModel (never expose
the VM directly) so the SPA's shared "add all to collection/playlist"
component can materialize ids before calling the add endpoints, same
two-step flow Blazor's Search.razor already uses.
- Show-detail DTO check: ShowDetailResponseModel already exposes
libraryId, title, and mediaSourceKind (serialized as a string enum via
the global StringEnumConverter) - no changes needed.
Adds controller tests (route table + per-action) for both endpoints and
regenerates the OpenAPI document, endpoint index, and SPA client types.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes the two remaining search/media #91-phase-(b) gates.
#208 — search screen mutations: result-card drill-in navigation, per-card Add-to menu, screen-level Select mode with add-selection to collection/playlist, query-wide Add All (via new
GET /api/search/all-items), Save As Smart Collection dialog.#209 — media browse/detail mutations: shared Add-to layer (
web/src/media/addTo/: AddToCollectionDialog with inline create, AddToPlaylistDialog, AddToScheduleDialog replicatingAddProgramScheduleItem.ForMediaItemdefaults, SaveAsSmartCollectionDialog, AddToMenu) wired onto browse tiles (+ multi-select w/ select-all-on-page) and all four detail screens; per-show Quick/Deep scan gated to Plex/Jellyfin/Emby; per-episode Media Info + Troubleshoot entries; stale #153/#155 pointer removed;MediaPosterCardgains anactionsoverlay slot.API: new
POST /api/playlists/{id}/items(wraps existingAddItemsToPlaylist; handler hardened to reject system playlists — a latent Blazor-path gap) andGET /api/search/all-items(wrapsQuerySearchIndexAllItems; Blazor two-step Add-All parity). OpenAPI/v1.json, endpoint-index, generated TS types regenerated.Docs: parity verdict rows #208/#209 → PARITY-OK; decisions.md entry (shared addTo layer, Select-toggle + per-card target-superset deviations); spa-conventions §5c.
Tests: web 469 passed; .NET 974 passed.
🤖 Generated with Claude Code
- POST /api/playlists/{id:int}/items wraps the existing AddItemsToPlaylist command (mirrors CollectionController.AddItems); controller pre-checks playlist existence for a real 404, and the handler now rejects adds to system (generated) playlists, matching the guard already applied to rename/delete/replace-items so the Blazor path gets the same protection. - GET /api/search/all-items wraps the existing QuerySearchIndexAllItems query, returning a new SearchResultAllItemsResponseModel (never expose the VM directly) so the SPA's shared "add all to collection/playlist" component can materialize ids before calling the add endpoints, same two-step flow Blazor's Search.razor already uses. - Show-detail DTO check: ShowDetailResponseModel already exposes libraryId, title, and mediaSourceKind (serialized as a string enum via the global StringEnumConverter) - no changes needed. Adds controller tests (route table + per-action) for both endpoints and regenerates the OpenAPI document, endpoint index, and SPA client types.