Repository navigation
Harden Android shared and mobile foundations - #11
Conversation
|
Warning Review limit reached
Next review available in: 29 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (23)
📝 WalkthroughWalkthroughThis PR adds Android 7.0/7.1 compatibility, refactors playback version and quality selection, expands MPV playback controls, gates client surfaces behind flags, adds watched-state toggling, hardens EPUB reading, and updates Android TV UI/navigation, typography, and launcher-icon related tests and docs. ChangesAndroid 7 Compatibility and MPV Backend Gating
MPV Player Enhancements
Playback Recovery, Capability, and Version Selection
UI Feature Gating, Watched Toggle, Quality Preferences
Download Naming and EPUB Reader Hardening
Estimated code review effort: 5 (Critical) | ~120 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
Stacked TV follow-up PR: https://github.com/RXWatcher/silo-android/pull/1 This pair replaces the previous combined PR #10. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2100f0268a
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
Actionable comments posted: 7
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (3)
android-shared/src/androidMain/kotlin/org/siloserver/silo/common/downloads/DownloadStorage.kt (1)
68-76: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick winValidate the target name before deleting the existing download.
Line 68 still deletes the current file before the new Line 146 failure path runs. If a retry/resume path reaches
prepareWrite(...)withoutfileName/container, this now erases the existing bytes and then throws, turning validation into data loss.Proposed fix
fun prepareWrite( serverId: String, profileId: String, fileId: Int, fileName: String? = null, container: String? = null, mediaType: String? = null, ): DownloadTarget { + val displayName = localMediaFileName(fileId, fileName, container) publicStore.delete(serverId, profileId, fileId, uriString = null) return publicStore.create( serverId = serverId, profileId = profileId, fileId = fileId, - displayName = localMediaFileName(fileId, fileName, container), + displayName = displayName, container = container, mediaType = mediaType, ) }Also applies to: 130-147
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@android-shared/src/androidMain/kotlin/org/siloserver/silo/common/downloads/DownloadStorage.kt` around lines 68 - 76, The delete-and-recreate flow in DownloadStorage.prepareWrite should not remove the existing download before validating the new target name. Update prepareWrite (and the retry/resume path it shares with the later failure branch) so fileName/container are validated first, then call publicStore.delete only after the target is confirmed and publicStore.create can succeed. Use the prepareWrite and publicStore.create/publicStore.delete symbols to keep the existing bytes safe on validation failures.android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/SiloPlaybackService.kt (1)
162-194: 🩺 Stability & Availability | 🟠 Major | ⚡ Quick winRe-apply sync offsets after MPV swaps
createMpvPlayer()does not seedaudio-delayorsub-delay, so a backend switch to MPV can drop the active AudioSyncMs/SubtitleSyncMs until the settings flows emit again. Re-apply the current offsets aftertransferPlaybackState.🔧 Suggested fix
transferPlaybackState(from = old, to = newPlayer) + (newPlayer as? MpvPlayer)?.let { + it.setAudioDelayMs(delayProcessor.getActiveDelayMs()) + it.setSubtitleDelayMs(subtitleOffsetHolder.getOffsetMs()) + } if (newPlayer is ExoPlayer) {🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/SiloPlaybackService.kt` around lines 162 - 194, After transferPlaybackState in SiloPlaybackService, re-apply the current AudioSyncMs and SubtitleSyncMs values to the newly created MPV player because createMpvPlayer() does not initialize those delays. Use the existing playerSettingsStore.audioSyncMsFlow and playerSettingsStore.subtitleSyncMsFlow state (or the cached values they feed into audioSyncJob and subtitleSyncJob) and call the MPvPlayer setters immediately when the active player switches so the offsets persist across backend swaps without waiting for the flows to emit again.androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModel.kt (1)
410-435: 🩺 Stability & Availability | 🟠 Major | ⚡ Quick winPreserve coroutine cancellation here.
runCatching { playerSettingsStore.refreshFromServer() }and the outercatch (e: Exception)both catchCancellationException, so a cancelled load can be treated as a normal error and continue updating UI. Rethrow cancellation and only handle real failures.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModel.kt` around lines 410 - 435, The loading flow in PlayerViewModel is swallowing coroutine cancellation because both runCatching around playerSettingsStore.refreshFromServer() and the outer catch on the start/playback block catch CancellationException. Update the error handling in this section to rethrow cancellation immediately and only map real failures to UI errors, keeping the behavior around videoPlaybackCoordinator.start and the _uiState update unchanged for non-cancellation exceptions.
🧹 Nitpick comments (1)
androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/detail/MobileDetailActionsSourceTest.kt (1)
22-39: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winPrefer a behavior test here over source-string assertions.
Lines 22-39 only prove that certain text exists in the files. They will still pass if the optimistic update/revert logic in
toggleWatched()regresses, which is the risky part of this change. A smallItemDetailViewModeltest with success/failure fakes would give much better coverage.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/detail/MobileDetailActionsSourceTest.kt` around lines 22 - 39, Replace the source-string assertions in MobileDetailActionsSourceTest with a behavior-focused test against ItemDetailViewModel and toggleWatched(). Cover both success and failure paths using fakes for personalDataRepository so you verify the optimistic update and revert behavior rather than checking for hardcoded text in the source.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/mpv/MpvPlayer.kt`:
- Around line 1450-1455: Update the raw `setVideoSurface(...)` path in
`MpvPlayer` so `Stretch` uses the active surface dimensions instead of stale
defaults; `applyVideoScaleMode()` currently reads
`currentSurfaceWidth/currentSurfaceHeight`, but those may not be refreshed when
`setVideoSurface(surface)` is called directly. Ensure the surface-size state is
set or recomputed before applying video scale mode, and reuse the same logic
used by `updateVideoSurfaceSize()`/`applyVideoScaleMode()` so `Stretch` fills
the current surface consistently.
In
`@android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/PlaybackBufferPolicy.kt`:
- Around line 30-46: The hard-coded targetBufferBytes values in
PlaybackBufferPolicy are too high for Android 7 low-memory devices. Update the
PlaybackBufferPolicy selection logic in PlaybackBufferPolicy so the cap is
chosen dynamically based on device memory class or low-RAM status instead of
using one fixed ceiling for all PlaybackBufferMode values. Keep the existing
mode-specific tuning, but lower the effective cap for constrained devices and
preserve the larger cap only on devices with enough heap headroom.
In
`@androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/ItemDetailViewModel.kt`:
- Around line 526-545: Serialize watched-state updates in
ItemDetailViewModel.toggleWatched() so rapid taps cannot apply stale rollback
values out of order. Track/guard the in-flight mutation (or otherwise ensure
only the latest toggle can revert state) before calling
personalDataRepository.setWatched(contentId, target), and make
updatePlayedState(played) only restore the current authoritative value rather
than the captured current from each coroutine.
In
`@androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/reader/reflow/EpubHtmlSanitizer.kt`:
- Around line 29-35: The URI check in EpubHtmlSanitizer should reject all
absolute schemes, not just the current `://` patterns. Update the logic in the
sanitizer’s normalized-URL validation to detect any value that starts with a URI
scheme (for example `https:`, `file:`, `content:`) and strip it, while still
allowing only relative book resources. Keep the change localized to the existing
sanitizer function that performs the `normalized.startsWith(...)` checks.
In
`@androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/reader/reflow/ReflowableReader.kt`:
- Around line 207-229: The crash recovery path in ReflowableReader’s onCrash
currently remounts ReflowWebView without preserving the last known locator
state, which can reset the section to page 0 and overwrite the bookmark on the
next Relocated event. Update the onEvent handling for ReflowEvent.Relocated to
keep the latest ev.pageProgression and re-seed the relocation state used by the
WebView before webViewResetKey is incremented in onCrash, so the replacement
view starts from the current locator instead of an empty reset state.
In
`@androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/navigation/ClientSurfaceVisibilitySourceTest.kt`:
- Around line 22-35: The tests in ClientSurfaceVisibilitySourceTest are only
checking for absence of one old callback string, so they can miss broken gating
if the code is reformatted or extracted. Update
requestsRemainRoutableButHiddenFromMobileMenus and
watchTogetherCodeRemainsRoutableButHiddenFromMobileDetailOverflow to assert the
actual gated structure instead, using the relevant source strings from
accountSection, itemDetailScreen, mainScreen, and settingsScreen to verify the
callback is conditionally wrapped behind the feature flags. Prefer positive
assertions on the conditional form and the enabled flag symbols rather than
relying on a single exact negative substring.
In
`@shared/src/commonMain/kotlin/org/siloserver/silo/playback/PlaybackVersionSelector.kt`:
- Around line 32-42: playbackResolutionRank() only matches a fixed set of
aliases, so numeric inputs like 540p or 360p currently fall through as unknown.
Update the rank logic in PlaybackVersionSelector.playbackResolutionRank to
extract and parse numeric resolution values from the normalized string before
the alias checks, and return that numeric height when present. Keep the existing
alias handling as a fallback so auto and capped selection can correctly compare
actual numeric resolutions like 540p against 480p.
---
Outside diff comments:
In
`@android-shared/src/androidMain/kotlin/org/siloserver/silo/common/downloads/DownloadStorage.kt`:
- Around line 68-76: The delete-and-recreate flow in
DownloadStorage.prepareWrite should not remove the existing download before
validating the new target name. Update prepareWrite (and the retry/resume path
it shares with the later failure branch) so fileName/container are validated
first, then call publicStore.delete only after the target is confirmed and
publicStore.create can succeed. Use the prepareWrite and
publicStore.create/publicStore.delete symbols to keep the existing bytes safe on
validation failures.
In
`@android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/SiloPlaybackService.kt`:
- Around line 162-194: After transferPlaybackState in SiloPlaybackService,
re-apply the current AudioSyncMs and SubtitleSyncMs values to the newly created
MPV player because createMpvPlayer() does not initialize those delays. Use the
existing playerSettingsStore.audioSyncMsFlow and
playerSettingsStore.subtitleSyncMsFlow state (or the cached values they feed
into audioSyncJob and subtitleSyncJob) and call the MPvPlayer setters
immediately when the active player switches so the offsets persist across
backend swaps without waiting for the flows to emit again.
In
`@androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModel.kt`:
- Around line 410-435: The loading flow in PlayerViewModel is swallowing
coroutine cancellation because both runCatching around
playerSettingsStore.refreshFromServer() and the outer catch on the
start/playback block catch CancellationException. Update the error handling in
this section to rethrow cancellation immediately and only map real failures to
UI errors, keeping the behavior around videoPlaybackCoordinator.start and the
_uiState update unchanged for non-cancellation exceptions.
---
Nitpick comments:
In
`@androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/detail/MobileDetailActionsSourceTest.kt`:
- Around line 22-39: Replace the source-string assertions in
MobileDetailActionsSourceTest with a behavior-focused test against
ItemDetailViewModel and toggleWatched(). Cover both success and failure paths
using fakes for personalDataRepository so you verify the optimistic update and
revert behavior rather than checking for hardcoded text in the source.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: c41f76b4-bb00-4ce9-888e-a60d0ff00d80
⛔ Files ignored due to path filters (1)
android-shared/src/androidMain/res/raw/startup_splash.mp4is excluded by!**/*.mp4
📒 Files selected for processing (74)
README.mdandroid-shared/src/androidMain/kotlin/org/siloserver/silo/common/downloads/DownloadOpenTarget.ktandroid-shared/src/androidMain/kotlin/org/siloserver/silo/common/downloads/DownloadStorage.ktandroid-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/PlaybackBufferPolicy.ktandroid-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/PlaybackCapabilityDetector.ktandroid-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/PlaybackRecoveryPlanner.ktandroid-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/PlaybackSessionManager.ktandroid-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/SiloPlaybackService.ktandroid-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/TrackSelectionPresets.ktandroid-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/backend/MpvDeviceFloor.ktandroid-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/backend/VideoPlaybackBackendSelector.ktandroid-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/mpv/MpvPlayer.ktandroid-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/mpv/MpvVideoScaleMode.ktandroid-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/video/PlaybackContainerPolicy.ktandroid-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/video/VideoPlaybackSessionCoordinator.ktandroid-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/video/VideoPlaybackStartRequest.ktandroid-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/video/VideoPlaybackStartResult.ktandroid-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/video/VideoPlayerUiState.ktandroid-shared/src/androidMain/kotlin/org/siloserver/silo/common/ui/components/StartupSplashVideo.ktandroid-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/downloads/DownloadOpenTargetTest.ktandroid-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/downloads/DownloadStorageTest.ktandroid-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/PlaybackBufferPolicyTest.ktandroid-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/PlaybackCapabilityDetectorDolbyVisionTest.ktandroid-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/PlaybackRecoveryPlannerTest.ktandroid-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/PlaybackSessionManagerLoggingTest.ktandroid-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/SiloPlaybackServiceSubtitleSyncSourceTest.ktandroid-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/TrackSelectionPresetsSourceTest.ktandroid-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/backend/MpvDeviceFloorTest.ktandroid-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/backend/VideoPlaybackBackendSelectorTest.ktandroid-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/mpv/MpvPlayerSourceTest.ktandroid-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/video/PlaybackContainerPolicyTest.ktandroidApp/src/androidMain/AndroidManifest.xmlandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/MainScreen.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/ItemDetailScreen.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/ItemDetailViewModel.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/MovieDetailContent.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/SeriesDetailContent.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/people/PersonDetailViewModel.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/MobileVideoPlaybackStarter.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModel.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/profiles/CreateProfileScreen.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/profiles/CreateProfileViewModel.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/profiles/EditProfileScreen.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/profiles/EditProfileViewModel.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/reader/ReaderFileCache.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/reader/reflow/EpubHtmlSanitizer.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/reader/reflow/EpubReflowSource.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/reader/reflow/ReflowWebView.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/reader/reflow/ReflowableReader.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/AccountSection.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/PlaybackSettings.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/SettingsScreen.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/settings/SettingsViewModel.ktandroidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/AndroidManifestPolicyTest.ktandroidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/navigation/ClientSurfaceVisibilitySourceTest.ktandroidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/navigation/MobileDownloadVisibilityTest.ktandroidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/detail/MobileDetailActionsSourceTest.ktandroidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModelSharedCoordinatorTest.ktandroidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/profiles/ProfileQualitySourceTest.ktandroidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/reader/ReaderEngineHostSourceTest.ktandroidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/reader/ReaderFileCacheTest.ktandroidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/reader/ReflowWebViewEpubResourceTest.ktandroidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/reader/reflow/EpubHtmlSanitizerTest.ktandroidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/settings/PlaybackQualitySettingsSourceTest.ktdocs/superpowers/plans/2026-06-30-android-7-support.mddocs/superpowers/specs/2026-06-30-android-7-support-design.mdshared/src/commonMain/kotlin/org/siloserver/silo/model/feature/ClientSurfacePolicy.ktshared/src/commonMain/kotlin/org/siloserver/silo/model/profile/ProfileQualityPreference.ktshared/src/commonMain/kotlin/org/siloserver/silo/model/settings/SubtitleAppearance.ktshared/src/commonMain/kotlin/org/siloserver/silo/playback/PlaybackVersionSelector.ktshared/src/commonTest/kotlin/org/siloserver/silo/model/feature/ClientSurfacePolicyTest.ktshared/src/commonTest/kotlin/org/siloserver/silo/model/profile/ProfileQualityPreferenceTest.ktshared/src/commonTest/kotlin/org/siloserver/silo/model/settings/SubtitleAppearanceTest.ktshared/src/commonTest/kotlin/org/siloserver/silo/playback/PlaybackVersionSelectorTest.kt
…' into android-tv-parity-production-hardening
…' into android-tv-parity-production-hardening
…' into android-tv-parity-production-hardening
|
Addressed the remaining review-body items as well:
Verification passed: |
There was a problem hiding this comment.
Actionable comments posted: 14
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvCascadeSelector.kt (1)
204-208: 🩺 Stability & Availability | 🟠 Major | ⚡ Quick winDon’t swallow the post-scroll focus handoff.
After
scrollToItem(), the target row can still be uncomposed on the same frame.runCatching { it.requestFocus() }drops that failure with no retry, so entering a>6-library cascade can leave the user with no focused row. Defer the request to the next frame or reuse the token-based deferred-focus path you already use for pills.Suggested fix
if (libraries.size > 6) { val index = libraries.indexOfFirst { it.id == id } lazyListState.scrollToItem(index.coerceAtLeast(0)) + withFrameNanos { } } - libraryRequesters[id]?.let { runCatching { it.requestFocus() } } + libraryRequesters[id]?.requestFocus()🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvCascadeSelector.kt` around lines 204 - 208, The focus handoff after `lazyListState.scrollToItem()` in `TvCascadeSelector` is being swallowed by the immediate `runCatching { it.requestFocus() }`, which can fail before the target row is composed. Update the `libraries.size > 6` path to defer the focus request to the next frame or route it through the same token-based deferred-focus mechanism used for pills, so the `libraryRequesters[id]` focus is retried once the row is available.
🧹 Nitpick comments (4)
androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/servers/TvServerListFocusSourceTest.kt (1)
8-15: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winDon't lock this test to the exact one-liner.
This hard-codes
runCatching { firstFocus.requestFocus() }, so a real fix for the focus race inTvServerListScreenwill fail the test even when behavior improves. Assert the observable focus contract instead of the source string.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/servers/TvServerListFocusSourceTest.kt` around lines 8 - 15, The test in TvServerListFocusSourceTest is overly tied to the exact source implementation in TvServerListScreen by asserting a specific one-line string. Update it to verify the observable focus behavior/contract for server rows when the list materializes, rather than matching the exact `runCatching { firstFocus.requestFocus() }` text, so implementation refactors that still fix the focus race won’t break the test.androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/profiles/TvProfileQualitySourceTest.kt (1)
9-20: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winPrefer behavior tests over source-string assertions.
These asserts pin the ViewModels to exact source text, so a helper rename or harmless refactor will fail the test without changing quality serialization. Exercise the canonical value through the ViewModel/public state instead of
File(...).readText().🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/profiles/TvProfileQualitySourceTest.kt` around lines 9 - 20, The test currently asserts against source text in the ViewModel files, which makes it brittle to refactors. Update TvProfileQualitySourceTest to exercise the behavior of TvCreateProfileViewModel and TvEditProfileViewModel through their public API/state and verify the canonical quality value is persisted, instead of using File(...).readText() and string contains checks. Keep the coverage focused on the observable serialization behavior rather than implementation details.androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvCredentialKeyboardState.kt (1)
3-3: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winRename this constant to camelCase.
TV_CREDENTIAL_MAX_LENGTHis still a Kotlin property in this repo's style rules, so it should use camelCase.
As per coding guidelines, "**/*.kt: Use camelCase for Kotlin functions and properties."🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvCredentialKeyboardState.kt` at line 3, Rename the Kotlin constant TV_CREDENTIAL_MAX_LENGTH in TvCredentialKeyboardState to camelCase to match the repo’s property naming rules, and update any references to the new name wherever this constant is used so the symbol remains consistent.Source: Coding guidelines
androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvCredentialKeyboard.kt (1)
140-144: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winRename this property to camelCase.
TvCredentialActivationKeyCodesis a property, so it should follow the repo's Kotlin camelCase rule.
As per coding guidelines, "**/*.kt: Use camelCase for Kotlin functions and properties."🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvCredentialKeyboard.kt` around lines 140 - 144, Rename the Kotlin property TvCredentialActivationKeyCodes in TvCredentialKeyboard to camelCase to match the repo’s naming convention for properties. Update the declaration and any references to use a camelCase name such as tvCredentialActivationKeyCodes, keeping the same set of key codes and behavior unchanged.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/PlaybackBufferPolicy.kt`:
- Around line 24-27: `PlaybackBufferPolicy.forMode` currently treats
`PlaybackBufferDeviceProfile.Unknown` as roomy because `targetBufferBytes()`
falls through to the roomy branch; update the policy logic so Unknown is handled
as constrained by default, not as the largest cap. Use the existing
`PlaybackBufferDeviceProfile` and `targetBufferBytes()` symbols to route Unknown
(and any unresolved profile) through the constrained/safe buffer path, and make
sure the related branches in the affected policy helpers also preserve this
behavior.
In
`@androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvAnsiKeyboard.kt`:
- Around line 451-468: Vertical DPAD target selection is using raw list indices
instead of visual key positions, so the TvAnsiKeyboard navigation in
findTvAnsiVerticalTarget() and nearestFocusableKeyIndex() can jump to the wrong
key when rows contain weighted keys like Space. Update the vertical lookup to
compare against each key’s rendered horizontal position/center (derived from the
row layout/weights) rather than the slot index, and use that metric to choose
the nearest focusable key in the target row. Keep the existing
findTvAnsiVerticalTarget() flow, but make nearestFocusableKeyIndex() return the
key whose visual alignment is closest to the current keyIndex.
In
`@androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvCredentialKeyboard.kt`:
- Around line 128-137: The shouldOpenCredentialKeyboard() helper currently
treats both KeyDown and KeyUp as activation, which makes onOpenKeyboard() fire
twice for a single press in TvCredentialKeyboard. Update the key handling in
shouldOpenCredentialKeyboard() so it only returns true for one edge event
(preferably KeyDown) while keeping the existing checks for DirectionCenter,
Enter, NumPadEnter, and TvCredentialActivationKeyCodes.
In
`@androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvServerSetupScreen.kt`:
- Around line 123-131: Synchronize the URL keyboard focus with pairing state in
TvServerSetupScreen so focus is not restored to the URL field when pairing ends
while the keyboard was already visible. Update the logic around
LaunchedEffect(isActivePairing) and LaunchedEffect(isUrlKeyboardVisible) to
reset or retrigger keyboard-focus handling when pairing cancels/fails, so
keyboard visibility changes are reflected and
keyboardFirstKeyFocusRequester.requestFocus() runs again instead of leaving
focus behind the keyboard. Apply the same fix to the duplicated setup flow
referenced by the second affected block.
In
`@androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvServerUrlKeyboard.kt`:
- Around line 117-124: The shouldOpenServerUrlKeyboard helper is matching both
KeyDown and KeyUp, which can trigger onOpenKeyboard() twice from
onPreviewKeyEvent. Update TvServerUrlKeyboard so this activation check only
returns true for one phase (preferably KeyDown) while keeping the existing key
checks for Key.DirectionCenter, Key.Enter, and Key.NumPadEnter.
In
`@androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerHud.kt`:
- Around line 1045-1047: The Outline controls are reusing focus requesters from
the subtitle text/background groups, so right-navigation lands in the wrong
place. Add a dedicated FocusRequester in TvPlayerHud for the outline swatches,
then update the Outline row and the first outline swatch to use that new
requester instead of subtitleTextColorFocus or subtitleBackgroundColorFocus.
Also check the related outline UI blocks in the later sections of TvPlayerHud
and wire them consistently to the new outline focus anchor.
In
`@androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.kt`:
- Line 395: The quick subtitle picker is only handled by BackHandler, but
TvPlayerRemoteKeyBridge still remains active while showQuickSubtitlePicker is
open. Update the remote bridge guard in TvPlayerScreen so it also checks
showQuickSubtitlePicker and suppresses Play/Pause and HUD key handling whenever
the picker is visible, matching the modal behavior already used for other
overlays.
- Around line 2172-2197: In applyPlayerViewVideoFillMode, remove the extra
underlying surface scaling applied through getVideoSurfaceView() for
VideoFillMode.Zoom, since PlayerView.RESIZE_MODE_ZOOM already handles the zoom
behavior. Keep resizeModeForVideoFillMode(mode) and the logging intact, but
avoid applying the FitSurfaceScale/CropLetterboxSurfaceScale transform to the
videoSurface in Zoom mode so native 16:9 content is not double-cropped.
In
`@androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerViewModel.kt`:
- Line 612: The `selectedFileResolution` value in `TvPlayerViewModel` is staying
stuck at the launch-time `VideoPlayerUiState.Ready` value, while
`TvPlayerScreen.selectVideoQuality(...)` can change the active quality later
without updating the ViewModel. Update the ViewModel to read from the live
selected quality state, or make sure quality override success paths propagate
the new resolution back into `selectedFileResolution` before it is reused. Apply
this consistently in `startTranscodeFallback`, `PlayNextRequest`, and any other
paths that currently depend on the stale `selectedFileResolution` field.
In
`@androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/search/TvSearchScreen.kt`:
- Around line 154-185: Focus is being chosen from a stale search snapshot in
TvSearchScreen’s onSearch handler. Update the logic around SiloSearchKeyboard so
focus is moved only after the new search results are applied, not by checking
the pre-submit state.items value. Use the search result state and the
firstResultFocusRequester/firstFilterChipFocusRequester only once the refreshed
query state is available, and guard the request so it targets the currently
attached UI.
In
`@androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/servers/TvServerListScreen.kt`:
- Around line 81-85: The initial focus logic in TvServerListScreen’s
LaunchedEffect currently swallows a failed firstFocus.requestFocus() call, so it
never retries if the row is not yet attached. Replace the silent runCatching
approach with a retry mechanism that waits until the first row can actually
accept focus and attempts requestFocus again, using the existing state.servers
size-driven effect and firstFocus reference to locate the logic.
In
`@androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvServerSetupReadabilityTest.kt`:
- Around line 73-80: The ordering check in TvServerSetupReadabilityTest is too
broad because serverUrlFieldInspectsRemoteKeysBeforeFocusableCanConsumeCenter
uses the first occurrences of onPreviewKeyEvent and focusable anywhere in
TvServerUrlKeyboard.kt. Update the test to target only the URL-field modifier
chain in the TvServerUrlKeyboard block, using a more specific slice or search
anchored to the URL field’s composable/function so the assertion validates that
local ordering instead of a different earlier chain.
In `@docs/superpowers/plans/2026-07-01-android-tv-player-hud-redesign.md`:
- Around line 5-19: The plan for TvPlayerHud.kt is missing explicit adaptive
layout work for the Audio and Subtitles tabs, even though the goal requires all
tabs to avoid clipping. Update the task breakdown to include Audio/Subtitles
pane layout and scrolling-safe row/content primitives alongside Info, Stats,
Video, and Chapters, and add focused tests in the existing HUD test set to
verify those tabs render without clipping and still preserve
search/translation/picker behavior.
In `@docs/superpowers/plans/2026-07-01-tv-launcher-icon.md`:
- Around line 13-17: The plan contains machine-specific checkout and device
values, so update the instructions in the plan document to use repo-relative
paths instead of the absolute local path and replace the Google TV Streamer
serial with a placeholder or environment variable. Keep the guidance in the same
section that references the working directory and verification target so it
remains portable for anyone following the TV launcher icon plan.
---
Outside diff comments:
In
`@androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvCascadeSelector.kt`:
- Around line 204-208: The focus handoff after `lazyListState.scrollToItem()` in
`TvCascadeSelector` is being swallowed by the immediate `runCatching {
it.requestFocus() }`, which can fail before the target row is composed. Update
the `libraries.size > 6` path to defer the focus request to the next frame or
route it through the same token-based deferred-focus mechanism used for pills,
so the `libraryRequesters[id]` focus is retried once the row is available.
---
Nitpick comments:
In
`@androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvCredentialKeyboard.kt`:
- Around line 140-144: Rename the Kotlin property TvCredentialActivationKeyCodes
in TvCredentialKeyboard to camelCase to match the repo’s naming convention for
properties. Update the declaration and any references to use a camelCase name
such as tvCredentialActivationKeyCodes, keeping the same set of key codes and
behavior unchanged.
In
`@androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvCredentialKeyboardState.kt`:
- Line 3: Rename the Kotlin constant TV_CREDENTIAL_MAX_LENGTH in
TvCredentialKeyboardState to camelCase to match the repo’s property naming
rules, and update any references to the new name wherever this constant is used
so the symbol remains consistent.
In
`@androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/profiles/TvProfileQualitySourceTest.kt`:
- Around line 9-20: The test currently asserts against source text in the
ViewModel files, which makes it brittle to refactors. Update
TvProfileQualitySourceTest to exercise the behavior of TvCreateProfileViewModel
and TvEditProfileViewModel through their public API/state and verify the
canonical quality value is persisted, instead of using File(...).readText() and
string contains checks. Keep the coverage focused on the observable
serialization behavior rather than implementation details.
In
`@androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/servers/TvServerListFocusSourceTest.kt`:
- Around line 8-15: The test in TvServerListFocusSourceTest is overly tied to
the exact source implementation in TvServerListScreen by asserting a specific
one-line string. Update it to verify the observable focus behavior/contract for
server rows when the list materializes, rather than matching the exact
`runCatching { firstFocus.requestFocus() }` text, so implementation refactors
that still fix the focus race won’t break the test.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 8cc63b8d-1606-4b79-beba-3769f384e879
⛔ Files ignored due to path filters (10)
androidTvApp/src/androidMain/res/mipmap-hdpi/ic_launcher.pngis excluded by!**/*.pngandroidTvApp/src/androidMain/res/mipmap-hdpi/ic_launcher_foreground.pngis excluded by!**/*.pngandroidTvApp/src/androidMain/res/mipmap-mdpi/ic_launcher.pngis excluded by!**/*.pngandroidTvApp/src/androidMain/res/mipmap-mdpi/ic_launcher_foreground.pngis excluded by!**/*.pngandroidTvApp/src/androidMain/res/mipmap-xhdpi/ic_launcher.pngis excluded by!**/*.pngandroidTvApp/src/androidMain/res/mipmap-xhdpi/ic_launcher_foreground.pngis excluded by!**/*.pngandroidTvApp/src/androidMain/res/mipmap-xxhdpi/ic_launcher.pngis excluded by!**/*.pngandroidTvApp/src/androidMain/res/mipmap-xxhdpi/ic_launcher_foreground.pngis excluded by!**/*.pngandroidTvApp/src/androidMain/res/mipmap-xxxhdpi/ic_launcher.pngis excluded by!**/*.pngandroidTvApp/src/androidMain/res/mipmap-xxxhdpi/ic_launcher_foreground.pngis excluded by!**/*.png
📒 Files selected for processing (109)
android-shared/src/androidMain/kotlin/org/siloserver/silo/common/downloads/DownloadStorage.ktandroid-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/PlaybackBufferPolicy.ktandroid-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/SiloPlaybackService.ktandroid-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/SiloPlayerFactory.ktandroid-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/mpv/MpvPlayer.ktandroid-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/downloads/DownloadStorageTest.ktandroid-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/PlaybackBufferPolicyTest.ktandroid-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/SiloPlaybackServiceSubtitleSyncSourceTest.ktandroid-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/mpv/MpvPlayerSourceTest.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/ItemDetailViewModel.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModel.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/reader/reflow/EpubHtmlSanitizer.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/reader/reflow/ReflowableReader.ktandroidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/navigation/ClientSurfaceVisibilitySourceTest.ktandroidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/detail/MobileDetailActionsSourceTest.ktandroidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModelSharedCoordinatorTest.ktandroidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/reader/ReaderEngineHostSourceTest.ktandroidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/reader/reflow/EpubHtmlSanitizerTest.ktandroidTvApp/src/androidMain/AndroidManifest.xmlandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/MainTvActivity.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/data/preferences/TvSettingsEnums.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/di/AndroidTvModule.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvAnchoredSelectorMenu.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvAnsiKeyboard.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvAuroraChrome.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvCascadeSelector.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvEpisodeCard.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvFocusMarquee.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvFullScreenPicker.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvOptionDialog.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvPinEntryDialog.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvRootHeroBackdrop.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvTextInputDialog.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/navigation/TvAppNavigation.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/navigation/TvRoute.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/admin/TvAdminUserEditScreen.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvCredentialKeyboard.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvCredentialKeyboardState.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvLoginScreen.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvLoginViewModel.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvServerSetupScreen.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvServerUrlKeyboard.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvServerUrlKeyboardState.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvSetupScreen.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvSignupScreen.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/calendar/TvCalendarScreen.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/collections/TvCreateCollectionDialog.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvCastCrewSection.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvDetailEpisodeRail.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvDetailFactsTable.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvDetailHero.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvDetailMetadata.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvDetailSectionHeader.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvDetailVersionSelection.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvExpandableSynopsis.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvItemDetailScreen.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvItemDetailViewModel.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvMediaInfoDialog.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/people/TvPersonDetailScreen.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvHoldSeekIndicator.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerHud.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerTransportCluster.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerViewModel.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvSubtitleAppearanceOptions.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvVideoPlaybackStarter.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/profiles/TvCreateProfileViewModel.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/profiles/TvEditProfileViewModel.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/profiles/TvProfileForm.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/requests/TvRequestsScreen.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/search/TvSearchKeyboard.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/search/TvSearchScreen.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/servers/TvServerListScreen.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/settings/TvSettingsScreen.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/theme/Spacing.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/TvAndroidManifestPolicyTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/data/preferences/TvPlaybackQualitySourceTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/components/TvAnsiKeyboardSourceTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/components/TvAuroraChromeSourceTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/components/TvTextInputDialogSourceTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/navigation/TvClientSurfaceVisibilitySourceTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvAuthFocusSourceTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvCredentialKeyboardStateTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvLoginViewModelSourceTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvServerSetupReadabilityTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvServerUrlKeyboardStateTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/calendar/TvCalendarSizingSourceTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvDetailMetadataTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvDetailPlaybackSelectionSourceTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvDetailVersionSelectionTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/player/PlayerTrackEntriesTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerControlsUsabilityTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerEngineRequestHelpersTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerViewModelSharedCoordinatorTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/player/TvSubtitleAppearanceOptionsTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/profiles/TvProfileQualitySourceTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/requests/TvRequestsUsabilityTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/search/TvSearchLayoutReadabilityTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/servers/TvServerListFocusSourceTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/shell/TvCascadeInteractionSourceTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/theme/TvDialogScalingTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/theme/TvLauncherIconAssetsTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/theme/TvSkylineTokenParityTest.ktdocs/superpowers/plans/2026-07-01-android-tv-player-hud-redesign.mddocs/superpowers/plans/2026-07-01-tv-launcher-icon.mddocs/superpowers/specs/2026-07-01-android-tv-player-hud-redesign-design.mddocs/superpowers/specs/2026-07-01-tv-launcher-icon-design.mdshared/src/commonMain/kotlin/org/siloserver/silo/playback/PlaybackVersionSelector.ktshared/src/commonTest/kotlin/org/siloserver/silo/playback/PlaybackVersionSelectorTest.kt
✅ Files skipped from review due to trivial changes (12)
- androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvServerUrlKeyboardStateTest.kt
- androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvCredentialKeyboardStateTest.kt
- androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvHoldSeekIndicator.kt
- androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvFocusMarquee.kt
- androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvOptionDialog.kt
- androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvEpisodeCard.kt
- docs/superpowers/specs/2026-07-01-tv-launcher-icon-design.md
- androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/auth/TvServerUrlKeyboardState.kt
- androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvDetailFactsTable.kt
- androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/people/TvPersonDetailScreen.kt
- androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvMediaInfoDialog.kt
- androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/profiles/TvProfileForm.kt
🚧 Files skipped from review as they are similar to previous changes (10)
- android-shared/src/androidMain/kotlin/org/siloserver/silo/common/downloads/DownloadStorage.kt
- android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/SiloPlaybackService.kt
- androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModelSharedCoordinatorTest.kt
- androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/ItemDetailViewModel.kt
- androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/reader/reflow/ReflowableReader.kt
- androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModel.kt
- android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/downloads/DownloadStorageTest.kt
- shared/src/commonMain/kotlin/org/siloserver/silo/playback/PlaybackVersionSelector.kt
- android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/mpv/MpvPlayer.kt
- android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/PlaybackBufferPolicyTest.kt
Summary
Verification
Notes
Summary by CodeRabbit
New Features
Bug Fixes