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(home): show rows of collections on Home and library pages - #979
A server with Silo-Server/silo-server#4410 can put a row of collections on Home and on library pages. Its cards are collections, sent in a new collections field, and its items list is empty. This client read only items, so phone and TV viewers never saw these rows. Home also refetched each such row, then dropped it and treated Home as partly loaded, which skipped the Home cache write on every refresh. This change shows the rows on phone and Android TV.
Approach
Shared: sections decode collections into SectionCollectionCard. Each card decodes on its own, and a card this client can't read or open is left out: a malformed card, an unknown source, or a server collection without a library. The Home hydrator, the Continue Watching dismissal filter, library media scoping and both apps' device-local row editors now keep a row with collection cards. These rows are never refetched, never the hero and never offer Explore all.
Phone:HomeSectionRow draws these rows with the existing Collections tab card, now shared as CollectionPosterCard. That card gains the collection placeholder icon for an empty poster, which also shows in the Collections tab. On Home and library pages:
A server collection opens its collection page in its library.
A personal collection opens the way the Collections screen opens it.
A personal collection another profile shared reads "by Name" under its title, and its count stays on the poster badge, as on the web. The name comes from the account's cached profile list.
Android TV: the Skyline feed draws these rows with the existing library collection card, now shared as TvCollectionCard. They use the feed's first-row focus, D-pad focus return after Back, refresh handling and marquee. A card's caption shows its count, or "by Name" for another profile's shared collection: both don't fit one poster-wide line. A focused collection shows its title in the marquee and drives the hero with its backdrop (backdrop_url, from feat(sections): send collection backdrops on rows of collections silo-server#4415, with backdrop_thumbhash as the placeholder), or with its poster when it has none or the server doesn't send one. Neighbouring cards' backdrops are warmed as title cards' are, and the marquee never requests item details for it. Home shows a server collection only once it knows the collection's library is one TV shows the profile, so ebook-library collections stay off TV. A focused card's marquee follows a refreshed title or poster.
Library pages: on a Movies- or Series-scoped view of a mixed library, cards show no item count, as the Collections grid already does, and a personal card opens in that library and scope, as on TV and in the Collections tab.
Row editor: not added. This client has no way to add, rename or delete rows. Its Home Sections editors only reorder and hide rows on the device, and they now list these rows as "N collections". Adding a row of collections stays on the web.
./gradlew test: passes (12,057 tests, 0 failures). New shared tests cover decoding (including malformed and unopenable cards), hydration without a refetch, the dismissal filter, library scoping, and the hero and Explore all rules. The TV focus-return adapter test is extended.
End to end on API 36 emulators (phone, tablet, foldable, and the android-tv image), against a server built from the silo-server branch at the commit that merged. The test data had:
a Home row of four server collections: one uploaded poster, three collages
the profile's own Home row: its own collection, a collection another profile shared, an empty collection, and a server collection
a Movies library page row
What the end-to-end run showed:
Rows, posters, collages, the placeholder, counts and "by Alex" render on Home and the library page.
Server and shared personal cards each open the right collection page.
The Home Sections editor hides, shows and counts these rows.
On TV, initial focus lands on the first collection row, D-pad moves between collection and media rows, and Back returns focus to the opened card on Home and on the library page.
Neither row has See all or Explore all.
Against a stock server without the feature, Home looks as before.
Independent review of the full diff by a separate Claude Code subagent, described under AI Disclosure.
Review-bot fixes (35e3248, f9bb79c) and the TV caption (fb25137): re-run on the emulators with the final builds. The Home, library and device captures are from those builds; the phone shows the "0" badge on the empty collection. Trying "3 items · by Alex" on TV truncated the owner, so the TV caption is "by Name" or the count.
Surface and build: debug builds of main @0867eacb1 (before) and this branch (after), same server data. Covered: phone, tablet, foldable (folded and open) and Android TV, plus a TV D-pad recording.
Collection posters are short-lived presigned URLs. When Home starts from its cache after the links expire, collection cards show the poster's blurred placeholder or the collection icon until Home's own refresh replaces them.
On TV, a row made only of server collections appears once the library list has loaded (from the offline cache on a warm start), so on a cold start it can join Home a moment after the other rows.
Known gap, left for follow-up:
The TV Home Sections editor would still list a row made only of ebook-library collections, which TV Home hides.
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, with Claude Code subagents for code mapping, the phone and TV implementation, and review. The silo-translations tools/translate.ts pass (Claude Code) translated the two new catalog keys.
Model(s): claude-opus-5-5
Involvement: Fully AI-generated; verified by the agent on emulators, human verification pending
Adversarial review:
Scope and method: a separate Claude Code subagent (claude-opus-5-5, high effort) read the whole diff against the server contract. It checked the shared data path and cache, every place that hides rows without items, TV focus, return and marquee, navigation, ebook filtering and Compose pitfalls.
Found: ebook-library cards could reach TV Home before the library list loaded or for a profile-hidden library; one malformed card could fail the whole Home read; scoped library pages showed whole-collection counts; and three minor gaps.
Fixed: the first three. TV Home now keeps only cards in libraries TV shows, cards decode leniently with a test, and counts are hidden on scoped pages. Review bots then flagged two of the minor gaps (the marquee refresh and the featured flag on TV library pages), which 35e3248 fixes; the TV editor gap is listed under Risks.
Add collection rows to Home and library pages on Android and TV
Server responses can now attach collection cards to a section; decodeSectionV2 in HomeSectionsV2Api.kt decodes them, dropping unreadable, unopenable, and duplicate cards. The new SectionCollectionCard model and ResolvedSection.hasCards live in SectionModels.kt.
Android renders the rows with CollectionPosterRow and CollectionPosterCard (CollectionPosterCard.kt); TV renders them with TvCollectionRow and TvCollectionCard (TvCollectionRow.kt). Cards show a poster, title, count badge, and a creator byline for other profiles' user collections.
Clicking a card navigates to collection detail. Personal collections open the personal-collection route; library collections open the library-collection route, preserving media scope on the Libraries screen. TV filters library-collection cards to the TV-visible libraries after a successful library load.
Many existing checks that filtered sections by nonempty items now use hasCards, so card-only rows survive hydration, media scoping, section arranging, and TV return-focus handling.
Risk: the decoding test in CollectionRowTest.kt throws during JSON parsing because its raw payload contains literal plus signs; its assertions never run.
…og branch
Generated from Silo-Server/silo-translations feat/android-collection-rows
(cbbffb9) with scripts/sync-translations --local. It adds the "by {owner}"
line for a shared personal collection and the Home Sections editor's
collection count, and brings in the catalog changes since 2026.11.16-a0142c1.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A Home or library row of type collection_posters carries its cards in
collections, not items. The client read only items, so it dropped these
rows, and the Home hydrator refetched each one and then marked Home partial,
which also skipped the Home cache write.
Decode the cards, keep the rows through the hydrator, the dismissal filter,
library media scoping, the device-local Home row editors and TV's ebook
filter, and draw them on phone and Android TV with the existing collection
poster cards. A server collection opens in its library; a personal one opens
as the Collections screen opens it, and one another profile shared reads
"by Name". TV rows join the Skyline feed's focus, return and marquee
handling. The rows have no Explore all and are never the hero.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
No actionable comments were generated in the recent review.
Walkthrough
The change adds collection-poster data support and collection rows to Android and Android TV. It adds collection-card rendering, navigation, and TV focus restoration, updates collection-aware section handling, and adds localized strings and translation metadata.
Changes: Collection Poster Rows
Layer / File(s)
Summary
Collection row contract and processing shared/src/commonMain/kotlin/org/siloserver/silo/model/section/SectionModels.kt, shared/src/commonMain/kotlin/org/siloserver/silo/network/apiv2/HomeSectionsV2Api.kt, shared/src/commonMain/kotlin/org/siloserver/silo/viewmodel/*, shared/src/commonMain/kotlin/org/siloserver/silo/catalog/LibraryMediaScope.kt, shared/src/commonTest/kotlin/org/siloserver/silo/model/section/CollectionRowTest.kt
ResolvedSection now carries collection cards and identifies collection rows. Decoding filters invalid and duplicate cards. Hydration and media scoping preserve collection rows, with tests covering these behaviors.
Android collection cards and navigation androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/CollectionPosterCard.kt, androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/MediaRow.kt, androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/navigation/Routes.kt, androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/*
Home and Libraries render collection poster cards and route clicks to collection details. The Home editor shows collection counts.
TV collection rows and focus restoration androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvCollection*, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvSkylineSectionFeed.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/focus/TvReturnAdapters.kt, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/*, androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/focus/TvReturnAdaptersTest.kt
TV Home and recommended sections render collection cards, apply library filtering, and route collection clicks. Focus and return state use collection-card identities.
Collection row translations and generated version .silo-translations, android-shared/silo-locales.properties, android-shared/src/androidMain/res/values*/strings_catalog.xml
The catalogs add localized owner labels, collection-count plurals, and collection-poster recipe names and descriptions. Generated translation metadata uses the updated identifier.
sequenceDiagram
participant HomeSectionsV2Api
participant HomeSectionHydrator
participant HomeSectionRow
participant Routes
participant CollectionDetail
HomeSectionsV2Api->>HomeSectionsV2Api: Decode and filter collection cards
HomeSectionsV2Api->>HomeSectionHydrator: Provide resolved collection section
HomeSectionHydrator->>HomeSectionRow: Retain section with collection cards
HomeSectionRow->>Routes: Handle collection-card click
Routes->>CollectionDetail: Navigate using collection source and identifier
Loading
Suggested reviewers:rxwatcher
Merge Risk: Minimal · up to 6d9d9
This change adds collection-poster rows to Android and Android TV Home and library pages. No unresolved defect was confirmed. One open question remains: whether a library's Recommended row can include a collection from another library. That depends on the server contract and could not be checked here.
Security architecture risk: Minimal · up to 6d9d9
The collection rows reuse existing collection-opening behavior and retain account and profile separation checks. No material new security, ownership, or recovery risk was identified in the inspected paths.
Retained concerns
No architecture-level concerns identified.
Security review details
Security Blast Radius
inferred — The inspected exposure is client-side collection metadata, artwork loading, collection-detail navigation, and local Home persistence under the selected server, account, and profile. Card fields do not introduce an account selector or new privilege grant; collection access still depends on authorization at the existing server endpoints, which was not verified here.
Security Findings and Attack Paths
observed — The potential path from a server-selected collection artwork URL to credential disclosure does not gain credential attachment in the inspected transport. The shared image loader uses a separate client without login or profile credential injection. Absolute artwork URLs remain accepted, as before this PR; this is not an introduced origin restriction or a verified new vulnerability.
Trust Boundaries and Controls
observed — Home section requests retain captured profile authority. Publication rechecks authority, generation, and cancellation; cached snapshots remain keyed by server, account, profile, and identity context. Cache encoding precedes the ownership recheck, and the transaction checks whether the write is still current.
observed — TV collection previews use synthetic media identities, but the feed explicitly stops those identities before item-detail prefetch. Collection clicks invoke the separate collection callback rather than treating the preview identity as a playable media item.
Resilience and Maintainability Implications
observed — The TV library change excludes collection rows from item fallback and keeps them outside featured-media handling. Retries still cancel the prior job, generation and authority checks reject stale results, and sections and loading state publish together. The change does not add a remote mutation or reservation requiring rollback.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "feat(home): show rows of collections on Home and library pages" matches the main change: the PR decodes collection-card rows from the server and renders them on Android phone and TV Home an…
Linked Issues check
Issue #978 coding requirements are met at the reviewed head (6d9d9e7), based on the PR summary and the decoding diff in HomeSectionsV2Api.kt.
- Display in order: [#978] Sections decode `collections…
Out of Scope Changes check
The reviewed changes map to the objectives of #978 or to direct support for them.
- Shared model and decoding: SectionModels.kt, HomeSectionsV2Api.kt, HomeSectionHydrator.kt, HomeViewModel.kt…
Description check
The description is specific and relevant to the changeset. It explains the problem (server sends collection rows in a new collections field while items is empty, so the client never showed them), …
Full details: Title check
Explanation
The title "feat(home): show rows of collections on Home and library pages" matches the main change: the PR decodes collection-card rows from the server and renders them on Android phone and TV Home and library pages. It is specific and in line with the changeset, so it passes.
Full details: Linked Issues check
Explanation
Issue #978 coding requirements are met at the reviewed head (6d9d9e7), based on the PR summary and the decoding diff in HomeSectionsV2Api.kt.
Display in order: [#978] Sections decode collections into SectionCollectionCard in decodeSectionV2, keep server order after dedup by rowKey, and render through CollectionPosterRow (phone) and TvCollectionRow (TV). Rows with empty items survive hydration, dismissal, library scoping and the device-local editors through hasCards.
Title, poster and placeholder: [#978] Cards show the title, poster_url or the collage, and the collection placeholder icon when no poster exists. Collection backdrops (backdrop_url, backdrop_thumbhash) are used for the TV hero, with poster fallback.
Opening cards: [#978] sectionCollectionCardRoute opens library_collection cards by library_id and id, and user cards by id. TV Home opens a server collection only when its library ID is in the loaded library list.
Owner and count: [#978] "by Name" comes from the cached profile list for another profile's personal collection. Item counts are shown, and hidden on scoped library pages.
No See all, no hero: [#978] hasCards and scopeLibrarySection leave these rows unchanged. Tests aRowOfCollectionsIsNeverTheHeroAndOffersNoExploreAll and libraryMediaScopeLeavesARowOfCollectionsAlone cover this.
Server omissions: [#978] Cards the client cannot open are dropped. Rows with no cards are omitted by hydration.
Automated tests: [#978] CollectionRowTest covers decoding, hydration without refetch, dismissal, scoping and hero/Explore-all rules. The author reports ./gradlew test passing.
Open point: [#978] The issue says to detect support with getHomeCapabilities.collection_rows. The reviewed diff for HomeSectionsV2Api.kt contains no capability check, and the summary lists none elsewhere. Rows are shown by section_type, so older servers send no such rows and show no change. This does not block the displayed behavior. The capability gate is not confirmed in this review.
Out of scope for the listed row-editor behavior: the issue asks for row creation where the client allows it. The PR states that this client has no row-creation interface and that adding rows stays on the web. This matches the issue's own condition.
Full details: Out of Scope Changes check
Explanation
The reviewed changes map to the objectives of #978 or to direct support for them.
Shared model and decoding: SectionModels.kt, HomeSectionsV2Api.kt, HomeSectionHydrator.kt, HomeViewModel.kt, LibraryMediaScope.kt and CollectionRowTest.kt implement the collection-card contract and its row rules.
Phone and TV UI: CollectionPosterCard.kt, MediaRow.kt (header extraction), Routes.kt, MainScreen.kt, HomeScreen.kt, HomeSectionRow.kt, LibrariesScreen.kt, TvCollectionCard.kt, TvCollectionRow.kt, TvSkylineSectionFeed.kt, TvReturnAdapters.kt, TvHomeScreen.kt, TvHomeSections.kt, TvLibraryDetailScreen.kt, TvLibraryDetailViewModel.kt, TvMainShell.kt, TvMediaTypeFilters.kt and TvFocusMarqueeModel.kt render, open, focus and filter these rows. The shared MediaRowHeader and CollectionPosterCard extractions reuse existing UI for the new rows and the Collections tab.
Editors and strings: HomeSectionsEditor.kt, TvHomeSectionsEditor.kt, HomeSectionPreferencesStore.kt, TvHomeSectionPreferences.kt and the strings_catalog.xml files add the "N collections" count and the owner and recipe labels. The .silo-translations and silo-locales.properties pins supply those keys. They are supporting changes for the new text.
Tests: TvReturnAdaptersTest.kt and TvCollectionMarqueeTest.kt cover the TV focus and hero behavior added for these rows.
No change was found that lacks a connection to #978. The pinned catalog revision depends on an unmerged translation branch. This is a release-process risk, not out-of-scope code.
Full details: Description check
Explanation
The description is specific and relevant to the changeset. It explains the problem (server sends collection rows in a new collections field while items is empty, so the client never showed them), the approach across shared, phone, and Android TV code, the row editor behavior, the translation sync, the validation performed, and the known risks. It names concrete components such as the collection cards, the hydrator, and the TV focus handling, which match the raw summary.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent 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: a9c7f099-9226-4a83-9759-44638528887b
Commits
Reviewing files that changed from the base of the PR and between 880ee1f and 6d9d9e7.
Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.
The Evidence section contains the literal EVIDENCE_LINK, not a published evidence URL or attached captures, so the visible changes are not reviewable yet.
Collection rows, their posters/counts/bylines, and collection navigation on Home and library pages (including scoped counts): evidence is missing for Android phone, tablet, foldable folded and open, and Android TV. Please provide before-and-after captures of the same screens with the same data on each device; include a short recording of opening and returning from a collection, and on TV show D-pad focus movement and the marquee.
The empty-poster placeholder in the phone Collections tab: evidence is missing on phone, tablet, and foldable folded and open. Please provide before-and-after captures of the same tab and data on each device.
Collection counts in the Home Sections editors: evidence is missing on phone, tablet, foldable folded and open, and Android TV. Please provide before-and-after captures of the editors on each device.
Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.
The reason will be displayed to describe this comment to others. Learn more.
Hide unverified server collections until TV libraries are known
When Home loads before the library request succeeds, shownLibraryIds is null and this early return preserves every server collection, including ebook-library collections. In TvMainShell, librariesKnown starts false and remains false after a failed request, while TvHomeScreen can already render cached or freshly loaded rows. These cards are also actionable: openHomeCollection opens their library collection route without checking its type. Keep personal collections, but withhold server collection cards until their libraries are confirmed as TV-visible. This violates the phone-only ebook exposure rule in AGENTS.md.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 35e3248. TV Home now holds server collection cards back until the shell knows which libraries TV shows the profile; personal collections still show. A card from a library TV doesn't show (ebooks) never renders, so it can't be opened either.
The reason will be displayed to describe this comment to others. Learn more.
Personal collection routes discard media scope and collection source
Opening a personal collection from a Movies or Series shelf loses its media scope, and the destination cannot reliably distinguish its shuffle source from a library collection. Pass mediaScope and identify the source as user_collection in Route.CollectionDetail.
File androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/navigation/Routes.kt, line 437:
Personal collection routes discard media scope and collection source
Pass the selected media scope and identify the collection as a user collection. Otherwise, opening a personal collection from a Movies or Series shelf drops that scope, and the destination cannot reliably distinguish its shuffle source from a library collection.
Kody rule violation: [Keep browse probes and playback actions within the displayed media scope](https://kodus.siloserver.org/settings/code-review/1247142403/kody-rules/7e6ba3d1-1ab5-47e8-8047-7ec0eb1a823e?teamId=ba9922fc-c0ea-4cf8-87bb-9d4f42ffc73e)
Suggested code:
Route.CollectionDetail(collectionId = card.id, source = "user_collection", mediaScope = mediaScope).route
The reason will be displayed to describe this comment to others. Learn more.
Partly changed in 35e3248. On a Movies- or Series-scoped library page, a personal card now opens in that library and scope (source user_collection), as the TV app and the Collections tab already do. Unscoped pages and Home keep the personal route, matching the web viewer. The source concern doesn't apply there: without a libraryId, CollectionDetailViewModel loads the personal collection and its shuffle kind is USER_COLLECTION.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the clarification. The scoped-route change in 35e3248aa addresses the media-scope concern for Movies and Series library pages. Keeping the personal route for Home and unscoped pages is consistent with the behavior you described: without a libraryId, the view model loads a personal collection and uses USER_COLLECTION for shuffle.
Based on that explanation, the original suggestion was broader than necessary.
The reason will be displayed to describe this comment to others. Learn more.
Focused collection marquee does not refresh after collection changes
The marquee retains stale titles and posters after a refresh because refreshSources searches only row.items, which collection rows leave empty. Refresh collection marquee sources from row.collections using the same synthetic item identity.
Prompt for LLM
File androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvSkylineSectionFeed.kt, lines 1069-1071:
Focused collection marquee does not refresh after collection changes
When a focused collection changes its title or poster during a refresh, the TV marquee retains the old values because `refreshSources` searches only `row.items`, which collection rows leave empty. Refresh collection marquee sources from `row.collections` using the same synthetic item identity.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 35e3248. refreshSources now also finds a focused collection card in row.collections by its marquee id and rebuilds the preview, so a refreshed title or poster replaces the old one.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update. The change described in 35e3248aa addresses the reported stale marquee issue by refreshing the focused collection’s preview from row.collections. I haven’t independently verified the commit.
The reason will be displayed to describe this comment to others. Learn more.
Featured collection rows disappear from TV library pages
Featured collection rows are excluded from TV library Recommended, but they are not rendered as a hero. Keep them in both this filter and loadRecommended.
Prompt for LLM
File androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/library/TvLibraryDetailScreen.kt, line 307:
Featured collection rows disappear from TV library pages
A collection row marked `featured` disappears from TV library Recommended because this filter and `loadRecommended` both exclude it, while collection rows are not rendered as a hero. Keep featured collection rows in both filters.
Suggested code:
state.sections.filter { (!it.featured || it.isCollectionRow) && it.hasCards }
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 35e3248. The server stores a row of collections as not featured, but if one arrives featured, the TV library page now keeps it, both in loadRecommended and the Recommended filter. It is never drawn as a hero.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update. The reported fix covers both filters and keeps featured collection rows out of the hero. I haven’t independently verified commit 35e3248aa.
The reason will be displayed to describe this comment to others. Learn more.
A malformed collection card invalidates the entire sections response
A malformed card, such as one with a nonnumeric item_count, prevents the entire sections response from decoding before isOpenable can filter it, blocking all Home and library rows. Decode collection cards individually and discard malformed entries before decoding the containing section.
Prompt for LLM
File shared/src/commonMain/kotlin/org/siloserver/silo/model/section/SectionModels.kt, line 81:
A malformed collection card invalidates the entire sections response
A card with an incorrectly typed field, such as a nonnumeric `item_count`, fails decoding of the entire sections response before `isOpenable` can filter it, preventing all Home or library rows from loading. Decode collection cards individually and discard malformed entries before decoding the containing section.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 35e3248. decodeSectionV2 now decodes each card on its own and leaves out any card it can't read or open. The test now includes a card with a non-numeric item_count and a non-object entry; the rest of the row still decodes.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update. Decoding each card independently and testing both malformed field values and non-object entries addresses the reported concern. I haven’t independently verified the commit or test results.
- TV Home holds server collection cards back until it knows which
libraries TV shows the profile, so an ebook library's collection never
shows while the library list loads or after it fails.
- Each collection card decodes on its own: a card with a wrongly typed
field is left out instead of failing the whole Home or library read.
- A personal collection on a Movies- or Series-scoped library page opens
in that library and scope, as on TV and in the Collections tab.
- The TV marquee follows a focused collection card's new title and poster
after a refresh.
- A row of collections flagged featured stays on TV library pages; it is
never a hero.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.
A personal collection another profile shared now keeps its item count
next to "by Name", as on the web: the phone card's poster badge shows the
exact count, 0 included, and the TV caption reads "3 items · by Name".
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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 settingsReview Options
The following review options are enabled or disabled:
Options
Enabled
Bug
✅
Performance
✅
Security
✅
Business Logic
❌
⚠️ 5 Kody Rule(s) were not evaluated
These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:
Validate download ownership before publishing subtitle bytes
Bind playback markers to the actual playing file
Share route-aware audio decisions and preserve original-format decoder fallback
Apply playback route eligibility consistently at admission and media loading
The Evidence link and device/build description are present, but the PR says the captures predate the final visible caption changes. Please update the linked evidence with final after-state screenshots, paired with same-screen, same-data before captures, for:
The Home collection row’s empty-card 0 poster badge (CollectionPosterCard.kt): Android phone, tablet, and foldable both folded and open.
The shared-collection count/byline caption (TvCollectionRow.kt, e.g. “3 items · by Alex”): Android TV.
The existing TV D-pad recording covers focus behavior; these captures should show the final captions. The evidence page should include the listed affected devices.
Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.
Silo-Server/silo-server#4415 sends backdrop_url and backdrop_thumbhash on
server collection cards of a row of collections. Read both as optional.
On Android TV a focused collection card now drives the Home hero with its
backdrop, the thumbhash as its placeholder, and warms its neighbours'
backdrops as title cards do. Without a backdrop (older servers, personal
collections, a collection with none) the hero keeps using the poster.
The TV caption goes back to "by Name" for another profile's shared
collection and the count otherwise: both did not fit one poster-wide line.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add the two Android strings Silo-Server/silo-android#979 needs for rows of collections: "by {owner}" under a shared personal collection, and the Home Sections editor's collection count. Translated into twenty-one languages.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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 settingsReview Options
The following review options are enabled or disabled:
Options
Enabled
Bug
✅
Performance
✅
Security
✅
Business Logic
❌
⚠️ 5 Kody Rule(s) were not evaluated
These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:
Validate download ownership before publishing subtitle bytes
Bind playback markers to the actual playing file
Share route-aware audio decisions and preserve original-format decoder fallback
Apply playback route eligibility consistently at admission and media loading
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
enhancementNew feature or requestpriority: P2Limited scope, workaround exists, or polishsize/XXL1000–2999 added + deleted lines (all files); change volume, not priority.
1 participant
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 #978
Related issue: Silo-Server/silo-server#4410 (the server change this needs; merged, not yet in a release) and Silo-Server/silo-server#4415 (collection backdrops; merged, optional)
Validation tasks: changes #315 C1, C2 and #316 C1, C2, C5 (all still Not run)
Other clients: Apple Silo-Server/silo-apple#1210; Roku Silo-Server/silo-roku#92; Web N/A (Silo-Server/silo-server#4410 added the web row and its editor)
A server with Silo-Server/silo-server#4410 can put a row of collections on Home and on library pages. Its cards are collections, sent in a new
collectionsfield, and itsitemslist is empty. This client read onlyitems, so phone and TV viewers never saw these rows. Home also refetched each such row, then dropped it and treated Home as partly loaded, which skipped the Home cache write on every refresh. This change shows the rows on phone and Android TV.Approach
collectionsintoSectionCollectionCard. Each card decodes on its own, and a card this client can't read or open is left out: a malformed card, an unknown source, or a server collection without a library. The Home hydrator, the Continue Watching dismissal filter, library media scoping and both apps' device-local row editors now keep a row with collection cards. These rows are never refetched, never the hero and never offer Explore all.HomeSectionRowdraws these rows with the existing Collections tab card, now shared asCollectionPosterCard. That card gains the collection placeholder icon for an empty poster, which also shows in the Collections tab. On Home and library pages:TvCollectionCard. They use the feed's first-row focus, D-pad focus return after Back, refresh handling and marquee. A card's caption shows its count, or "by Name" for another profile's shared collection: both don't fit one poster-wide line. A focused collection shows its title in the marquee and drives the hero with its backdrop (backdrop_url, from feat(sections): send collection backdrops on rows of collections silo-server#4415, withbackdrop_thumbhashas the placeholder), or with its poster when it has none or the server doesn't send one. Neighbouring cards' backdrops are warmed as title cards' are, and the marquee never requests item details for it. Home shows a server collection only once it knows the collection's library is one TV shows the profile, so ebook-library collections stay off TV. A focused card's marquee follows a refreshed title or poster.2026.11.17-fe23d4e.Validation
./gradlew test: passes (12,057 tests, 0 failures). New shared tests cover decoding (including malformed and unopenable cards), hydration without a refetch, the dismissal filter, library scoping, and the hero and Explore all rules. The TV focus-return adapter test is extended../gradlew :androidApp:assembleDebug :androidTvApp:assembleDebug: succeeds.scripts/check-translations: matches release2026.11.17-fe23d4e.android-tvimage), against a server built from the silo-server branch at the commit that merged. The test data had:Evidence
Evidence: https://evidence.siloserver.org/r/silo-android/pr-979/
Surface and build: debug builds of
main@0867eacb1 (before) and this branch (after), same server data. Covered: phone, tablet, foldable (folded and open) and Android TV, plus a TV D-pad recording.Risks
Checklist
AI Disclosure
tools/translate.tspass (Claude Code) translated the two new catalog keys.claude-opus-5-5claude-opus-5-5, high effort) read the whole diff against the server contract. It checked the shared data path and cache, every place that hides rows without items, TV focus, return and marquee, navigation, ebook filtering and Compose pitfalls.🤖 Generated with Claude Code
Note
Add collection rows to Home and library pages on Android and TV
decodeSectionV2in HomeSectionsV2Api.kt decodes them, dropping unreadable, unopenable, and duplicate cards. The newSectionCollectionCardmodel andResolvedSection.hasCardslive in SectionModels.kt.CollectionPosterRowandCollectionPosterCard(CollectionPosterCard.kt); TV renders them withTvCollectionRowandTvCollectionCard(TvCollectionRow.kt). Cards show a poster, title, count badge, and a creator byline for other profiles' user collections.itemsnow usehasCards, so card-only rows survive hydration, media scoping, section arranging, and TV return-focus handling.decodingtest in CollectionRowTest.kt throws during JSON parsing because its raw payload contains literal plus signs; its assertions never run.Macroscope summarized 6d9d9e7.