Skip to content

feat(home): add in-place Home and library section customization and collection pinning - #1266

Merged
Quick104 merged 61 commits into
mainfrom
feat/home-sections-customization
Nov 25, 2026
Merged

Quick104 merged 61 commits into
mainfrom
feat/home-sections-customization

Conversation

@Quick104

@Quick104 Quick104 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Companion translations PR: Silo-Server/silo-translations#167 (merged, released as 2026.11.25-e8c81d0)
Validation tasks: none

Other clients: Android Silo-Server/silo-android#315, Silo-Server/silo-android#316 (open PR Silo-Server/silo-android#664); Roku N/A (Home row editing is deferred in silo-roku/docs/spec.md §3.3); Web already implemented

Viewers on Apple clients had no way to reorder, hide, or add Home and library rows, adjust Home display preferences (Next Up Mode, New Releases First, Hide Watched Items), or pin personal and server collections directly onto Home or library pages without leaving the app for the web UI.

Approach

  • Profile layout contract (APIv2Client+ProfileSections, APIv2ProfileSectionModels, ProfileHomeLayout, HomeSectionsEditorModel):
    • Reads and writes /api/v2/profile/sections/settings, /api/v2/profile/sections, and /api/v2/sections/recipes with explicit coding keys so per-recipe config objects keep their server keys untouched.
    • Builds overrides the way the web client's buildSectionOverrides does: positions are written only once the profile orders the page (including moving a newly added row); until then admin rows keep the admin's positions and user-added rows keep their own. New rows are appended at one past the page's highest position (nextAppendPosition), since admin positions can be sparse.
    • Isolates in-flight drag/grab reordering in a separate draft buffer (dragDraftRows) with cancellation support, serializes resets inside saveChain with immediate post-DELETE invalidation, fences async reads by HTTPRequestIdentity and cache write tokens, and surfaces picker load failures with retry.
    • Authorizes HomePreferencesModel edits only after both the settings contract capability probe and effective-values read succeed for the current server and profile, serializing writes per key with last-confirmed rollback.
  • iPhone, iPad, iPhone Duo, and macOS (IOSHomeCustomizeView, IOSAddRowSheet, HomeView, ContentView, BrowseView, LibrariesTabView, InterfaceCustomizationView):
    • In-place Zoom-Out Shelf Mode: Entered from the Profile menu on Home or library pages (including the iPhone Duo status column with active library ID routing) and from Settings → Interface → Home Screen (with a Home + Library page switcher).
    • Pre-seeds shelf strip cards from already-loaded sections with live 3-poster filmstrips (preserving per-slot artwork provenance and episode spoiler blur), Server/Yours badges, item counts, one-tap eye visibility toggles, collapsible Hidden Rows, and context menu actions.
    • Pure-SwiftUI live drag-to-reorder lifts the rounded card itself (no UIKit List black square artifact), auto-scrolls smoothly near viewport edges, and discards drafts cleanly if SwiftUI cancels the drag gesture.
    • Native inset-grouped Add Row flow (IOSAddRowSheet): Searchable .insetGrouped catalog grouping Collections (A Collection and Row of Collections) and curated recipe families, pushing into native SwiftUI configuration screens with variant pickers, recipe-specific controls, editable Row Name, Items to Show stepper, and Hero Banner toggle.
    • Home Options sheet (IOSHomeOptionsSheet): Next Up Mode, New Releases First, Hide Watched Items, and confirmed Reset to Server Default.
  • Apple TV (TVHomeCustomizeOverlay, TVGeneralSettingsView):
    • Settings → General → Home and Library Rows lists Home and each library. Each row opens the full-screen Skyline Grab & Slide editor for that page (TVHomeSectionsSettingsSheet → TVHomeCustomizeOverlay), built as a single composite focus owner per docs/tvos-focus.md, with Select-to-grab, Up/Down draft sliding (single save on Select, draft cancel on Menu), Play/Pause or Right for row options, Options, and a TVAddRowModal with merged category headers. A library page's editor is titled with its name ("Customize Movies") and offers only layout options.
    • The editor draws on an opaque page, leaves room for the highlighted or picked-up card's scale and shadow, fades rows at the list edges, and shows Apple TV remote instructions (home.customize.tvSubtitle, home.customize.tvMovingSubtitle).
  • Quick collection curation (CollectionPlacementModel, CollectionQuickCurationViews, CollectionDetailView, MovieDetailContent, SeriesDetailContent, TVMovieDetailView, TVSeriesDetailView, APIv2Client+Collections):
    • One-tap Pin to Home + Where It Shows placement menu on collection pages (always re-reading current layout before pinning and unpinning all visible matching rows), kept on empty collections.
    • Add to Collection sheet/submenu using GET /api/v2/catalog/items/{id}/collections (lazily loaded on tvOS when opening the More menu) with error/retry handling and detail-refit deferral while sheets are open.
  • String catalog (Localizable.xcstrings, .silo-translations):
  • Scope: This PR leaves screens outside the feature as they are on main. Profile subtitle and metadata-language settings (ProfilePrefsEditor), collection-detail paging (LibraryCollectionDetailViewModel), the collections list (CollectionsViewModel), and the tvOS library page are unchanged except for these hooks: the collection pin bar, a reload when a personal collection's items change, and a library-page reload after a layout save or other refresh. ProfileSettingsWriter reports UncertainRefusal only to callers that ask for it (reportsUncertainRefusal); only Home Options does.

Validation

  • Unit tests (SiloTests, Xcode 27.2, iOS 27.2 simulator, unsigned build):
    • On 3aff552c: 82/82 passed across ProfileHomeLayoutTests (32, including new sparse-position and moved-new-row tests), HomeSectionsMutationTests (28), HomeSectionsAPITests (6), CollectionsViewModelTests (11), and LibraryCollectionDetailViewModelTests (5).
    • On 84c192d1: 66/66 passed across ProfileHomeLayoutTests, HomeSectionsMutationTests, and HomeSectionsAPITests.
    • On 62904c7d: ProfileAndQualitySettingsTests 78/78 (restored to main). Other failures in the full run were in keychain and sign-in suites (keychain_read_failed(status=-34018)), which need a signed test host; a same-setup comparison run on main was not completed.
  • Builds: tvOS on 84c192d1; macOS on 3aff552c; iOS built by the 3aff552c test run. Earlier signed iOS and tvOS builds were installed on a physical iPhone and Apple TV.
  • Apple TV (fa107fd0, fe4a0941): checked on an Apple TV simulator against a dev-builder sandbox: idle, selected and picked-up rows, Menu cancel (order restored, nothing saved), a scrolled list, Settings rows for Home, Movies and TV Shows, and hiding "Recently Added Movies" in Customize Movies removing it from the Movies page.
  • CI script checks: check-no-api-v1.sh, check-string-localized.sh, and check-catalog-text.py pass on 6dfb2f2d.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-apple/pr-1266/

Surface and build: iPhone, iPad, iPhone Duo (folded and open), and Apple TV simulators against shared dev (captured on 99b8bb6a; follow-up b1920118 moved the tvOS entry point to Settings → General only, and 1508d8d1 wired review fixes and string catalog keys). Those captures predate the later review-fix commits, which added error banners and retry flows they don't show. 62904c7d restored out-of-scope screens to main and changes nothing the captures show. The "Apple TV editor polish" (fa107fd0) and "Apple TV library customization" (fe4a0941) sections have captures on a sandbox. macOS shares the #if !os(tvOS) SwiftUI views (SiloMac build verified).

Risks

  • Profile section customization writes to /api/v2/profile/sections; servers older than the profile-sections endpoint return an error shown inline without modifying local state.
  • The layout is read in two requests and saved with an unconditional PUT, as on the web client, so an edit made elsewhere between the read and the save can be overwritten. Closing that needs a revision on the server contract; follow-up work.

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: Antigravity in T3 Code; Claude Code in T3 Code (scope trim 62904c7d, review fixes, Apple TV polish fa107fd0, Apple TV library rows fe4a0941, position alignment 3aff552c, translations pin 6dfb2f2d)
  • Tool(s): Antigravity, Claude Code
  • Model(s): gemini-4-neon, claude-opus-5-5
  • Involvement: AI-generated, human directed and verified on physical iPhone
  • Adversarial review: n/a

🤖 Generated with Claude Code

Note

Add in-place Home and library section customization with collection pinning

  • Adds section editors for Home and libraries on iOS and tvOS, backed by new profile-section layout APIs (profileLayout, saveProfileLayout, resetProfileSectionOverrides) and a HomeSectionsEditorModel. Users can reorder, hide, add, and reset sections inline (IOSHomeCustomizeView.swift, TVHomeCustomizeOverlay.swift).
  • Adds collection pinning: CollectionPlacementModel and CollectionPinActionBar let users pin a collection to their Home, plus new collection-item add/remove APIs and a notification that reloads open collection views when items change.
  • Adds "Add to Collection" actions on media cards and detail screens for movies and series, on both iOS and tvOS.
  • Fixes stale cached reads: StartupContentPrefetcher.fetchLibrarySections retries invalidated library-section reads (up to three times), and CollectionDetailView.loadItems no longer caches or handles responses after cancellation or invalidation.
  • Risk: AppRouter.refitItemDetail() now skips reconstructing the item-detail presentation while the deferred-refit count in AppRouter.swift is nonzero; ProfileSettingsWriter may throw the new UncertainRefusal error for non-upgrade-required refusals after a failed attempt.

Macroscope summarized 6dfb2f2.

@silo-triage silo-triage Bot added the size/XXXL 3000+ added + deleted lines (all files); change volume, not priority. label Nov 24, 2026
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

Walkthrough

This pull request adds profile-scoped Home and Library section customization on iOS and tvOS. It also adds collection membership, pinning, and sharing actions, with API support and refresh handling for affected views.

Changes: Profile Section Customization

Layer / File(s) Summary
Profile layout contracts and requests
iosApp/iosApp/Networking/APIv2/APIv2ProfileSectionModels.swift, iosApp/iosApp/Networking/APIv2/APIv2Client+ProfileSections.swift, iosApp/iosApp/Networking/APIv2/APIv2Client.swift, iosApp/iosApp/Networking/SiloAPI.swift, iosApp/iosApp/Networking/ProfileSettingsWriter.swift
Adds Home and library scope models, section and recipe models, profile-layout read, save, and reset requests, and identity-aware settings writes.
Layout and preference editing
iosApp/iosApp/Screens/Home/ProfileHomeLayout.swift, iosApp/iosApp/Screens/Home/HomeSectionsEditorModel.swift, iosApp/Tests/ProfileHomeLayoutTests.swift, iosApp/Tests/Support/APIv2TestStub.swift
Adds layout overrides, row editing and persistence, preference writes and recovery, and tests for ordering, queued edits, request identity, and recovery.
iOS customization entry points and editor
iosApp/iosApp/Components/TabTopBarActions.swift, iosApp/iosApp/ContentView.swift, iosApp/iosApp/Screens/Home/*, iosApp/iosApp/Screens/Browse/BrowseView.swift, iosApp/iosApp/Screens/Browse/LibrariesTabView.swift, iosApp/iosApp/Screens/Settings/InterfaceCustomizationView.swift
Adds Home and library customization entry points, row actions, and iOS interfaces for editing rows and preferences.
tvOS customization interface
iosApp/iosApp/tvOS/Screens/Home/TVHomeCustomizeOverlay.swift, iosApp/iosApp/tvOS/Screens/Settings/TVGeneralSettingsView.swift
Adds the tvOS Home Sections settings entry and a remote-operated customization overlay with row editing, options, and Add Row pickers.
Library section refresh coordination
iosApp/iosApp/Startup/StartupContentPrefetcher.swift, iosApp/iosApp/Networking/ResponseCache.swift, iosApp/iosApp/tvOS/Screens/Libraries/TVLibraryBrowseView.swift, .silo-translations, iosApp/Tests/ProfileHomeLayoutTests.swift
Adds per-library invalidation-aware section loading and refresh handling. The translation metadata also changes.

Collection Actions

Layer / File(s) Summary
Collection APIs and data
iosApp/iosApp/Networking/APIv2/APIv2Client+Collections.swift, iosApp/iosApp/Networking/APIv2/APIv2CollectionModels.swift, iosApp/iosApp/Networking/APIv2/APIv2CatalogModels.swift, iosApp/iosApp/Networking/APIv2/APIv2LibraryModels.swift, iosApp/iosApp/Networking/Models.swift, iosApp/iosApp/Networking/SiloAPI.swift
Adds collection item and sharing requests, membership capability fields, owner-scoped API wrappers, and collection ownership and library-ID data.
Collection placement and sharing
iosApp/iosApp/Screens/Collections/CollectionPlacementModel.swift, iosApp/iosApp/Screens/Collections/CollectionQuickCurationViews.swift, iosApp/iosApp/Screens/Collections/CollectionDetailView.swift, iosApp/iosApp/Screens/Collections/CollectionsView.swift, iosApp/Tests/ProfileHomeLayoutTests.swift
Adds Home and Library pinning and eligible sharing controls. Collection detail views reload after membership changes and ignore stale item responses. Tests cover capability checks, ownership, and avoiding redundant layout saves.
Collection membership and creation
iosApp/iosApp/Screens/Collections/CollectionPlacementModel.swift, iosApp/Tests/ProfileHomeLayoutTests.swift
Adds collection loading, membership toggles, creation, uncertain-result reconciliation, and related mutation tests.
Collection actions in media and detail views
iosApp/iosApp/Screens/Collections/CollectionQuickCurationViews.swift, iosApp/iosApp/Screens/Collections/CollectionDetailView.swift, iosApp/iosApp/Components/MediaCard.swift, iosApp/iosApp/Components/MediaStateMenuItems.swift, iosApp/iosApp/Screens/Home/Feed/HomeFeedKit.swift, iosApp/iosApp/Screens/Detail/*, iosApp/iosApp/tvOS/Screens/Detail/*
Adds iOS collection sheets and tvOS collection submenus to media and detail views. Collection-item changes trigger collection detail reloads.

Estimated code review effort: 5 (Critical) | ~120 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant HomeSectionsEditorModel
  participant SiloAPI
  participant APIv2Client
  HomeSectionsEditorModel->>SiloAPI: request scoped profile layout
  SiloAPI->>APIv2Client: fetch section settings and overrides
  APIv2Client-->>SiloAPI: return settings and overrides
  HomeSectionsEditorModel->>SiloAPI: save overrides with captured auth
Loading
sequenceDiagram
  participant IOSAddToCollectionSheet
  participant AddToCollectionModel
  participant SiloAPI
  IOSAddToCollectionSheet->>AddToCollectionModel: load collections and membership
  AddToCollectionModel->>SiloAPI: request collections and membership
  IOSAddToCollectionSheet->>AddToCollectionModel: toggle or create collection membership
  AddToCollectionModel->>SiloAPI: add or remove collection item
Loading

Possibly related issues

  • Silo-Server/silo-apple#305: Adds iOS Home section reordering, visibility changes, Add Row flows, and profile-scoped section reads and writes that overlap the issue’s acceptance cases.
  • Silo-Server/silo-apple#306: Adds tvOS Home section customization and remote navigation that overlap the issue’s acceptance cases.

Suggested reviewers: rhainland, zzebrahz

Security architecture risk: Low · up to fa107

Overlapping layout changes can overwrite each other, and a change already in progress can undo a reset. The identified risk is limited to the affected profile's Home or library layout; the review did not establish unauthorized access or sharing.

Retained concerns

  • Low · reliability · inferred: A collection pin action can read the override set before a reset, then replace the whole set after the reset succeeds. The editor discards its own pre-reset state, but that cleanup does not invalidate the pin action's snapshot. If the server accepts both requests as sent, the later replacement can restore cleared rows or lose another edit in the same profile and layout scope.
Security review details

Security Blast Radius

  • inferred — The identified replacement race is bounded to one acting profile's override set for Home or a selected library. The household sharing action is a separate visibility change on a personal collection, not a layout write.

Trust Boundaries and Controls

  • observed — Profile layout requests require captured credentials with a profile and recheck the current credential identity before sending. The transport also fences the request to the expected account and credentials. These client controls do not establish server-side authorization for collection IDs or household visibility.

Resilience and Maintainability Implications

  • observed — After a sharing update fails, the client rereads the collection rather than assuming the old visibility is authoritative. If the mutation may have applied and the reread fails, it disables further toggles until state can be reloaded.

Hardening Proposals

  • proposed — Use a server-enforced revision for layout replacements and resets, or use atomic intent-based updates. A replacement based on a pre-reset snapshot should fail rather than restore cleared overrides.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change, Home and library section customization plus collection pinning, which matches the changeset. It is a single sentence in conventional-commit form and omits only the Hom…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description is related to the changeset. It explains the problem (no in-app way to reorder, hide, or add Home and library rows, adjust Home display preferences, or pin collections on Apple clients…
Full details: Title check

Explanation

The title names the main change, Home and library section customization plus collection pinning, which matches the changeset. It is a single sentence in conventional-commit form and omits only the Home display preferences and Add to Collection work.

Full details: Description check

Explanation

The description is related to the changeset. It explains the problem (no in-app way to reorder, hide, or add Home and library rows, adjust Home display preferences, or pin collections on Apple clients). It also gives the approach by file group, validation results, evidence, and risks. Those details match the summarized changes to profile-section APIs, Home and library editors, collection pinning, and tvOS customization.

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T03:26:21.699976Z 6dfb2f2 New commits
🔒 Security Review ✅ Completed 2026-11-25T03:26:47.760759Z 6dfb2f2 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@silo-kody

silo-kody Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@macroscopeapp

macroscopeapp Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The Evidence section now includes a private evidence link, which counts as evidence. Its accompanying note identifies iPhone, iPhone Duo folded/open, iPad, and Apple TV captures, but mentions only a macOS build verification. The changed shared views are also included in the SiloMac target, so Mac is an affected device. Please ensure the linked evidence page includes Mac UI captures for these remaining surfaces:

  • Home and Library customization (HomeView.swift, BrowseView.swift, IOSHomeCustomizeView.swift): before-and-after captures of the same screen and data.
  • Collection placement/sharing and Add to Collection (CollectionQuickCurationViews.swift, CollectionDetailView.swift, CollectionsView.swift, MediaCard.swift, HomeFeedKit.swift, MovieDetailContent.swift, SeriesDetailContent.swift): captures of the controls and resulting placement or membership, using the same data before and after.

Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.

Posted via Macroscope — Visible change evidence

Posted via Macroscope — Visible change evidence

@silo-triage silo-triage Bot added enhancement New feature or request evidence-required Needs before-and-after evidence before the Evidence check passes impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish labels Nov 24, 2026
@silo-triage

silo-triage Bot commented Nov 24, 2026

Copy link
Copy Markdown

Please add before-and-after Mac captures of the affected Home/library customization flow, labeled with the build or commit. The PR says macOS shares the changed views; a successful build does not show that device’s UI. Please also add a short recording demonstrating drag-to-reorder/edge auto-scroll on iOS and row movement/focus on Apple TV, since still images cannot demonstrate those interactions. See CONTRIBUTING.md → Show visible changes.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 99b8bb6a9e

ℹ️ 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".

Comment thread iosApp/iosApp/ContentView.swift Resolved
Comment thread iosApp/iosApp/ContentView.swift Resolved
@silo-kody

This comment has been minimized.

@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: 4

Nitpick comments: 1

iosApp/Tests/ProfileHomeLayoutTests.swift: 1

792-793: Trivial · Maintainability & Code Quality · Quick win

Test a queued move that must still save after rollback.

This case expects [A, B, C] after the first PUT is rejected. Dropping the second move entirely produces the same result. Keep this case to check that replay does not swap B with C. Add a case where the second move must change the restored order, and assert that its PUT contains the expected positions.

As per coding guidelines, “Add focused regression tests when they meaningfully protect changed behavior.”

Source: Coding guidelines

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: fc348864-da71-4b22-a594-24c9696d6cab
Commits

Reviewing files that changed from the base of the PR and between b192011 and da76c96.

Files selected for processing: 41

  • .silo-translations
  • iosApp/Tests/ProfileHomeLayoutTests.swift
  • iosApp/Tests/Support/APIv2TestStub.swift
  • iosApp/iosApp/Components/MediaCard.swift
  • iosApp/iosApp/Components/MediaStateMenuItems.swift
  • iosApp/iosApp/ContentView.swift
  • iosApp/iosApp/Localizable.xcstrings
  • iosApp/iosApp/Navigation/AppRouter.swift
  • iosApp/iosApp/Networking/APIv2/APIv2CatalogModels.swift
  • iosApp/iosApp/Networking/APIv2/APIv2Client+Collections.swift
  • iosApp/iosApp/Networking/APIv2/APIv2CollectionModels.swift
  • iosApp/iosApp/Networking/APIv2/APIv2LibraryModels.swift
  • iosApp/iosApp/Networking/APIv2/APIv2ProfileSectionModels.swift
  • iosApp/iosApp/Networking/Models.swift
  • iosApp/iosApp/Networking/ProfileSettingsWriter.swift
  • iosApp/iosApp/Networking/ResponseCache.swift
  • iosApp/iosApp/Networking/SiloAPI.swift
  • iosApp/iosApp/Screens/Browse/BrowseView.swift
  • iosApp/iosApp/Screens/Browse/CatalogGrid.swift
  • iosApp/iosApp/Screens/Browse/LibrariesTabView.swift
  • iosApp/iosApp/Screens/Collections/CollectionDetailView.swift
  • iosApp/iosApp/Screens/Collections/CollectionPlacementModel.swift
  • iosApp/iosApp/Screens/Collections/CollectionQuickCurationViews.swift
  • iosApp/iosApp/Screens/Collections/CollectionsView.swift
  • iosApp/iosApp/Screens/Detail/MovieDetailContent.swift
  • iosApp/iosApp/Screens/Detail/SeriesDetailContent.swift
  • iosApp/iosApp/Screens/Home/Feed/HomeFeedKit.swift
  • iosApp/iosApp/Screens/Home/HomeSectionsEditorModel.swift
  • iosApp/iosApp/Screens/Home/HomeView.swift
  • iosApp/iosApp/Screens/Home/HomeViewModel.swift
  • iosApp/iosApp/Screens/Home/IOSAddRowSheet.swift
  • iosApp/iosApp/Screens/Home/IOSHomeCustomizeView.swift
  • iosApp/iosApp/Screens/Home/ProfileHomeLayout.swift
  • iosApp/iosApp/Screens/Settings/InterfaceCustomizationView.swift
  • iosApp/iosApp/Startup/StartupContentPrefetcher.swift
  • iosApp/iosApp/tvOS/Screens/Detail/TVActionPopoverMenu.swift
  • iosApp/iosApp/tvOS/Screens/Detail/TVDetailActions.swift
  • iosApp/iosApp/tvOS/Screens/Detail/TVMovieDetailView.swift
  • iosApp/iosApp/tvOS/Screens/Detail/TVSeriesDetailView.swift
  • iosApp/iosApp/tvOS/Screens/Home/TVHomeCustomizeOverlay.swift
  • iosApp/iosApp/tvOS/Screens/Libraries/TVLibraryBrowseView.swift

Included review availability: This review used your included allowance. 2 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.

Settings › General gets a "Home and Library Rows" section with a row for
Home and one per library. Each opens the existing editor for that page:
the banner names the library ("Customize Movies"), the sheet seeds row
cards from that library's cached sections, and the footer reads Options
instead of Home Options, since Home's display preferences don't apply to
a library. The section header comes from Silo-Server/silo-translations#167
(home.customize.tvSettingsHeader).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-kody

silo-kody Bot commented Nov 25, 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 ❌
⚠️ 3 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:

  • Centralize server-relative authentication path validation
  • Enforce latest-link-wins centrally across deferred deep links
  • Rank subtitles using container capabilities and one stable cross-client policy

- New rows (Add Row, pinned collections, collection rows) are appended at
  one past the page's highest position instead of at the row count. Admin
  positions can be sparse (0, 10, 20…), so the count put new rows above
  existing ones.
- Until the profile orders the page, user-added rows keep their own
  positions instead of being rewritten to list indices, which could tie
  with or pass admin rows. Moving a newly added row counts as ordering the
  page. Both match web's buildSectionOverrides and nextAppendPosition.
- Count a rejected Reset as a save failure, so a replayed edit can't clear
  its error before it is seen.
- The Add Row picker reloads when the cached library list differs from the
  one it loaded, since a refresh writes the cache without an invalidation.
- tvOS: seed the editor's first highlight once, so preferences finishing
  later don't move the highlight off Done; Settings updates its library
  rows when the library list refreshes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-kody

silo-kody Bot commented Nov 25, 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 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: 5

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: cc830079-2371-4422-b642-389bb80470af
Commits

Reviewing files that changed from the base of the PR and between b192011 and fa107fd.

Files selected for processing: 42

  • .silo-translations
  • iosApp/Tests/ProfileHomeLayoutTests.swift
  • iosApp/Tests/Support/APIv2TestStub.swift
  • iosApp/iosApp/Components/MediaCard.swift
  • iosApp/iosApp/Components/MediaStateMenuItems.swift
  • iosApp/iosApp/ContentView.swift
  • iosApp/iosApp/Localizable.xcstrings
  • iosApp/iosApp/Navigation/AppRouter.swift
  • iosApp/iosApp/Networking/APIv2/APIv2CatalogModels.swift
  • iosApp/iosApp/Networking/APIv2/APIv2Client+Collections.swift
  • iosApp/iosApp/Networking/APIv2/APIv2CollectionModels.swift
  • iosApp/iosApp/Networking/APIv2/APIv2LibraryModels.swift
  • iosApp/iosApp/Networking/APIv2/APIv2ProfileSectionModels.swift
  • iosApp/iosApp/Networking/Models.swift
  • iosApp/iosApp/Networking/ProfileSettingsWriter.swift
  • iosApp/iosApp/Networking/ResponseCache.swift
  • iosApp/iosApp/Networking/SiloAPI.swift
  • iosApp/iosApp/Screens/Browse/BrowseView.swift
  • iosApp/iosApp/Screens/Browse/CatalogGrid.swift
  • iosApp/iosApp/Screens/Browse/LibrariesTabView.swift
  • iosApp/iosApp/Screens/Collections/CollectionDetailView.swift
  • iosApp/iosApp/Screens/Collections/CollectionPlacementModel.swift
  • iosApp/iosApp/Screens/Collections/CollectionQuickCurationViews.swift
  • iosApp/iosApp/Screens/Collections/CollectionsView.swift
  • iosApp/iosApp/Screens/Detail/MovieDetailContent.swift
  • iosApp/iosApp/Screens/Detail/SeriesDetailContent.swift
  • iosApp/iosApp/Screens/Home/Feed/HomeFeedKit.swift
  • iosApp/iosApp/Screens/Home/HomeSectionsEditorModel.swift
  • iosApp/iosApp/Screens/Home/HomeView.swift
  • iosApp/iosApp/Screens/Home/HomeViewModel.swift
  • iosApp/iosApp/Screens/Home/IOSAddRowSheet.swift
  • iosApp/iosApp/Screens/Home/IOSHomeCustomizeView.swift
  • iosApp/iosApp/Screens/Home/ProfileHomeLayout.swift
  • iosApp/iosApp/Screens/Settings/InterfaceCustomizationView.swift
  • iosApp/iosApp/Startup/StartupContentPrefetcher.swift
  • iosApp/iosApp/tvOS/Screens/Detail/TVActionPopoverMenu.swift
  • iosApp/iosApp/tvOS/Screens/Detail/TVDetailActions.swift
  • iosApp/iosApp/tvOS/Screens/Detail/TVMovieDetailView.swift
  • iosApp/iosApp/tvOS/Screens/Detail/TVSeriesDetailView.swift
  • iosApp/iosApp/tvOS/Screens/Home/TVHomeCustomizeOverlay.swift
  • iosApp/iosApp/tvOS/Screens/Libraries/TVLibraryBrowseView.swift
  • iosApp/iosApp/tvOS/Screens/Settings/TVGeneralSettingsView.swift

Included review availability: This review used your included allowance. 1 included review remains after this review. Your included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour.

- tvOS: when the row whose options are open leaves the layout (a rejected
  save rolls it back), close the popover so the editor isn't left disabled
  with no way out.
- After a rejected Reset, settle queued edits the reloaded layout already
  holds, so a later load can't replay them over another change.
- The Add Row picker also reloads when a library is renamed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-kody

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

Re-pins the catalog from the local silo-translations#167 build to its
release, which carries the new Home and library customization strings in
every language.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-kody

silo-kody Bot commented Nov 25, 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 ❌
⚠️ 3 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:

  • Centralize server-relative authentication path validation
  • Enforce latest-link-wins centrally across deferred deep links
  • Rank subtitles using container capabilities and one stable cross-client policy

@Quick104
Quick104 merged commit c24cb68 into main Nov 25, 2026
5 checks passed
@Quick104
Quick104 deleted the feat/home-sections-customization branch November 25, 2026 03:20
Quick104 added a commit to Rhainland/silo-apple that referenced this pull request Nov 25, 2026
Main's Silo-Server#1266 added the same item_collections capability flag; kept
main's wording of it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request evidence-required Needs before-and-after evidence before the Evidence check passes impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish size/XXXL 3000+ added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant