Skip to content

fix(box-sets): keep box sets out of library grids - #3434

Merged
Quick104 merged 3 commits into
mainfrom
fix/remove-library-page-box-sets
Nov 3, 2026
Merged

Quick104 merged 3 commits into
mainfrom
fix/remove-library-page-box-sets

Conversation

@Quick104

@Quick104 Quick104 commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: #677
Validation tasks: none

Box sets were meant to appear in search, on their own page, and as a row on a movie's page, not in library grids. #2784 also added grid grouping: in a library with box sets on, the web app and the Android and Apple apps fold a collection's movies into one box set card. This change takes box sets out of library grids and leaves search, the box set page, and the movie page row as they are.

Approach

  • Server: the library browse and its letter index no longer group movies into box sets. listCatalogItems and queryCatalogItems drop box_set from the group enum (work stays), queryCatalogLetters drops its group property, and catalog items lose the box_set card type and field. The three removals are recorded as pre-lock breaking changes in contracts/api/v2/breaking-approvals.json. The OpenAPI document, web types, and fixtures are regenerated.
  • Web: library grids stop sending group=box_set, and ItemCard no longer renders box set cards. Search still uses the box set card.
  • Docs: docs/catalog-api.md and docs/architecture/movie-box-sets.md say browse never groups.
  • Clients: fix(box-sets): keep box sets out of library grids silo-apple#991 and fix(box-sets): keep box sets out of library grids silo-android#796 stop sending group=box_set from their grids. Merge all three together, before the next app betas.

The library settings (box_sets_enabled, box_set_min_movies, box_sets_in_search), the sync task, and the three box set reads are unchanged.

Validation

  • Go tests for internal/catalog, internal/api/handlers, internal/apiv2, internal/boxsets, and internal/api pass against a migrated Postgres. The grouped-browse database test is deleted with the feature, and its db-contracts.txt entry goes with it.
  • make lint-changed: 0 issues.
  • verify-apiv2-contract, verify-apiv2-openapi, verify-apiv2-fixtures, verify-apiv2-web-types, and verify-route-inventory pass.
  • Web: tsc, eslint on the touched files, and the affected vitest files (141 files, 841 tests) pass.
  • On a sandbox with box sets synced from TMDB, the grouped browse answers 422, and the plain browse lists Alien and Aliens as separate cards. Search and the movie page row still show the box set.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/pr-3434/

Surface and build: web app, desktop and mobile web (iPhone). Before: main at bf53b65; after: this branch at 37084d5. Same sandbox database for both.

Risks

  • Older app builds: current silo-apple and silo-android releases send group=box_set for a library with box sets on and will get a 422 on that library's grid until they update. Box sets are off by default, so only libraries where an admin turned them on are affected. No released build sends it (silo-apple#852 and silo-android#646 merged after the latest betas), and silo-apple#991 and silo-android#796 remove it.
  • No migration. The box set tables and library columns stay in use.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code (in T3 Code)
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: n/a

🤖 Generated with Claude Code

Note

Remove box-set grouping from library browse and letter-index APIs

  • Library browse, catalog query, and letter-index requests no longer group movies into box sets. The group=box_set option is removed from the v2 API, and CatalogItem responses drop the BoxSet field.
  • Removes the server-side box-set browse path: CatalogHandler.prepareBoxSetBrowse, applyBoxSets, and BoxSetContentID are deleted. QueryExecutor loses BoxSetCollections, and groupedByWork now groups only linked ebook/audiobook rows.
  • The web client drops boxSetsEnabled from LibraryBrowse, removes BoxSetCard handling in ItemCard, and stops sending group in catalog/letters requests.
  • Box sets remain available in search, on their own page, and as a movie-page row; docs and capability descriptions are updated to say so.
  • Risk: breaking API v2 changes approved in breaking-approvals.json — removed box_set group enum values, removed box_set item property, and removed the letters group query parameter. Items with type=box_set from stale clients now render as standard cards in ItemCard.

Macroscope summarized f8163c7.

Box sets belong in search, on the box set page, and as a movie page's
row, not in library grids. Remove the group=box_set browse: the grouped
query plan and letter index branch, the box set card in catalog items,
and the web grid's request. listCatalogItems and queryCatalogItems no
longer accept group=box_set, and queryCatalogLetters drops its group
property.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added the size/XL 500–999 added + deleted lines (all files); change volume, not priority. label Nov 3, 2026
@silo-kody

silo-kody Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T02:43:58.276971Z f8163c7 New commits
🔒 Security Review ✅ Completed 2026-11-03T02:44:46.172473Z f8163c7 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Walkthrough

This change removes group=box_set from catalog browse and letter-index requests and removes box-set fields from catalog cards. Box sets remain available through search, dedicated pages, and movie-page rows.

Changes: Box-set browse removal

Layer / File(s) Summary
Catalog contracts and descriptions
contracts/api/v2/*, docs/architecture/movie-box-sets.md, docs/catalog-api.md, internal/apiv2/*, web/src/api/types.ts, web/src/api/v2/schema.ts
The API contracts and client schemas remove group=box_set and box-set catalog-card fields. Documentation describes box sets in search, dedicated pages, and movie-page rows, while browse and letter-index operations list individual movies.
Backend catalog resolution
internal/api/handlers/*, internal/apiv2/catalog_types.go, internal/catalog/*, scripts/ci/db-contracts.txt
Catalog handlers, request structures, and query execution no longer prepare or apply box-set browse groups or pass box-set collections to the executor. The grouped-browse database test and its contract entry are removed.
Web browse requests
web/src/hooks/queries/catalog.ts, web/src/pages/LibraryBrowse*, web/src/pages/LibraryPage.tsx, web/src/pages/catalogSearchParams.ts
The browse state no longer carries box_set, and catalog-page and letter-index requests no longer send a group value. The box-set grouping test is removed.
Web card handling
web/src/api/v2/catalog.ts, web/src/components/ItemCard*, web/src/components/boxsets/BoxSetCard.tsx, web/src/pages/Catalog.tsx
Catalog item conversion and ItemCard no longer use box-set catalog-card data. BoxSetCard reads artwork from its box-set summary, and history removal targets include selected box sets.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix

Possibly related PRs

  • Silo-Server/silo-server#2784: Introduced TMDB box-set grouping in catalog browse, including the contract and box-set catalog cards removed here.

Suggested labels: impact: usability, needs-review

Suggested reviewers: rhainland

Merge Risk: Minimal · up to f8163

The change preserves retained box-set access paths and introduces no actionable merge-blocking risk.

Security architecture risk: Low · up to 87d9f

The change deliberately withdraws a browse option while preserving access restrictions in the inspected paths. No new security weakness was identified, but compatibility with older native-app versions and coordinated release ordering remain unconfirmed.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The security-relevant exposure examined is viewer-facing catalog metadata and artwork within the caller's effective library and content scope. Listing individual movies changes presentation and cardinality, but the inspected removal does not expand that authorization scope.

Trust Boundaries and Controls

  • observed — Caller-supplied library and structured-query filters remain distinct from resolved access policy. Query planning intersects library scope, denies empty authorized scopes, and applies allowed-content restrictions. The base-to-head diff does not remove these controls.
Pre-merge checks: Passed 4 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Docstring Coverage Inconclusive Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title "fix(box-sets): keep box sets out of library grids" matches the main change. The PR removes box-set grouping from library browse and letter-index APIs, so movies appear as individual cards i…
Description check Passed The description states the problem, the approach, validation, evidence, and risks. It explains that box sets were removed from library grids while search, the box set page, and the movie-page row stay…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix(box-sets): keep box sets out of library grids" matches the main change. The PR removes box-set grouping from library browse and letter-index APIs, so movies appear as individual cards in library grids. Box sets remain in search, on their own page, and in the movie-page row. The title is specific and concise, and it uses a conventional type(scope) prefix.

Full details: Description check

Explanation

The description states the problem, the approach, validation, evidence, and risks. It explains that box sets were removed from library grids while search, the box set page, and the movie-page row stay. It lists the server, web, docs, and client changes, and it names the breaking API v2 change and the 422 risk for older app builds. It is directly related to the changeset.

Full details: Docstring Coverage

Explanation

Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 5 functions across 17 files. (2 skipped: 1 unsupported, 1 too large.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

ast-grep (0.51.1)

ast-grep could not parse rule config: /ast-grep-rules/ast-grep-essentials/rules/java/security/cookie-secure-flag-false-java.yml

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 32d65bec-5aff-48e8-a071-4ced7f03c81f
Commits

Reviewing files that changed from the base of the PR and between 87d9f45 and f8163c7.

Files selected for processing: 4
  • contracts/api/v2/openapi.json
  • internal/apiv2/libraries.go
  • internal/apiv2/user_libraries.go
  • web/src/api/v2/schema.ts
Files skipped from review as they are similar to previous changes: 3
  • internal/apiv2/libraries.go
  • internal/apiv2/user_libraries.go
  • web/src/api/v2/schema.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.

@macroscopeapp

macroscopeapp Bot commented Nov 3, 2026

Copy link
Copy Markdown

The evidence link identifies desktop and mobile web, covering the library-grid change there. Removing group=box_set also makes existing Android and Apple builds receive 422 when opening an enabled library grid, which the declared web-only evidence does not cover. Please add before-and-after captures of the affected native library grids showing this behavior.

Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.

Posted via Macroscope — Visible change evidence

@silo-triage silo-triage Bot added api-v2 API v2 / Huma migration program (epic #135); long-running, stacked by phase bug Something isn't working go Pull requests that update go code impact: compat Breaks a supported client or server path javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish labels Nov 3, 2026
Comment thread internal/apiv2/catalog_items.go Resolved
@coderabbitai coderabbitai Bot added impact: usability Core flow broken or severely blocked needs-review Needs maintainer review to resolve uncertain classification, scope, or changed evidence. labels Nov 3, 2026
@Quick104

Quick104 commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

On the native evidence request: no released app build sends group=box_set, so no tester sees a 422. Only builds from the client main branches since Nov 1 send it. The Apple and Android changes that remove grid grouping are opening as their own pull requests, each with before and after captures of its library grid on its own evidence page. This PR changes no native surface by itself.

🤖 Claude Code (claude-opus-5-5)

Comment thread contracts/api/v2/openapi.json Resolved
@silo-kody

silo-kody Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 4 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Preserve optional store capabilities through production wrappers
  • Detach mandatory cleanup from request cancellation and bound its lifetime
  • Preserve durable media identity and share identity-evidence precedence
  • Bound decoder throughput trades and share direct-play eligibility

@Quick104
Quick104 merged commit a532588 into main Nov 3, 2026
29 checks passed
@Quick104
Quick104 deleted the fix/remove-library-page-box-sets branch November 3, 2026 13:39
Quick104 added a commit that referenced this pull request Nov 3, 2026
An approval lives only on the pull request that needs it; the next pull
request removes entries that have merged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Quick104 added a commit to Brady3035/silo-server that referenced this pull request Nov 3, 2026
…itle answer

The v2 contract's Origin description on the four socket operations still
said every browser origin must match, while the handler now accepts
opaque and non-web scheme origins. Reword it and regenerate the OpenAPI
artifact and web types. Empty the three Silo-Server#3434 breaking-change approvals,
which match nothing once that change is on main and fail the contract
check for any later spec change.

Set Access-Control-Allow-Origin at the top of the exported HandleSubtitle
instead of handleSubtitle, so a malformed timestamp_offset 400 is
readable from a packaged app too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Quick104 added a commit that referenced this pull request Nov 3, 2026
…cars (#3327)

* fix(api): let packaged apps with an opaque Origin open v2 sockets

Packaged TV web apps (webOS, Tizen) load their pages from the device, so
their WebSocket handshakes carry an Origin of "null", "file://" or an app
scheme. The v2 socket origin check refused all of these with 403, so the
events, playback-control and Watch Together sockets never opened on a TV.

Treat an opaque or non-http(s) Origin like a missing one. The single-use
ticket in the handshake protocols is what authorizes the socket, and a
cross-site page cannot read a ticket mint answer. http(s) origins keep the
exact public, request and overlay origin match.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(api): answer every subtitle sidecar with CORS for packaged apps

Packaged TV web apps (webOS, Tizen) fetch subtitle sidecars from a page
with an opaque Origin. Only the embedded-extract branch of the subtitle
handler set Access-Control-Allow-Origin, so the browser discarded a 200
for an external or downloaded sidecar and the subtitle never rendered.

Set the header once at the top of the handler so every branch, including
errors and HEAD, carries it. The session token rides in the URL, not a
cookie, so the wildcard grants nothing a cross-site page could use.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(api): document the socket Origin rule and send CORS on every subtitle answer

The v2 contract's Origin description on the four socket operations still
said every browser origin must match, while the handler now accepts
opaque and non-web scheme origins. Reword it and regenerate the OpenAPI
artifact and web types. Empty the three #3434 breaking-change approvals,
which match nothing once that change is on main and fail the contract
check for any later spec change.

Set Access-Control-Allow-Origin at the top of the exported HandleSubtitle
instead of handleSubtitle, so a malformed timestamp_offset 400 is
readable from a packaged app too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Brady3035 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Quick104 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-v2 API v2 / Huma migration program (epic #135); long-running, stacked by phase bug Something isn't working go Pull requests that update go code impact: compat Breaks a supported client or server path impact: usability Core flow broken or severely blocked javascript Pull requests that update javascript code needs-review Needs maintainer review to resolve uncertain classification, scope, or changed evidence. priority: P2 Limited scope, workaround exists, or polish size/XL 500–999 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant