Repository navigation
Conversation
Match the Silo web layout on phone and TV. The row now leads with up to two directors (captioned "Creator" on series, since Silo stores series creators as Director credits), then up to three writers, then up to twelve cast members by billing order. Thin vertical dividers labelled WRITERS and CAST separate the groups, and empty groups are skipped. The grouping lives in android-shared so both apps use the same function. Crew cards reuse the existing cast card, route to the person page the same way, and fall back to initials without a headshot. On TV the dividers sit inside the following card's rail item, so they never take D-pad focus and the rail's focus restore indices stay correct. Episode pages keep their plain cast row unchanged.
TvTypographyReadabilityTest rejects hard-coded TV text below 14sp.
Closed
2 tasks done
- Build the writer exclusion from every director before the two-card lead cap, so a third director with a writing credit isn't shown as a writer. Adds a regression test with three directors. - On TV, only open a person from a name search on an exact name match. Opening the first result could land on someone unrelated, and crew cards without a person ID now reach this path too. - A divider widens the first card of its group, so the TV Cast & Crew rail no longer has uniform items. tvRailPinItem gains a uniformItems flag; when it's false, offscreen targets use animateScrollToItem instead of a distance extrapolated from a neighbour's width. Other rails are unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Silo web app now shows one "Cast & Crew" row on movie and series pages (blurbery/silo-server#86 and Silo-Server#87): director or creator first, then writers, then the main cast. The Android phone and TV apps still showed a cast-only row under that heading, so directors and writers had no card and no route to their person page.
What changed
castCrewCreditsinandroid-shared(common/ui/CastCrewCredits.kt), used by both apps:Director, de-duplicated by person id (or name), max 2. Captioned "Director" on movies and "Creator" on series, because Silo stores series creators as Director credits.WriterorScreenplay, de-duplicated, excluding anyone already in the lead group, max 3. Captioned "Writer".order, max 12, captioned with the character.CastCrewSection) and TV (TvCastCrewSection) render every credit with the existing cast card, so crew and cast cards are the same size. A thin rule with a small vertical uppercase label sits before each later group. Cards without a headshot now show initials.person_idon phone, and on TV throughopenPerson, which now takes a name and optional person id and keeps the existing name-search fallback.What I left alone
CatalogV2Api.itemDetail(shared/.../network/apiv2/CatalogV2Api.kt) never sendsimage_size, nothing rewrites TMDB URLs, and the cast cards don't pass a decode size to Coil. Once the server change in fix: raise typography, touch, and focus accessibility floors Silo-Server/silo-android#87 is deployed, these cards pick up the sharper h632 headshots.image_sizeis only sent for catalogue browse and history, which don't carry person credits.User-visible effect
Movie and series pages on phone and Android TV show directors (or creators) and writers as tappable cards ahead of the cast in one horizontally scrolling Cast & Crew row. The cast list is trimmed to the top 12 billed actors.
Testing
CastCrewCreditsTestinandroid-sharedcovering group order, caps, de-duplication, exact job matching, writer-director exclusion, the series "Creator" caption, the cast-only fallback, the episode passthrough and initials.Android Buildsworkflow (testDebugUnitTest, then lint includinglintVitalRelease) on 5f746dc:Unit testspassed,Lintpassed.Media3 FFmpeg AARandSideload APKswere skipped, as they always are on pull requests.TvTypographyReadabilityTest: the TV divider label was 12sp, below the 14sp TV floor. 5f746dc raises it to 14sp.Benchmarks: not applicable, UI layout change.
Risks
AI disclosure
AI-assisted with Claude Opus. I directed the task and designed the work.