Skip to content

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

Merged
Quick104 merged 1 commit into
mainfrom
fix/remove-library-box-set-grouping
Nov 3, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/remove-library-box-set-grouping

Conversation

@Quick104

@Quick104 Quick104 commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

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 removes box_set from the v2 catalog group enum 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 group parameter on phone or TV, so a grid lists each movie as its own title. This removes the plumbing #646 added for grouped browse: the group argument 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.boxSetsEnabled stays because search and that row still read it.

Validation

  • Unit tests (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.
  • Phone (Pixel 9 emulator, Android 36) and Android TV (Android 36 TV emulator): library grids sorted by title show Alien and Aliens as separate cards against a server built from fix(box-sets): keep box sets out of library grids silo-server#3434, and the main build shows an "Alien Box Set" card against a server on silo-server main. Alien's movie page still shows the box set row.

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 main against a server with #3434 gets a 422 on library browse. No released build is affected.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • 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 browse grouping from library grids on Android and TV

  • Removes the group parameter from the catalog browse path: CatalogApi.browse, CatalogRepository.browse, CatalogCachePort default-page cache methods, and the BOX_SET_GROUP constant in BoxSetModels.kt are gone. Box sets now open on their own page and appear in search and on movie pages.
  • Browse UI no longer renders box-set cards specially. CatalogGrid.kt and LibraryGrid in TvLibraryDetailScreen.kt use the standard item-card rendering and onItemClick handling.
  • LibrariesViewModel no longer computes a browse group, resets browse on a box-set setting change, or includes the group in CatalogRequestIdentity matching. Cached default library pages use a library-only prefix in RoomCatalogCacheRepository.
  • Behavioral Change: libraries with box sets enabled now show ungrouped movies in their grids; box-set grouping no longer happens anywhere in browse. Cached grouped pages written under the old group-suffixed keys will not be read and will simply expire.

Macroscope summarized f13124d.

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]>
@silo-triage silo-triage Bot added the size/L 200–499 added + deleted lines (all files); change volume, not priority. label Nov 3, 2026
@coderabbitai

coderabbitai Bot commented Nov 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available. Your 79 included PR review attempts over the past 7 days set your current allowance at 2 reviews per hour.

Learn how review limits work.

Review configuration:

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: d80fda14-b957-4446-ad4e-6d66fb69fbe3
Commits

Reviewing files that changed from the base of the PR and between 65664d7 and f13124d.

Files selected for processing: 19
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/data/repository/RoomCatalogCacheRepository.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/data/repository/RoomCatalogCacheRepositoryTest.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/MainScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/browse/CatalogGrid.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/libraries/LibrariesScreen.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/libraries/LibrariesViewModelTest.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/di/AndroidTvModule.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/libraries/TvLibrariesScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/library/TvLibraryDetailScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/library/TvLibraryDetailViewModel.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/shell/TvMainShell.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/library/TvBoxSetBrowseTest.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/catalog/BoxSetModels.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/catalog/CatalogModels.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/personal/PersonalDataModels.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/network/api/CatalogApi.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/repository/CatalogRepository.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/repository/port/CatalogCachePort.kt
  • shared/src/commonTest/kotlin/org/siloserver/silo/network/apiv2/BoxSetsV2Test.kt
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@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:38:33.699596Z f13124d PR opened
🔒 Security Review ✅ Completed 2026-11-03T02:39:19.574882Z f13124d PR opened
ℹ️ 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.

@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 ❌

@macroscopeapp

macroscopeapp Bot commented Nov 3, 2026

Copy link
Copy Markdown

The Evidence section has Evidence: EVIDENCE_LINK, not a published evidence URL or attached captures, so the claimed comparisons cannot be checked.

  • Library-grid contents change (individual movies appear instead of a box-set card) — evidence is missing for Android phone and Android TV; provide before-and-after captures of the same library screen with the same data on both. The stated reason for omitting tablet and folded/open foldable captures is consistent with the shared phone grid.

Suggested fix: No diff — replace EVIDENCE_LINK with the published evidence URL or attach the captures.

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 bug Something isn't working impact: compat Breaks a supported client or server path priority: P1 Core-path bug; painful workaround — next after P0 labels Nov 3, 2026
@Quick104

Quick104 commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

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)

@Quick104
Quick104 merged commit 6f3e368 into main Nov 3, 2026
10 checks passed
@Quick104
Quick104 deleted the fix/remove-library-box-set-grouping branch November 3, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working impact: compat Breaks a supported client or server path priority: P1 Core-path bug; painful workaround — next after P0 size/L 200–499 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant