Skip to content

fix(web): match the dashboard episode line to the activity page - #4144

Merged
Quick104 merged 5 commits into
Silo-Server:mainfrom
blurbery:fix/activity-episode-label
Nov 14, 2026
Merged

Quick104 merged 5 commits into
Silo-Server:mainfrom
blurbery:fix/activity-episode-label

Conversation

@blurbery

@blurbery blurbery commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none (touches the metadata shown for #1207 C1, which has not been run yet)

Other clients: Apple N/A (web admin only); Android N/A (web admin only); Roku N/A (web admin only)

The two admin screens that list live streams write the same episode differently. The Stream column on the Activity page shows S3E13 · Example Show (2024), while the dashboard's Now Playing card shows S3 · E13 — Example Show (2024). An admin looking at the same stream on both screens gets two formats. This change makes the dashboard card use the Activity page's format.

Approach

The dashboard card and the Activity page now both get their episode line from getPlaybackSessionSubtitle in adminActivityPresentation.ts, the shared helper the profile page's household streams panel already uses. The Activity page's own copy of that logic (getDisplaySubtitle) is gone, so the three places can't drift apart again.

That helper used to build S3E13 · Show from literal text. It now uses the translated episode code (web.detail.episodeCode) and a new web.common.activity.subtitle.episode message ({code} · {series}), added in Silo-Server/silo-translations#29. The message sits outside web.admin.* because the household streams panel on Settings → Profiles is open to household parents without the admin role, whose sessions never load the admin catalog part. English output is unchanged on the Activity page and the household panel, and the dashboard keeps a translated line: T3E13 · Show in Spanish, S3F13 · Show in German, and the Arabic code with the series name isolated. The dashboard's old episodeLine and episodeLineWithSeries messages are no longer used.

Validation

  • Translations synced from release 2026.11.14-c3f2a8b, which includes feat(web): add a shared episode line for stream lists silo-translations#29.

  • Typecheck (tsc --noEmit -p tsconfig.app.json): passed.

  • ESLint and Prettier on the changed files: clean.

  • vitest run over the dashboard widgets, the Activity page, adminActivityPresentation and the profile components: 180 passed.

  • Manual check: ran the web app from this branch with a simulated episode session and confirmed the dashboard card changed from S3 · E13 — Example Show (2024) to S3E13 · Example Show (2024), the same as the Activity page.

  • Rendered the shared helper with the bundled English, Spanish, German and Arabic catalogues and checked each line (results above).

Evidence

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

Surface and build: web admin dashboard (Now Playing card) and Activity page (Stream column), desktop width (1440px). Before is upstream main at 1a99f7bef, after is this branch. The before set shows both screens disagreeing, the after set shows both matching. All four captures use the same simulated episode session, so they carry no real user, IP address or watch history. Each panel is magnified in the browser for readability.

Risks

None identified. The change is display-only. Outside English, the Activity page and household panel now show the translated episode code instead of a hardcoded S/E.

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 (Claude desktop app)
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: AI-assisted. AI-assisted with Claude Opus. I directed the task and designed the work.
  • Adversarial review: n/a

Note

Fix dashboard episode subtitle to match the activity page

The NowPlayingWidget dashboard card and the AdminActivity page now both use the shared getPlaybackSessionSubtitle helper from adminActivityPresentation. The local getDisplaySubtitle helper in AdminActivity.tsx was removed.

  • Episode subtitles now build the episode code with the localized codeNumber helper and a new episode-subtitle message key, instead of a literal code and separator. Movie and series subtitles are unchanged.
  • Adds the new episode subtitle template (code · series) to all locale catalogs in web/src/locales; generated files were regenerated.

Macroscope summarized 08366e1.

The admin activity table wrote an episode as "S3E13 · Show" while the
dashboard's Now Playing card writes "S3 · E13 — Show". The activity page now
uses the dashboard's message, so both admin screens read the same and the
line is translated.
@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 14, 2026
@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The admin dashboard episode card and activity stream row now use getPlaybackSessionSubtitle. Episode subtitles use localized episode-code formatting and a localized subtitle message. Locale entries are added, and one Portuguese IMDb sort label changes.

Changes: Playback subtitles

Layer / File(s) Summary
Localized playback subtitles
web/src/pages/adminActivityPresentation.ts, web/src/pages/AdminActivity.tsx, web/src/locales/*, .silo-translations
The presentation helper formats episode codes and subtitles with localized messages. AdminActivity.tsx removes its local subtitle helper. Locale entries add the episode subtitle message and key. Translation metadata changes, and the Portuguese (Brazil) IMDb sort label is updated.
Admin subtitle consumers
web/src/components/admin/dashboard/widgets/NowPlayingWidget.tsx, web/src/pages/AdminActivity.tsx
The dashboard episode card and activity stream row use getPlaybackSessionSubtitle(session) instead of local episode subtitle formatting.

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

Change: Bug fix

Suggested reviewers: quick104

Merge Risk: Minimal · up to 08366

The dashboard Now Playing card and the Activity page now share one localized episode subtitle format. No concrete merge-blocking risk remains in this change.

Architecture risk: Low · up to 08366

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; 14 changed files map to changed impact.

Before / after behavior

  • observed — Modified behavior in web/src/components/admin/dashboard/widgets/NowPlayingWidget.tsx: Imports getPlaybackSessionSubtitle for use in the episode card subtitle.
  • observed — Modified behavior in web/src/components/admin/dashboard/widgets/NowPlayingWidget.tsx: Replaces the card’s local episode subtitle formatting, which selected a translation based on whether series_name was present, with getPlaybackSessionSubtitle(session).
  • observed — Modified behavior in web/src/pages/AdminActivity.tsx: Adds getPlaybackSessionSubtitle to the presentation-module imports.
  • observed — Modified behavior in web/src/pages/AdminActivity.tsx: StreamRow now gets its subtitle from getPlaybackSessionSubtitle(session) instead of the removed getDisplaySubtitle(session, t) helper.
Pre-merge checks: Passed 2

Check name Status Explanation
Title check Passed The title names the main change: the dashboard episode line now matches the Activity page format. It uses a fix(web) prefix, and it is specific and not vague. The change set makes both screens use the…
Description check Passed The description states the problem, the approach, validation steps, evidence, and risks. It names the dashboard Now Playing card, the Activity page, the shared helper, the new translation key, and the…
Full details: Title check

Explanation

The title names the main change: the dashboard episode line now matches the Activity page format. It uses a fix(web) prefix, and it is specific and not vague. The change set makes both screens use the shared getPlaybackSessionSubtitle helper, and it adds localized episode subtitle messages, which the title does not mention. That omission is acceptable.

Full details: Description check

Explanation

The description states the problem, the approach, validation steps, evidence, and risks. It names the dashboard Now Playing card, the Activity page, the shared helper, the new translation key, and the translation sync. It matches the changeset.

  • 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: 2c9dd63b-f9a7-4c23-801b-0cc7b818620b
Commits

Reviewing files that changed from the base of the PR and between 87b76eb and a8c4ed3.

Files selected for processing: 13

  • .silo-translations
  • web/src/locales/ar-XB.json
  • web/src/locales/ar.json
  • web/src/locales/de.json
  • web/src/locales/en-XA.json
  • web/src/locales/en.json
  • web/src/locales/es.json
  • web/src/locales/fr.json
  • web/src/locales/ja.json
  • web/src/locales/keys.ts
  • web/src/locales/pt-BR.json
  • web/src/locales/zh-Hans.json
  • web/src/pages/adminActivityPresentation.ts
Files skipped from review as they are similar to previous changes: 1

  • web/src/pages/adminActivityPresentation.ts

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

@silo-kody

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

@silo-triage silo-triage Bot added bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish labels Nov 14, 2026
@blurbery
blurbery marked this pull request as ready for review November 14, 2026 09:40
The previous commit changed the wrong screen. The Activity page goes back to
"S3E13 · Show", and the dashboard's Now Playing card now uses the same
shared helper as the Activity page's household and stream views, so both
admin screens show "S3E13 · Show".
@silo-kody

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

@blurbery blurbery changed the title fix(web): match the activity episode line to the dashboard fix(web): match the dashboard episode line to the activity page Nov 14, 2026

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

Additional comments: 1

web/src/components/admin/dashboard/widgets/NowPlayingWidget.tsx-306-306: 1

306-306: Minor · Functional Correctness · Quick win

Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.

Keep the episode line translated.

The helper constructs S3E13 · Show directly, with raw numbers. It does not use the translated episode-line message or codeNumber(). This also removes the dashboard’s previous localized formatting. Use the translated message and formatted numbers for the shared episode line.

As per coding guidelines, “Every piece of text a user can see ships with its catalog entry and translations.”

Source: Coding guidelines

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: 1ba5f925-7a83-4cd4-8b2e-2b511c175979
Commits

Reviewing files that changed from the base of the PR and between 4c2654e and 9823e3d.

Files selected for processing: 1

  • web/src/components/admin/dashboard/widgets/NowPlayingWidget.tsx

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

getPlaybackSessionSubtitle built "S3E13 · Show" from literal text, so the
dashboard card lost the translated episode code it had before. It now uses
the translated episode code and the existing "{code} · {series}" message,
and the Activity page calls the same helper instead of its own copy. English
is unchanged.
@silo-kody

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

@blurbery

Copy link
Copy Markdown
Contributor Author

Re the CodeRabbit note on NowPlayingWidget.tsx line 306 (keep the episode line translated): agreed, fixed in 87b76eb. The shared helper now uses the translated episode code and passes the numbers through codeNumber(), and the Activity page calls it too, so the dashboard and Activity page still match outside English.

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

One finding, below. The approach is right: one helper for the Activity page, the dashboard card, and the household panel means the three can't drift again, and the guards are equivalent, so no caller changes when it shows an episode line.

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

@Quick104

Quick104 commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Review summary

Reviewed head: 08366e176e3946716c3d4064c259b2ba7b457849

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

Fit: this fixes a visible inconsistency between two admin screens by deleting a duplicate helper instead of adding a third format, which is the kind of polish the 1.0 focus asks for.

Readiness: the approach holds. The dashboard card's isEpisode guard matches the helper's, and the movie and series fallbacks and the season 0 and missing-number cases behave as before. The remaining condition is validation: the fix is proven from source and the formatter, not by a live run or a test that fails on the base.

Addressed

Remaining for the maintainers

Verification

  • Typecheck, ESLint and Prettier on the changed files pass. Vitest over the dashboard widgets, Activity page, presentation helpers, profile components and src/i18n: 197 passed. None of these tests checks the changed line, so none fails on the base.
  • The blank line was confirmed two ways: a source trace (formatWith returns an empty string for an admin id whose part hasn't loaded, and the RequirePrimaryOrAdmin route lets non-admin parents in), and a separate cross-provider review (Codex, gpt-6.1-sol) that ran the production helper and formatter with only the app catalog loaded. It got S3E13 · Example Show on the base and an empty string on the previous head, and found nothing else.
  • The fix rests on that source trace, not a live run: the new id isn't under web.admin., so it ships in the app catalog every session loads.
  • English output on all three screens is unchanged by the fix, so the published evidence still matches.

Validated features

No passed case is reached. #1207 C1 (web admin active sessions), #1208, and #1181 are all still "Not run".

Other checks

  • User manual: unaffected. The active playback page doesn't describe the episode line's format.
  • Apple, Android, Roku: N/A, web only.
  • The two dashboard messages this PR stops using (nowPlaying.episodeLine, nowPlaying.episodeLineWithSeries) have no other callers and can go in a later catalog cleanup.
  • The no-admin-message lint couldn't catch this because ADMIN_TEXT_PATHS exempts files by path (src/pages/admin*), not by who imports them. That gap predates this PR.

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

The household streams panel on Settings → Profiles uses the same
helper, and a household parent without the admin role never loads the
web.admin.* catalog part, so the line rendered empty for them. Use the
new web.common.activity.subtitle.episode message instead.

Translations synced from Silo-Server/silo-translations#29 with --local;
re-sync with --version once that release is published.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added size/M 50–199 added + deleted lines (all files); change volume, not priority. and removed size/S 0–49 added + deleted lines (all files); change volume, not priority. labels Nov 14, 2026
@silo-kody

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

Comment thread .silo-translations Outdated
Comment on lines +2 to +3
version=local-c2f70522005c
sha256=-

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 Bug medium

Local translation pin breaks the default synchronization command

The default scripts/sync-translations command fails because it rejects local-* versions without a separate catalog checkout. Pin a published translation release and its checksum so the catalog can be reproduced from this repository.

Prompt for LLM
File .silo-translations, lines 2-3:

Local translation pin breaks the default synchronization command

The default `scripts/sync-translations` command now fails because it explicitly rejects `local-*` versions without a separate catalog checkout. Pin a published translation release and its checksum so the catalog can be reproduced from this repository.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

@silo-kody

silo-kody Bot commented Nov 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 ❌
⚠️ 4 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Preserve optional store capabilities through production wrappers
  • Detach mandatory cleanup from request cancellation and bound its lifetime
  • Preserve durable media identity and share identity-evidence precedence
  • Bound decoder throughput trades and share direct-play eligibility

@Quick104
Quick104 merged commit 5a2be56 into Silo-Server:main Nov 14, 2026
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish size/M 50–199 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants