Repository navigation
feat(people): add a Creator credit so series can show their creators - #2018
Conversation
…mpty main doesn't compile at ca4f71b: Silo-Server#1953 added a two-value return to loadCollectionSource after Silo-Server#1984 gave the function a third result, the collection title. Return the title with no items, the same as the other paths in the function, so the Go jobs can build. This is the one-line fix main needs. It isn't part of the Cast & Crew change and can be dropped once main has its own fix. (cherry picked from commit f9cb264)
Silo had no credit type for a series' creators, so a plugin sending "Creator" had it stored as Producer. Add PersonKindCreator, map "Creator" from plugins and crew jobs, and have the series "Created by" line prefer Creator credits, falling back to Director credits. Movies and episodes keep leading with directors, so a series' creators don't appear as "Directed by" on its episodes.
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:
|
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthroughThe person-kind model and metadata provider recognize creator credits. Series detail pages can show creators before directors in the hero crew line and Crew section. The default hero crew line remains director-only. ChangesCreator role and series credits
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature Suggested reviewers: Merge Risk: ⚪ Minimal · up to The Creator-credit changes are mergeable after normal checks; no specific user-facing failure remains identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 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 |
Prefer Creator credits for the series lead slot and fall back to Director credits when a series has none, so the row picks up creators once the server stores them (Silo-Server#2018) without changing series that only have directors.
Changed-line lint (goconst) counted the literal three times across the models package.
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:
|
|
Evidence is incomplete: this change has user-visible effects when an item has Creator credits.
Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
|
There's nothing to capture yet. No metadata source sends Creator credits today (the TMDB and TVDB plugins and NFO import never do), so every item's crew response and every series page stays the same until Silo-Server/silo-plugin-metadata-tmdb#25 ships. The mapping is covered by |
|
Evidence needs a rethink here.
Mocks or a test-library series are OK if live TMDB is awkward. Grok commenting on Quick's behalf. |
|
Thanks. The Evidence section now has before-and-after excerpts for both halves: the item detail crew for a plugin "Creator" person (Producer on main, Creator on this branch) and the people the TMDB plugin sends for a fixture series (no creator on main, a Creator person with Silo-Server/silo-plugin-metadata-tmdb#25). I used fixtures rather than a live library, as you said that was fine, so there's no series page capture. The same plugin excerpt is in #25's Validation section. |
Prefer Creator credits for the series lead slot and fall back to Director credits when a series has none, so the row picks up creators once the server stores them (Silo-Server#2018) without changing series that only have directors. (cherry picked from commit 16414d4)
|
Done properly this time. I installed this branch (on my fork) and the #25 plugin commit (on top of TMDB v1.2.23) on my own server, ran a Quick Refresh on Breaking Bad, and captured the same page and the same item's |
Quick104
left a comment
There was a problem hiding this comment.
I found no defects in this change. One display gap is below, and it needs your call. The summary comment has the rest of the review.
| const leadJob = leadJobs.find((job) => crew.some((c) => c.job === job)); | ||
| const directors = crew | ||
| .filter((c) => c.job === "Director") | ||
| .filter((c) => c.job === leadJob) |
There was a problem hiding this comment.
Low, needs your call: a series' third and later creators don't appear anywhere on its page.
The hero line keeps two names (.slice(0, 2) below), and CrewList's DISPLAY_JOBS (web/src/components/CrewList.tsx:15) lists only Director, Writer and Producer. #1834's Cast & Crew row would show creators, but it's still open. On main with this PR, a series with three or more Creator credits (TMDB lists several for many shows) shows the first two in "Created by". The others have no credit or person link on the page, unless they also hold a Producer or Director credit. A component render with three creators confirmed this: two names in the hero line and an empty crew list.
Nothing showed creators before, so nothing regresses. But the PR's goal of saying who created the show is only partly met for those series. Options:
- Add
"Creator"toDISPLAY_JOBS, first, so it renders "Creators". Episode detail reuses the series' credits (internal/catalog/detail.go:1705), so every episode's crew list would show the series' creators too. Jellyfin shows them the same way, but the PR description deliberately keeps them off episode pages. - Pass a
jobsprop toCrewListfromSeriesContentonly, so the series page lists Creators and season and episode pages stay as they are. - Leave it to Show a combined Cast & Crew row with sharper headshots #1834, and say in this PR's Risks section that series pages only show the first two creators until it merges.
I'm not changing this myself, because which pages should list creators is a product decision.
There was a problem hiding this comment.
I went with option 2 in abdc753. CrewList takes an optional jobs list and only SeriesContent passes one, so the series Crew section starts with every creator while the hero line keeps two. Season, episode and movie pages keep the default jobs. SeriesContent.test.tsx checks three creators are listed, linked and ahead of Directors (it fails without the prop), and SeasonContent.test.tsx checks a season doesn't list them. The Evidence section now has Lost, which has three creators on TMDB, before and after at desktop and phone width.
#1834 replaces this section with its Cast & Crew row, so I lifted that row's two-card cap for creators in 87d59a0. With both merged, all three still show. Risks says what the second merge needs in SeriesContent.tsx.
Also:
- I merged
main(a05c7c8), so c948bae is out of the diff. - Apple and Android follow-ups: [feature] Show a series' creators from the new Creator credit silo-apple#690 and [feature] Show a series' creators from the new Creator credit silo-android#514.
- I can't read the validation board either (my token doesn't have
read:project), soValidation tasks: nonestill rests on the same search of the Validation issues.
Review summaryReviewed head: Fit: 8/10 · Readiness: 8/10 — conditional Findings
Checked and ruled out
Follow-up, not this PRWhen the merge combines a later provider's people into existing ones, Validated featuresThe validation board couldn't be read from this review. The token lacks the Clients and docs
Scores
Review method
AI-assisted review with Claude Code ( |
The hero line names a series' first two creators, and the Crew section only listed Directors, Writers and Producers, so a third creator didn't appear anywhere on the series page. CrewList now takes the jobs to list, and the series page passes Creator ahead of the usual three, linking each creator to their person page like the rest of the crew. Season, episode and movie pages keep the default list, so a series' creators don't show up on them.
Main's Creator credit work (Silo-Server#2018) gave the series page its own Crew section with every creator. This branch replaces that section with the combined Cast & Crew row, which already lists every creator, so the CrewList jobs constant and its SeriesContent test go; CastCarousel's tests cover the creators. catalog_resolver.go takes main's rewritten loadCollectionSource, which makes this branch's earlier compile fix unnecessary.
* feat: show a combined Cast & Crew row with sharper headshots Movie and series detail pages now show one "Cast & Crew" row instead of a Cast carousel plus a separate Crew list. The director (or series creator) comes first, then up to three writers, then the top 12 billed cast, each group split by a thin divider with a small vertical label. Every card is the same size, and a writer-director only appears once. Season and episode pages are unchanged. Person photos requested without an explicit image size now ask plugins for the large variant instead of featured. The TMDB plugin maps featured to w185, which is soft on a cast card on a high-density screen; large maps to h632. Stored keys are still presigned untouched, and explicit image_size requests keep their existing mapping. * fix(catalog): return the collection title when its library scope is empty main doesn't compile at ca4f71b: #1953 added a two-value return to loadCollectionSource after #1984 gave the function a third result, the collection title. Return the title with no items, the same as the other paths in the function, so the Go jobs can build. This is the one-line fix main needs. It isn't part of the Cast & Crew change and can be dropped once main has its own fix. * feat(web): lead a series' Cast & Crew row with its Creator credits Prefer Creator credits for the series lead slot and fall back to Director credits when a series has none, so the row picks up creators once the server stores them (#2018) without changing series that only have directors. * perf(web): build the Cast & Crew groups once per render The movie and series pages called buildCrewGroups twice per render, once for the visibility check and once for the row, and the second call's new array made CastCarousel rebuild its sections every render. Memoise the groups on the item's crew and reuse them for both. * fix(web): caption series directors as directors and keep uncapped writers When a series has no Creator credits its Director credits fill the lead slot, but they were still captioned "Creator". Take the caption from the credits used. The writer group also skipped every lead credit, so a third director who also wrote showed nowhere; it now skips only the lead cards the row shows. * fix(web): show every series creator in the Cast & Crew row A series with three or more creators lost the third one to the two-card lead cap that is meant for directors. Creator credits now all get a card, still once per person, while a movie's directors and a series' fallback directors stay capped at two. The writer de-duplication follows the lead cards actually shown, so a creator who also wrote is never repeated.
Problem
Related issue: N/A
Validation tasks: none
Series pages almost never say who created the show. The "Created by" line on a series page only reads Director credits, and Silo has no credit type for a series' creators. TMDB lists a show's creators on the show itself (
created_by), not in its credits, and if a metadata plugin sent them as "Creator" today, Silo would store them as Producers, because any job it doesn't recognise falls back to Producer.This adds a Creator credit type and has the series "Created by" line use it.
Approach
models.PersonKindCreator(9) comes back as"Creator"in the detail response'screw. jellycompat passes the job through as the person type, and Jellyfin has its own Creator type.item_people.kindis a plain smallint with no constraint, so there's no migration, and catalog export and import copy the value through.kind: "Creator":personKindFromStringandmodels.PersonKindFromJobboth map it.HeroCrewLinenow takes the lead credit from the first job in["Creator", "Director"]that has credits, so a series without Creator credits still shows its directors as it does today. Movies, episodes and request pages keep the Director-only default. Episode pages reuse their series' credits, so this keeps a series' creators from showing up as "Directed by" on every episode.CrewListtakes an optionaljobslist, and onlySeriesContentpasses one (Creator, Director, Writer, Producer), so the hero line can stay at two names without hiding the rest. Season, episode and movie crew lists keep the default Directors, Writers and Producers, so creators stay off them.Silo-Server/silo-plugin-metadata-tmdb#25 (merged, released in TMDB plugin 1.2.24) sends each show's
created_bypeople as Creator credits.Validation
go build ./internal/...andgo vet ./internal/models/ ./internal/metadata/are clean, andgo test ./internal/models/ ./internal/metadata/passes. New tests coverPersonKindCreator.String(),PersonKindFromJob("Creator")andpersonKindFromString("Creator"); before this change that string was stored as Producer.HeroCrewLinetests cover a series leading with its creators over its directors, the fallback to directors, and the default "Directed by" line ignoring Creator credits.SeriesContent.test.tsxcovers a series with three creators: all three are listed and linked, ahead of Directors. It fails without thejobsprop.SeasonContent.test.tsxchecks a season with a Creator credit doesn't list Creators.pnpm exec vitest runon theSeriesContent,SeasonContent,MovieContent,HeroCrewLineandtextSizeScalingtests (34 passed),pnpm exec tsc -p tsconfig.app.json --noEmit, and ESLint and Prettier on the changed files.mainat a05c7c8, which has the compile fix from fix(ci): fix catalog return values and flaky jellycompat stop test #2025, so the duplicate fix in c948bae no longer shows in the diff. CI on that merge failed onlyTestUpdateProfile_PINChangeClearsLockout, which failed the same way onmainat the time, so 23f8abe mergesmainagain at 07dd4de, where it passes.Evidence
Every creator (local test server)
Lost has three creators on TMDB (J.J. Abrams, Damon Lindelof and Jeffrey Lieber), so it covers the case raised in review. Before, the hero has no "Created by" line and the Crew section has Producers only. After, the hero shows the first two creators and the Crew section starts with all three.
With #1834 merged on top, the series' Cast & Crew row leads with all three creators:
Surface and build: Silo web app, series detail page, desktop (1440 px wide) and phone width (390 px), captured with headless Chrome against a local test server with a generated test library and TMDB plugin 1.2.24. Before:
mainat a05c7c8. After: this PR's head abdc753, which merges that samemain, then a full metadata refresh of the series. The Cast & Crew row: abdc753 with #1834's 87d59a0 merged locally, only for that capture.Earlier capture on my own server
Live refresh on my own server: Breaking Bad, which TMDB credits to Vince Gilligan under
created_by. I installed both changes, ran a Quick Refresh on the series, and captured the same page and the same item's detail response before and after.Item detail
crewfor the same series, trimmed to Vince Gilligan's entries and fields:Before:
[{"name":"Vince Gilligan","job":"Producer","tmdb_id":"66633"}]After:
[{"name":"Vince Gilligan","job":"Producer","tmdb_id":"66633"},{"name":"Vince Gilligan","job":"Creator","tmdb_id":"66633"}]Surface and build: Silo web app, series detail page at phone width. Before: my fork's
mainat f89a2a1 with TMDB plugin 1.2.23. After: the same fork with this PR's commits at 6ce7fb5, and TMDB plugin 1.2.23 with Silo-Server/silo-plugin-metadata-tmdb#25's commit on top (installed as 1.2.23.1), then a Quick Refresh of the series. The "Created by" line is this PR. The Cast & Crew row's Creator card comes from #1834, which reads these credits; that build includes #1834's later web commits too. Vince Gilligan keeps his Producer credit from TMDB's production crew; the Creator credit is added alongside it.Earlier fixture checks
Item detail
crewfor a series whose metadata plugin sends a"Creator"person:Before (
main, 4bed990):{"crew":[{"name":"Vince Gilligan","job":"Producer","person_id":"101","tmdb_id":"66633"}]}After (this branch, fed0540):
{"crew":[{"name":"Vince Gilligan","job":"Creator","person_id":"101","tmdb_id":"66633"}]}People the TMDB plugin sends Silo for a series with one
created_byentry and one cast member:Before (silo-plugin-metadata-tmdb
main, 4a89777):{"people":[{"name":"Bryan Cranston","kind":"Actor","tmdb_id":"17419"}]}After (Silo-Server/silo-plugin-metadata-tmdb#25, edd8d04):
{"people":[{"name":"Bryan Cranston","kind":"Actor","tmdb_id":"17419"},{"name":"Vince Gilligan","kind":"Creator","tmdb_id":"66633"}]}Both pairs come from focused Go tests run on each commit with fixture data.
Risks
crewwill see a new"Creator"job once a plugin sends it. The Apple and Android apps pick crew by job name (Director, Writer), so they ignore it until they're updated to show it. Follow-ups: [feature] Show a series' creators from the new Creator credit silo-apple#690 and [feature] Show a series' creators from the new Creator credit silo-android#514.SeriesContent.tsx: drop theCrewListline andSERIES_CREW_JOBS, and move this PR's series test onto the row.Checklist
AI Disclosure
AI-assisted with Claude Opus. I directed the task and designed the work.
Note
Add Creator person kind and show series creators in detail pages
PersonKindCreatorvalue tomodels.PersonKind, with string serialization and job-label mapping in media.go and plugin_provider.goCrewListandHeroCrewLinenow accept an ordered job list, so callers choose which crew categories appear and in what order; defaults stay directors, writers, and producersHeroCrewLinepicks the first lead job with credits from the caller's order instead of always filtering for directors; checkDEFAULT_LEAD_JOBSin HeroCrewLine.tsx and the new hero job order in SeriesContent.tsxMacroscope summarized 692b39f.