Repository navigation
fix(subtitles): recenter cues after aspect mode changes - #127
Conversation
|
Warning Review limit reached
Next review available in: 7 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 (5)
📝 WalkthroughWalkthroughSubtitle rendering now selects bounds by resize mode, applies presentation-specific sizing, and performs bounded post-layout reconciliation. Mobile subtitle mounts require repeated snapshot evidence before failure. Tests cover geometry, lifecycle, wiring, and settlement behavior. ChangesSubtitle aspect-mode reconciliation
Estimated code review effort: 4 (Complex) | ~60 minutes Possibly related issues
Possibly related PRs
🚥 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/player/SubtitleAspectModeWiringSourceTest.kt (1)
19-20: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueMake the source-contract tests fail closed when their target block changes.
Unanchored first-match slicing can silently pick the wrong block if the source is refactored. Anchor the parsing to the specific enclosing player
AndroidView/PlayerViewdeclaration and assert that both delimiter strings exist and are ordered before comparing contents.
androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/player/SubtitleAspectModeWiringSourceTest.kt#L19-L20: scope parsing to the intended phoneAndroidViewupdate lambda.androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/player/TvSubtitleAspectModeWiringSourceTest.kt#L19-L20: scope parsing to the intended TVPlayerViewupdate lambda.🤖 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/player/SubtitleAspectModeWiringSourceTest.kt` around lines 19 - 20, Update the source parsing in androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/player/SubtitleAspectModeWiringSourceTest.kt#L19-L20 and androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/player/TvSubtitleAspectModeWiringSourceTest.kt#L19-L20 to first scope extraction to the intended enclosing phone AndroidView or TV PlayerView update lambda, then assert both delimiter strings are present and ordered before comparing contents; ensure the tests fail rather than silently selecting an unrelated block when the source structure changes.
🤖 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 `@docs/superpowers/plans/2026-07-28-subtitle-aspect-recenter.md`:
- Around line 123-161: Update the plan sections covering the mode-aware selector
and reconciliation flow to reflect the shipped SubtitleManager.kt behavior:
preserve matching content-frame coordinates instead of unconditionally selecting
displayedVideoRect for ZOOM/FILL, and describe the lifecycle-owned pre-draw
observer rather than postOnAnimation or postLayoutPending. Mark the superseded
implementation tasks as completed or revise their status and snippets so the
plan no longer directs future changes toward the replaced design.
---
Nitpick comments:
In
`@androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/player/SubtitleAspectModeWiringSourceTest.kt`:
- Around line 19-20: Update the source parsing in
androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/player/SubtitleAspectModeWiringSourceTest.kt#L19-L20
and
androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/player/TvSubtitleAspectModeWiringSourceTest.kt#L19-L20
to first scope extraction to the intended enclosing phone AndroidView or TV
PlayerView update lambda, then assert both delimiter strings are present and
ordered before comparing contents; ensure the tests fail rather than silently
selecting an unrelated block when the source structure changes.
🪄 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: 6698ae13-1fd0-4ffd-80ce-6e8c469c6f81
📒 Files selected for processing (6)
android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/SubtitleManager.ktandroid-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/SubtitleManagerAppearanceTest.ktandroidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/player/SubtitleAspectModeWiringSourceTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/player/TvSubtitleAspectModeWiringSourceTest.ktdocs/superpowers/plans/2026-07-28-subtitle-aspect-recenter.mddocs/superpowers/specs/2026-07-28-subtitle-aspect-recenter-design.md
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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
`@docs/superpowers/plans/2026-07-28-android-subtitle-aspect-reconciliation-and-phone-sizing.md`:
- Around line 5-16: Resolve the phone subtitle-sizing contract consistently
across
docs/superpowers/plans/2026-07-28-android-subtitle-aspect-reconciliation-and-phone-sizing.md
lines 5-16 and
docs/superpowers/specs/2026-07-28-android-subtitle-aspect-reconciliation-and-phone-sizing-design.md
lines 70-80: use the authoritative 1.25× phone fractions (Small 25/720 through
XXLarge 60/720), update the goal and sizing table accordingly, and ensure the
specification, plan, and SubtitleManager implementation all describe the same
values while preserving the unchanged television fractions.
🪄 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: fa03d598-c17b-4978-a545-dcb4c2d1fc46
📒 Files selected for processing (14)
android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/SubtitleManager.ktandroid-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/SubtitleManagerAppearanceTest.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/di/AndroidModule.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/MobileSubtitleTransactionAdapter.ktandroidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerScreen.ktandroidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/player/MobileSubtitleTransactionAdapterTest.ktandroidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/player/SubtitleAspectModeWiringSourceTest.ktandroidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/player/SubtitleAspectSyncWiringTest.ktandroidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/di/AndroidTvModule.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/player/TvSubtitleAspectModeWiringSourceTest.ktandroidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/player/TvSubtitleAspectSyncWiringTest.ktdocs/superpowers/plans/2026-07-28-android-subtitle-aspect-reconciliation-and-phone-sizing.mddocs/superpowers/plans/2026-07-28-subtitle-aspect-recenter.mddocs/superpowers/specs/2026-07-28-android-subtitle-aspect-reconciliation-and-phone-sizing-design.md
🚧 Files skipped from review as they are similar to previous changes (5)
- androidApp/src/androidUnitTest/kotlin/org/siloserver/silo/android/ui/screens/player/SubtitleAspectModeWiringSourceTest.kt
- androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/screens/player/TvSubtitleAspectModeWiringSourceTest.kt
- docs/superpowers/plans/2026-07-28-subtitle-aspect-recenter.md
- android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/SubtitleManager.kt
- android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/SubtitleManagerAppearanceTest.kt
Summary
Verification
./gradlew testDebugUnitTest --max-workers=2 --no-daemonSubtitleManagerAppearanceTest: 26/26 green./scripts/test-check-build-supply-chain.sh./scripts/check-build-supply-chain.shManual validation
58211FDCQ000CUupgraded in place with matching signer; package 0.3.11/code 14 launched resumed with a live process and no immediate crash/ANR