Repository navigation
feat(sections): cap Home and library rows at 20 cards and open each row as a full page - #908
Conversation
… all page Home and library rows loaded every card the server sent, often 100 per row. Rows now stop at 20 cards and end with an Explore all card that opens the row's full page, read from the catalog's section source with paging. On iPhone, iPad and Mac the row title opens the same page; on Apple TV the card is the only route, so rows gain no extra focus stop. Servers that advertise section_item_limit_max in /api/v2/home/capabilities get item_limit=20 on the Home and library section reads, which roughly halves the Home payload. The answer is remembered per server, and a 422 for the unknown parameter falls back to an uncapped read. The client caps rows to 20 either way. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 12 minutes. View limit details
Walkthrough
Merge Risk:
|
|
The Evidence section describes simulator/device testing but includes no screenshots, recording, or
Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a65867efa9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| init(_ section: ResolvedSection, scope: Scope, mediaScope: LibraryVideoScope? = nil) { | ||
| self.init(scope: scope, sectionId: section.id, title: section.title, mediaScope: mediaScope) |
There was a problem hiding this comment.
Incorrect source selection in SectionCatalogTarget discards the row's customized/isCustom provenance and routes every row through the section catalog source, which LibraryVideoScope.refill and its tests explicitly identify as the admin definition rather than the profile's customized row. Preserve this distinction and avoid the admin-definition source for those rows: Explore all otherwise opens different content for overridden rows or an unavailable page for profile-added rows, while the new cap removes access to their remaining inline cards.
Prompt for LLM
File iosApp/iosApp/Navigation/Route.swift:
Line 99 to 100:
Incorrect source selection in SectionCatalogTarget discards the row's customized/isCustom provenance and routes every row through the section catalog source, which LibraryVideoScope.refill and its tests explicitly identify as the admin definition rather than the profile's customized row. Preserve this distinction and avoid the admin-definition source for those rows: Explore all otherwise opens different content for overridden rows or an unavailable page for profile-added rows, while the new cap removes access to their remaining inline cards.
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
There was a problem hiding this comment.
Not on current servers. Since Silo-Server/silo-server#2742 the source=section catalog read finds the row among the profile's resolved rows: findCatalogSectionRow (internal/api/handlers/catalog_sections.go) loads loadResolvedHomeSections / loadResolvedLibrarySections, which apply sections.Resolve(adminSections, overrides). A customized row pages its profile version, and a profile-added row is found rather than answering 404. The LibraryVideoScope.refill note about the admin definition predates #2742.
Servers older than #2742 do read the admin definition. Keeping Explore all on every row there is a deliberate choice, now listed under Risks in the PR body.
There was a problem hiding this comment.
Thanks for the correction. With #2742 resolving source=section against the profile’s resolved rows, customized rows use their overrides and profile-added rows remain discoverable. SectionCatalogTarget therefore does not need to preserve customized/isCustom for this routing.
I retract the original finding: it relied on the outdated LibraryVideoScope.refill note. The pre-#2742 behavior is a documented, deliberate compatibility tradeoff—not an overlooked source-selection bug in this PR. No change to Route.swift is needed for this concern.
There was a problem hiding this comment.
Actionable comments posted: 1

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:
449447b4-48dc-4156-8c7f-a50b536a95c8
Files selected for processing: 22-
iosApp/Tests/SectionRowLimitTests.swiftiosApp/iosApp/Components/MediaRow.swiftiosApp/iosApp/Components/SectionExploreAllCard.swiftiosApp/iosApp/ContentView.swiftiosApp/iosApp/Navigation/AppRouter.swiftiosApp/iosApp/Navigation/Route.swiftiosApp/iosApp/Networking/APIv2/APIv2CatalogModels.swiftiosApp/iosApp/Networking/APIv2/APIv2Client.swiftiosApp/iosApp/Networking/APIv2/APIv2SupportModels.swiftiosApp/iosApp/Networking/SectionRowLimit.swiftiosApp/iosApp/Networking/ServerRegistry.swiftiosApp/iosApp/Networking/SiloAPI.swiftiosApp/iosApp/Screens/Browse/BrowseView.swiftiosApp/iosApp/Screens/Home/Feed/HomeFeedKit.swiftiosApp/iosApp/Screens/Home/Feed/HomeFeedRow.swiftiosApp/iosApp/Screens/Home/HomeView.swiftiosApp/iosApp/Screens/Home/SectionRow.swiftiosApp/iosApp/Screens/Sections/SectionCatalogView.swiftiosApp/iosApp/Screens/Sections/SectionCatalogViewModel.swiftiosApp/iosApp/tvOS/Components/TVSkylineSectionFeed.swiftiosApp/iosApp/tvOS/Navigation/TVMainTabView.swiftiosApp/iosApp/tvOS/Screens/Libraries/TVLibraryBrowseView.swift
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 4 reviews per hour.
-
Returning from a card's detail page reran the page's load and dropped every page after the first; the page now reloads only for a different row or an explicit refresh. A Movies or Series view stopped after four pages the filter emptied and showed nothing to page from; it now reads on until a card matches or the row ends. On Apple TV the loading state takes focus, so Back works while the first page loads. A failure read for a profile that is no longer active no longer marks the row unavailable. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 29557f44e9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| query.source = "section" | ||
| query.sectionId = target.sectionId |
There was a problem hiding this comment.
Preserve profile-customized rows when opening their full page
For a profile-customized or profile-added library row, this unconditional section-source request does not necessarily read the row the user opened. LibraryVideoScope.refill explicitly avoids this source for customized/isCustom rows because it pages the admin definition, and LibraryVideoScopeTests.testProfileCustomizedShelvesAreNotRefilledFromTheAdminDefinition protects that behavior. The new route discards both flags and always uses this source, so Explore all can show the admin row's different contents or report an existing profile-only row as unavailable. Preserve the customization context and use a source that resolves that profile's row, or retain an appropriate fallback for servers with this contract.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Same as the earlier thread on Route.swift: since Silo-Server/silo-server#2742 this read resolves the row from the profile's resolved rows (findCatalogSectionRow → loadResolvedLibrarySections → sections.Resolve(adminSections, overrides)), so customized and profile-added rows page their profile version. LibraryVideoScope.refill and its test predate #2742 and are unchanged here. Older servers read the admin definition; keeping the page there is a deliberate choice listed under Risks.
A profile switch while the page reads past filtered-out pages now stops the read before it follows the next continuation. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
The grid asks for more when the card six from the end appears. A Movies or Series page that added fewer than six cards left that trigger on a card already showing, so paging stopped. A load now reads on until it has six cards or the row ends. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Problem
Related issue: N/A
Validation tasks: none
Home and library rows load every card a row has, often 100, and the only way to see more of a row is to scroll it to the end. Silo-Server/silo-server#2742 made every Home and library row a full page on web, with an "Explore all" link on each row. The Apple apps had no way to open those pages, and the row header's "See All" button was never wired up.
Rows now stop at 20 cards and end with an "Explore all" card that opens the row's full page.
Approach
section_item_limit_maxinGET /api/v2/home/capabilities(feat(sections): let clients cap row size on the Home and library section reads silo-server#3055), the Home and library section reads also senditem_limit=20, so the server sends only those cards. The answer is remembered per server, so later launches ask for short rows on their first Home read. If a server rejectsitem_limitas an unknown parameter (422), the read runs again without it and the server is remembered as not offering it. Older servers keep working, and the client still cuts rows to 20.SectionCatalogViewpages the row throughGET /api/v2/catalog?source=section(scope=home, orscope=librarywithlibrary_id) in the existingCatalogGrid, with the same profile checks as the other catalog pages. It shows the row's item count, and has loading, empty, error and "Row unavailable" states. A mixed library's Movies or Series view keeps its filter on the page.Silo-Server/silo-android#688 makes the same change on Android phone and TV.
Validation
SectionRowLimitTestsand the Home sections, artwork sizing and library collection suites pass (21 tests).Evidence
Evidence: https://evidence.siloserver.org/r/silo-apple/pr-908/
Surface and build: iPhone and iPad simulators (iOS 27) and the Apple TV simulator, Debug builds from this branch, compared with
mainon the same server and library. Mac was built but not captured; its rows use the iPhone layout. iPhone Duo was not run; it uses the same row and page views.Risks
item_limit.Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Cap Home and library rows at 20 cards and add full-page section catalogs
SectionCatalogViewandSectionCatalogViewModelthat load all items for a section, page through them in aCatalogGrid, and filter by media scope. Reachable via a newsectionCatalogroute on both iOS and tvOS.SectionRowLimit.cappedinSiloAPI.homeSectionsandlibrarySections. When a server advertises support (probed viahomeCapabilitiesand persisted in UserDefaults per server), requests includeitem_limit, with one retry without it if the server rejects the parameter as unknown.onSeeAlltoonExploreAllthroughout the row components.SectionRowLimit.cappedin SectionRowLimit.swift and theonSeeAlltoonExploreAllrename in MediaRow.swift.Macroscope summarized 2633a49.