Skip to content

feat(detail): show one Cast & Crew row on movie and series pages - #585

Closed
blurbery wants to merge 3 commits into
Silo-Server:mainfrom
blurbery:upstream-cast-and-crew-row
Closed

blurbery wants to merge 3 commits into
Silo-Server:mainfrom
blurbery:upstream-cast-and-crew-row

Conversation

@blurbery

@blurbery blurbery commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

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.

Cast & Crew row in the Silo web app

Approach

Movie and series pages now show one "Cast & Crew" row, left to right:

  • Director first. Crew whose job is "Director", de-duplicated by person ID (falling back to name), up to 2. The caption is "Director" on movies and "Creator" on series, since series creators are stored as Director credits.
  • Writers. A thin divider with a small vertical "WRITERS" label, then up to 3 writers ("Writer" or "Screenplay"). Anyone already shown as director is left out, so a writer-director only appears once.
  • Cast. A "CAST" divider, then the top 12 billed cast by 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.build is a pure function shared by all platforms, mirroring the web buildCrewGroups. PhoneCastRail (iOS, iPadOS, macOS) and TVDetailCastRail (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. MovieDetailContent and TVMovieDetailView also render episodes and other non-series items, so the grouped row and the Details change only apply when detail.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 h632 headshot instead of w185 when no image_size is sent. iOS and macOS don't send one for item detail, and tvOS already requests large, so every platform gets the higher quality photos once the server change is in.

Validation

  • CastCrewGroupsTests covers 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.
  • On this branch, rebased onto current main:
    • xcodegen generate, then xcodebuild 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 **
  • The rebase had conflicts in MovieDetailContent.swift and TVMovieDetailView.swift. I kept the current upstream structure and only swapped the cast rail for the grouped row.
  • On my fork (feat: show a combined Cast & Crew row on movie and series pages blurbery/silo-apple#16) the same change passed the iOS test job and the tvOS and macOS builds.
  • Not run on this branch: the XCTest run itself and the macOS build, which CI covers, and a check on a device or simulator. That means no Apple before-and-after screenshots yet, and tvOS focus across the dividers hasn't been tried on hardware. I'll add screenshots once I've run it on a device.
  • Review follow-up in 2b8b209: job names are matched case-insensitively and Story counts as a writing credit again, so the row covers every role the Details list used to show. New test testJobMatchingIgnoresCaseAndKeepsStoryWriters; xcodebuild build-for-testing -scheme Silo succeeded locally.
  • Benchmarks: not applicable, UI layout change.

Evidence

Before After
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. Cast & Crew row on a movie page

Surface and build: Silo web app movie page from Silo-Server/silo-server#1834, the layout these apps now match.

Risks

  • Producers no longer appear on movie and series pages, and the cast drops from 24 to 12.
  • Crew without a photo show the existing person icon rather than initials, since that card is shared with season and episode pages.
  • Cached detail responses keep their old photo URLs until they refresh.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Harness: Claude Code (desktop app)
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: AI-assisted
  • Adversarial review: n/a

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

  • Adds CastCrewGroups in 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 render CastCrewGroup values with vertical divider labels between groups. A cast-only initializer keeps server order and a 24-entry cap for season and episode rails.
  • Movie and series Details sections pass includesCredits: false to PhoneDetailFactsSection so director and writer facts move out of Details; the Details section hides entirely when no non-credit facts remain.
  • Movie portrait prefetch in PosterImageCache.swift now warms director and writer photos first, still capped at eight URLs.
  • Adds extensive tests for grouping, ordering, dedup, caps, and credit filtering in CastCrewGroupsTests.swift.
  • Behavioral Change: movies and series now display grouped credits with role captions instead of a flat cast list, and their Details sections omit director and writer rows. Non-movie routed items keep cast-only behavior and full credit facts.

Macroscope summarized 794ee69.

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

silo-kody Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@coderabbitai

coderabbitai Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4db0e11c-3caf-4d27-8995-a5b98a47267e
📥 Commits

Reviewing files that changed from the base of the PR and between 2b8b209 and 794ee69.

📒 Files selected for processing (11)
  • iosApp/Tests/CastCrewGroupsTests.swift
  • iosApp/iosApp/Components/Images/PosterImageCache.swift
  • iosApp/iosApp/Screens/Detail/CastCrewGroups.swift
  • iosApp/iosApp/Screens/Detail/MovieDetailContent.swift
  • iosApp/iosApp/Screens/Detail/Phone/PhoneCastRail.swift
  • iosApp/iosApp/Screens/Detail/Phone/PhoneDetailFactsSection.swift
  • iosApp/iosApp/Screens/Detail/SeriesDetailContent.swift
  • iosApp/iosApp/tvOS/Screens/Detail/TVDetailCastRail.swift
  • iosApp/iosApp/tvOS/Screens/Detail/TVDetailFactsSection.swift
  • iosApp/iosApp/tvOS/Screens/Detail/TVMovieDetailView.swift
  • iosApp/iosApp/tvOS/Screens/Detail/TVSeriesDetailView.swift

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e84048d4-dc68-451c-9655-56e38a3b485a
📥 Commits

Reviewing files that changed from the base of the PR and between 7ff8a64 and 2b8b209.

📒 Files selected for processing (2)
  • iosApp/Tests/CastCrewGroupsTests.swift
  • iosApp/iosApp/Screens/Detail/CastCrewGroups.swift

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

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

Changes

Cast and Crew Detail Displays

Layer / File(s) Summary
Define cast and crew groups
iosApp/iosApp/Screens/Detail/CastCrewGroups.swift, iosApp/Tests/CastCrewGroupsTests.swift
Adds entry and group models, role-based ordering, deduplication, entry limits, and tests for group contents and ordering.
Control credit facts
iosApp/iosApp/Screens/Detail/Phone/PhoneDetailFactsSection.swift, iosApp/iosApp/tvOS/Screens/Detail/TVDetailFactsSection.swift, iosApp/Tests/CastCrewGroupsTests.swift
Adds an includesCredits option to phone and TV fact assembly. Tests compare fact labels with credits included and excluded.
Render grouped cast and crew
iosApp/iosApp/Screens/Detail/MovieDetailContent.swift, iosApp/iosApp/Screens/Detail/SeriesDetailContent.swift, iosApp/iosApp/Screens/Detail/Phone/PhoneCastRail.swift, iosApp/iosApp/tvOS/Screens/Detail/TVMovieDetailView.swift, iosApp/iosApp/tvOS/Screens/Detail/TVSeriesDetailView.swift, iosApp/iosApp/tvOS/Screens/Detail/TVDetailCastRail.swift, iosApp/iosApp/tvOS/Caching/PosterImageCache.swift
Detail views pass grouped cast and crew entries to phone and TV rails. TV portrait prefetching uses the grouped entries.
Show nonempty detail sections
iosApp/iosApp/Screens/Detail/MovieDetailContent.swift, iosApp/iosApp/Screens/Detail/SeriesDetailContent.swift, iosApp/iosApp/tvOS/Screens/Detail/TVMovieDetailView.swift, iosApp/iosApp/tvOS/Screens/Detail/TVSeriesDetailView.swift
Movie and series detail views conditionally show Cast & Crew and Details sections based on available groups and facts.

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
Loading

Merge Risk: ⚪ Minimal · up to 2b8b2

No actionable issue is established that should block merging after normal checks.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 19.44% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 36 functions across 11 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: adding one Cast & Crew row to movie and series detail pages.
Description check ✅ Passed The description explains the Cast & Crew changes, affected detail pages, implementation, validation, and known risks.
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 💡 1
⚔️ Resolve merge conflicts 💡
  • Resolve merge conflict in branch upstream-cast-and-crew-row
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

… 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

silo-kody Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Quick104 commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

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 Evidence: none, no user-visible change. This PR was opened before the rule existed, so it hasn't had a chance to meet it yet.

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

@Quick104
Quick104 marked this pull request as draft October 6, 2026 19:26
@blurbery
blurbery marked this pull request as ready for review October 6, 2026 20:04
@blurbery

blurbery commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

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.

@blurbery blurbery closed this Oct 6, 2026
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.

2 participants