Skip to content

feat(catalog): label sports episodes by air date - #1035

Merged
Quick104 merged 6 commits into
Silo-Server:mainfrom
Rhainland:feat/sports-air-date-labels
Nov 24, 2026
Merged

Quick104 merged 6 commits into
Silo-Server:mainfrom
Rhainland:feat/sports-air-date-labels

Conversation

@Rhainland

@Rhainland Rhainland commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #1034
Related issue: Silo-Server/silo-server#5046
Validation tasks: none

Other clients: Apple Silo-Server/silo-apple#1252; Roku Silo-Server/silo-roku#105; Web Silo-Server/silo-server#5129

Sportarr numbers each league's events as a TV season, so an NBA game shows as "S2026E296" on Android phone and TV. The numbers sort the games but tell a viewer nothing. When the server marks a series episode_labels: "air_date" (Silo-Server/silo-server#5129), the phone and TV apps now show the game's date (for example "Nov 20, 2026") where they showed the code.

Approach

  • One shared helper, EpisodeLabel, writes every episode code style the apps used and switches to the medium date, read as a calendar day, when the series is date-labeled and the episode has an air date. An undated episode, a numbered series and an older server keep the numbers. Sorting, next up and playback still use the numbers.
  • Dates show on Continue Watching and Home episode cards, the TV hero banner, the season episode rail (the matchup leads and the date stays on the metadata line), episode and series detail Play labels, the player title, the media notification, Up Next and On Deck, shuffle Next Up, the TV player Info pane, Watch Party pickers and staged items, and new downloads.
  • The players read the labels only from /api/v2/watch, which now carries episode_labels and air_date for an episode. That keeps a stale cached detail from showing the wrong label and costs no extra request for numbered shows.
  • An invalid air date such as 2026-02-30 falls back to the code instead of failing while the screen draws.

Validation

  • Unit tests (shared, android-shared, androidApp, androidTvApp): pass.
  • Phone and TV debug builds of this branch and of main: succeed.
  • End to end against a server with feat(catalog): label sports episodes by air date silo-server#5129 and a Sportarr library (NBA, NHL, MLB, NFL, Formula 1, UFC) on a phone emulator (Android 16) and an Android TV emulator (Android 14).

Evidence

Evidence: https://evidence.siloserver.org/r/silo-android/pr-1035/

Surface and build: Android phone and Android TV, before e807164 (main), after d888067, same server data. Tablet and foldable were not captured: they use the phone layouts, and the change only replaces the label text inside them.

Risks

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • The Evidence section shows every change a user can see, or how I checked a change nobody sees.

AI Disclosure

  • Harness: Claude Code (in T3 Code)
  • Tool(s): Claude Code; Codex CLI for the second reviewer
  • Model(s): claude-opus-5-5; gpt-6.2-sol (review)
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: dual code review (claude-opus-5-5 and gpt-6.2-sol, independent, then reconciled) of this branch, with every real finding fixed before this pull request opened.

Note

Show air dates instead of episode codes for date-labeled series

  • Series flagged with the air_date episode label now show the episode's localized air date everywhere an episode code used to appear: detail screens, player HUD, episode lists, On Deck, Watch Party, Cast titles, and download titles
  • New shared EpisodeLabel formatter in EpisodeLabel.kt resolves a valid air date or falls back to a season/episode code in one of five styles (Plain, Dotted, Colon, Spaced, Tag)
  • Episode-label and air-date fields are added to catalog, section, and playback models, deserialized from V2 API data, and threaded through Android, TV, and shared UI state
  • Episode cards for date-labeled series show only the title (or the date when untitled) instead of a code-plus-title caption
  • Behavioral Change: TV detail play labels use localized air dates or a plain Resume label for date-labeled series; TV detail play buttons for these series use a 170dp minimum width instead of a fixed width; TV marquee enrichment omits the separate aired-date fact when the date is already used as the episode label

Macroscope summarized 2bd597a.

Sportarr numbers a league's events S<year>E<n>, so an NBA game showed
"S2026E296". The server now marks such a series episode_labels=air_date on
v2 cards and item detail, with air_date on episode cards. Phone and TV show
the episode's air date ("Nov 20, 2026") where the code went: Continue
Watching and Home episode cards, the TV hero marquee, the season episode
rail (title leads, date stays on the metadata line), episode and series
detail play labels, the player eyebrow, media notification, Up Next and On
Deck, Watch Party staged items and new downloads. An undated episode keeps
its numbers, and sorting and next-up still use them.

/watch doesn't carry the labels yet, so the players read the cached catalog
detail, carry the labels across Up Next within a series, and otherwise fetch
the detail in the background after playback starts.

Episode codes now come from one shared helper, EpisodeLabel, in each
surface's existing spelling.
The server now sends episode_labels and air_date on /api/v2/watch for an
episode of a date-labeled series, so the players use it as their only
source. Dropped the cached-detail lookup, the carry-over across auto-play
and the background detail fetch: a stale cache could show S2026E296 on TV,
every numbered episode cost an extra detail request, and on phone a cached
air date could override a /watch that sent numbers. Player state keeps the
raw labels and date and formats them where drawn; the TV start result now
carries both fields through.

Also labeled by date: the shuffle Next Up (from the pick's card), the TV
player Info pane, and the phone Watch Party picker's Continue Watching
cards, confirmation page and the subtitle sent to the party.
- Parse air dates with the shared calendarDateOrNull (extracted from the
  person-date formatter), which rejects a day the month doesn't have, so a
  bad air date like 2026-02-30 falls back to the code instead of throwing
  while drawn.
- SeasonEpisodePager provides LocalEpisodeLabels itself instead of through
  a wrapper that repeated its parameters.
- Downloads and the TV cast subtitle word their English codes through
  EpisodeLabel.englishText (a new unpadded Plain style keeps "S1E2").
- The Watch Party episode line and the phone backdrop card's tag use
  EpisodeLabel.text instead of their own fallbacks.
@silo-triage silo-triage Bot added the size/XL 500–999 added + deleted lines (all files); change volume, not priority. label Nov 22, 2026
@silo-kody

silo-kody Bot commented Nov 22, 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 ❌

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

This organization requires a seat for paid usage-based reviews, including automatic and on-demand reviews. Ask an admin to assign a seat or enable paid usage-based reviews for users without a seat in Billing.

Next included review available in 46 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

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fbe6ef1f-52c5-403d-9eac-d8abcbad66d7
Commits

Reviewing files that changed from the base of the PR and between d888067 and 2bd597a.

Files selected for processing: 47

  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/downloads/DownloadEnqueuer.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/i18n/SharedStrings.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/video/VideoPlaybackSessionCoordinator.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/video/VideoPlaybackStartResult.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/video/VideoPlayerUiState.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/watchparty/WatchPartyText.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/i18n/EpisodeLabelTest.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/cast/SiloCastArtworkResolver.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/BackdropCard.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/MediaRow.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/DetailSharedComponents.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/EpisodeList.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/ItemDetailScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/MovieDetailContent.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/SeasonEpisodePager.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/SeriesDetailContent.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/OnDeckItems.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerControls.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerNextUpScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerOverlay.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModel.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/watchparty/WatchPartyPickerSheet.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/watchparty/WatchPartyRoomContent.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvEpisodeCard.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvEpisodeTag.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvFactsRow.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvFocusMarqueeModel.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvMediaRow.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvDetailEpisodeRail.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvDetailMetadata.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvItemDetailScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvOnDeckItems.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerHud.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerViewModel.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvVideoPlaybackStarter.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/watchparty/TvWatchPartyStagedItem.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/components/TvFocusMarqueeModelTest.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/common/i18n/SharedString.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/catalog/CatalogModels.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/catalog/EpisodeCardCaption.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/catalog/EpisodeLabel.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/catalog/PersonPresentation.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/section/SectionModels.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/network/apiv2/CatalogDetailReadV2Models.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/playback/ShufflePlayback.kt
  • shared/src/commonTest/kotlin/org/siloserver/silo/playback/ShufflePlaybackTest.kt
Walkthrough

The change adds shared episode-label formatting that uses a valid air date for episodes marked with the air_date label. Catalog, section, and playback data now carry label metadata to phone and TV surfaces, downloads, and Watch Party text.

Changes: Episode Air-Date Labels

Layer / File(s) Summary
Catalog metadata and episode-label formatting
shared/.../model/catalog/*, shared/.../model/section/SectionModels.kt, shared/.../network/apiv2/CatalogDetailReadV2Models.kt, shared/.../playback/ShufflePlayback.kt, shared/.../common/i18n/SharedString.kt, android-shared/.../i18n/SharedStrings.kt, android-shared/.../i18n/EpisodeLabelTest.kt, shared/.../ShufflePlaybackTest.kt
Catalog and section models add episode-label and air-date fields. EpisodeLabel formats valid air dates or numbered codes. Date parsing and formatter tests are added.
Playback, downloads, and shared Watch Party text
android-shared/.../downloads/DownloadEnqueuer.kt, android-shared/.../player/video/*, android-shared/.../watchparty/WatchPartyText.kt, androidApp/.../player/PlayerViewModel.kt, androidTvApp/.../player/TvPlayerViewModel.kt, androidTvApp/.../player/TvVideoPlaybackStarter.kt
Playback states and next-episode data carry episode-label metadata. Download titles and sidecars, and shared Watch Party formatters, use the metadata when composing episode text.
Phone catalog and detail displays
androidApp/.../components/BackdropCard.kt, androidApp/.../components/MediaRow.kt, androidApp/.../screens/detail/*
Phone cards, episode lists, detail screens, and season pagers pass episode-label metadata to episode formatting.
Phone player and Watch Party displays
androidApp/.../screens/player/*, androidApp/.../screens/watchparty/*
Phone player, On Deck, Next Up, and Watch Party displays use episode-label metadata when formatting episode text.
TV catalog, cards, and detail displays
androidTvApp/.../components/*, androidTvApp/.../screens/detail/*
TV cards, shelves, and detail screens use episode-label metadata. Detail metadata omits synthetic episode numbers when a date label is available.
TV player and Watch Party displays
androidTvApp/.../screens/player/*, androidTvApp/.../screens/watchparty/TvWatchPartyStagedItem.kt, androidTvApp/.../components/TvFocusMarqueeModelTest.kt
TV player state carries episode-label metadata to the HUD, player labels, and Watch Party subtitles. The marquee test handles the new UI-text token.

Estimated code review effort: 4 (Complex) | ~45 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant TvVideoPlaybackStarter
  participant VideoPlaybackStartResult
  participant TvPlayerViewModel
  participant TvPlayerScreen
  participant EpisodeLabel
  TvVideoPlaybackStarter->>VideoPlaybackStartResult: attaches episodeLabels and airDate
  VideoPlaybackStartResult->>TvPlayerViewModel: provides playback metadata
  TvPlayerViewModel->>TvPlayerScreen: exposes metadata in UiState
  TvPlayerScreen->>EpisodeLabel: formats episode text by style
Loading

Possibly related issues

  • Issue 982: This change centralizes episode-label formatting and adds air-date labels, but numbered episodes still use the selected style-specific code formats, so it does not establish consistent numbered codes across surfaces.

Suggested reviewers: quick104

Merge Risk: Low · previous review d8880

Date labels for sports episodes work in the main flows. A few edge cases still show the wrong label: titled episodes with a missing or invalid date lose their code, offline downloads show English dates, and the Watch Party next-up entry shows episode codes instead of dates. These are cosmetic and can be fixed before or after merge.

Security architecture risk: Minimal · up to d8880

The inspected changes affect episode labels without changing playback identity, download destinations, or permission decisions. Missing or invalid dates retain numbered labels. No introduced security or ownership regression was established.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The examined propagation reaches client presentation, stored download display text, and Watch Party suggestion subtitles shared with room participants. The new label inputs were not observed selecting credentials, tenant identity, playback resources, or local file destinations in these flows.

Trust Boundaries and Controls

  • observed — Server-controlled label mode is interpreted through an exact string comparison. Date labels are generated from validated numeric calendar components rather than echoing the raw date string. Download deduplication remains file-ID-based, and local media naming receives file identity and filename inputs independently of display labels.

Resilience and Maintainability Implications

  • observed — The added playback metadata is published within existing successful-state updates. The compared changes leave owner-current checks, stale-result rollback callbacks, and cancellation cleanup in place; label values do not determine those control branches. The shared coordinator's error and unreachable outcomes remain separate from successful label metadata.
Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Linked Issues check Inconclusive Directly linked issue #1034 has coding requirements only. The reviewed head implements most of them. [#1034] Shared EpisodeLabel (shared/.../model/catalog/EpisodeLabel.kt) returns an air-date label … Provide the diff of androidTvApp/.../screens/detail/TvItemDetailScreen.kt (narrowed to the Play/Resume label computation) or the prior label text for the Resume state. Confirm whether the Resume label must show the air date. If it must, t…
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title "feat(catalog): label sports episodes by air date" matches the main change. The PR adds an EpisodeLabel helper that shows a medium air date instead of the season/episode code for series mark…
Out of Scope Changes check Passed The changes stay within the label-by-air-date objective. Notifications, On Deck, Watch Party pickers and staged items, and downloads are not named in #1034. The issue asks for the date "wherever the s…
Description check Passed The description is specific to the changeset. It states the problem (sports episodes shown as S/E codes), the fix (a shared EpisodeLabel helper that shows air dates for date-labeled series), the affec…
Full details: Title check

Explanation

The title "feat(catalog): label sports episodes by air date" matches the main change. The PR adds an EpisodeLabel helper that shows a medium air date instead of the season/episode code for series marked episode_labels "air_date", across phone and TV surfaces. The title is specific and follows a conventional commit format.

Full details: Out of Scope Changes check

Explanation

The changes stay within the label-by-air-date objective. Notifications, On Deck, Watch Party pickers and staged items, and downloads are not named in #1034. The issue asks for the date "wherever the season and episode code would show", so these surfaces fall within that rule. Supporting changes implement the feature and do not add unrelated behavior: SharedString catalog keys, the CatalogModels/SectionModels wire fields, calendarDateOrNull in PersonPresentation.kt (shared date parsing used by EpisodeLabel, with formattedPersonDate behavior preserved for non-date input), test updates in TvFocusMarqueeModelTest and ShufflePlaybackTest, and the TV Play button width change that accompanies the longer date label. No change was found that lacks a connection to episode labels.

Full details: Description check

Explanation

The description is specific to the changeset. It states the problem (sports episodes shown as S/E codes), the fix (a shared EpisodeLabel helper that shows air dates for date-labeled series), the affected phone and TV surfaces, the server dependency, validation steps, and risks. It matches the raw summary and PR objectives, so the check passes.

Full details: Linked Issues check

Explanation

Directly linked issue #1034 has coding requirements only. The reviewed head implements most of them. [#1034] Shared EpisodeLabel (shared/.../model/catalog/EpisodeLabel.kt) returns an air-date label only when episode_labels is air_date and air_date is a valid YYYY-MM-DD. Otherwise it returns the numbered code. BrowseItem, ItemDetail, WatchDetail, SectionItem and ShuffleNextPick carry episodeLabels and airDate. The phone and TV surfaces named in the issue use EpisodeLabel: Home and Continue Watching cards, the season episode list (EpisodeCardCaption, EpisodeList), episode and series detail, the player title and Up Next, On Deck and shuffle Next Up. The episode-list title leads and the date stays on the metadata line. The /api/v2/watch path carries both fields into VideoPlaybackStartResult.Ready, VideoPlayerUiState and TvPlayerViewModel. Sorting and playback still use the numbers. Unit test EpisodeLabelTest covers dated, numbered and undated episodes. Unresolved: the TV Play button summary says it shows the air date when starting and plain "Resume" when resuming. The issue lists Play and Resume labels as surfaces that show the date. The reviewed head could not be read for TvItemDetailScreen.kt (diff unavailable, file read truncated before the Play label code). I cannot confirm whether the Resume label previously showed a code, or whether it now omits the code without showing the date.

Resolution

Provide the diff of androidTvApp/.../screens/detail/TvItemDetailScreen.kt (narrowed to the Play/Resume label computation) or the prior label text for the Resume state. Confirm whether the Resume label must show the air date. If it must, the Resume label needs the date; otherwise no change is needed.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@silo-triage silo-triage Bot added enhancement New feature or request impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish labels Nov 22, 2026
@macroscopeapp

macroscopeapp Bot commented Nov 22, 2026

Copy link
Copy Markdown

The Evidence section says captures “will be published” but includes no published URL or attached screenshots. The phone/TV end-to-end validation statement does not show the UI, and the stated tablet/foldable omission is not justified: these same phone-app label paths run on those layouts.

  • Home, browse, Continue Watching, and episode-card labels (androidApp/.../BackdropCard.kt, androidTvApp/.../TvEpisodeCard.kt): the date replaces the episode code. Missing before/after screenshots of the same screens and data on phone, tablet, foldable folded and open, and Android TV.
  • Detail metadata, episode rails, and Play labels (androidApp/.../detail/, androidTvApp/.../detail/): the date replaces the code in detail surfaces. Missing before/after screenshots on phone, tablet, foldable folded and open, and Android TV.
  • Player, notification, Up Next/On Deck, and TV player Info labels (androidApp/.../player/, androidTvApp/.../player/): episode dates replace codes in playback surfaces. Missing before/after screenshots on phone, tablet, foldable folded and open, and Android TV.
  • Watch Party picker and staged-item labels (androidApp/.../watchparty/, androidTvApp/.../watchparty/): the date replaces the code. Missing before/after screenshots on phone, tablet, foldable folded and open, and Android TV.
  • Download titles and subtitles (android-shared/.../DownloadEnqueuer.kt): the date replaces the code in download entries. Missing before/after screenshots on phone, tablet, and foldable folded and open.

Please attach same-data before/after captures for these affected screens and device form factors, or publish them and add the evidence URL. The stated build/commit details can accompany those captures.

Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.

Posted via Macroscope — Visible change evidence

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 3

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Minor · Carry the air-date label metadata through the Watch Party next-up… · WatchPartyPickerSheet.kt:307

androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/watchparty/WatchPartyPickerSheet.kt:307
Minor · Functional Correctness · Heavy lift

Carry the air-date label metadata through the Watch Party next-up path.

PickerNextUp has no air_date or episode_labels field, so WatchPartyChoice.nextUp cannot pass them on. For a series marked episode_labels: "air_date", the confirmation then shows the numeric code. The lobby subtitle is built as S<season>:E<episode>. The Continue Together caption also uses only the season and episode numbers. The stated Watch Party scope requires the air date on these surfaces.

Add the label fields to the picker's next-up model. Pass them to the confirmation, the lobby subtitle, and the caption. The picker response must supply these fields. Its next_up contract is not in this repository, so confirm the server provides them. If it does not, this path needs another supported source for the air date.

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 307cf8b4-1750-46bf-9a2b-0f712f6876d0
Commits

Reviewing files that changed from the base of the PR and between e807164 and d888067.

Files selected for processing: 45

  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/downloads/DownloadEnqueuer.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/i18n/SharedStrings.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/video/VideoPlaybackSessionCoordinator.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/video/VideoPlaybackStartResult.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/video/VideoPlayerUiState.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/watchparty/WatchPartyText.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/i18n/EpisodeLabelTest.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/BackdropCard.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/components/MediaRow.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/DetailSharedComponents.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/EpisodeList.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/ItemDetailScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/MovieDetailContent.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/SeasonEpisodePager.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/detail/SeriesDetailContent.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/OnDeckItems.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerNextUpScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerOverlay.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModel.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/watchparty/WatchPartyPickerSheet.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/watchparty/WatchPartyRoomContent.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvEpisodeCard.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvEpisodeTag.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvFactsRow.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvFocusMarqueeModel.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvMediaRow.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvDetailEpisodeRail.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvDetailMetadata.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/detail/TvItemDetailScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvOnDeckItems.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerHud.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerViewModel.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvVideoPlaybackStarter.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/watchparty/TvWatchPartyStagedItem.kt
  • androidTvApp/src/androidUnitTest/kotlin/org/siloserver/silo/tv/ui/components/TvFocusMarqueeModelTest.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/common/i18n/SharedString.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/catalog/CatalogModels.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/catalog/EpisodeCardCaption.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/catalog/EpisodeLabel.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/catalog/PersonPresentation.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/model/section/SectionModels.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/network/apiv2/CatalogDetailReadV2Models.kt
  • shared/src/commonMain/kotlin/org/siloserver/silo/playback/ShufflePlayback.kt
  • shared/src/commonTest/kotlin/org/siloserver/silo/playback/ShufflePlaybackTest.kt

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@Rhainland

Copy link
Copy Markdown
Contributor Author

On CodeRabbit's outside-diff finding about the Watch Party next-up path: this is the same gap Kody raised on the TV picker. The server's picker next_up (Silo-Server/silo-server#5129) has no air_date, so no client can show the date there yet. Adding it on the server and reading it in each client is a separate change.

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review of d888067. The labels work as described, and ordinary numbered shows keep their old text everywhere except the three inline findings below. Six small findings in all, four inline and two below. I'm fixing all six in commits on this branch, so there's no need to change anything yourself. I'll post a summary comment after the push.

Minor, outside the diff: the phone's cast title shows the code, then switches to the date. castDisplayTitle (androidApp/.../cast/SiloCastArtworkResolver.kt) builds "Series · S1 · E2" to match the TV player's own subtitle until the TV reports its state. This PR changed the TV subtitle (toSiloCastPlaybackState) to the date but left the phone side alone. When you cast a game from the phone, the title reads "NBA · S2026 · E296" during the handoff, then "NBA · Nov 20, 2026" once the TV reports. ItemDetail already carries episodeLabels and airDate, so it can use the same EpisodeLabel.englishText(…, EpisodeCodeStyle.Spaced) call.

Minor, outside the diff: the foldable tabletop Next button still shows the code. PlayerControls.kt (tabletop row, around line 672) formats player_controls_nextEpisode ("Next S%1$d·E%2$d") directly. During a game it reads "Next S2026·E297", even though NextEpisodeInfo now carries episodeLabels and airDate. The existing cast_remote_nextNamed ("Next: %1$s") can take the date.

🤖 Claude Code (claude-opus-5-5)

…s labels

Review fixes for the air-date labels:

- TV Watch Party subtitles send "S1E2" again instead of "S01E02".
- Watch Party episode codes use their own catalog keys again, so
  Simplified Chinese keeps "第1季第2集" for numbered shows.
- The phone's cast title and the foldable tabletop Next button show a
  game's date instead of "S2026 · E296".
- The TV Home marquee no longer repeats a game's date as "Aired …".
- The TV season rail leaves a game's title bare, since nothing joins it,
  and refreshes an untitled game's date when the date locale changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-kody

silo-kody Bot commented Nov 23, 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 ❌

@Quick104

Quick104 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Review summary

Fit: 8/10 · Readiness: 7/10 — conditional (assuming CI is green)

Reviewed d888067. Fixes pushed as 23a388c and 2bd597a, on top of a merge of main (9618a8e, which brings in #1036; no conflicts). Current head: 2bd597a.

The approach is sound. The server sends one flag, every label goes through one helper (EpisodeLabel), and the numbers stay as the fallback. It adds no setting, and an older server changes nothing. Ordinary numbered shows keep their old text on every surface I traced, except for the regressions fixed below.

Fixed on this branch (23a388c)

  • TV Watch Party subtitles send S1E2 again instead of S01E02.
  • Watch Party codes use their own catalog keys again, so Simplified Chinese keeps 第1季第2集. watchParty_episodes_line and watchParty_facts_episodeCode are no longer left unread.
  • The phone's cast title shows a game's date during the handoff instead of S2026 · E296.
  • On a foldable in tabletop mode, the Next button names the game's date instead of S2026·E297.
  • The TV Home marquee no longer repeats a game's date as Aired …. A sports series card keeps its Aired … line (2bd597a, after Kody's comment).
  • The TV season rail leaves a game's title bare, and its title refreshes when the date locale changes.

Verification. Phone and TV debug builds pass on the merged head and on the fix commit. These tests pass on the fix commit: EpisodeLabelTest, SharedPresentationTextTest, TvFocusMarqueeModelTest, TvFocusMarqueeEnrichmentTest, TvDetailFocusPolicyTest and the SiloCast* tests. I didn't run a live check: it needs a server with Silo-Server/silo-server#5129 and a Sportarr library. The new tests cover the PR's own helper, so they don't build on the base and can't show a failure there.

Left for maintainers to settle

  • With progress on a game, the TV series Play button reads a plain "Resume". Naming the game would need a new catalog string ("Resume %s").
  • The published evidence was captured on d888067, on a phone and a TV. Current-head captures are still needed for the TV Home marquee (a game and a sports series card), the phone-to-TV cast handoff, and the foldable tabletop Next button. The repository's rule also asks for tablet and foldable (folded and open) captures, since the same phone layouts reach them. All of these need a server running feat(catalog): label sports episodes by air date silo-server#5129 with a Sportarr library.
  • Small things not changed here:
    • An untitled game shows its date twice on the season rails, and falls back to "Episode 296" as a hero or party title.
    • If the phone's second /watch read fails, the player falls back to the stored code subtitle.
    • BrowseItem decodes episode_labels and air_date, but nothing reads them yet.
    • Calendar and push notifications still show the code; the PR doesn't claim them.
    • upNext_episodeCode is now unread, with the same text as detail_episodeCode in every locale.
  • This merges only after feat(catalog): label sports episodes by air date silo-server#5129. Before then, every series keeps its numbers.

Earlier threads. I agree with the author's answers on the downloads sidecar, partial codes, titled games without a date, and the TV picker's next_up. The picker gap needs the server to send air_date on next_up first.

Validated features: none affected. I traced Recommendations, Watchlist/Favorites, Person browsing, Markers, Device overrides, AI translation, Calendar and Notifications. Episode cards on numbered shows render the same text. Validation tasks: none is correct.

User manual: Silo-Server/siloserver.org#453 already covers this, so no new docs issue is needed.

Other clients: Apple Silo-Server/silo-apple#1252, Roku Silo-Server/silo-roku#105, Web through Silo-Server/silo-server#5129. All are linked in the PR body.

Council (round 1, on d888067): Sol (gpt-6.2-sol, medium) 7/10, Opus (claude-opus-5-5, medium) 8/10, Gemini (gemini-4-neon, medium) 7.5/10. Their confirmed findings are among the fixes above. I didn't run a second round: the fixes are small, and builds and tests cover them.

Scores. Fit is 8 because the change fixes a real readability problem in sports libraries with a server-driven default, though it adds new API surface. Readiness is 7 because the code is sound after the fixes, but live verification and an evidence refresh are still pending.

🤖 Claude Code (claude-opus-5-5)

Only an episode card leads its meta row with the game's date, so only an
episode drops the repeated "Aired …" line. A date-labeled series card
keeps its premiere date.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-kody

silo-kody Bot commented Nov 23, 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 ❌

@macroscopeapp

macroscopeapp Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

The evidence link is present, but the described captures cover Android phone and TV only and use d8880672d; the page should show Android phone, tablet, foldable folded and open, and Android TV. The phone-layout explanation does not exclude tablets or foldables: the same Android app label paths reach them, and PlayerControls.kt adds a foldable tabletop Next label.

  • Air-date labels across Home/cards, detail/episode rails, player/notifications, Watch Party and downloads (androidApp/, android-shared/): tablet and foldable folded/open evidence is missing. Add same-data before/after pairs for the affected surfaces on those form factors.
  • Phone-to-TV cast title (SiloCastArtworkResolver.kt): the current title changes to the air date after the d8880672d capture. Add a recording of the handoff on Android phone.
  • Tabletop Next label (PlayerControls.kt): foldable tabletop evidence is missing. Add a capture in that posture.
  • TV Home marquee air-date display (TvFocusMarqueeModel.kt): the described after capture predates 2bd597a, which changes the date treatment for episode versus series cards. Add a current-head before/after pair on Android TV.

Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.

Posted via Macroscope — Visible change evidence

@Quick104
Quick104 merged commit b7c0412 into Silo-Server:main Nov 24, 2026
10 checks passed
Dj3mbe pushed a commit to Dj3mbe/silo-android that referenced this pull request Nov 24, 2026
The keep-BK sync resolved the import clash in TvPlayerHud.kt by keeping
only BK's side, which removed the EpisodeLabel and EpisodeCodeStyle
imports that the sports-episode labels (Silo-Server#1035) use.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish size/XL 500–999 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parity: label sports episodes by air date (from Silo-Server/silo-apple#1252)

2 participants