Skip to content

fix(web): label the season premiere badge "New Season" - #1532

Merged
Quick104 merged 2 commits into
Silo-Server:mainfrom
rangoDJ:fix/season-premiere-badge-new-season-1527
Oct 26, 2026
Merged

Quick104 merged 2 commits into
Silo-Server:mainfrom
rangoDJ:fix/season-premiere-badge-new-season-1527

Conversation

@rangoDJ

@rangoDJ rangoDJ commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #1527
Related issue: N/A
Validation tasks: changes #1136 C1 (badge wording only; season premieres are still distinguished)

Web labels the season premiere badge "Season Premiere", but the native apps label the same badge NEW SEASON. The maintainer chose NEW SEASON for every client. This makes Web match the native Calendar wording.

Approach

upcomingBadgeLabel in web/src/lib/upcomingEventPresentation.ts now returns "New Season" for season_premiere. The cards render it in capitals, so it reads NEW SEASON like the apps. The Calendar cards, Home and library rows, and Continue Watching all use this function, so they change together. Series Premiere and Finale are unchanged.

Validation

  • Focused badge, section-card, Calendar, and Continue Watching suite: 21 tests passed.
  • Production build, bundle budget, web lint, and formatting passed; lint reports existing warnings. make lint-changed found no changed Go packages.
  • Isolated sandbox browser verification: before/after desktop and mobile Calendar cards, unchanged Series Premiere and Finale badges, and next/previous week navigation. The sandbox used synthetic catalog records and real API responses.
  • Validation impact: Calendar — Web #1136 C1 remains a badge-wording-only change. Direct issue records were checked; the full validation-board query is unavailable because the token lacks read:project.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/pr-1532/

The linked page has the Calendar captures. The same badge text also appears on the Continue Watching card on Home: the same next-up episode, a season premiere, on both builds, at desktop and phone width (375 px).

Desktop Phone width
Before (main, 2026-10-14) Home on main: the Continue Watching card for Evidence Show, Season 2 Episode 1, has a SEASON PREMIERE badge Phone width on main: the same Continue Watching card with a SEASON PREMIERE badge
After (this branch, afa02c30) Home on this branch: the same Continue Watching card now has a NEW SEASON badge Phone width on this branch: the same card with a NEW SEASON badge

The Recently Added TV placeholder differs because the two builds are from different points in main; this PR doesn't change it.

Not captured: a Home row card (SectionItemCard). It shows this badge only in For You recommendation rows, which need matched provider metadata that a local library with generated media doesn't have. That card gets its text from the same label function (upcomingEventPresentation.ts) as the two surfaces shown, so its text changes the same way.

Surface and build: web, Vite dev builds of main and this branch, each against its own server build, on one local database with generated media.

Risks

None identified.

Checklist

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

AI Disclosure

  • Harness: Claude Code (Claude desktop app, Code tab)
  • Tool(s): Claude Code, GitHub CLI, pnpm
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, human verified
  • Review and verification: Codex CLI with gpt-6.1-sol read-only review agents at xhigh effort.
  • Adversarial review: claude-opus-5-5, high effort; one read-only cross-provider round plus verified candidate review. No runtime defects found.

🤖 Generated with Claude Code

Note

Change season_premiere badge label to "New Season" in web

Updates the season_premiere mapping in upcomingBadgeLabel to return New Season, matching the native-app label. Updates the episode-card test in SectionItemCard.test.tsx to expect the new text. See upcomingEventPresentation.ts.

Macroscope summarized 179e267.

Web showed the season_premiere badge as "Season Premiere" while the
iOS, tvOS, Android and Android TV apps show NEW SEASON, the wording the
maintainer chose for every client. upcomingBadgeLabel now returns "New
Season" (rendered in capitals), which updates the Calendar cards, Home
and library rows, and Continue Watching together. Series Premiere and
Finale are unchanged.

Closes Silo-Server#1527

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 407802c0-2565-4594-b615-3093d78d33a3

📥 Commits

Reviewing files that changed from the base of the PR and between dfa62e5 and afa02c3.

📒 Files selected for processing (3)
  • web/src/components/SectionItemCard.test.tsx
  • web/src/lib/upcomingEventPresentation.test.ts
  • web/src/lib/upcomingEventPresentation.ts

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

Walkthrough

The web badge label for season_premiere changes from “Season Premiere” to “New Season.” Tests cover recognized badge labels, unrecognized-label passthrough, and the updated premiere metadata assertion.

Changes: Web badge label

Layer / File(s) Summary
Season-premiere badge label
web/src/lib/upcomingEventPresentation.ts, web/src/lib/upcomingEventPresentation.test.ts, web/src/components/SectionItemCard.test.tsx
upcomingBadgeLabel now returns “New Season” for season_premiere. Tests cover the recognized labels, passthrough of an unrecognized label, and the updated metadata assertion.

Priority: Low

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: quick104

Merge Risk: Minimal · up to afa02

The change is limited to the requested badge wording, with the label mapping and card assertion updated. No actionable merge-blocking risk is evident.

Architecture risk: Low · up to afa02

The change affects 1 system.

Changed systems: web

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — web (service) was modified; 3 changed files map to changed impact.

Before / after behavior

  • observed — Modified behavior in web/src/components/SectionItemCard.test.tsx: The premiere metadata assertion now expects “New Season” instead of “Season Premiere.”
  • observed — Modified behavior in web/src/lib/upcomingEventPresentation.test.ts: Added upcomingBadgeLabel tests for three recognized labels and passthrough of an unrecognized label.
  • observed — Modified behavior in web/src/lib/upcomingEventPresentation.ts: For season_premiere, upcomingBadgeLabel now returns “New Season” instead of “Season Premiere”; a comment notes the native-app label.
Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 3 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Linked Issues check Passed Issue #1527 requires Web to render season_premiere as "New Season" while keeping Series Premiere and Finale unchanged. upcomingBadgeLabel now returns "New Season" for season_premiere and retains…
Out of Scope Changes check Passed The pull request changes only the shared badge label, its explanatory comment, and related tests. These changes directly support issue #1527 and do not add unrelated behavior.
Title check Passed The title clearly and concisely states the main change: renaming the Web season premiere badge to "New Season."
Description check Passed The description directly explains the badge-label change, affected surfaces, unchanged labels, implementation, and validation results.
Full details: Linked Issues check

Explanation

Issue #1527 requires Web to render season_premiere as "New Season" while keeping Series Premiere and Finale unchanged. upcomingBadgeLabel now returns "New Season" for season_premiere and retains the other two labels. The shared function updates Calendar, Home and library rows, and Continue Watching. Tests cover all three labels and an unknown label. The component test also expects "New Season".

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

Quick104 commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Silo's pull request guidance changed today (#2016). A PR that changes what a user sees now needs before-and-after evidence in its Evidence section, and a PR with no visible change says Evidence: none, no user-visible change. This PR was opened before the rule existed, so it hasn't had a chance to meet it yet.

Missing here: Before-and-after screenshots of a season premiere card (for example on Calendar) showing the badge text.

The rules are in Show visible changes, and the PR template shows the Evidence section layout. I've converted this PR to draft for now. Mark it ready for review once the Evidence section is filled in.


Generated by Claude Code

@Quick104
Quick104 marked this pull request as draft October 6, 2026 19:25

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

Reviewed afa02c30803ced3aca402cf154df3a89f2b8c363. No actionable code defects found.

The shared formatter changes only the display text for season_premiere; badge identifiers, styling, fallback behavior, and API contracts stay intact. The native Calendar implementations already use NEW SEASON. Before/after desktop and mobile Calendar checks confirmed the label change with identical API data and unchanged adjacent badges.

Review: Codex CLI with gpt-6.1-sol read-only agents (xhigh), plus one claude-opus-5-5 cross-provider round (high). Candidates were checked against the source; no code changes were needed.

@Quick104

Quick104 commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Reviewed 179e2672d, which is afa02c3 plus one test-only fix commit. The label change is correct, and nothing blocks merging.

Addressed: the new upcomingBadgeLabel block in upcomingEventPresentation.test.ts only checked copy strings. The updated SectionItemCard.test.tsx assertion already covers the rendered label, so it duplicated that check against the repository's Tests rules. 179e267 removes the block and restores the file to its main version. Production code is unchanged from afa02c3.

Remaining: nothing for the maintainers to settle.

Validated features: upcomingBadgeLabel is the only place web turns a badge into text, and its three callers (Calendar cards, Home section cards, Continue Watching) only render it in capitals, so all three now read NEW SEASON. Series Premiere and Finale are unchanged, and so is the badge styling. Nothing else in the tree, including the API, jellycompat, docs, and other tests, depends on the old "Season Premiere" text. SectionItemCard.test.tsx fails on the base with Season Premiere and passes on the head. The PR's before and after captures were taken on afa02c3. The fix commit changes no rendered output, so they still match this head.

Validation: changes #1136 C1 is right. C1 asks that season premieres be visibly distinguished. They still are, so this is a wording change that needs a visual re-check on the next published build. C2–C6 share no code with this change. The board query ran but records no passed cases for #1136, while the issue body records C1–C6 as passed on build 927. I judged against the issue body.

User manual: the Calendar page on siloserver.org already describes the badge as NEW SEASON, so this change makes web match the manual. No docs issue is needed.

Apple, Android, jellycompat: the iOS Calendar and the Android phone and TV Calendars on main already show NEW SEASON. jellycompat doesn't emit these badges. No follow-up is needed.

Method: three read-only finders and a validation agent (Claude, medium effort), then my own verification. The Codex cross-provider round didn't run because its sandbox failed to start on both attempts.

Fit: 10/10 · Readiness: 9/10 — ready (assuming CI is green). Fit: the change applies the wording the maintainers chose for every client (#1527) at the one shared web boundary. Readiness: the code is correct, a test that fails on the base covers it, and before and after captures show it.

Evidence: https://evidence.siloserver.org/r/silo-server/pr-1532/

@rangoDJ
rangoDJ marked this pull request as ready for review October 14, 2026 19:16
@silo-kody

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

⚠️ Note: some checks couldn't be completed in this run, so auto-approval (when enabled) was skipped. Check the details at https://kodus.siloserver.org/pull-requests and then comment @kody review on this PR to retry once the issue is resolved.

@macroscopeapp

macroscopeapp Bot commented Oct 14, 2026

Copy link
Copy Markdown

The Evidence link is present, and the PR discussion identifies desktop and mobile Calendar captures. The shared label change also affects these UI surfaces, which are not identified in the evidence:

  • Home/library rows (web/src/components/SectionItemCard.tsx): add before-and-after desktop and mobile captures of the same card and data showing the badge text.
  • Continue Watching (web/src/components/ContinueWatchingCard.tsx): add before-and-after desktop and mobile captures of the same card and data showing the badge text.

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

Posted via Macroscope — Visible change evidence

@macroscopeapp

macroscopeapp Bot commented Oct 14, 2026

Copy link
Copy Markdown

The #1136 C1 record names Web build 927 (66f6a52a); this PR changes the visible season-premiere badge from “Season Premiere” to “New Season.” The case's premiere-distinction criterion is unchanged, but the badge needs a post-merge visual re-check and an updated build-specific result. C2–C4 test navigation, profile access, and date rules rather than badge wording; C5's empty-week path and C6's participation record are unaffected. The existing Validation tasks: changes #1136 C1 (badge wording only; season premieres are still distinguished) line is accurate.

Suggested follow-up: after merge, have a validator re-run C1 on the published build and update its recorded result; no code change is needed for validation tracking.

Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed.

Posted via Macroscope — v1 validation impact

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

Reviewed afa02c3. The label change is correct. I found one low-severity issue in the new test and I'm fixing it on this branch.

The rendered-label assertion in SectionItemCard.test.tsx already covers
the season premiere wording; the repository's test rules say not to test
UI copy or constants twice.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-kody

silo-kody Bot commented Oct 26, 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 merged commit 1e906e0 into Silo-Server:main Oct 26, 2026
22 checks passed
@rangoDJ
rangoDJ deleted the fix/season-premiere-badge-new-season-1527 branch November 15, 2026 00:45
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.

Web labels the season premiere badge "Season Premiere"; the apps say "NEW SEASON"

2 participants