Skip to content

fix(web): translate item types on the metadata refresh task page - #4687

Merged
Quick104 merged 1 commit into
mainfrom
fix/translate-refresh-task-item-types
Nov 20, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/translate-refresh-task-item-types

Conversation

@Quick104

@Quick104 Quick104 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

Other clients: Apple N/A (no admin task pages); Android N/A (no admin task pages); Roku N/A (no admin task pages)

The metadata refresh task's page in the web admin showed each item's type as the raw API value (movie, series, season, episode) in every interface language. An admin using German saw "series · 3 Versuche" under Recent errors and movie under each due sample, while the rest of the page was German. This change shows the translated kind instead ("Serie", "Film", "Staffel", "Folge").

Approach

The search dialog already labels these kinds with web.search.type*, keys described as the kind shown under an item's title. That is the same meaning here, so the page reuses them and adds no catalog keys. The mapping moved out of GlobalSearch.tsx into web/src/lib/itemTypeLabels.ts, which both screens now call. Search behaves as before.

On the task page, a kind with no label (for example podcast, which does not normally reach the refresh queue) still shows as the server sends it, as search does. An empty type, which the server sends when the catalog item is gone, keeps the existing translated "item" fallback.

Validation

  • Reproduced on an isolated dev sandbox built from main, with the interface in German: the Recent errors and Due samples panels showed series, movie, season, and episode. On the same sandbox rebuilt from this branch, those rows show Serie, Film, Staffel, and Folge at desktop, tablet, and phone widths, with no console errors. The sandbox's template library had no failed refreshes, so its database got refresh-debt rows for an existing series, movie, season, and episode to fill both panels.
  • Also checked on this branch: English (Movie, Series, Season, Episode), Dutch at phone width (the longest of these labels, with no new wrapping), a debt row whose catalog item is gone (the existing "item" / "Eintrag" fallback), and the search dialog, which still shows "Serie".
  • pnpm run lint, format:check, build, and budget:check pass.
  • Web tests: all 3,053 pass on Node 24 (run by the background review) and in CI. On the Node 26 host used for the first run, 29 in four auth, request-deadline, and player files fail the same way on main (localStorage is undefined there); none import the changed files.
  • 1.0 validation: no passed case changes. Search's labels (Person / cast & crew browsing — Web #1144 C3) moved into the shared helper unchanged.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/task-item-types/

Risks

None identified. The change is display-only in the web client; API responses and stored data are unchanged.

Follow-ups

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.

Council review

Plan round on the unfixed head: Sol (gpt-6.2-sol, xhigh), Opus (claude-opus-5-5, high), and Gemini (gemini-4-neon, xhigh) reviewed the plan without scoring it. It changed two things: a kind with no label shows as the server sends it instead of collapsing to "item" (Sol, Gemini), and the plan dropped a catalog change that would have capitalized the "item" fallback (Opus).

Background review: last reviewed ef3496e

Member Round 1
Sol (gpt-6.2-sol, xhigh) 9/10
Opus (claude-opus-5-5, high) 9/10
Gemini (gemini-4-neon, xhigh) 9/10

No member found anything to post.

Visual review: 2 rounds, captures from ef3496e

Member Round 1 Round 2
Sol better, 8/10 better, 8/10
Opus better, 7/10 better, 8/10
Gemini better, 7/10 better, 8/10

Answered: every layout finding (the phone due-samples table clipping its last column, titles cut off in Recent errors) shows the same in the before captures. The lowercase English and Dutch "item" fallback next to capitalized kinds is kept: it shows only for a debt row whose catalog item is gone, and the refresh task deletes those rows on its next run.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code; T3 Code orchestration for the cross-provider reviews (Codex, Claude, Antigravity)
  • Model(s): claude-opus-5-5 (implementation, code-review agents, and the Opus reviewer); claude-sonnet-5-5 (code-review cleanup finder and validation agent); gpt-6.2-sol (Sol reviewer); gemini-4-neon (Gemini reviewer)
  • Involvement: Fully AI-generated; a maintainer reviews it before merge
  • Adversarial review: code review at xhigh (three finders, a validation agent, and an inline check of each candidate) moved the "label or raw value" rule into the shared helper; the plan round, the visual review, and the background review are in "Council review" above. A simplify pass ran before each commit.

🤖 Generated with Claude Code

The Recent errors list and Due samples table printed each item's type as
the raw API value (movie, season, episode), so every interface language
showed English. They now use the kind labels the search dialog already
has, moved into a shared helper. A type with no label still shows as the
server sends it, and an empty type keeps the translated fallback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-triage silo-triage Bot added the size/M 50–199 added + deleted lines (all files); change volume, not priority. label Nov 20, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T23:27:45.065957Z ef3496e PR opened
🔒 Security Review ✅ Completed 2026-11-20T23:29:29.990943Z ef3496e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@silo-kody

silo-kody Bot commented Nov 20, 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 20, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The change adds a shared helper that translates recognized item types and preserves unrecognized types. Global search and admin task detail use the helper; admin task detail retains its localized fallback for empty types.

Changes: Item-type labeling

Layer / File(s) Summary
Shared label helper
web/src/lib/itemTypeLabels.ts
Adds itemTypeLabel to translate seven recognized item types and return the original string for other types.
Search and admin display integration
web/src/components/GlobalSearch.tsx, web/src/pages/AdminTaskDetail.tsx
Global search and metadata-refresh displays use the shared helper. Admin task detail keeps its localized fallback for empty types.

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

Change: Bug fix

Suggested reviewers: blurbery, rhainland

Merge Risk: Minimal · up to ef349

Admin task pages now show translated item types, and search labels stay the same. No merge-blocking risk was found.

Security architecture risk: Minimal · up to ef349

This change localizes existing labels without expanding access or changing stored data. No introduced or worsened security risk was established in the inspected changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: item types on the metadata refresh task page are now translated. The changeset adds itemTypeLabel, uses it in AdminTaskDetail, and moves the search labels into a share…
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 (raw API item types such as movie, series, season, and episode shown on the metadata refresh task page), the approach (reusing the search dialog's web.search.type* l…
Full details: Title check

Explanation

The title names the main change: item types on the metadata refresh task page are now translated. The changeset adds itemTypeLabel, uses it in AdminTaskDetail, and moves the search labels into a shared helper. The title is specific, follows conventional commit form, and fits the 10-word, single-sentence guidance.

Full details: Description check

Explanation

The description states the problem (raw API item types such as movie, series, season, and episode shown on the metadata refresh task page), the approach (reusing the search dialog's web.search.type* labels through a shared helper in web/src/lib/itemTypeLabels.ts), and the validation performed. It is directly related to the changeset, so the lenient check passes.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • 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: c07dcccc-9da8-4187-80af-2a2218931d89
Commits

Reviewing files that changed from the base of the PR and between 28dd148 and ef3496e.

Files selected for processing: 3

  • web/src/components/GlobalSearch.tsx
  • web/src/lib/itemTypeLabels.ts
  • web/src/pages/AdminTaskDetail.tsx

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

@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 triaged High-confidence review completed; does not mean fixed, validated, or accepted for release. labels Nov 20, 2026
@Quick104
Quick104 merged commit 0caa8b1 into main Nov 20, 2026
19 checks passed
@Quick104
Quick104 deleted the fix/translate-refresh-task-item-types branch November 20, 2026 23:44
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. triaged High-confidence review completed; does not mean fixed, validated, or accepted for release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant