Repository navigation
Conversation
Match the web layout: the director (or series creator) first, then up to three writers, then up to twelve cast members by billing order, all on the existing cast card. Groups after the first get a thin divider with a small vertical label. Crew cards open the person page like cast cards, and on tvOS the dividers are not focusable, so focus moves card to card. CastCrewGroups builds the row as a pure function, mirroring the web buildCrewGroups, with unit tests for order, caps, de-duplication, writer-director exclusion, the series "Creator" caption and the cast-only fallback. Movie and series pages drop the Director and Writer rows from Details, and hide Details when nothing is left. Season and episode pages keep their cast-only rail and credit facts.
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 17 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (11)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughMovie and series detail pages now display grouped cast and crew entries. Fact assembly can exclude credits. Cast & Crew and Details sections render conditionally based on available groups and facts. ChangesCast and Crew Detail Displays
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant MovieDetailContent
participant CastCrewGroups
participant PhoneCastRail
MovieDetailContent->>CastCrewGroups: Build groups from cast and crew
CastCrewGroups-->>MovieDetailContent: Return ordered groups
MovieDetailContent->>PhoneCastRail: Pass groups for display
Merge Risk: ⚪ Minimal · up to No actionable issue is established that should block merging after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1⚔️ Resolve merge conflicts 💡
🧪 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 |
… writers The Details list matched Director, Writer, Screenplay and Story without regard to case. Movie and series pages now take those credits out of Details, so the Cast & Crew row has to cover the same roles: job names are trimmed and compared case-insensitively, and Story counts as a writing credit again. Adds a test for both.
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
Silo's pull request guidance changed today (#658). A PR that changes what a user sees now needs before-and-after evidence in its Evidence section, and a PR with no visible change says Missing here: Before-and-after screenshots of the iOS and tvOS movie and series detail pages showing the Cast & Crew row, and a recording of tvOS focus across it. The web screenshot shows the design, not this app. The rules are in Show visible changes, and the PR template shows the Evidence section layout. I've converted this PR to draft for now. Mark it ready for review once the Evidence section is filled in. Generated by Claude Code |
|
The after screenshot is already in the PR. The before is what the iOS, iPadOS, macOS and tvOS apps show on main today: the cast rail, with the director and writers only as text in the Details list. |
Problem
Related issue: #584
On movie and series pages the cast rail showed up to 24 people in server order, and the director and writers only appeared as text in the Details list. The main actors were mixed in with minor credits, and there was no way to see who made the film at a glance. This brings iOS, iPadOS, macOS and tvOS in line with the new "Cast & Crew" row on the web.
This is part of one change across all three clients:
Here is the web version of the layout this matches. Apple screenshots aren't included yet, see Validation.
Approach
Movie and series pages now show one "Cast & Crew" row, left to right:
order.Every card reuses the existing cast card, so the row reads as one strip at one size. Crew cards open the person page like cast cards. Empty groups and their dividers are skipped, so a title without crew credits just shows its cast.
CastCrewGroups.buildis a pure function shared by all platforms, mirroring the webbuildCrewGroups.PhoneCastRail(iOS, iPadOS, macOS) andTVDetailCastRail(tvOS) render the groups. On tvOS the dividers contain nothing focusable, so focus moves card to card and default focus still lands on the first card. Card IDs are prefixed by group, so a director who also acts gets two distinct focus targets.Movie and series pages drop the Director and Writer rows from Details, since they're now in the row, and hide the Details header if nothing is left.
MovieDetailContentandTVMovieDetailViewalso render episodes and other non-series items, so the grouped row and the Details change only apply whendetail.type == "movie". Everything else keeps the previous cast-only rail.Sharper headshots. The photos come through noticeably sharper with no client image change. Silo-Server/silo-server#1834 makes the server return TMDB's
h632headshot instead ofw185when noimage_sizeis sent. iOS and macOS don't send one for item detail, and tvOS already requestslarge, so every platform gets the higher quality photos once the server change is in.Validation
CastCrewGroupsTestscovers group order and divider labels, the 2/3/12 caps, de-duplication, the writer-director exclusion, the series "Creator" caption, the cast-only fallback, writers leading when there's no director, cast sorting, unique IDs for a director who also acts, and the Details list dropping credits only when asked.main:xcodegen generate, thenxcodebuild build-for-testing -scheme Silo -destination 'generic/platform=iOS Simulator' CODE_SIGNING_ALLOWED=NO:** TEST BUILD SUCCEEDED **xcodebuild build -scheme SiloTV -destination 'generic/platform=tvOS Simulator' CODE_SIGNING_ALLOWED=NO:** BUILD SUCCEEDED **MovieDetailContent.swiftandTVMovieDetailView.swift. I kept the current upstream structure and only swapped the cast rail for the grouped row.testJobMatchingIgnoresCaseAndKeepsStoryWriters;xcodebuild build-for-testing -scheme Silosucceeded locally.Evidence
maintoday: the cast rail, with the director and writers only as text in the Details list.Surface and build: Silo web app movie page from Silo-Server/silo-server#1834, the layout these apps now match.
Risks
Checklist
AI Disclosure
AI-assisted with Claude Opus. I directed the task and designed the work.
Note
Show one grouped Cast & Crew row on movie and series detail pages
CastCrewGroupsin CastCrewGroups.swift to build lead, writer, and cast groups from crew and cast data. Movies use Director as the lead role, series use Creator. Groups show up to 2 lead, 3 writer, and 12 cast cards, with deduplication by person ID or name and cast sorted by billing order.PhoneCastRail,PhoneCastCard, and the tvOS rail in TVDetailCastRail.swift now renderCastCrewGroupvalues with vertical divider labels between groups. A cast-only initializer keeps server order and a 24-entry cap for season and episode rails.includesCredits: falsetoPhoneDetailFactsSectionso director and writer facts move out of Details; the Details section hides entirely when no non-credit facts remain.Macroscope summarized 794ee69.