Repository navigation
Commit 04fb276
Polish cast pairing and TV navigation UI across Android clients (#63)
* Polish Android TV navigation menu
* Refine Android TV cards, chrome, and collection catalog lookup
* Unify TV hero transitions and preload skyline artwork
* Align Android TV detail hero copy
* Show episode air date in TV detail facts
* Improve TV detail starring legibility
* Enlarge Android TV primary play icon
* Emphasize TV detail selector values
* Reveal the next TV detail section
* Stabilize TV season and episode focus position
* Keep TV season switching in place
* Clarify TV episode card hierarchy
* Show episode air date in TV details
* Enlarge Android TV person names
* Reduce Android TV person metadata pills
* Constrain Android TV person biographies
* Simplify Android TV filmography heading
* Refine Android TV person filters
* Make Android TV person headers scroll
* Reduce Android TV calendar filter type
* Refine Android TV calendar day cells
* Scroll Android TV calendar controls with content
* Compact Android TV calendar badges
* Raise Android TV search controls
* Refine Android TV search result status
* Refine Android TV search filters
* Show more Android TV search results
* Restore Android TV search header position
* Avoid profile switch preference flash
* Match Android TV Dolby Vision detail metadata
* Inline Android TV detail starring credits
* Remove Android TV detail eyebrow pill
* Match Android TV video library menu to tvOS
* Improve Android TV cascade back focus
* Fix TV person detail upward focus restoration
* Redesign Android TV search experience
* Fix cross-platform companion pairing
* Bring SiloCast phone remote to Apple parity
The working tree's v2 remote-playback handoff (offer/challenge/ready/
cancel, temporary TV identity overlay, TV standby screen) plus a full
phone-side parity pass against silo-apple's SiloControl client:
Controller lifecycle (mirrors SiloControlClient):
- Phone-side heartbeat: ping every 3s, only pong resets liveness,
3 misses tear the transport down into the reconnect path.
- Auto-reconnect with 1-4s backoff (5 attempts) and a "Reconnecting…"
state that keeps target/playback for UI continuity; deliberate
closes (ours or the TV's goodbye) never reconnect.
- Persisted last target + silent foreground auto-resume, gated on the
TV's Bonjour `playing` flag so idle TVs are never flipped into the
standby takeover screen; unengaged auto-resumed sessions let go
quietly. Wired via ProcessLifecycleOwner starter.
- NSD browser now surfaces the server/serverName/playing TXT metadata.
Phone remote UI (mirrors SiloControlRemoteView):
- Blurred-artwork OLED backdrop, portrait poster (series poster for
episodes - an episode's own poster is a landscape still), title
block, "Playing on <TV>" pill, draggable scrubber with optimistic
clock and elapsed/-remaining labels, 64dp play/pause with buffering
spinner, +-10/30 skips, next episode, volume row, capability-gated
Audio/Subtitles/Quality/Speed/Display menus.
- Distinct connecting / reconnecting / launching / idle-connected /
playing / error states; minimize chevron + overflow menu (Choose a
Different TV / Stop Playback / Disconnect).
- Target picker: searching -> 8s empty state -> rows with circled TV
icon, "Playing now" / server-name / cross-server / update-required
context, per-row connect spinner, stays open until connected.
- Mini bar: poster thumb, reconnect spinner, "Playing on <TV>" line;
rests above the bottom nav menu on tab screens (iOS accessory
placement) and overlays only menu-less routes.
- Home cast button: filled-disc active state with Remote Control /
Choose TV / Turn Off Control Mode menu; "Play on device" from detail
auto-presents the remote.
Cross-device fixes found testing phone -> Shield:
- Reused-identity launches (switching items mid-playback) deadlocked:
the TV skips the challenge and answers handoff_ready directly, but
the phone awaited only the challenge, timed out as a swallowed
CancellationException, and the TV's ready-without-launch watchdog
then ended the identity and closed the session mid-playback. The
phone now races ready vs challenge, handoff timeouts surface as real
errors, and the TV watchdog never tears down an identity a live
player is using (handoff_cancel also disarms it).
- Half-open connect no longer leaks the TLS socket when a reconnect
attempt is cancelled mid-handshake.
Co-Authored-By: Claude Fable 5 <[email protected]>
* Make the bottom nav bar translucent glass like iOS
Tab content now scrolls edge-to-edge beneath the bottom chrome instead
of stopping above it: the main scaffold publishes the measured chrome
height (nav bar + gesture inset + cast mini bar when visible) through
LocalBottomChromeInset, and the five tab screens add it to their scroll
end padding so the last items stay reachable. The bar's near-opaque
fill becomes a translucent gradient scrim (72% -> 94% background) with
the same hairline the top chrome uses, so content reads through it in
motion — the dependency-free equivalent of iOS's glass tab bar (true
backdrop blur would need API 31 + a blur pipeline like Haze).
Co-Authored-By: Claude Fable 5 <[email protected]>
* Match Android TV For You saved lists to tvOS
* Polish Calendar focus and tvOS styling
* Refine TV top navigation sizing
* Increase TV media card typography
* Adopt Inter typography for Android TV
* Restore translucent TV card overlays
* Smooth Android TV skyline first focus
* Refine Android TV skyline transitions
* Restore Home card focus after detail
* Refine Android TV Home skyline layout
* Reset Home to first card on menu re-select
Selecting the Home tab from the bar now returns the skyline to its
launch state: the row band animates back to the top at constant
velocity and focus lands on row 0 / card 0.
Direct focus requests from the bar were silently cancelled: a
focusRestorer group cancels (and rolls back) any programmatic request
that targets one of its descendants, while honoring a request on the
group itself. Focus therefore walks down one scope per frame — content
group, first-row group, then first card — with the row group hop
exposed via a new rowContainerFocusRequester on TvMediaRow.
* Gate feed focus token on RESUMED lifecycle
The shell bumps contentFocusRequest for every menu selection, and
during the route crossfade the exiting feed is still composed — so
selecting Calendar made Home briefly flash focus on its first card
before the Following filter handoff landed. The feed now waits for its
own nav entry to reach RESUMED before applying the token; exiting
entries never resume, so they park until disposal with the token
already consumed.
* Remove duplicate search query length constant
TV_SEARCH_QUERY_MAX_LENGTH already lives in TvSearchInputRules.kt (internal,
shared with TvRequestsScreen); the private duplicate in TvSearchScreen.kt
collided with it and broke clean builds once stale compile caches were gone.
* Align TV detail hero styling with tvOS
Match the tvOS item detail visual language on the Android TV canvas
(tvOS points ÷ 2):
- Hero title set in bundled Inter Tight Black at 42sp (tvOS uses
SF Pro Compressed .black at 92pt); Starring moves to a right-edge
overlay like tvOS.
- Editorial type rescaled per on-device review: episode title,
season/episode line, synopsis, facts, source tokens, and section
headers all bumped or trimmed to the tvOS proportions.
- Buttons keep their original height while glyphs grow (fixed icon
slot + requiredSize overflow); play glyph 30dp, Start Over 20dp.
- Selector pills restyled (22x12 padding, larger label/value type);
Version uses the tv glyph and Subtitles a chat bubble, matching
tvOS captions.bubble instead of the narrower CC badge.
- Source-parity test updated to pin the new tokens.
* Match tvOS playback pill labels and date rendering
- Audio/subtitle pill values follow Apple's formats: "Auto: English ·
EAC3 · 5.1", "English (Forced) · SRT", "Auto: Off"; track titles
fall back language -> useful title -> "Track N", with SDH/Forced
suffixes and codec tags appended like TVPlaybackSelectorRow.swift.
- srt renders as SRT (was SubRip).
- Dates parse as UTC instants (timestamps and bare dates alike) and
render in the viewer's zone, replicating tvOS behavior; the episode
rail delegates to the same formatter. Zone is injectable for tests.
- Formatting/metadata tests updated to the new contracts, plus a
viewer-zone regression test.
* Pace TV detail anchor scrolls and fix focus traversal
- Hero<->episodes anchor scrolls use a custom 260ms ease-in-out tween
(animateScrollBy) instead of animateScrollToItem's fixed spec, and
the bring-into-view spec moves to a 620ms ease-in-out, tracking
tvOS TVDetailFocusScroll's easeInOut(0.45).
- Focusing the episodes section (chips or cards) centers it in the
viewport, matching tvOS's .center scroll anchor.
- Entering the hero action cluster always lands on Play instead of
the geometrically nearest toggle; Up from episodes stops at the
Version/Audio/Subtitles selector row before reaching the actions.
- Start Over uses the skip-to-start glyph and the next-up placeholder
pill matches the real selector's styling.
* Polish TV detail rhythm and restore cast focus on return
- Derive every detail body section gap and the hero handoff from a single
TvDetailSectionGap constant (28dp, matching the selectors -> Episodes gap)
so the next section header peeks into view and the rhythm tunes in one place
- Enlarge the hero "Starring" credit to 16sp with a wider max width
- Remember which cast card pushed a person page and restore focus to it on
return instead of snapping back to Play
* Restore Home focus to the launch card after detail return
The shell's content focusRestorer loses its saved child node when the outer
item-detail route removes the shell, so returning from a detail page landed
focus a row below the card the user left from.
- Remember the launch (row, item) across the round trip and re-target it with
an early recreation-time ladder (row group, then card, one restorer scope
per frame), verified via the card's real focus callback
- Point the content and row restorer enter fallbacks at the launch card while
the return is pending so even default focus assignment resolves there
- Skip the shell's ON_RESUME content claim when focus is already inside the
content group - re-entering the group re-ran its focus search and yanked
focus to the next row's first card for a frame
* Restore focus to launching cast card on person-page return
Route entries into the cast rail to the pending restore card instead of
card 0 while a person-page return is in flight, and end the restore
window on the card's real focus gain rather than a fixed frame count.
* Align TV person page with tvOS and add scrollable bio modal
Match tvOS PersonDetailView sizing/format (portrait, name, badges,
filmography header with count label, filter chips, 6-column grid),
strip the TMDB Wikipedia attribution paragraph from bios, and make the
bio a focus stop reachable via Up from the filter chips — OK opens the
full bio in a dimmed, D-pad-scrollable modal.
* Hide person filmography chips for media types with no works
Probe each media type's server-side total (limit=1, in parallel) when
the person page loads and drop chips whose count is zero, intersected
with the existing library gating. All always shows, failed probes keep
their chip, and a vanished active filter falls back to All.
* Match tvOS library Browse: sort/filter controls, facets, 6-column grid
Port TVLibraryGridView's browse surface to Android TV:
- Sort · Filter capsule control row above the grid, with direction hint
and active-facet count badge (TVBrowseControlRow parity).
- Sort overlay panel listing per-media-type sort keys; re-picking the
active key flips direction (tvOS setSort semantics).
- Two-level filter overlay panel (facet list -> values) with the full
tvOS facet set, multi-select, per-facet clear, match all/any, and
reset; selections lower to the same structured groups[...] catalog
query iOS CatalogQueryBuilder emits.
- Facet vocabulary loaded from /catalog/filters with include_technical.
- Browse grid: 6 columns, always-on A-Z rail, taller tvOS content top
inset (216pt -> 108dp), Title A-Z default sort.
- Focusing the control row re-anchors the grid to offset 0 (looped
while focused, since the focus bring-into-view scroll would cancel a
one-shot scroll on the shared scrollable state).
* Polish A-Z rail: dot peek, All pill, jump-to-All entry, Up hold, clear-filters pill
- Collapsed rail renders a condensed dot cluster (every other entry,
selected position brighter) instead of micro letters; entries stay
single persistent focusable Surfaces so expansion cannot drop focus.
- Expanded letters grow to 42dp/18sp chips; "All" renders as a standard
app pill; margins sit outside the scroll viewport so scrolled letters
clip instead of drawing over the nav bar.
- Focus entering the rail always lands on "All"; the rail is hidden
unless the browse sort is Title (A-Z).
- D-pad Up inside the rail is routed through the shell's
contentUpFallback hook (the shell consumes all Up keys in the preview
phase, so rail-local key handlers never fire): letters step up, "All"
holds instead of escaping to the top menu.
- Active facet filters add a "Clear filters" pill next to Filter; focus
hops to the Filter pill before the Clear pill leaves composition.
* Restyle TV settings to tvOS parity: full-screen split rail, mono headers, focus-driven panes
* Move search into tab cluster, restore feed focus after settings, avatar-return polish
* Prefetch startup content during splash and snap first hero paint
- Cap the startup splash at 4s (video end or cap, whichever first),
matching StartupSplashView's maximumDisplayDuration on Apple; drop
the TV-side 5.2s minimum floor
- Compose the app underneath the splash overlay so Home fetches, paints,
and settles entry focus while the animation plays; root-level key gate
keeps input consumed until the reveal
- Port StartupContentPrefetcher's artwork warmup: warm the first screen's
posters, marquee backdrops/logo (TV, 28 URLs) or posters (phone, 12)
plus the active profile avatar through Coil during the splash
- Warm profile list + avatar art when a cold launch lands on profile
selection (prefetchForInitialRoute(.needsProfile) parity)
- Snap the FIRST marquee/backdrop/tint display instead of fading up from
black; only content-to-content swaps crossfade (tvOS 07ed712/d313a3d)
- Memoize sampled ambient accents per URL (HeroBackdropPalette.tintCache
parity) so revisits paint the wash with the artwork
* Update Android TV tests for UI polish
* Finish updating Android TV UI tests
* Wait for long press release before menu selection
* Use dark styling for TV popup menus
* Prevent duplicate TV playback launches
* Clear cached resume when watched state changes
* Fix TV card action menu focus
* Restore Home first row from navigation
* Avoid flashing intermediate Home focus
* Animate Calendar re-selection to top
* Polish TV search navigation and filtering
* Respect audiobook visibility on people pages
* Polish TV navigation menus
* Polish Android TV settings
* Refine Android TV settings and server management
* Polish Android TV settings rail focus
* Polish Android TV onboarding and PIN entry
* Add episode long-press actions
* fix: harden cast handoffs and watched state sync
* fix: address follow-up PR review feedback
---------
Co-authored-by: Claude Fable 5 <[email protected]>
Co-authored-by: zZebrahz <[email protected]>1 parent 6defbcf commit 04fb276
206 files changed
Lines changed: 12795 additions & 3149 deletions
File tree
- androidApp
- src
- androidMain/kotlin/org/siloserver/silo/android
- cast
- di
- ui
- screens
- calendar
- cast
- detail
- downloads
- home
- libraries
- pairing
- recommendations
- androidUnitTest/kotlin/org/siloserver/silo/android/cast
- androidTvApp
- src
- androidMain
- kotlin/org/siloserver/silo/tv
- cast
- di
- notifications
- ui
- components
- screens
- auth
- calendar
- cast
- detail
- home
- library
- people
- personal
- player
- profiles
- recommendations
- requests
- search
- servers
- settings
- shell
- theme
- res
- font
- raw
- androidUnitTest/kotlin/org/siloserver/silo/tv
- cast
- pip
- ui
- components
- screens
- auth
- calendar
- detail
- people
- profiles
- search
- settings
- shell
- theme
- ui-validation
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
24 | 33 | | |
25 | 34 | | |
26 | 35 | | |
| |||
31 | 40 | | |
32 | 41 | | |
33 | 42 | | |
| 43 | + | |
| 44 | + | |
34 | 45 | | |
35 | 46 | | |
36 | 47 | | |
| |||
45 | 56 | | |
46 | 57 | | |
47 | 58 | | |
48 | | - | |
| 59 | + | |
49 | 60 | | |
50 | 61 | | |
51 | 62 | | |
52 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
53 | 70 | | |
54 | 71 | | |
55 | 72 | | |
| |||
76 | 93 | | |
77 | 94 | | |
78 | 95 | | |
| 96 | + | |
| 97 | + | |
79 | 98 | | |
80 | 99 | | |
81 | 100 | | |
82 | | - | |
83 | | - | |
84 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
85 | 125 | | |
86 | 126 | | |
87 | 127 | | |
| 128 | + | |
88 | 129 | | |
89 | 130 | | |
90 | 131 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
95 | 142 | | |
| 143 | + | |
96 | 144 | | |
97 | 145 | | |
98 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
99 | 165 | | |
100 | 166 | | |
101 | 167 | | |
| |||
112 | 178 | | |
113 | 179 | | |
114 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
115 | 184 | | |
116 | 185 | | |
117 | 186 | | |
118 | 187 | | |
119 | 188 | | |
120 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
121 | 195 | | |
122 | 196 | | |
123 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
42 | 72 | | |
43 | 73 | | |
44 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
33 | 62 | | |
34 | 63 | | |
35 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
| |||
261 | 267 | | |
262 | 268 | | |
263 | 269 | | |
264 | | - | |
265 | | - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
266 | 282 | | |
267 | 283 | | |
268 | 284 | | |
269 | 285 | | |
270 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
271 | 292 | | |
272 | 293 | | |
273 | 294 | | |
| |||
288 | 309 | | |
289 | 310 | | |
290 | 311 | | |
| 312 | + | |
291 | 313 | | |
292 | 314 | | |
293 | 315 | | |
| |||
312 | 334 | | |
313 | 335 | | |
314 | 336 | | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
315 | 380 | | |
316 | 381 | | |
317 | 382 | | |
| |||
321 | 386 | | |
322 | 387 | | |
323 | 388 | | |
324 | | - | |
| 389 | + | |
325 | 390 | | |
326 | 391 | | |
327 | 392 | | |
| |||
0 commit comments