Repository navigation
fix(tv): stop the request detail screen rendering under the nav - #107
Conversation
The shell's top navigation is a TopStart overlay drawn over every screen
rather than something that reserves space, and this screen started its
content at the top of the window — so the title rendered through the nav
row ("Movies" sat on top of "Music Pizza") and the REQUEST eyebrow was
clipped off the top edge entirely. Content now starts below the nav and
inside a TV-safe horizontal margin.
The overview was the full TMDB synopsis, unbounded: several hundred words
that filled a 10-foot display and pushed the Request action off the
bottom. Clamped to four lines — the job here is deciding whether to
request something, not reading the plot.
Adds the backdrop the screen always had the artwork for, behind a
horizontal and a vertical scrim so body copy stays legible over a busy
frame, with the poster alongside the text. Title, metadata and tagline
are bounded too, so a long title cannot push the action off-screen again.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Db4dSxN9tH8yN7uUP549tK
📝 WalkthroughWalkthroughThe TV request detail screen now uses a layered backdrop, TV-safe scrolling margins, and a poster-plus-text layout. Metadata includes up to three genres, while overview text is line-clamped with ellipsis and request-state spacing is adjusted. ChangesTV request detail
Estimated code review effort: 3 (Moderate) | ~20 minutes 🚥 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 |
There was a problem hiding this comment.
🧹 Nitpick comments (3)
androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/requests/TvRequestDetailScreen.kt (3)
89-98: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueNaming: private
valproperties should be camelCase; consider sourcing the nav inset from the shell.Per the repo guideline (camelCase for functions and properties),
ShellNavInsetandSafeHorizontalare non-constvals and should beshellNavInset/safeHorizontal.OverviewMaxLinesis aconst val, so PascalCase there is fine.Separately,
96.dphardcodes the shell's nav-overlay height. If the shell already exposes that dimension (theme/RowDimens), reference it so the two can't drift.♻️ Proposed rename
-private val ShellNavInset = 96.dp +private val shellNavInset = 96.dp -private val SafeHorizontal = 48.dp +private val safeHorizontal = 48.dp🤖 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/requests/TvRequestDetailScreen.kt` around lines 89 - 98, Rename the private non-const properties ShellNavInset and SafeHorizontal to shellNavInset and safeHorizontal, updating all references while leaving const OverviewMaxLines unchanged. In the nav inset declaration, reuse the shell’s existing exposed navigation-overlay dimension from the appropriate theme or RowDimens source instead of hardcoding 96.dp.Source: Coding guidelines
197-212: 🎯 Functional Correctness | 🔵 Trivial | 💤 Low valueNested
·separators read ambiguously;formatis locale-default.Genres are joined with
" · "and then folded into a list joined with" · ", so the metadata line becomes a flat run of dot-separated tokens where genre boundaries are indistinguishable. Consider a different genre separator (e.g.", ").
"%.1f".format(it)uses the default locale, so the decimal separator varies by device locale — pin it if the rating should render consistently.♻️ Proposed tweak
- detail.voteAverage?.takeIf { it > 0 }?.let { add("★ ${"%.1f".format(it)}") } - detail.genres.take(3).takeIf { it.isNotEmpty() }?.let { add(it.joinToString(" · ")) } + detail.voteAverage?.takeIf { it > 0 } + ?.let { add("★ ${String.format(Locale.US, "%.1f", it)}") } + detail.genres.take(3).takeIf { it.isNotEmpty() }?.let { add(it.joinToString(", ")) }🤖 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/requests/TvRequestDetailScreen.kt` around lines 197 - 212, Update the metadata construction in the detail screen so the genre list uses a separator distinct from the outer metadata separator, such as commas, and format voteAverage with an explicit locale to ensure consistent decimal rendering across devices. Keep the existing filtering, ordering, and display behavior unchanged.
152-165: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value
verticalScrollon TV isn't reachable by D-pad without focusable content.The only focusable element is the request pill, and it may be absent (status/reason branches). If content overflows in those states, there's no way to scroll with a remote. The clamped title/tagline/overview make overflow unlikely, so this is a fallback-path concern — worth confirming on a low-DPI/large-font TV configuration.
🤖 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/requests/TvRequestDetailScreen.kt` around lines 152 - 165, Update the Row in TvRequestDetailScreen to provide a focusable, D-pad-reachable scroll target even when the request pill is absent, while preserving the existing verticalScroll behavior and layout. Ensure overflow in status/reason branches can be navigated on TV, including low-DPI or large-font configurations.
🤖 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/requests/TvRequestDetailScreen.kt`:
- Around line 89-98: Rename the private non-const properties ShellNavInset and
SafeHorizontal to shellNavInset and safeHorizontal, updating all references
while leaving const OverviewMaxLines unchanged. In the nav inset declaration,
reuse the shell’s existing exposed navigation-overlay dimension from the
appropriate theme or RowDimens source instead of hardcoding 96.dp.
- Around line 197-212: Update the metadata construction in the detail screen so
the genre list uses a separator distinct from the outer metadata separator, such
as commas, and format voteAverage with an explicit locale to ensure consistent
decimal rendering across devices. Keep the existing filtering, ordering, and
display behavior unchanged.
- Around line 152-165: Update the Row in TvRequestDetailScreen to provide a
focusable, D-pad-reachable scroll target even when the request pill is absent,
while preserving the existing verticalScroll behavior and layout. Ensure
overflow in status/reason branches can be navigated on TV, including low-DPI or
large-font configurations.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 23836365-11ea-4ebe-a6e0-8e40a467e503
📒 Files selected for processing (1)
androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/requests/TvRequestDetailScreen.kt
Problem
The TV request detail screen drew its content from the top of the window, but the shell's top navigation is a
TopStartoverlay that reserves no space. So the title rendered through the nav row — "Movies" sitting on top of the title text — and theREQUESTeyebrow above it was clipped off the top edge of the screen entirely. The content was also outside the overscan-safe area.Separately, the overview was the full TMDB synopsis with no bound. On a 10-foot display that filled the screen and pushed the Request action — the only reason to be on this screen — off the bottom.
Change
backdrop_pathwas in the model, unused), behind a horizontal and a vertical scrim so body copy stays legible over a busy frame, with the poster alongside the text.Testing
:androidTvApp:assembleDebugand the TV unit suite green on this branch based onupstream/main. Checked on an NVIDIA Shield: the title clears the nav, the eyebrow is visible, and the Request action sits on screen for a long synopsis.Before/after is easiest to see on a series with a long overview — the earlier build had the title overlapping the nav tabs.
AI-use disclosure
Written by Claude Opus 5 (Claude Code) working with @RXWatcher, who reported the overlap from a device screenshot, directed the change, and confirmed the result on hardware.
Summary by CodeRabbit
New Features
Bug Fixes