Skip to content

fix(web): name an episode's type on admin Activity rows - #5096

Closed
Brady3035 wants to merge 2 commits into
Silo-Server:mainfrom
Brady3035:activity-episode-series-label
Closed

Brady3035 wants to merge 2 commits into
Silo-Server:mainfrom
Brady3035:activity-episode-series-label

Conversation

@Brady3035

@Brady3035 Brady3035 commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none (touches the session metadata in #1207 C1, not run yet)

Other clients: N/A (web admin and web account settings only; Apple, Android and Roku have no Activity or household streams screen)

On admin Activity, a movie's row says "Movie" under its title, but an episode's row says only its code and show, such as "S5E7 · The Simpsons", so the row doesn't say what kind of title it is. A series row with no episode numbers already says "Series". This change puts "Series" in front of the episode line, so an episode reads "Series · S5E7 · The Simpsons". The same line shows in the Dashboard's Now Playing widget and in the household's Active streams on Settings > Profiles, so those change too.

Approach

getPlaybackSessionSubtitle joins the existing "Series" label and the existing episode line with " · ", the separator this file already uses for other parts. No new text, so no catalog change. The phone layout of Activity shows the subtitle only for episodes, to name the show, and shows no type for movies; it passes withType: false and stays as it was.

Validation

  • Web: ESLint, Prettier and the TypeScript build pass on the changed files; the production web build passes.
  • No test covers these labels, and the change is a label, so it adds none.
  • Not run: the full web suite and the Go gate (no Go change).

Evidence

Admin test views, regular user test4k plays an episode and a movie in the web player, on a test server built from upstream main (before: e0046ab3a; after: a39510634 with this change). Desktop 1600 px, phone 390 px. Client IPs are covered.

Before: Activity, desktop. The episode says only "S5E7 · The Simpsons"; the movie says "Movie".

01-before-activity-desktop

After: Activity, desktop. The episode says "Series · S5E7 · The Simpsons".

02-after-activity-desktop

Before: Activity, phone.

03-before-activity-mobile

After: Activity, phone. Unchanged: no type on either row.

04-after-activity-mobile

Before: Dashboard, Now Playing.

05-before-dashboard-now-playing

After: Dashboard, Now Playing.

06-after-dashboard-now-playing

Before: Settings > Profiles, Active streams.

07-before-household-streams

After: Settings > Profiles, Active streams.

08-after-household-streams

Surface and build: web admin Activity (desktop and phone), admin Dashboard, Settings > Profiles; builds above.

Risks

None identified. In right-to-left languages the label and the episode line are joined in code, as the other parts in this file already are.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or how I checked a change nobody sees.

AI Disclosure

  • Harness: Claude Code
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: AI-assisted
  • Adversarial review: Claude Code /code-review at low on the branch; no findings.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Wd29MVt3qoFaoUJNyoSgiC

Brady3035 and others added 2 commits November 21, 2026 21:02
A movie row says "Movie", but an episode row showed only its code and
show ("S5E7 · The Simpsons"). Lead with "Series", as a series row
without episode numbers already does, so every row says what kind of
title it is. The shared subtitle also feeds the Dashboard's Now Playing
widget and the household streams panel.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Wd29MVt3qoFaoUJNyoSgiC
@silo-triage silo-triage Bot added the size/S 0–49 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 ❌

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

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The playback-session subtitle helper now accepts an option to include or omit the series type label. Stacked activity rows call the helper with the label omitted. The default behavior includes the label.

Changes: Admin activity subtitles

Layer / File(s) Summary
Subtitle option and stacked-row integration
web/src/pages/adminActivityPresentation.ts, web/src/pages/AdminActivity.tsx
getPlaybackSessionSubtitle accepts an optional withType option, which defaults to true. Episode subtitles include the series type label when enabled. Stacked activity rows pass withType: false.

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

Change: Feature

Possibly related PRs

Suggested reviewers: quick104, blurbery

Merge Risk: Minimal · up to a9594

This adds a "Series" label to episode subtitles on Activity, Dashboard and Profiles rows, while the phone layout stays unchanged. The change is small and easily reversible, and no merge-blocking risk was found.

Security architecture risk: Minimal · up to a9594

The change adds a media-type label to existing episode subtitles while preserving the compact phone presentation. No introduced or worsened security, ownership, or failure-containment risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: episode rows on the admin Activity page gain a type label ("Series"). The diff adds an optional withType option to getPlaybackSessionSubtitle, which prefixes the episo…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description states the problem (episode rows in admin Activity do not name the title type), the approach (prefixing "Series" to the episode subtitle via getPlaybackSessionSubtitle, with withType: …
Full details: Title check

Explanation

The title names the main change: episode rows on the admin Activity page gain a type label ("Series"). The diff adds an optional withType option to getPlaybackSessionSubtitle, which prefixes the episode line with the series label. The title is specific and matches the changeset. The fix(web) prefix is a conventional-commit style marker, not noise.

Full details: Description check

Explanation

The description states the problem (episode rows in admin Activity do not name the title type), the approach (prefixing "Series" to the episode subtitle via getPlaybackSessionSubtitle, with withType: false on the phone layout), validation steps, and before/after screenshots. It matches the changeset in web/src/pages/AdminActivity.tsx and web/src/pages/adminActivityPresentation.ts, so it is related and specific.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent 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: ccc5e9ad-1a56-4594-b28f-d79acfd968e9
Commits

Reviewing files that changed from the base of the PR and between a395106 and a9594ed.

Files selected for processing: 2

  • web/src/pages/AdminActivity.tsx
  • web/src/pages/adminActivityPresentation.ts

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

@Quick104

Copy link
Copy Markdown
Contributor

Closing this in favor of #5105 — instead of prefixing episode rows with "Series", we're removing the "Movie" subtitle from movie rows.

@Quick104 Quick104 closed this Nov 22, 2026
@Brady3035
Brady3035 deleted the activity-episode-series-label branch November 22, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish size/S 0–49 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants