You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(detail): show the collections a movie or series is in on its page - #1007
Movie and series pages in the Android apps don't show which collections hold the title. Silo-Server/silo-server#4528 adds that row to the web pages, with a new /api/v2 read for the native apps. This brings the same row to the Android phone and TV apps:
One collection holds the title, and it has other titles: up to six of them show under the collection's name, ending in an Explore all card that opens the collection.
Otherwise: an Also in row shows a poster card for each collection, with no cap.
No row while the read loads, when no collection holds the title, when the first read fails, or on a server that doesn't advertise item_collections.
Approach
A shared loader reads listCatalogItemCollections with the page's library. Phone and TV both use it, so they decide between the preview and Also in the same way. It runs only for movies and series, and only on servers whose search capabilities advertise item_collections. A failed refresh keeps the row on screen, as the box set row and web do.
Placement follows web: below the box set row on movie pages, below Cast & Crew on series pages.
Phone: the cards reuse CollectionPosterRow and the MediaCard and Explore all cards of the other detail rails.
TV:
The cards reuse TvMediaRow and TvCollectionRow.
Book titles are left out of a preview, as in other TV rows. When none are left, the collection's card shows under Also in.
Server collections show only from libraries TV shows, as on Home, so an ebook library's collection stays off TV. A collection opens with its library's type, so its page offers that library's sorts and filters.
Back from a page opened in the row lands on the card that opened it, as with the box set and More Like This rows.
Preview titles open without a library, as the collection pages open their titles, because a collection's titles can live in other libraries.
The Evidence section shows every change a user can see, or how I checked a change nobody sees.
AI Disclosure
Harness: Claude Code (in T3 Code)
Tool(s): Claude Code; Codex CLI (review only)
Model(s): claude-opus-5-5 (implementation and review); claude-fable-5-2, gpt-6.2-sol, gpt-6.2-astra (review)
Involvement: Fully AI-generated, human verified
Adversarial review: four independent reviewers (Opus 5.5, Fable 5.2, GPT-6.2 Sol, GPT-6.2 Astra) reviewed the full diff, then each fix round. Fixed findings:
book titles in TV previews;
the wrong library for personal-collection preview titles;
lost TV focus after Back;
a missing Up-to-hero hook;
duplicated TV wiring.
Kept as designed: holding the last row through a failed refresh, which matches web and the box set row.
Note
Add collections row to movie and series detail pages on Android and TV
Adds a shared ItemCollectionsRow model (Preview or AlsoIn variants) loaded via loadItemCollectionsRow, gated on the server's item_collections search capability and limited to movies and series. A single collection with preview titles renders a Preview row capped at 6 titles; other responses render collection cards (ItemCollectionsRow.kt)
Adds the CatalogV2Api.itemCollections endpoint, decodeItemCollectionsV2 decoder, and repository plumbing, with new recorded fixtures and contract tests (CatalogV2Api.kt)
Android detail screens render the rail via ItemCollectionsRail after the box-set row (movies) or Cast & Crew (series); TV screens render it via TvItemCollectionsRowSection with focus restoration and Up-key handling (ItemCollectionsRail.kt, TvItemDetailScreen.kt)
TV filters collections to personal collections and server collections in TV-visible libraries; previews with no TV-visible titles fall back to a collection card (TvMediaTypeFilters.kt)
Detail loads read collections with a cancellable, generation-checked job so stale results are discarded; the row also refreshes on the existing post-playback refresh path
When one collection holds the title, its page shows up to six of that
collection's other titles under the collection's name, ending in an
Explore all card that opens the collection. When several hold it, an
"Also in" row shows a poster card for each, with no cap. Phone and TV.
The row reads listCatalogItemCollections (Silo-Server/silo-server#4528)
only on servers whose search capabilities advertise item_collections,
and only for movies and series. It shows nothing while loading, when no
collection holds the title, or when the first read fails; a failed
refresh keeps the row on screen, as the box set row does.
The detail.alsoIn heading comes from a local silo-translations build
(Silo-Server/silo-translations#87 on the pinned release) until that
release ships. The vendored API v2 fixtures are re-synced from the
server branch to add the capabilities and title collections bodies.
ClosesSilo-Server#997
…ocus to it
- TV leaves book titles out of a collection's preview, as other TV rows
do, and shows the collection's card under "Also in" when none are left.
- A preview title from a personal collection opens without the page's
library, so a title from another library is not refused.
- On TV, Back from a collection or title opened in the row lands on the
card that opened it, and Up from a first-rail "Also in" row returns to
the hero, as the box set and More Like This rows do.
- The phone "Also in" row reuses CollectionPosterRow, and the TV page
places one shared collections section at both positions.
One saved TvDetailReturnRail replaces the box set and collections flags,
and one recordReturn sets up a return for the box set, collections and
More Like This rows. The collections row reports which card opened a
collection, so its click and focus use the same return key.
- loadItemCollectionsRow maps the read with ApiResult.map.
- TvCollectionRow takes onDirectionUp like TvMediaRow, instead of the
title page wrapping it in its own key handler.
- The TV page drops checks for an empty preview, which the loader and
the TV filter already rule out, and passes the row to its collections
section rather than reading it with !!.
The shared catalog layer now retrieves collection cards and preview items for movie and series details. Android and Android TV display collection rows, with platform-specific filtering, navigation, and focus behavior. API contract tests and fixtures cover the new response and capability.
The shared catalog layer adds the collections model, capability, decoder, API methods, and repository method. Fixtures and contract tests cover collection responses and capability detection. Section collection-card decoding skips invalid or non-openable cards and deduplicates by row key.
Collection-row mapping and capability checks shared/src/commonMain/kotlin/org/siloserver/silo/viewmodel/ItemCollectionsRow.kt, shared/src/commonTest/kotlin/org/siloserver/silo/viewmodel/ItemCollectionsRowTest.kt
The loader checks item type and server capability, maps results to Preview or AlsoIn rows, and limits previews to six items. Tests cover requests, row results, unsupported cases, and errors.
Android detail collections state androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/ItemDetailViewModel.kt
Android detail state clears, loads, and refreshes collection rows. It publishes results only when the request generation and displayed content ID still match.
Android collection rails and navigation androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/CollectionPosterCard.kt, androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/home/HomeSectionRow.kt, androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/ItemCollectionsRail.kt, androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/{ItemDetailScreen,MovieDetailContent,SeriesDetailContent}.kt, androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/navigation/AppNavigation.kt
Movie and series screens render collection rails and forward selection callbacks. Collection cards navigate when a route is available, and selected items open without a library ID. Collection cards also gain an optional header and a cached-profile owner-name lookup used on the home screen.
TV collection state and visibility androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvItemDetailViewModel.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/util/TvMediaTypeFilters.kt, androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/util/TvMediaTypeFiltersTest.kt
TV detail state filters collections to TV-visible libraries and filters preview items for TV visibility. Tests cover these filtering rules.
TV collection navigation and focus restoration androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvCollectionRow.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/{TvItemCollectionsRow,TvItemDetailScreen}.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/navigation/TvAppNavigation.kt
TV detail screens render collection rows, navigate to collections and preview items, and restore focus to the originating rail. The row component adds optional header rendering and Up-key handling.
API fixture refresh
Layer / File(s)
Summary
Refresh existing API fixtures shared/src/commonTest/resources/api/v2/fixtures/*
Existing fixtures update request identifiers, response details, capability data, and profile headers. The recorded fixture source and OAuth capability revision also change.
sequenceDiagram
participant ItemDetailViewModel
participant loadItemCollectionsRow
participant CatalogRepository
participant CatalogV2Api
participant CatalogServer
participant DetailScreen
ItemDetailViewModel->>loadItemCollectionsRow: Load collections for the displayed detail
loadItemCollectionsRow->>CatalogRepository: Request collections after capability check
CatalogRepository->>CatalogV2Api: Pass item ID and optional library ID
CatalogV2Api->>CatalogServer: Request item collections
CatalogServer-->>CatalogV2Api: Return collection cards and preview items
CatalogV2Api-->>ItemDetailViewModel: Return decoded collections
ItemDetailViewModel->>DetailScreen: Publish Preview or AlsoIn row
Loading
Suggested reviewers:rxwatcher, quick104
Merge Risk: Minimal · up to bcf0c
Movie and series detail pages on phone and TV gain a collections row, shown only when the server advertises the item_collections capability. Earlier review concerns about opening preview titles from other libraries are resolved. No unresolved defect remains in the supplied review evidence, so the change looks safe to merge.
Security architecture risk: Minimal · up to bcf0c
The inspected feature adds a read within existing sign-in and navigation flows. Its loading and visibility controls do not establish an introduced authorization bypass or materially weaker ownership guarantee.
Retained concerns
No architecture-level concerns identified.
Security review details
Security Blast Radius
inferred — The inspected new path exposes collection cards and preview-title metadata through the active viewer's catalog flow, including navigation to titles outside the originating library scope. It adds no collection mutation or credential-management operation in that path. Effective resource visibility still depends on server-side authorization, which was not inspected.
Trust Boundaries and Controls
observed — The new collections request encodes the item identifier and pins the request to the captured authentication scope. The existing catalog read wrapper uses identity ownership checks before and after the exchange and checks coroutine cancellation before returning. Dependency injection supplies the catalog API with its token-manager dependency.
Resilience and Maintainability Implications
inferred — Retaining a row during refresh does not by itself establish cross-account disclosure. The inspected TV account-switch and profile-switch paths remove the old navigation stack, and inspected phone identity-selection paths likewise replace the stack. On TV, a parent-detail access refusal also removes the detail required to render the collections row.
Hardening Proposals
proposed — If the server can revoke collection visibility independently of the parent title, distinguish a definitive collections access refusal from a transient refresh failure and clear the affected row. This is a conditional hardening proposal, not a verified disclosure: the server's independent-refusal behavior was not established.
Pre-merge checks: 2
Check name
Status
Explanation
Title check
The title "feat(detail): show the collections a movie or series is in on its page" matches the main change: a collections row on Android phone and TV movie and series detail pages. The changeset adds …
Description check
The description states the problem (movie and series pages do not show which collections hold a title), the approach (shared loader, gating on the item_collections capability, placement below the box …
Full details: Title check
Explanation
The title "feat(detail): show the collections a movie or series is in on its page" matches the main change: a collections row on Android phone and TV movie and series detail pages. The changeset adds a shared ItemCollectionsRow loader, a catalog API endpoint, and detail-screen rails for phone and TV, so the title describes the primary change. It is specific enough for a teammate scanning history.
Full details: Description check
Explanation
The description states the problem (movie and series pages do not show which collections hold a title), the approach (shared loader, gating on the item_collections capability, placement below the box set row or Cast & Crew), validation steps, evidence links, and risks. It relates directly to the changeset.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
TV focus navigation and Back-to-card restoration for the new collections row (TvItemCollectionsRow.kt, TvItemDetailScreen.kt) are visible on Android TV, but the Evidence section describes captures without identifying a recording. Add a TV recording showing Up/Down movement and returning from a collection or title to its originating card.
Suggested fix: Add the recording to the linked evidence page.
Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
A collection's titles can live in other libraries, so a library-scoped
read of a preview title from another library answers 404. Open them with
no library on phone and TV, as the collection pages already open their
titles.
The reason will be displayed to describe this comment to others. Learn more.
🤖 Claude Code (claude-opus-5-5)
Three findings on the head above, all low to medium. I'm fixing each in a commit on this branch, so there's no need to change them yourself. A summary with scores follows once the fixes are pushed.
…s row
TV Home shows a server collection only when its library is one TV shows,
so an ebook library's collection stays off TV. The title page's
collections row filtered only the preview titles, so a collection whose
card names an ebook library still showed, with its collage and count.
The row now reads the libraries TV shows when it holds a server
collection and keeps only cards from those, as Home does. The same list
gives each card's library type, so the collection page opens with that
library's sorts and filters instead of the video-only "mixed" set.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A collection's preview can mix posters and audiobook covers, so its
cards came out at different heights. The preview now shares one artwork
ratio across its cards and Explore all, as More Like This does.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
TV showed server collections from libraries TV hides (4846f22). The row now keeps only server collection cards from libraries TV shows, as Home does, so an ebook library's collection stays off TV. A failed library read keeps the current row.
TV opened row collections with the "mixed" library type (4846f22). That gave a series or audiobook library's collection the video-only sorts and filters. The route now gets the card's real library type.
Uneven card heights in a mixed phone preview (ee3458c). The preview shares one artwork ratio, as More Like This does.
An extra library-list request on every TV page with a server collection (bcf0cdb, from Kody's comment on 4846f22). The row now reads knownUserLibraries(), as the box set row does.
Branch brought up to date (b69e858). The branch conflicted with main only in generated translation files. Main's pin, 2026.11.21-f78acfd, already carries detail.alsoIn in all 39 languages, so those files take main's side and the PR no longer ships catalog files. check-translations passes.
Fixtures re-synced from server main (cda9bd3). The collections and capabilities bodies are byte-identical to the merged contract. The only other change is a newer OAuth capabilities body from main.
Checked and not changed
Keeping the last row on a failed refresh, including after an access change. This matches the box set row on both apps. A refused title clears the page, and a late answer for another title is dropped.
Reading search capabilities before every collections read. This costs one extra request per detail load and per return to the page. It is documented and matches people search. Caching it per server and profile would be a separate change for both readers.
Preview decoding and duplicate keys. In the merged contract, preview titles always carry the fields BrowseItem requires. Collection membership keys rule out repeated titles.
The Home refactor (decodeCollectionCardsV2, rememberCollectionOwnerName) keeps Home's filtering, order and bylines.
Left for the maintainers
Device check of the fix commits. The evidence page shows the author's head, a3b61764f. The TV library filter and the phone card shape from this review haven't been checked on a device. bcf0cdb and the merge change nothing a user sees.
Minor, not fixed: on a series page the row is the first section that can appear after the page has drawn, so a late answer can shift a page you've already scrolled. Movie pages already do this with the box set row.
Validated features
The validation board couldn't be read from this review, so Validation tasks: none is unconfirmed. In code, the changes reach movie and series detail pages, TV detail focus, and Home collection rows. The Home row's behavior is unchanged.
Tests
The PR's new tests cover code this PR adds (the shared loader, the fixture contract, the TV filters), so they can't run on the base. On bcf0cdbd2, all unit tests pass in shared, android-shared, androidApp and androidTvApp (7,282 tests), and debug builds of both apps pass.
User manual
Silo-Server/siloserver.org#411 is closed, and the merged pages (using-silo/collections and running-a-server/collections, under Collections on movie and series pages) still say the row is web-only. When this merges, a new siloserver.org issue should add the Android phone and TV apps there, and note that TV leaves out book titles and collections from libraries TV doesn't show.
Fit: the row closes a gap between the native apps and web for a feature the server already has. It only appears on servers that advertise it, and it reuses the existing card components. It adds new surface area, which keeps the score below 9. Readiness: the approach and code hold up, and the translations pin and server contract no longer block it. The one thing holding the score below 9 is that the fix commits haven't been checked on a device.
Cross-provider review: one round with Codex (gpt-6.2-sol) on a3b61764f. Its access-change, TV fallback-card and focus-return findings matched existing box set and Home behavior. Its scroll-shift finding is listed above. No new round ran for this update, because its only code change is the library read swap.
The reason will be displayed to describe this comment to others. Learn more.
Collection rows refetch the full library list on every detail refresh
Each movie or series detail load with a server collection adds an HTTP round trip, delaying the collections row even during quiet refreshes. Replace listUserLibraries() with knownUserLibraries() to reuse the cached, hidden-library-filtered list.
Prompt for LLM
File androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvItemDetailViewModel.kt, lines 3077-3079:
Collection rows refetch the full library list on every detail refresh
Every movie or series detail load containing a server collection issues an additional library-list HTTP request, including quiet refreshes, delaying the collections row on a round trip that repeats across pages. Use `knownUserLibraries()` to reuse the cached, hidden-library-filtered list, as the repository provides for per-page checks.
The reason will be displayed to describe this comment to others. Learn more.
🤖 Claude Code (claude-opus-5-5)
Fixed in bcf0cdb. The row now reads knownUserLibraries(), as the box set row on the same page does (MovieBoxSet.kt). That list already leaves out the libraries the profile hid, and it reads the server only when nothing is cached yet, so a page with a server collection no longer sends its own library-list request. Unit tests in all four modules pass on the new head (7,282 tests), and both apps build in debug.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update. Using knownUserLibraries() addresses the repeated library-list request while preserving the hidden-library filter. I haven’t independently verified the fix, tests, or builds.
Main's translations release already carries detail.alsoIn in every
language, so the conflicting generated files take main's side.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The row only needs to know which libraries TV shows, which the cached
list answers, as it does for the box set row. This drops a library-list
request from every movie or series page with a server collection.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
api-v2API v2 / Huma program (epic silo-server#135)enhancementNew feature or requestimpact: polishAnnoyance, cosmetic, or nice-to-havepriority: P2Limited scope, workaround exists, or polishsize/XXL1000–2999 added + deleted lines (all files); change volume, not priority.
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Closes #997
Related issue: Silo-Server/silo-server#4528
Validation tasks: none
Other clients: Apple Silo-Server/silo-apple#1222; Roku Silo-Server/silo-roku#99; Web Silo-Server/silo-server#4528
Movie and series pages in the Android apps don't show which collections hold the title. Silo-Server/silo-server#4528 adds that row to the web pages, with a new
/api/v2read for the native apps. This brings the same row to the Android phone and TV apps:item_collections.Approach
listCatalogItemCollectionswith the page's library. Phone and TV both use it, so they decide between the preview and Also in the same way. It runs only for movies and series, and only on servers whose search capabilities advertiseitem_collections. A failed refresh keeps the row on screen, as the box set row and web do.CollectionPosterRowand theMediaCardand Explore all cards of the other detail rails.TvMediaRowandTvCollectionRow.detail.alsoInstring from feat(catalog): add the "Also in" heading for title pages silo-translations#87. Main's pinned release already includes it in every language, so this change ships no catalog files. The vendored API v2 fixtures are re-synced from server main, after feat(catalog): show the collections a movie or series is in on its page silo-server#4528 merged, to add the capabilities and title collections bodies.Validation
testDebugUnitTest). New tests cover:library_id, preview or Also in, six-title cap, failures, movie and series only;scripts/check-translationspasses on main's pin,2026.11.21-f78acfd.Evidence
Evidence: https://evidence.siloserver.org/r/silo-android/pr-1007/
Before: merge base e158795. After: branch head. Same server and data on every capture: phone, tablet, foldable folded and open, and TV.
Risks
item_collections, so they are never sent the read and show no row.Checklist
AI Disclosure
Harness: Claude Code (in T3 Code)
Tool(s): Claude Code; Codex CLI (review only)
Model(s): claude-opus-5-5 (implementation and review); claude-fable-5-2, gpt-6.2-sol, gpt-6.2-astra (review)
Involvement: Fully AI-generated, human verified
Adversarial review: four independent reviewers (Opus 5.5, Fable 5.2, GPT-6.2 Sol, GPT-6.2 Astra) reviewed the full diff, then each fix round. Fixed findings:
Kept as designed: holding the last row through a failed refresh, which matches web and the box set row.
Note
Add collections row to movie and series detail pages on Android and TV
ItemCollectionsRowmodel (Preview or AlsoIn variants) loaded vialoadItemCollectionsRow, gated on the server'sitem_collectionssearch capability and limited to movies and series. A single collection with preview titles renders a Preview row capped at 6 titles; other responses render collection cards (ItemCollectionsRow.kt)CatalogV2Api.itemCollectionsendpoint,decodeItemCollectionsV2decoder, and repository plumbing, with new recorded fixtures and contract tests (CatalogV2Api.kt)ItemCollectionsRailafter the box-set row (movies) or Cast & Crew (series); TV screens render it viaTvItemCollectionsRowSectionwith focus restoration and Up-key handling (ItemCollectionsRail.kt, TvItemDetailScreen.kt)Macroscope summarized bcf0cdb.