Repository navigation
fix(box-sets): keep box sets out of library grids - #3434
Conversation
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 Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
The evidence link identifies desktop and mobile web, covering the library-grid change there. Removing Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
On the native evidence request: no released app build sends 🤖 Claude Code (claude-opus-5-5) |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
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]>
…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]>
…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]>
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
listCatalogItemsandqueryCatalogItemsdropbox_setfrom thegroupenum (workstays),queryCatalogLettersdrops itsgroupproperty, and catalog items lose thebox_setcard type and field. The three removals are recorded as pre-lock breaking changes incontracts/api/v2/breaking-approvals.json. The OpenAPI document, web types, and fixtures are regenerated.group=box_set, andItemCardno longer renders box set cards. Search still uses the box set card.docs/catalog-api.mdanddocs/architecture/movie-box-sets.mdsay browse never groups.group=box_setfrom 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
internal/catalog,internal/api/handlers,internal/apiv2,internal/boxsets, andinternal/apipass against a migrated Postgres. The grouped-browse database test is deleted with the feature, and itsdb-contracts.txtentry goes with it.make lint-changed: 0 issues.verify-apiv2-contract,verify-apiv2-openapi,verify-apiv2-fixtures,verify-apiv2-web-types, andverify-route-inventorypass.tsc, eslint on the touched files, and the affected vitest files (141 files, 841 tests) pass.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:
mainat bf53b65; after: this branch at 37084d5. Same sandbox database for both.Risks
group=box_setfor a library with box sets on and will get a422on 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.Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Remove box-set grouping from library browse and letter-index APIs
group=box_setoption is removed from the v2 API, andCatalogItemresponses drop theBoxSetfield.CatalogHandler.prepareBoxSetBrowse,applyBoxSets, andBoxSetContentIDare deleted.QueryExecutorlosesBoxSetCollections, andgroupedByWorknow groups only linked ebook/audiobook rows.boxSetsEnabledfromLibraryBrowse, removesBoxSetCardhandling inItemCard, and stops sendinggroupin catalog/letters requests.box_setgroup enum values, removedbox_setitem property, and removed the lettersgroupquery parameter. Items withtype=box_setfrom stale clients now render as standard cards inItemCard.Macroscope summarized f8163c7.