Repository navigation
fix(detail): show a series' airing status on iPad title pages - #623
Conversation
The iPad detail hero has a status line above the title (Complete Series, Continuing Series, New Season Coming). It read the item's `status`, which the server leaves empty for series, so the line never appeared. The airing state is `show_status`. The hero now reads `show_status` first and falls back to `status`. Found during the Series validation, silo-apple#337 C2.
|
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 59 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (2)
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 |
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:
|
| detail.type == "series" { | ||
| // A series' airing state is `show_status`; `status` is the catalog | ||
| // item's own state and is usually empty for series. | ||
| if detail.type == "series", |
There was a problem hiding this comment.
Use a shared media-kind normalization helper that trims whitespace and newlines and compares case-insensitively. This raw comparison skips the airing-status eyebrow for API values such as "Series" or " series ", contrary to the required normalization contract.
Kody rule violation: Use consistent API normalization and production-equivalent decoding
Prompt for LLM
File iosApp/iosApp/Screens/Detail/Phone/PhoneHeroMetadata.swift:
Line 88:
Use a shared media-kind normalization helper that trims whitespace and newlines and compares case-insensitively. This raw comparison skips the airing-status eyebrow for API values such as "Series" or " series ", contrary to the required normalization contract.
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
There was a problem hiding this comment.
Not changing this here. The detail.type == "series" check is unchanged from main; this PR only changes which status field it reads. The server sends type as a lowercase catalog kind, and the "episode" check just above compares the same way. Normalizing media kinds across the detail views would be a separate change.
There was a problem hiding this comment.
Agreed—this suggestion is out of scope for #623. The detail.type == "series" comparison is unchanged, and with the server’s lowercase catalog-kind contract, the mixed-case and whitespace examples don’t establish a regression from this PR.
I withdraw the recommendation for this PR. Any shared media-kind normalization should be evaluated separately across the detail views, including the adjacent "episode" check.
Problem
Related issue: N/A
Validation tasks: changes #337 C2
The iPad detail hero has a status line above the title (Complete Series, Continuing Series, New Season Coming). It read the item's
status, which the server leaves empty for series, so the line never appeared. The airing state isshow_status.Approach
The hero reads
show_statusfirst and falls back tostatus.Validation
statusand unknown values: pass.scripts/ci/check-no-api-v1.sh: pass.main(6242652): the full iOS unit suite ran 2,691 tests. The only failures areArtworkURLTests.testDeliveryCapabilityOnIOSUsesV2RouteAndResetsandImageSizeCapabilityTests.testResetClearsCapability, which fail the same way onmain. tvOSbuild-for-testingand the macOS build succeed.Simulator screenshots (iOS 26.5, tvOS 26.5):
Risks
None identified.
Checklist
AI Disclosure
mainat medium effort, checking behaviour, platform guards (iOS, tvOS, macOS), tests and commit hygiene. No findings.Note
Fix series airing-status eyebrow on iPad title pages to prefer
showStatusSeries eyebrow labels now read the trimmed show status first, falling back to the item status when it is absent or empty, in PhoneHeroMetadata.swift. Show statuses like “Returning Series” and “ended” map to the series labels, and legacy item-status values still work.
Adds tests in PhoneHeroEyebrowTests.swift covering show-status derivation, the legacy fallback, and no eyebrow for empty or unknown statuses.
Macroscope summarized 4b76b76.