Skip to content

fix(tv): stop the request detail screen rendering under the nav - #107

Merged
RXWatcher merged 1 commit into
Silo-Server:mainfrom
RXWatcher:fix/tv-request-detail-layout
Jul 27, 2026
Merged

RXWatcher merged 1 commit into
Silo-Server:mainfrom
RXWatcher:fix/tv-request-detail-layout

Conversation

@RXWatcher

@RXWatcher RXWatcher commented Jul 26, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The TV request detail screen drew its content from the top of the window, but the shell's top navigation is a TopStart overlay that reserves no space. So the title rendered through the nav row — "Movies" sitting on top of the title text — and the REQUEST eyebrow 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

  • Content starts below the nav and inside a TV-safe horizontal margin.
  • Overview clamped to four lines. The job here is deciding whether to request something, not reading the plot.
  • Title, metadata and tagline are bounded too, so a long title cannot push the action off-screen again.
  • Adds the backdrop the screen always had the artwork for (backdrop_path was 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:assembleDebug and the TV unit suite green on this branch based on upstream/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

    • Updated TV request details with a layered backdrop and gradient overlays.
    • Improved poster and content layout for TV screens.
    • Added safer navigation spacing to prevent title clipping.
    • Included genres in request metadata and limited long overviews with ellipsis.
  • Bug Fixes

    • Improved request detail readability, spacing, and scrolling behavior.
    • Refined request status and error message presentation.

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
@coderabbitai

coderabbitai Bot commented Jul 26, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The 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.

Changes

TV request detail

Layer / File(s) Summary
Layered request detail presentation
androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/requests/TvRequestDetailScreen.kt
Adds layout constants and required primitives, renders the backdrop with gradient scrims, arranges poster and text in a scrollable row, incorporates genres into metadata, clamps overview text, and updates request-state spacing.

Estimated code review effort: 3 (Moderate) | ~20 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: fixing the TV request detail screen so it no longer renders under the navigation overlay.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🧹 Nitpick comments (3)
androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/requests/TvRequestDetailScreen.kt (3)

89-98: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Naming: private val properties should be camelCase; consider sourcing the nav inset from the shell.

Per the repo guideline (camelCase for functions and properties), ShellNavInset and SafeHorizontal are non-const vals and should be shellNavInset / safeHorizontal. OverviewMaxLines is a const val, so PascalCase there is fine.

Separately, 96.dp hardcodes 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 value

Nested · separators read ambiguously; format is 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

verticalScroll on 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

📥 Commits

Reviewing files that changed from the base of the PR and between 7e9fdc1 and 88ff2f3.

📒 Files selected for processing (1)
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/requests/TvRequestDetailScreen.kt

@RXWatcher
RXWatcher merged commit 41df059 into Silo-Server:main Jul 27, 2026
2 checks passed
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