Repository navigation
fix(detail): show the episode number on series episode cards - #634
Merged
Merged
Conversation
The iPhone series page's episode cards showed the title, air date, and runtime but no episode number, so specials and the episode order were hard to tell apart. Each card's title now leads with the episode code, "S01E02 · Pilot", the same caption the tvOS Series carousel and Home episode cards use. Specials read S00Exx, and an untitled episode shows just its code instead of "Episode N". The VoiceOver label already named the season and episode and is unchanged. PhoneEpisodeFormattingTests covers titled, special, and untitled episodes. Found during the Series validation, silo-apple#337.
|
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:
|
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
Related issue: N/A
Validation tasks: changes #337 C8
The iPhone series page's episode cards showed the title, air date and runtime but no episode number, so specials and the episode order were hard to tell apart. Each card now leads with the episode code.
Approach
Card titles read "S01E02 · Pilot", the caption the tvOS carousel and Home episode cards already use. Specials read S00Exx, and an untitled episode shows just its code instead of "Episode N". The VoiceOver label already named the season and episode and is unchanged.
Validation
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. It found the new test file would not compile in the tvOS test target, which builds every file underTests/. The file is now excluded from tvOS.Note
Fix
PhoneEpisodeFormatting.titleto always show the season/episode codeEpisodeCardCaption.code) for every episode, joined with a centered dot when a title exists.PhoneEpisodeFormatting.titlein PhoneEpisodeFormatting.swift now shows the code (e.g.S01E02) instead of the previous fallback format.Macroscope summarized 3b9908f.