Skip to content

feat(detail): show the collections a movie or series is in on its page - #1007

Merged
Quick104 merged 11 commits into
Silo-Server:mainfrom
Rhainland:feat/item-also-in-collections
Nov 22, 2026
Merged

Quick104 merged 11 commits into
Silo-Server:mainfrom
Rhainland:feat/item-also-in-collections

Conversation

@Rhainland

@Rhainland Rhainland commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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/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 heading uses the detail.alsoIn string 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

  • Unit tests: all modules pass (testDebugUnitTest). New tests cover:
    • the fixture contract;
    • the shared loader: capability gate, request and library_id, preview or Also in, six-title cap, failures, movie and series only;
    • the TV filter for book titles.
  • Debug builds of both apps: pass.
  • Manual checks on phone, tablet, foldable (folded and open) and TV emulators against a review build of feat(catalog): show the collections a movie or series is in on its page silo-server#4528:
    • both row types on movie and series pages;
    • Explore all and every card open the right collection, personal collections included;
    • TV focus returns to the card after Back, and Up and Down move between the row and the rails around it.
  • Translations check: scripts/check-translations passes 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

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

Macroscope summarized bcf0cdb.

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.

Closes Silo-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 series and movie placements each hold their own nullable row, so the
section is called with a checked value instead of collectionsRow!!.
@silo-triage silo-triage Bot added the size/XXL 1000–2999 added + deleted lines (all files); change volume, not priority. label Nov 19, 2026
@silo-kody

silo-kody Bot commented Nov 19, 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 ❌

@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Explain Change →

Walkthrough

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.

Changes: Item collections feature

Layer / File(s) Summary
Catalog collections contract and retrieval
shared/src/commonMain/kotlin/org/siloserver/silo/model/catalog/ItemCollections.kt, shared/src/commonMain/kotlin/org/siloserver/silo/network/..., shared/src/commonMain/kotlin/org/siloserver/silo/repository/CatalogRepository.kt, shared/src/commonTest/.../ApiV2ContractTest.kt, shared/src/commonTest/resources/api/v2/fixtures/*, scripts/sync-apiv2-fixtures.sh
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.

Estimated code review effort: 4 (Complex) | ~45 minutes

Change: Feature

Sequence Diagram(s)

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: Passed 2

Check name Status Explanation
Title check Passed 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 Passed 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

@silo-triage silo-triage Bot added api-v2 API v2 / Huma program (epic silo-server#135) enhancement New feature or request impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish labels Nov 19, 2026
@macroscopeapp

macroscopeapp Bot commented Nov 19, 2026

Copy link
Copy Markdown

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.

Posted via Macroscope — Visible change evidence

Comment thread .silo-translations Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

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: f9e6c647-da34-4dd9-b2ba-da61805636e0
Commits

Reviewing files that changed from the base of the PR and between e158795 and dc11ace.

Files selected for processing: 67

  • .silo-translations
  • android-shared/silo-locales.properties
  • android-shared/src/androidMain/res/values-ar/strings_catalog.xml
  • android-shared/src/androidMain/res/values-b+zh+Hans/strings_catalog.xml
  • android-shared/src/androidMain/res/values-b+zh+Hant/strings_catalog.xml
  • android-shared/src/androidMain/res/values-cs/strings_catalog.xml
  • android-shared/src/androidMain/res/values-da/strings_catalog.xml
  • android-shared/src/androidMain/res/values-de/strings_catalog.xml
  • android-shared/src/androidMain/res/values-es/strings_catalog.xml
  • android-shared/src/androidMain/res/values-fi/strings_catalog.xml
  • android-shared/src/androidMain/res/values-fr/strings_catalog.xml
  • android-shared/src/androidMain/res/values-hr/strings_catalog.xml
  • android-shared/src/androidMain/res/values-it/strings_catalog.xml
  • android-shared/src/androidMain/res/values-ja/strings_catalog.xml
  • android-shared/src/androidMain/res/values-ko/strings_catalog.xml
  • android-shared/src/androidMain/res/values-nb/strings_catalog.xml
  • android-shared/src/androidMain/res/values-nl/strings_catalog.xml
  • android-shared/src/androidMain/res/values-pl/strings_catalog.xml
  • android-shared/src/androidMain/res/values-pt-rBR/strings_catalog.xml
  • android-shared/src/androidMain/res/values-ru/strings_catalog.xml
  • android-shared/src/androidMain/res/values-sv/strings_catalog.xml
  • android-shared/src/androidMain/res/values-tr/strings_catalog.xml
  • android-shared/src/androidMain/res/values-uk/strings_catalog.xml
  • android-shared/src/androidMain/res/values/strings_catalog.xml
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/CollectionPosterCard.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/navigation/AppNavigation.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.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/ItemDetailViewModel.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/MovieDetailContent.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/SeriesDetailContent.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/home/HomeSectionRow.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvCollectionRow.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/navigation/TvAppNavigation.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvItemCollectionsRow.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvItemDetailScreen.kt
  • 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
  • scripts/sync-apiv2-fixtures.sh
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/catalog/ItemCollections.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/network/api/CatalogApi.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/network/apiv2/CatalogV2Api.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/network/apiv2/CatalogV2Models.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/network/apiv2/HomeSectionsV2Api.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/repository/CatalogRepository.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/viewmodel/ItemCollectionsRow.kt
  • shared/src/commonTest/kotlin/org/siloserver/silo/network/apiv2/ApiV2ContractTest.kt
  • shared/src/commonTest/kotlin/org/siloserver/silo/viewmodel/ItemCollectionsRowTest.kt
  • shared/src/commonTest/resources/api/v2/fixtures/SOURCE
  • shared/src/commonTest/resources/api/v2/fixtures/complete_account_identity_link_invalid_grant.json
  • shared/src/commonTest/resources/api/v2/fixtures/complete_oauth_login_invalid_grant.json
  • shared/src/commonTest/resources/api/v2/fixtures/create_account_identity_link_ticket_wrong_password.json
  • shared/src/commonTest/resources/api/v2/fixtures/delete_account_identity_last_sign_in_method.json
  • shared/src/commonTest/resources/api/v2/fixtures/get_catalog_search_capabilities_ok.json
  • shared/src/commonTest/resources/api/v2/fixtures/get_device_login_capability_ok.json
  • shared/src/commonTest/resources/api/v2/fixtures/get_watch_trickplay_not_found.json
  • shared/src/commonTest/resources/api/v2/fixtures/index.json
  • shared/src/commonTest/resources/api/v2/fixtures/list_catalog_item_collections_ok.json
  • shared/src/commonTest/resources/api/v2/fixtures/list_catalog_item_collections_single_preview.json
  • shared/src/commonTest/resources/api/v2/fixtures/list_progress_offset_rejected.json
  • shared/src/commonTest/resources/api/v2/fixtures/list_progress_profile_header_required.json
  • shared/src/commonTest/resources/api/v2/fixtures/refresh_session_provider_unavailable.json
  • shared/src/commonTest/resources/api/v2/fixtures/sign_in_with_network_identity_off_overlay.json
  • shared/src/commonTest/resources/api/v2/fixtures/theme_songs_playback_not_acceptable.json
  • shared/src/commonTest/resources/api/v2/fixtures/update_profile_null_not_clearable.json
  • shared/src/commonTest/resources/api/v2/fixtures/update_profile_ok.json

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.
@silo-kody

silo-kody Bot commented Nov 19, 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 ❌

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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.

Quick104 and others added 2 commits November 19, 2026 16:27
…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]>
@silo-kody

silo-kody Bot commented Nov 19, 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 ❌

@Quick104

Quick104 commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Review summary

Fit: 8/10 · Readiness: 8/10 — conditional (assuming CI is green)

Reviewed head: bcf0cdbd2 (updated from ee3458c7d). Since the last summary, both outside blockers have landed: Silo-Server/silo-translations#87 is released and Silo-Server/silo-server#4528 has merged.

Addressed in this review

  • 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.

Other clients

Apple Silo-Server/silo-apple#1222 and Roku Silo-Server/silo-roku#99 are still open. If Apple tvOS keeps ebook libraries off TV, its version of the row needs the same library filter.

Why these scores

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.

Comment on lines +3077 to +3079
val shownLibraries = if (hasServerCollection) {
when (val libraries = personalDataRepository.listUserLibraries()) {
is ApiResult.Success -> libraries.data.visibleOnTv()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Performance medium

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.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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.

Quick104 and others added 3 commits November 21, 2026 21:32
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]>
Silo-Server/silo-server#4528 has merged, so the fixtures come from main
instead of its branch.

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]>
@Quick104
Quick104 merged commit cb2c32d into Silo-Server:main Nov 22, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-v2 API v2 / Huma program (epic silo-server#135) enhancement New feature or request impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish size/XXL 1000–2999 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parity: collections row on movie and series pages (from Silo-Server/silo-server#4528)

2 participants