Skip to content

feat(settings): lay out Android and Android TV Settings like the Apple apps - #445

Merged
Quick104 merged 5 commits into
mainfrom
t3code/align-settings-with-apple
Oct 2, 2026
Merged

Quick104 merged 5 commits into
mainfrom
t3code/align-settings-with-apple

Conversation

@Quick104

@Quick104 Quick104 commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Reorganizes Android and Android TV Settings to align more closely with the Apple apps’ layout, grouping, and terminology while retaining Android-specific controls.

Changes

Android

  • Replaces the single long settings form with a searchable overview and dedicated Interface, Playback, Subtitles, Downloads, and Notifications pages. Overview rows display current selections and reflect changes made on subpages.
  • Adds an account card showing the active profile’s avatar and name, account/server details, and an Admin badge when applicable. Selecting the card opens profile switching.
  • Adopts black backgrounds, rounded grouped lists, icon tiles, title-case headers, explanatory footers, checked picker options, and centered subpage titles.
  • Groups playback controls into Streaming, Episodes, Video, Audiobooks, and reset sections, retaining picture-in-picture and existing playback preferences.
  • Moves subtitle appearance editing into Text, Background, and Layout groups with a live preview. The preview draws the style playback uses, which is the device caption style while Use Device Settings is on. Custom controls are disabled while Use Device Settings is enabled; metadata language remains feature-gated.
  • Separates download preferences, cleanup, and storage usage while retaining confirmation for removing all downloads.
  • Organizes library shortcuts, support tools, server selection, and device pairing into overview groups. Moves Show Audiobooks to Experimental, adds version/build information and a privacy-policy link, and requires confirmation before signing out.
  • Shows Show title art and Apply to all devices (added on main in feat(settings): let profiles turn off title art on Android phone and TV #430) as a Title Pages group on the Interface page.
  • Restructures Diagnostics around feature status, capture preferences, pending reports, capture actions, and sent history, including empty states and a warning when debug logging is off.

Android TV

  • Updates the settings rail, category descriptions, pane headers, spacing, and dialogs to follow the tvOS presentation.
  • Displays profile avatar images in the account row, regroups playback and subtitle controls, and uses the shared picker presentation for Skip Intros.
  • Adds a Privacy Policy dialog to the Server pane’s About section and applies the black settings background to server management.
  • Keeps rail titles and descriptions on one line, so they ellipsize instead of clipping at large font sizes.

Tests

Updates existing picture-in-picture label assertions and TV category tests for the revised presentation.

Validation

  • ./gradlew :androidApp:testDebugUnitTest :androidTvApp:testDebugUnitTest passes on the merge with main. SettingsViewModelOfflinePreferencesTest failed once in CI on 4ff4914d. It passed every local run (7 of 7), so I'm treating it as a flake, not a regression.
  • Phone and TV were checked on API 36 emulators against a dev-builder sandbox built from server main (settings revision 16). The checks covered the subtitle preview with Use Device Settings on and off, the Title Pages group on phone Interface and TV General, and the TV rail at font scale 1.3 and 1.0.
  • Validation tasks: none. No passed v1.0 case runs through these Settings screens.

Evidence: https://evidence.siloserver.org/r/silo-android/pr-445/

AI disclosure

Written with Claude Code using claude-opus-5-5. Review fixes, the merge with main, and the verification above were also done by Claude Code (claude-opus-5-5). Kody generated the summary block above, and Kody and CodeRabbit reviewed the PR.

🤖 Generated with Claude Code

Note

Rework Android and Android TV Settings into Apple-style grouped pages

  • Replaces the inline Settings editors with a searchable overview that navigates to five sub-pages (Interface, Playback, Subtitles, Downloads, Notifications), wired through new routes in Routes.kt and AppNavigation.kt. Sub-pages share the overview-owned SettingsViewModel.
  • Adds new settings UI primitives, an inset-grouped black background, Apple-aligned typography/dimensions, and a new account card with the active profile, server name, and effective subtitle appearance collected into SettingsUiState.
  • Splits the subtitle settings into Profile, Metadata, Appearance, Text, Background, and Layout sections with a live preview and a device-settings toggle. Playback settings split into Streaming, Episodes, and a Reset group.
  • Restyles the TV settings: wider rail with per-category descriptions, outlined glyphs, black background, card-style picker sheets, avatar image support via ProfileAvatarRef, and a new Privacy Policy row in the Server pane.
  • Restructures diagnostics into Feature State, Capture, Pending Reports, and Sent History sections with Apple-aligned report labels ("Crash", "Not Responding", "Unclean Shutdown", "Manual Report").
  • Risk: removes the old public settings row/composable APIs (SettingsNavigationRow, SettingsSwitchRow, SettingsDropdownRow, SettingsProse, SettingsSectionCard, divider modifiers) from SettingsScreen.kt; any out-of-tree callers must migrate to the new components. SettingsViewModel Koin provider now passes twelve constructor arguments in AndroidModule.kt.

Macroscope summarized 85b5b74.

Quick104 and others added 2 commits October 2, 2026 03:57
…e apps

Settings on the phone was one long scrolling form of web-style cards, and the
TV settings had drifted from tvOS: mono section headers, an eyebrow above each
pane, a narrow rail without descriptions, and different labels and grouping.

Phone, following the iOS Settings (silo-apple #546):
- The overview is an inset-grouped list on black: large title, account card
  (avatar, "username · host", Admin badge), search, then one-line rows with
  graphite icon tiles and the current value. Sections: Preferences, Playback,
  Library, Support, Connection, Experimental, About, Sign Out.
- Interface, Playback, Subtitles, Downloads, and Notifications are pushed
  sub-pages (new settings/* routes sharing the overview's view model), with
  Apple's labels, group order, and footers. Subtitle appearance is edited
  inline in Text, Background, and Layout groups under a live preview.
- Diagnostics follows the Apple page order with menu pickers.
- Rows use Apple's grouped palette: #1C1C1E cells, #3A3A3C tiles, green
  switches, title-case headers, and popup pickers with a checkmark.

TV, following tvOS Settings:
- Black ground, a wider rail with tvOS rail descriptions and outlined
  glyphs, and a pane header with the category glyph on a graphite tile.
- Sans section headers, tvOS-proportioned rows, a card-style option picker,
  and the tvOS confirmation card. Text keeps the 14sp TV floor.
- Playback moves Audio Language into Streaming; Subtitles orders Language,
  Behavior, Forced, splits out Metadata, and says Use Device Settings; Server
  shows Address, App Version, and Privacy Policy.

Android-only settings stay, placed in the matching group.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…e Diagnostics privacy link

Row dividers were assigned by first-composition order, so a group whose first
row changed while it stayed on screen (search filtering, a row swapping in
place in Diagnostics) drew a hairline on its top edge. Every row now draws its
hairline and the group paints over its own top edge.

The phone Diagnostics page lost its Privacy Policy link in the restyle; it is
back as the last Capture row. The subtitle preview parses colours with
toColorInt, as lint asks.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@silo-kody

silo-kody Bot commented Oct 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 ✅

@coderabbitai

coderabbitai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 172c17c1-4189-4b8c-ac89-4ef438d1a7ae

📥 Commits

Reviewing files that changed from the base of the PR and between 9518b26 and 4ff4914.

📒 Files selected for processing (25)
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/di/AndroidModule.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/SiloMenu.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/SiloTopBar.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/navigation/AppNavigation.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/navigation/Routes.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/AccountSection.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/MediaCardsSettings.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/PlaybackSettings.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/SeekIntervalSettings.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/ServerInfoSection.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/SettingsAccountCard.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/SettingsComponents.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/SettingsPages.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/SettingsScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/SettingsViewModel.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/SubtitleSettings.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/diagnostics/DiagnosticsSettingsScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/theme/Color.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/theme/Spacing.kt
  • androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/pip/MobilePictureInPictureSourceTest.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/servers/TvServerListScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/settings/TvSettingsScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/settings/TvSettingsViewModel.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/settings/diagnostics/TvDiagnosticsSettingsPane.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/settings/TvSettingsCategoryTest.kt
💤 Files with no reviewable changes (3)
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/AccountSection.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/settings/TvSettingsCategoryTest.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/ServerInfoSection.kt

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The Android Settings overview now supports search and links to dedicated settings pages. The update adds shared settings components, reorganizes Android settings controls, and revises the Android TV settings interface, including profile avatars and picker dialogs.

Changes

Android Settings redesign

Layer / File(s) Summary
Shared settings components and styling
androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/*, androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/SettingsComponents.kt, androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/theme/*
Adds reusable grouped sections, rows, dropdowns, prose, and search components. Updates settings colors, dimensions, text styles, menu labels, and optional centered top-bar titles.
Searchable overview, account state, and sub-page navigation
androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/navigation/*, androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/SettingsScreen.kt, SettingsViewModel.kt, SettingsAccountCard.kt, AccountSection.kt, ServerInfoSection.kt, androidApp/src/androidMain/kotlin/org/siloserver/silo/android/di/AndroidModule.kt
Replaces the inline settings form with a searchable overview and navigation callbacks. Adds account-card profile and server state, five sub-page routes, and shared view-model ownership for the pages. Removes the former account and server information composables.
Android settings pages and controls
androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/SettingsPages.kt, PlaybackSettings.kt, SubtitleSettings.kt, MediaCardsSettings.kt, SeekIntervalSettings.kt, diagnostics/DiagnosticsSettingsScreen.kt, androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/pip/MobilePictureInPictureSourceTest.kt
Adds dedicated settings pages and separates playback and subtitle controls into sections. Adds subtitle appearance controls and preview, updates card and seek-interval footers, reorganizes diagnostics sections, and updates the picture-in-picture label assertion.
Android TV settings updates
androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/settings/*, androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/servers/TvServerListScreen.kt, androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/settings/TvSettingsCategoryTest.kt
Updates the TV settings rail, detail header, controls, picker and confirmation dialogs. Adds profile-avatar image rendering and a Privacy Policy action, uses the shared settings background, and removes an assertion for the renamed category property.

Priority: ➖ Normal

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

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant SettingsScreen
  participant AppNavigation
  participant SettingsPages
  participant SettingsViewModel
  SettingsScreen->>AppNavigation: Open a Settings sub-page route
  AppNavigation->>SettingsPages: Render the selected page
  AppNavigation->>SettingsViewModel: Resolve the overview-owned view model
  SettingsPages->>SettingsViewModel: Read and update settings state
Loading

Possibly related PRs

Suggested reviewers: rxwatcher

Merge Risk: ⚪ Minimal · up to 4ff49

Settings on Android phones becomes a searchable overview with dedicated pages, and the Android TV settings screens get a visual refresh. No concrete defects were identified in the navigation, the account details shown in Settings, or the reorganized controls, so the change looks ready to merge.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 4ff49

The new pages reuse existing settings operations and preserve normal profile-switch and sign-out navigation. No introduced authorization bypass was established. Delayed account-state updates remain an uncertainty, so the change cannot be treated as having minimal security risk.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The inspected ownership changes primarily affect client-side Settings and account presentation. A stale update to ActiveProfileStore could propagate beyond Settings because the cache is shared; these paths do not establish new server privileges or cross-service authority.

Trust Boundaries and Controls

  • observed — External content links are mapped to Downloads, Item Detail or Player routes, while notification routes are restricted to Inbox or matching Item Detail routes. Pending external navigation waits through pre-authentication destinations, except invite claims, and checks request scope before navigation. These inspected producers do not expose the new Settings destinations.

Resilience and Maintainability Implications

  • inferred — Profile-cache reset and navigation-owner cancellation provide cleanup, but they do not by themselves prove response ownership. ActiveProfileStore.refresh captures the profile ID before its network request and publishes the result without a completion-time identity check. Whether the new Settings caller materially increases stale-identity exposure remains unresolved; no introduced vulnerability is asserted.

Hardening Proposals

  • proposed — As follow-up hardening, bind shared profile refreshes and account-sensitive completion updates to a captured server, profile and identity generation, rejecting results after reset or identity change. This addresses an inherited ownership weakness rather than a verified PR-introduced finding.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 61.46% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 96 functions across 22 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
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 clearly explains the Android and Android TV Settings reorganization, including the new layouts, sub-pages, terminology, validation, and testing.
Title check ✅ Passed The title clearly and concisely summarizes the primary change: updating Android and Android TV Settings to match the Apple apps’ layout.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Quick104 and others added 3 commits October 2, 2026 12:52
Main added "Show title art" to the old Settings overview (#430). The phone
rows now live on the Interface page as a Title Pages group, which refreshes
the store when the page opens; overview search finds it under "title art".
The TV group merged as written.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ngs is on

The phone subtitle preview drew the saved custom style even with Use Device
Settings on, while playback and the TV preview use the device caption style.
The preview now reads effectiveSubtitleAppearanceFlow; the Text, Background,
and Layout groups still edit the saved style.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Rail rows are a fixed 50dp. At font scale 1.3, "Language and appearance"
wrapped and its second line was cut off mid-glyph. Title and description now
ellipsize on one line.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Review of 4ff4914. Besides the subtitle preview finding (answered in Kody's thread), I found one defect. The branch also conflicts with main after #430 (title art), and I'm resolving that in a merge commit. The summary comment follows once the fixes are pushed.

Posted by Claude Code (claude-opus-5-5).

@silo-kody

silo-kody Bot commented Oct 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 ✅

@Quick104

Quick104 commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor Author

Review summary

Reviewed head: 85b5b74f, from an initial review of 4ff4914d.

Addressed

  • Subtitle preview ignored Use Device Settings (medium, Kody's finding, confirmed). Fixed in 2d5d668c: the preview now draws the style playback uses, and the editors still edit the saved style.
  • TV rail descriptions clipped at large font sizes (low). Fixed in 85b5b74f: rail text ellipsizes on one line.
  • Conflict with main after feat(settings): let profiles turn off title art on Android phone and TV #430 (title art). Resolved in 0819dedc. On the phone, the title-art switches moved from the old overview to a Title Pages group on the Interface page, which refreshes the store when it opens. Overview search finds it under "title art". The TV group merged unchanged.
  • ci / Unit tests failure on 4ff4914d (SettingsViewModelOfflinePreferencesTest). It passed all 7 local runs on the PR head and the merge. It's a timing flake, not something this PR caused.

Remaining (not blocking)

  • ActiveProfileStore.refresh() publishes its result without re-checking that the active profile is unchanged. Settings now calls it on open, so a reset that lands mid-fetch could briefly bring back the previous profile. The window only opens when the profile cache is empty. The weakness predates this PR, so it's a follow-up.
  • Only the static "Audio Quality: Best Compatible" info row is gone from TV Playback. Every other phone and TV control is still reachable.

Validated features: none affected. The passed v1.0 cases on Android (Calendar, person pages) don't run through these Settings screens.

Validation: unit tests pass for phone and TV. On API 36 phone and TV emulators against a dev-builder sandbox, I checked the subtitle preview with Use Device Settings off and on, title art on phone Interface and TV General, and the TV rail at font scale 1.3 and 1.0.

Evidence: https://evidence.siloserver.org/r/silo-android/pr-445/

Mergeability: 9/10 — ready. The approach and fit hold, both findings are fixed and verified, Kody accepted the preview fix, and every check on 85b5b74f passed (Lint, Unit tests, Release readiness). The remaining profile-refresh race predates this PR and is a follow-up.

Posted by Claude Code (claude-opus-5-5).

@Quick104
Quick104 merged commit 1e903dd into main Oct 2, 2026
6 checks passed
@Quick104
Quick104 deleted the t3code/align-settings-with-apple branch October 2, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant