Skip to content

fix(detail): show the episode number on series episode cards - #634

Merged
Quick104 merged 1 commit into
Silo-Server:mainfrom
Rhainland:fix/episode-card-number
Oct 6, 2026
Merged

Quick104 merged 1 commit into
Silo-Server:mainfrom
Rhainland:fix/episode-card-number

Conversation

@Rhainland

@Rhainland Rhainland commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Unit tests for titled, special and untitled episodes: pass.
  • Manual, iPhone simulator: cards read "S01E01 · Pilot".
  • scripts/ci/check-no-api-v1.sh: pass.
  • All 22 app fixes from this validation run, merged together on main (6242652): the full iOS unit suite ran 2,691 tests. The only failures are ArtworkURLTests.testDeliveryCapabilityOnIOSUsesV2RouteAndResets and ImageSizeCapabilityTests.testResetClearsCapability, which fail the same way on main. tvOS build-for-testing and the macOS build succeed.
  • Local builds used Swift 6.3.3, which needs the ThumbHash type annotations from fix(build): annotate ThumbHash cosine tables so Swift 6.3.3 can type-check them #608 to compile. That change was applied locally and is not part of this PR.

Simulator screenshots (iOS 26.5, tvOS 26.5):

a17-epnum

Risks

None identified.

Checklist

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

AI Disclosure

  • Harness: Claude Code, running in T3 Code
  • Tool(s): Claude Code subagents, xcodebuild, Xcode Simulator (simctl, Maestro), GitHub CLI
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: A separate Claude Code reviewer agent (claude-opus-5-5) read this branch's diff against main at 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 under Tests/. The file is now excluded from tvOS.

Note

Fix PhoneEpisodeFormatting.title to always show the season/episode code

  • Phone episode card captions now include the season/episode code (from EpisodeCardCaption.code) for every episode, joined with a centered dot when a title exists.
  • Titles are trimmed; nil or whitespace-only titles produce a caption with only the episode code, replacing the old episode-number fallback.
  • Adds a phone-only XCTest suite covering titled, season-zero special, and untitled episodes in PhoneEpisodeFormattingTests.swift.
  • Behavioral Change: PhoneEpisodeFormatting.title in PhoneEpisodeFormatting.swift now shows the code (e.g. S01E02) instead of the previous fallback format.

Macroscope summarized 3b9908f.

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.
@coderabbitai

coderabbitai Bot commented Oct 5, 2026

Copy link
Copy Markdown

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 59 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: cc09fd44-eb01-4fb3-9490-8edb260c822e
📥 Commits

Reviewing files that changed from the base of the PR and between 6242652 and 3b9908f.

📒 Files selected for processing (2)
  • iosApp/Tests/PhoneEpisodeFormattingTests.swift
  • iosApp/iosApp/Screens/Detail/Phone/PhoneEpisodeFormatting.swift
  • 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.

@silo-kody

silo-kody Bot commented Oct 5, 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 ❌

@Rhainland Rhainland mentioned this pull request Oct 5, 2026
11 tasks
@Quick104
Quick104 merged commit 6f24054 into Silo-Server:main Oct 6, 2026
6 checks passed
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