Adds a paged GET /api/collections/{id}/items so the SPA can enumerate a manual collection's FULL contents (all media kinds), replacing the lossy Lucene name-based preview (which only covered Movie/Show/Season/Artist). Closes#155.
New GetCollectionItems query/handler: loads the collection (missing → NotFoundError/404), hydrates its CollectionItems via a new shared LibraryBrowseItemMapper (extracted from GetLibraryBrowseItemsHandler — one copy of the per-kind projection + rooted-artwork rules per api-conventions §4; browse handler behavior unchanged), orders by title, pages in-memory with LogsController-style clamping.
Reuses PagedLibraryBrowseItemsResponseModel / LibraryBrowseItemResponseModel — the SPA already consumes LibraryBrowseItem, so the client swap is a drop-in.
POST-500 sub-item confirmed already fixed (not reproducible): AddItemsToCollectionHandler.ValidateMediaItems (fb3f2856) returns 422 for any bogus id and 404 for a missing collection; existing handler/controller/contract tests already cover it. No validation re-added.
SPA: getCollectionItems(id,page) added; CollectionsScreen items view now uses the real endpoint with a Load-more pager; honest-banner caveat + getCollectionItemsPreview removed.
Adds a paged `GET /api/collections/{id}/items` so the SPA can enumerate a manual collection's FULL contents (all media kinds), replacing the lossy Lucene name-based preview (which only covered Movie/Show/Season/Artist). Closes #155.
- New `GetCollectionItems` query/handler: loads the collection (missing → NotFoundError/404), hydrates its `CollectionItems` via a new shared `LibraryBrowseItemMapper` (extracted from `GetLibraryBrowseItemsHandler` — one copy of the per-kind projection + rooted-artwork rules per api-conventions §4; browse handler behavior unchanged), orders by title, pages in-memory with LogsController-style clamping.
- Reuses `PagedLibraryBrowseItemsResponseModel` / `LibraryBrowseItemResponseModel` — the SPA already consumes `LibraryBrowseItem`, so the client swap is a drop-in.
- **POST-500 sub-item confirmed already fixed** (not reproducible): `AddItemsToCollectionHandler.ValidateMediaItems` (fb3f2856) returns 422 for any bogus id and 404 for a missing collection; existing handler/controller/contract tests already cover it. No validation re-added.
- SPA: `getCollectionItems(id,page)` added; `CollectionsScreen` items view now uses the real endpoint with a Load-more pager; honest-banner caveat + `getCollectionItemsPreview` removed.
- Controller + handler + contract tests added; OpenAPI regenerated (endpoint-index +1 op); `docs/blazor-route-parity.md` marks #155 resolved.
Verified (post-merge-of-main): `ErsatzTV.Tests` 833 green, web typecheck+lint+build+vitest 330 green. v1.d.ts unchanged (both response schemas pre-existed) — `npm run check:api` passes.
fixes #155
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Adds a paged collection-items endpoint reusing LibraryBrowseItemResponseModel
so the SPA lists a manual collection's full contents (all media kinds), replacing
the lossy Lucene name-based preview. Confirms POST /items already returns 422 for
bogus ids (guarded by ValidateMediaItems, fb3f2856); adds endpoint-level coverage.
fixes#155
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Adds a paged
GET /api/collections/{id}/itemsso the SPA can enumerate a manual collection's FULL contents (all media kinds), replacing the lossy Lucene name-based preview (which only covered Movie/Show/Season/Artist). Closes #155.GetCollectionItemsquery/handler: loads the collection (missing → NotFoundError/404), hydrates itsCollectionItemsvia a new sharedLibraryBrowseItemMapper(extracted fromGetLibraryBrowseItemsHandler— one copy of the per-kind projection + rooted-artwork rules per api-conventions §4; browse handler behavior unchanged), orders by title, pages in-memory with LogsController-style clamping.PagedLibraryBrowseItemsResponseModel/LibraryBrowseItemResponseModel— the SPA already consumesLibraryBrowseItem, so the client swap is a drop-in.AddItemsToCollectionHandler.ValidateMediaItems(fb3f2856) returns 422 for any bogus id and 404 for a missing collection; existing handler/controller/contract tests already cover it. No validation re-added.getCollectionItems(id,page)added;CollectionsScreenitems view now uses the real endpoint with a Load-more pager; honest-banner caveat +getCollectionItemsPreviewremoved.docs/blazor-route-parity.mdmarks #155 resolved.Verified (post-merge-of-main):
ErsatzTV.Tests833 green, web typecheck+lint+build+vitest 330 green. v1.d.ts unchanged (both response schemas pre-existed) —npm run check:apipasses.fixes #155
🤖 Generated with Claude Code