Repository navigation
feat(tv): transient skip indicator for hidden-controls D-pad seeks - #39
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Warning Review limit reached
Next review available in: 47 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 (6)
📝 WalkthroughWalkthroughAdds a transient on-screen skip feedback indicator for TV player D-pad relative seeks performed while controls are hidden. Introduces ChangesSkip Seek Feedback Indicator
Estimated code review effort: 2 (Simple) | ~15 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
13a90f6 to
295ca5c
Compare
D-pad Left/Right while the controls are hidden seeked silently — the video just jumped with no feedback. Now each skip shows a pill chip (+30s / −10s and the landing time) above a thin full-width progress line anchored with the transport scrubber's bottom geometry, so the position reads exactly where the real bar lives. Auto-hides 1.2s after the last press; consecutive presses restart the timer. Deliberately NOT the transport overlay: revealing controls flips Left/Right from discrete skips into scrubber preview nudges mid-sequence (dpadHorizontalSeek gates on !showControls), breaking repeated-press seeking. Suppressed under transport/HUD/Up Next/PiP which have their own position feedback. Visuals borrowed from TvHoldSeekIndicator. Verified on a Google TV Streamer. Co-Authored-By: Claude Fable 5 <[email protected]>
295ca5c to
acc9825
Compare
There was a problem hiding this comment.
🧹 Nitpick comments (2)
androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvSkipSeekIndicator.kt (1)
16-26: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueMixed Material3 flavors:
Surfacefromcompose.material3next totv.material3.Text.The pill uses
androidx.compose.material3.Surfacebutandroidx.tv.material3.Text. Since this is a non-interactive decorative surface, it won't break functionality, butandroidx.tv.material3.Surfaceexists specifically for TV surfaces (consistent theming/focus semantics) and is likely the convention used elsewhere in this TV app's overlays. Consider using the TV-specificSurfacefor consistency with the rest of the Android TV UI kit.Also applies to: 63-87
🤖 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/player/TvSkipSeekIndicator.kt` around lines 16 - 26, The `TvSkipSeekIndicator` composable is mixing Material3 families by using `androidx.compose.material3.Surface` alongside `androidx.tv.material3.Text`; update the indicator to use the TV-specific `Surface` in this TV overlay so the styling and semantics stay consistent with the rest of the Android TV UI kit. Keep the rest of the composable behavior the same and adjust any related imports/usages in `TvSkipSeekIndicator` accordingly.androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.kt (1)
1477-1486: 📐 Maintainability & Code Quality | 🔵 Trivial | 🏗️ Heavy liftHard-coded 113dp offset duplicates
TvPlayerIdleOverlay's internal scrubber geometry.The comment documents the derivation well, but the value is a magic literal computed from another composable's internal spacing. If that overlay's padding/gap values change, this offset silently desyncs and the rail will no longer align with the real scrubber. Consider exposing the scrubber's bottom offset as a shared constant (or a measured/reported value) both composables reference.
🤖 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/player/TvPlayerScreen.kt` around lines 1477 - 1486, The transient rail positioning uses a hard-coded bottom offset that duplicates TvPlayerIdleOverlay’s internal scrubber spacing, so it can drift if that layout changes. Move the scrubber bottom offset calculation into a shared constant or shared layout value, and have both TvPlayerScreen and TvPlayerIdleOverlay reference it instead of the literal padding. Use the related composables and layout modifiers around the Box padding and idle overlay geometry to keep the scrubber alignment in sync.
🤖 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.
Nitpick comments:
In
`@androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.kt`:
- Around line 1477-1486: The transient rail positioning uses a hard-coded bottom
offset that duplicates TvPlayerIdleOverlay’s internal scrubber spacing, so it
can drift if that layout changes. Move the scrubber bottom offset calculation
into a shared constant or shared layout value, and have both TvPlayerScreen and
TvPlayerIdleOverlay reference it instead of the literal padding. Use the related
composables and layout modifiers around the Box padding and idle overlay
geometry to keep the scrubber alignment in sync.
In
`@androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvSkipSeekIndicator.kt`:
- Around line 16-26: The `TvSkipSeekIndicator` composable is mixing Material3
families by using `androidx.compose.material3.Surface` alongside
`androidx.tv.material3.Text`; update the indicator to use the TV-specific
`Surface` in this TV overlay so the styling and semantics stay consistent with
the rest of the Android TV UI kit. Keep the rest of the composable behavior the
same and adjust any related imports/usages in `TvSkipSeekIndicator` accordingly.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: e17b52b0-dc9d-477f-9375-6ba7c08f0585
📒 Files selected for processing (3)
androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvSkipSeekIndicator.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/player/TvSkipSeekIndicatorTest.kt
Position presets anchor to the movie area, never the letterbox bars (deliberate deviation from Apple's use-margins Bottom behavior; matches MpvPlayer's init default). Media3 already positions video-relative (exo_subtitles is a child of the aspect-fitted exo_content_frame). Also raise the two wall-clock awaitState poll budgets (5s->30s) that flake on loaded CI runners and blocked this PR's merge. Co-Authored-By: Claude Fable 5 <[email protected]>
Summary
D-pad Left/Right during playback with hidden controls seeked silently — the video jumped with no visual feedback (user report). Each skip now shows a pill chip (
+30s/−10s+ landing time) above a thin full-width progress line anchored with the transport scrubber's exact bottom geometry (horizontal 80 / vertical 40), so the position reads where the real bar lives. Auto-hides 1.2s after the last press; consecutive presses restart the timer and keep seeking.Why not just reveal the transport overlay
Considered and rejected:
dpadHorizontalSeekgates on!showControls, so revealing the controls flips the next Left/Right press from a discrete skip into a scrubber preview nudge — breaking repeated-press seeking mid-sequence. The indicator keeps controls hidden so the interaction stays uniform. It's suppressed under the transport, HUD, Up Next, and PiP (which have their own position feedback), and borrowsTvHoldSeekIndicator's visual language.Testing
:androidTvApp:testDebugUnitTest), including the TV typography-readability floor (time label at 16sp).🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Bug Fixes