Repository navigation
fix(box-sets): keep box sets out of library grids - #796
Conversation
Library browse no longer sends group=box_set on phone or TV, so a library grid lists a collection's movies as titles again. The server is dropping box_set from the catalog group enum and answers it with a 422. This removes the grouped-browse plumbing that #646 added for it: the group parameter on CatalogApi.getCatalog and CatalogRepository.browse, the group dimension of the offline default-library-page cache key, the phone browse's grouping identity and rebuild-on-toggle, the TV library view model's boxSetsEnabled parameter, box set cards in the phone CatalogGrid and the TV library grid, and the tests that covered them. The box set page, box set search results and the movie page's box set row are unchanged, as is UserLibrary.boxSetsEnabled, which search and the row still read. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 56 minutes. View limit details
CodeRabbit Verify
|
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. |
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:
|
|
The Evidence section has
Suggested fix: No diff — replace Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
|
The evidence page is published now and linked in the body. It has before and after captures of the same library grid, with the same data, for both Android phone and Android TV. 🤖 Claude Code (claude-opus-5-5) |
Problem
Related issue: Silo-Server/silo-server#677
Validation tasks: none
Since #646, the phone and TV library grids send
group=box_set, so a movie library with box sets on shows one card per box set in place of the movies in it. Alien and Aliens, for example, show up as a single "Alien Box Set" card. Silo-Server/silo-server#3434 removesbox_setfrom the v2 cataloggroupenum and answers a request that sends it with a 422. This change stops the apps from sending it. No released build sends it (#646 merged after v1.0.0-beta.28), but this must land before the next beta, or that beta's library grids will fail against a server with #3434.Approach
Library browse no longer passes a
groupparameter on phone or TV, so a grid lists each movie as its own title. This removes the plumbing #646 added for grouped browse: thegroupargument on the catalog API and repository, the group dimension of the offline library-page cache key, the phone browse's rebuild when box sets are toggled, the TV library view model's box set flag, the box set card branches in both grids, and their tests.Box sets stay where they were outside the grid: box set search results, the box set page, and the box set row on a movie page.
UserLibrary.boxSetsEnabledstays because search and that row still read it.Validation
shared,android-shared,androidApp,androidTvApp, filtered to box set, catalog, libraries, catalog cache, TV library and TV search tests): pass on the rebased head, 0 failures.Evidence
Evidence: https://evidence.siloserver.org/r/silo-android/pr-796/
Surface and build: phone and Android TV debug builds of
main(before) and this branch (after), against servers on silo-server main (before) and Silo-Server/silo-server#3434 (after), with the same library. Tablet and foldable were not captured. They render the same phone grid, and this change only removes the request parameter behind it.Risks
This app build and a server with Silo-Server/silo-server#3434 must ship together. This build against an older server shows ungrouped grids, which is the intended behavior. An unreleased build from current
mainagainst a server with #3434 gets a 422 on library browse. No released build is affected.Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Remove box-set browse grouping from library grids on Android and TV
groupparameter from the catalog browse path:CatalogApi.browse,CatalogRepository.browse,CatalogCachePortdefault-page cache methods, and theBOX_SET_GROUPconstant in BoxSetModels.kt are gone. Box sets now open on their own page and appear in search and on movie pages.LibraryGridin TvLibraryDetailScreen.kt use the standard item-card rendering andonItemClickhandling.LibrariesViewModelno longer computes a browse group, resets browse on a box-set setting change, or includes the group inCatalogRequestIdentitymatching. Cached default library pages use a library-only prefix inRoomCatalogCacheRepository.Macroscope summarized f13124d.