Skip to content

fix(detail): show a series' airing status on iPad title pages - #623

Merged
Quick104 merged 1 commit into
Silo-Server:mainfrom
Rhainland:fix/series-show-status
Oct 6, 2026
Merged

Quick104 merged 1 commit into
Silo-Server:mainfrom
Rhainland:fix/series-show-status

Conversation

@Rhainland

@Rhainland Rhainland commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

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 is show_status.

Approach

The hero reads show_status first and falls back to status.

Validation

  • Unit tests for ended, continuing, legacy status and unknown values: pass.
  • Manual, iPad simulator: Breaking Bad shows "COMPLETE SERIES".
  • 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):

a6-status

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. No findings.

Note

Fix series airing-status eyebrow on iPad title pages to prefer showStatus

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

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.
@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: c519cde8-367e-4210-a9ae-4e411d0b310e
📥 Commits

Reviewing files that changed from the base of the PR and between 6242652 and 4b76b76.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Kody Rules medium

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.

​

​

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Quick104
Quick104 merged commit 494ef04 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