Skip to content

feat(navigation): fix the top menu and move Requests to the profile menu - #981

Merged
Quick104 merged 2 commits into
mainfrom
feat/fixed-top-menu
Nov 2, 2026
Merged

Quick104 merged 2 commits into
mainfrom
feat/fixed-top-menu

Conversation

@Quick104

@Quick104 Quick104 commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: changes #329 C3, C4

The top menu doesn't match across TV apps. On Apple TV, Requests is a tab at the end of the top bar, and people can reorder, hide, and pin items through a synced menu editor. Android TV and Roku use a fixed bar. On iPhone and iPad the same editor can drop For You and Calendar from the tab bar, and the iPad editor lists Movies and Series tabs the sidebar never shows. This change gives every Apple surface a fixed menu and moves Requests on Apple TV into the profile menu.

Approach

  • Apple TV: the top bar is Search, Home, Movies, Series, Music, Audiobooks, For You, Calendar, the same as Android TV and Roku. A library-type tab shows only when the profile has a library of that type, and Audiobooks also needs Show Audiobooks. Requests is a profile menu row after History while the server enables it, and opens the Requests page the way the tab did. Settings › General › Top Menu keeps only the Show Audiobooks switch.
  • iPhone and iPad: the tabs (and the iPad sidebar) are always Home, Libraries, For You, Calendar, plus Downloads when available. Requests stays in the profile menu.
  • Mac: the sidebar keeps every library and its Discover group, and no longer reads a synced order for For You and Calendar.
  • Settings: the Primary Menu editor and library pinning are removed on iOS, iPadOS and macOS. The settings store stops syncing nav.primary_menu and nav.shortcuts. It drops queued writes for them left in older caches, so they don't show as held changes. Card presentation still syncs.
  • Menus saved on the server are ignored, not deleted, so web and other clients are unaffected.
  • The iPhone Show Audiobooks switch's VoiceOver hint now says it shows audiobook libraries in Libraries and Search, since there is no Audiobooks tab on iPhone or iPad.

Companion changes, both merged: Silo-Server/silo-android#782 (Android TV Requests into the profile menu) and Silo-Server/silo-roku#28 (Requests into the avatar menu).

Validation

  • silo-build tvOS, iOS and macOS app builds: succeeded. The iOS and tvOS test bundles compile. The latest commit (30d2046) changes only the hint text, and the CI regression builds run on it.
  • iOS unit tests for every touched class (settings store, Mac sidebar, tab layout, library scope, settings writes) on an iPhone 17 Pro simulator: pass. 21 sign-in token tests in SettingValuesAPITests and SettingValueWritesTests fail identically on unmodified main.
  • tvOS unit tests: not run. Those include the new top-bar order tests, which compile.
  • Simulator runs against a shared dev server, before and after: Apple TV bar, profile menu, Requests page and Back, and settings; iPhone tab bar and Interface settings; iPad sidebar and Interface settings.
  • A physical Apple TV: the signed build of 30d2046 installed and its metadata verified. It didn't launch because the TV was asleep.

Evidence

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

Surface and build: Apple TV 4K (tvOS 27.0), iPhone 17 Pro and iPad Pro 11-inch (iOS 27.0) simulators, Debug builds of main and this branch.

Not captured:

  • iPhone Duo: on the shared simulator pool every capture is black, and the fold command can't change posture there.
  • Mac: capturing it needs UI automation on a shared Mac's desktop, pending a maintainer's go-ahead.

Duo shares the iPhone tab destinations and Interface view.

Risks

  • People who customized their menu lose that layout without notice. Their saved value stays on the server, so a later change could read it again.
  • Pinned library tabs on Apple TV and iPhone go away. Those libraries stay reachable from the type tab's library list or the Libraries tab.

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 says there is none.

AI Disclosure

  • Harness: Claude Code (in T3 Code)
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated; not yet verified by a human
  • Adversarial review: n/a

🤖 Generated with Claude Code

Apple TV's top bar is now a fixed Search, Home, Movies, Series, Music,
Audiobooks, For You, Calendar, matching Android TV and Roku. Library tabs
appear only when a matching library exists; Audiobooks also needs Show
Audiobooks. Requests moves from the bar into the profile menu.

The synced menu editor and library pinning are removed on every Apple
platform. iPhone and iPad use the fixed Home, Libraries, For You,
Calendar, Downloads tabs; the Mac sidebar no longer reads a synced
order. The store stops syncing nav.primary_menu and nav.shortcuts and
drops queued writes for them from older caches.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added the size/XXXL 3000+ added + deleted lines (all files); change volume, not priority. label Nov 2, 2026
@silo-kody

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

@chatgpt-codex-connector

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

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T02:38:40.291086Z 999246f PR opened
🔒 Security Review ✅ Completed 2026-11-02T02:40:06.265559Z 999246f PR opened
ℹ️ 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.

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Walkthrough

Apple clients remove primary-menu and library-shortcut customization. Navigation destinations are fixed, tvOS roots depend on available libraries and the audiobook setting, and library browsing uses aggregate or fixed-library selection. Interface settings retain card presentation, title art, and theme music.

Changes: Apple navigation and library browsing

Layer / File(s) Summary
Remove menu and shortcut preference support
iosApp/iosApp/Navigation/UICustomizationPreferences.swift, iosApp/iosApp/Networking/APIv2/*Settings.swift, iosApp/iosApp/Networking/SiloAPI+Settings.swift, iosApp/Tests/Support/FakeUICustomizationTransport.swift, related settings tests
The customization store and API remove primary-menu and shortcut state and operations. Card-presentation settings remain supported.
Build fixed navigation roots
iosApp/iosApp/ContentView.swift, iosApp/iosApp/Navigation/MacSidebarSections.swift, iosApp/iosApp/tvOS/Navigation/*, iosApp/Tests/MacSidebarSectionsTests.swift, iosApp/Tests/MainTabLayoutSelectionTests.swift, iosApp/Tests/TVMenuEntryFocusStateTests.swift, docs/skyline-design-guide.md
Apple navigation uses fixed app destinations and library-derived tvOS roots. Requests is available in the profile menu when enabled. The guide and tests describe fixed tab ordering and placement.
Resolve library roots and media scope
iosApp/iosApp/Screens/Browse/LibrariesTabView.swift, iosApp/iosApp/tvOS/Screens/Libraries/*, iosApp/iosApp/Startup/StartupContentPrefetcher.swift, iosApp/Tests/BrowseViewModelTests.swift, iosApp/Tests/LibraryVideoScopeTests.swift
Library selection uses aggregate or fixed-library roots. Mixed-library video scope follows the selected Movies or Series choice. Startup prefetch resolves one root library.
Remove menu editors from interface settings
iosApp/iosApp/Screens/Settings/*, iosApp/iosApp/tvOS/Screens/Settings/TVGeneralSettingsView.swift
The settings views remove primary-menu editing and retain card, title-art, and theme-music preferences. The tvOS settings view keeps the Show Audiobooks toggle.

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

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant TVMainTabView
  participant TVRootDestination
  participant TVProfileDropdown
  participant RequestsFeatureStore
  TVMainTabView->>TVRootDestination: visibleRoots(libraries, showAudiobooks)
  TVRootDestination-->>TVMainTabView: ordered visible roots
  TVProfileDropdown->>RequestsFeatureStore: check isEnabled
  RequestsFeatureStore-->>TVProfileDropdown: enabled state
  TVProfileDropdown->>TVMainTabView: onRequests action opens requestsHub
Loading

Suggested labels: enhancement, api-v2, impact: usability, priority: P2, needs-review, evidence-required, size/XXL

Suggested reviewers: rhainland, rxwatcher

Security architecture risk: Low · up to 99924

The change removes navigation customization without an established expansion of privileges or accessible libraries. Requests retains its existing visibility condition. Remaining uncertainty concerns server-side authorization and profile-switch ordering for held settings changes, rather than a demonstrated new attack path.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The demonstrated changed exposure is Apple-client navigation and profile/client-family presentation state. The inspected paths do not establish a new administrative operation or authority source; Requests and library operations continue through existing destinations and APIs. Server-side enforcement remains outside the inspected evidence.

Trust Boundaries and Controls

  • inferred — Requests visibility and media-category filtering are client presentation controls, not proof of authorization. Moving Requests preserves its previous visibility predicate; selecting a different media scope does not itself grant access to a library absent from the supplied list.

Resilience and Maintainability Implications

  • inferred — Manual held-change retry obtains the current operation context without first proving that the in-memory outbox was loaded for that owner. This sequencing ambiguity already exists in the base. Profile-change and settings-entry refreshes provide counterevidence, but their ordering before a retry click was not established; it is not treated as a PR-introduced finding.

Hardening Proposals

  • proposed — As follow-up hardening, require held retries to match the loaded outbox owner, or reload the matching cache before replay. This would make ownership independent of UI refresh ordering; it addresses the pre-existing ambiguity rather than an established regression.
Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 41.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely summarizes the primary changes: fixing navigation and moving Requests to the profile menu.
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 pull request description directly matches the changeset. It explains the fixed navigation menus, Requests relocation, removal of menu customization and shortcut synchronization, platform-specific …
Full details: Description check

Explanation

The pull request description directly matches the changeset. It explains the fixed navigation menus, Requests relocation, removal of menu customization and shortcut synchronization, platform-specific behavior, validation, and risks.

Full details: Docstring Coverage

Explanation

Docstring coverage is 41.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 48 functions across 24 files. (1 skipped: 1 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Review coverage is incomplete: 1 file could not be fully reviewed. Findings from completed review steps are included; see review info for details.

@macroscopeapp

macroscopeapp Bot commented Nov 2, 2026

Copy link
Copy Markdown

Visible changes lack reviewable evidence: the Evidence section contains only the EVIDENCE_LINK placeholder, with no published evidence URL or attached captures. The validation notes describe simulator runs but do not provide evidence captures.

  • Fixed iPhone tabs and Libraries browsing, plus removal of Primary Menu editing (ContentView.swift, LibrariesTabView.swift, InterfaceCustomizationView.swift): add before-and-after captures of the same screens on iPhone and iPad. The stated same-destinations/settings rationale covers iPhone Duo folded and open; the changed iOS navigation does not add a Duo-specific branch.
  • Mac sidebar changes to individual library rows and a Discover group, and removal of menu editing (ContentView.swift, MacSidebarSections.swift, InterfaceCustomizationView.swift): add before-and-after Mac captures. The stated same-tab-destinations rationale does not cover the Mac-specific sidebar changes.
  • Apple TV's fixed top bar, Requests profile-menu entry, and Top Menu settings (TVMainTabView.swift, TVTopMenuBar.swift, TVGeneralSettingsView.swift): add before-and-after captures of the bar, profile menu, and settings; include a recording of the focus/navigation flow into Requests and back.

Replace the placeholder with the published evidence URL or attach the captures and recording.

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

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 priority: P2 Limited scope, workaround exists, or polish labels Nov 2, 2026
@silo-triage

silo-triage Bot commented Nov 2, 2026

Copy link
Copy Markdown

Evidence is incomplete for the affected Mac and iPhone Duo surfaces. The description says Mac sidebar ordering and Interface settings change, but skips captures because the views are shared. CONTRIBUTING.md requires captures for each affected device, including iPhone Duo folded and open; shared code does not make those devices unaffected. Please add before-and-after Mac sidebar/Interface captures and iPhone Duo tab/Interface captures in both postures, labeled with their builds.

@coderabbitai coderabbitai Bot added api-v2 API v2 / Huma program (epic silo-server#135) impact: usability Core flow broken or severely blocked needs-review Needs maintainer review to resolve uncertain classification, scope, or changed evidence. size/XXL 1000–2999 added + deleted lines (all files); change volume, not priority. labels Nov 2, 2026

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

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Minor · Update the stale "Show Audiobooks" subtitle. · IOSSettingsOverview.swift:289

iosApp/iosApp/Screens/Settings/IOSSettingsOverview.swift:289
Minor · Functional Correctness · Quick win

Update the stale "Show Audiobooks" subtitle.

This PR makes the iPhone and iPad tabs fixed: Home, Libraries, For You, Calendar, and optionally Downloads. Audiobooks is no longer a main-navigation tab on these platforms. The toggle now only controls whether audiobook libraries are visible. LibrariesTabView reads navPrefs.showAudiobooks to decide this. The subtitle "Add Audiobooks to the main navigation" now gives users the wrong expectation.

✏️ Proposed text fix
-                    subtitle: "Add Audiobooks to the main navigation",
+                    subtitle: "Show audiobook libraries in Libraries",

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: 1cc0f1e4-e7f3-4a58-b919-8335e88c124a
Commits

Reviewing files that changed from the base of the PR and between cc87791 and 999246f.

Files selected for processing: 32
  • docs/skyline-design-guide.md
  • iosApp/Tests/AdvisoryAgePreferenceStoreTests.swift
  • iosApp/Tests/BrowseViewModelTests.swift
  • iosApp/Tests/EpisodeSpoilerTests.swift
  • iosApp/Tests/LibraryVideoScopeTests.swift
  • iosApp/Tests/MacSidebarSectionsTests.swift
  • iosApp/Tests/MainTabLayoutSelectionTests.swift
  • iosApp/Tests/SeekIntervalTests.swift
  • iosApp/Tests/SettingValueWritesTests.swift
  • iosApp/Tests/SettingValuesAPITests.swift
  • iosApp/Tests/Support/FakeUICustomizationTransport.swift
  • iosApp/Tests/TVMenuEntryFocusStateTests.swift
  • iosApp/Tests/ThemeMusicPreferencesTests.swift
  • iosApp/Tests/TitleArtPreferencesTests.swift
  • iosApp/Tests/UICustomizationPreferencesTests.swift
  • iosApp/iosApp/ContentView.swift
  • iosApp/iosApp/Navigation/MacSidebarSections.swift
  • iosApp/iosApp/Navigation/UICustomizationPreferences.swift
  • iosApp/iosApp/Networking/APIv2/APIv2Client+Settings.swift
  • iosApp/iosApp/Networking/APIv2/APIv2RetrySafety.swift
  • iosApp/iosApp/Networking/APIv2/APIv2SettingsModels.swift
  • iosApp/iosApp/Networking/SiloAPI+Settings.swift
  • iosApp/iosApp/Screens/Browse/LibrariesTabView.swift
  • iosApp/iosApp/Screens/Settings/IOSSettingsOverview.swift
  • iosApp/iosApp/Screens/Settings/InterfaceCustomizationView.swift
  • iosApp/iosApp/Startup/StartupContentPrefetcher.swift
  • iosApp/iosApp/tvOS/Navigation/TVMainTabView.swift
  • iosApp/iosApp/tvOS/Navigation/TVPrimaryMenuProjection.swift
  • iosApp/iosApp/tvOS/Navigation/TVTopMenuBar.swift
  • iosApp/iosApp/tvOS/Screens/Libraries/TVLibraryPillRow.swift
  • iosApp/iosApp/tvOS/Screens/Libraries/TVLibraryTypeTabView.swift
  • iosApp/iosApp/tvOS/Screens/Settings/TVGeneralSettingsView.swift
Files with no reviewable changes: 6
  • iosApp/iosApp/Networking/SiloAPI+Settings.swift
  • iosApp/iosApp/tvOS/Navigation/TVPrimaryMenuProjection.swift
  • iosApp/Tests/SettingValuesAPITests.swift
  • iosApp/iosApp/Networking/APIv2/APIv2RetrySafety.swift
  • iosApp/iosApp/tvOS/Screens/Libraries/TVLibraryPillRow.swift
  • iosApp/iosApp/Networking/APIv2/APIv2Client+Settings.swift
Files not fully reviewed because their changes were unavailable: 1
  • iosApp/Tests/UICustomizationPreferencesTests.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 1 review per hour.

@silo-triage silo-triage Bot removed the size/XXL 1000–2999 added + deleted lines (all files); change volume, not priority. label Nov 2, 2026
iPhone and iPad no longer have an Audiobooks tab, so the switch only
shows or hides audiobook libraries in Libraries and Search.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Nov 2, 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 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

Review follow-up for 30d2046:

  • CodeRabbit (Show Audiobooks subtitle, outside the diff): fixed in 30d2046. iPhone and iPad no longer have an Audiobooks tab, so the switch's text now reads "Show audiobook libraries in Libraries and Search", which is what navPrefs.showAudiobooks filters. The row only uses this string as its VoiceOver hint (SettingsOverviewToggleRow.swift:21), so nothing visible changes.
  • Macroscope (evidence placeholder): that ran on the first body. The Evidence section now links the published page, which has before-and-after captures for Apple TV, iPhone and iPad.
  • silo-triage (Mac and iPhone Duo): not captured yet, for these reasons:
    • iPhone Duo: on the shared simulator pool, every Duo capture comes back black (it captures the unlit panel), and the fold command can't change posture on the pool's device set. Neither posture could be captured with the tooling available.
    • Mac: capturing the Mac app needs UI automation on a shared Mac's desktop. I've asked the maintainer whether to do that.
    • Duo uses the same tab destinations and Interface view as iPhone. The Mac sidebar change is limited to dropping the synced For You/Calendar order.

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

@AdamHeskin

Copy link
Copy Markdown

I really don't see how giving us less control of how we have our menu's set up is a positive. I had Home, Movies, TV Shows, Ambiance (a custom one I made) and it was CLEAN. I set it up manually on my phone and my Apple TV and it worked perfectly. I don't care about For You or Calendar and now those are stuck in view. I truly don't understand how less choice is a benefit on an open source project.

Quick104 added a commit that referenced this pull request Nov 8, 2026
* fix(tvos): keep the top bar on the Requests page

Requests moved into the profile menu in #981 and became a pushed route.
Pushed routes hide the Skyline top bar, so the Requests page opened
without the Silo logo, the tabs, or the profile avatar, and Up from its
first row went nowhere.

The profile menu now shows Requests as a root page, the way For You
shows Watchlist and Favorites. The bar stays, Up reaches it, and Back
from the bar returns to the tab underneath.

Fixes #1058

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(tvos): close the Requests root page when requests turn off

The profile menu now shows Requests as a root page, which
AppRouter.closeRequestsScreens can't reach: it only closes pushed
Requests routes. Close the root page the same way once the server
answers that requests are unavailable and nothing covers the page.

Route .requestsHub through navigateFromBar to the root page, as
Watchlist and Favorites are, so a later tvOS caller can't bring back
the pushed page without the top bar. Fix the comments that still
called Requests a top-bar tab.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-v2 API v2 / Huma program (epic silo-server#135) enhancement New feature or request evidence-required Needs before-and-after evidence before the Evidence check passes impact: usability Core flow broken or severely blocked needs-review Needs maintainer review to resolve uncertain classification, scope, or changed evidence. 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.

2 participants