Skip to content

fix(web): translate the item type in the Match and Split dialogs - #5660

Merged
Quick104 merged 2 commits into
Silo-Server:mainfrom
Rhainland:fix/5086-match-split-type-label
Nov 30, 2026
Merged

Quick104 merged 2 commits into
Silo-Server:mainfrom
Rhainland:fix/5086-match-split-type-label

Conversation

@Rhainland

@Rhainland Rhainland commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #5086
Related issue: N/A
Validation tasks: none

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

The Match and Split dialogs show the item's type in a badge next to its title. The badge printed the raw API value, so with the interface in German it read "movie" or "series". The Unmatched Items row that opens Match already says "Film", so the label changed between one click and the next. This affects anyone using the web app in a language other than English, wherever these dialogs open: Unmatched Items, Stale External IDs, the item menu, and the movie, series and audiobook pages.

Approach

Both badges now use the shared itemTypeLabel helper, which the Unmatched Items rows and search already use. It needs no new catalog keys, and a type the client has no label for still shows as the server sends it. The dialogs' logic and their API requests keep using the raw type.

Validation

  • Local build with the production web bundle and synthetic Movies and TV libraries, browser in German, 1440 px and 390 px: Match badge "movie" → "Film", Split badge "series" → "Serie". In English the Match badge reads "Movie", and Match search still returns 200.
  • Web: pnpm run lint, format:check, build, budget:check, tsc -p tsconfig.app.json and make test-web pass.
  • make verify-size-ratchet, verify-local-paths, verify-bidi, verify-case-collisions pass. Go checks not run: no Go files changed.
  • No new test: the badges now call the shared label helper that other screens already use, and CONTRIBUTING's "Decide what to test" leaves out copy and pass-through wiring.

Evidence

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

Risks

None identified.

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 (via T3 Code); Codex CLI for code review
  • Tool(s): Claude Code; Codex CLI
  • Model(s): claude-opus-5-5; gpt-6.2-sol (code review)
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: two independent reviews of the full diff (gpt-6.2-sol via Codex CLI, claude-opus-5-5 subagent) on correctness, repository standards and the issue's requirements. Neither found anything.

Note

Translate item type badge in Match and Split dialogs

The current-item badges in MatchItemDialog.tsx and SplitItemDialog.tsx now pass the item type through itemTypeLabel and the translation function instead of rendering the raw item.type string. The badge text is the only change.

Macroscope summarized 74ec54e.

The summary badge in both dialogs printed the raw API type (movie, series),
so a German interface showed "movie" right after the Unmatched Items row
said "Film". Both now use the shared itemTypeLabel helper; the raw type
still drives the dialogs' logic and requests.

Closes Silo-Server#5086
@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 30, 2026
@silo-kody

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

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

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: ca7ea21f-9e7c-4b94-94d4-cfcb418a2a01
Commits

Reviewing files that changed from the base of the PR and between c91ccb5 and 74ec54e.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The Match Item and Split Item dialogs now display localized item-type labels in their item badges instead of raw item type values.

Changes: Localized item type badges

Layer / File(s) Summary
Localize Match and Split badges
web/src/components/MatchItemDialog.tsx, web/src/components/SplitItemDialog.tsx
Both dialogs use itemTypeLabel(t, item.type) to display the item type in the badge.

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

Change: Bug fix · Severity of issue fixed: Low

Possibly related PRs

Suggested labels: bug

Suggested reviewers: quick104

Merge Risk: Minimal · previous review c91cc

Match and Split dialog badges now show the item type in the interface language and fall back to the server value when no label exists. No concrete merge risk was found. The failing CI check should be confirmed as unrelated before merge.

Security architecture risk: Minimal · up to c91cc

Only the text shown in the two badges changes. The dialogs still use the original item type for their logic and requests, and unrecognized types still display as received.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change: the Match and Split dialogs now translate the item type badge. It follows the fix(web) convention and matches the summary and objectives, which describe the shared itemType…
Linked Issues check Passed Issue #5086 has one coding requirement: the Match and Split dialog summary badges must show the localized item type through the shared itemTypeLabel helper, while the API value stays raw. The review…
Out of Scope Changes check Passed The change set, per the summary, touches only the two dialog components named in #5086. Each change is a two-line edit (one import, one badge expression) that directly implements the issue's requireme…
Description check Passed The description states that the Match and Split item-type badges now use the shared itemTypeLabel helper so that German users see localized labels such as "Film" and "Serie" instead of raw API values.…
Full details: Title check

Explanation

The title names the change: the Match and Split dialogs now translate the item type badge. It follows the fix(web) convention and matches the summary and objectives, which describe the shared itemTypeLabel helper being applied to both badges.

Full details: Linked Issues check

Explanation

Issue #5086 has one coding requirement: the Match and Split dialog summary badges must show the localized item type through the shared itemTypeLabel helper, while the API value stays raw. The reviewed change, per the PR summary, replaces {item.type} with {itemTypeLabel(t, item.type)} in web/src/components/MatchItemDialog.tsx and web/src/components/SplitItemDialog.tsx, and adds the itemTypeLabel import to each. The summary states the dialog logic and API requests still use the raw type, and the helper needs no new catalog keys, which matches the issue's technical notes. The PR description reports a German-locale check showing "Film" and "Serie". The issue's note to wait for #4861 is a sequencing instruction, not a coding requirement, so it does not affect this verdict. Automated tests are not required by the issue text. Uncertainty: the diff was not read directly; the verdict relies on the AI-generated summary and the PR description.

Full details: Out of Scope Changes check

Explanation

The change set, per the summary, touches only the two dialog components named in #5086. Each change is a two-line edit (one import, one badge expression) that directly implements the issue's requirement. No unrelated files or behavior changes are reported. The PR description's validation and checklist content is documentation of verification, not code scope. Uncertainty: the verdict relies on the summary's file list; no full diff was read.

Full details: Description check

Explanation

The description states that the Match and Split item-type badges now use the shared itemTypeLabel helper so that German users see localized labels such as "Film" and "Serie" instead of raw API values. It lists the validation performed, the scope of affected dialogs, and a note that no new test was added. This matches the changeset described in the raw summary, which covers MatchItemDialog.tsx and SplitItemDialog.tsx.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
Fix failing CI checks

  • 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: c2b4d40b-3950-4069-9341-e29bdade6064
Commits

Reviewing files that changed from the base of the PR and between 2df1b4b and c91ccb5.

Files selected for processing: 2

  • web/src/components/MatchItemDialog.tsx
  • web/src/components/SplitItemDialog.tsx

Included review availability: This review used your included allowance. Your plan provides up to 4 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 priority: P2 Limited scope, workaround exists, or polish triaged High-confidence review completed; does not mean fixed, validated, or accepted for release. labels Nov 30, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
🔒 Security Review ❌ Failed 2026-11-30T18:54:00.230884Z
We couldn’t complete this review. Comment @codex security review to try again.
74ec54e New commits
ℹ️ 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.

@Quick104

Copy link
Copy Markdown
Contributor

Maintainer review

Fit: 9/10 · Readiness: 9/10 — ready

Reviewed head: 74ec54e

This fixes #5086 as described, and I found nothing to change. In German, the Match and Split Versions badges now read "Film" and "Serie", matching the Unmatched Items row. In English they read "Movie" and "Series".

Branch update. I merged main into the branch (74ec54e). The earlier ci / Web test (1/2) failure was the Russian bitrate test that main fixed in #5667. The PR's own diff is unchanged. CI is green on the new head.

Verification. I built one sandbox from main (f762748), then rebuilt it from this head, and opened both dialogs with a German browser. On main the Match badge read "movie" and the Split badge read "series". On this head they read "Film" and "Serie", and "Movie" and "Series" with an English browser. The translated badges fit at desktop and phone widths. The dialogs' requests still use the raw type, since only the badge line changed. No test was added, and none of the existing tests render these dialogs, so the live check is the evidence.

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

Code review. I checked that t is the dialog's own translator at both call sites, that the badge was the only raw type left on screen in either dialog, and that every caller passes a type the helper maps (anything else still shows the raw value, as before). No test or selector depended on the old lowercase text.

Council. One round on 74ec54e:

Member Code Visual
Sol (gpt-6.2-sol, medium) 9/10, no findings better, 9/10
Opus (claude-opus-5-5, medium) 9/10, no findings better, 9/10
Gemini (gemini-4-neon, medium) 9/10, no findings better, 9/10

Two members noted that the Split Versions dialog cuts off its form at the bottom of its scroll area at phone width. That layout comes from the existing dialog and this PR doesn't touch it.

Validated features. Match is covered by the Movies, Series, and Audiobooks Web admin tasks (#198, #1251 C2, #1255 C2). This PR changes only the badge text, not matching, so none of those cases are affected.

User manual. The manual doesn't describe this badge, so it needs no change.

Other clients. The PR's N/A entries hold: these are web-only admin dialogs.

Fit. This is translation polish in admin tools, reusing the helper other screens already use, with no new keys or surface area. Readiness. The behavior was shown live on main and on this head, CI is green, and no concerns remain.

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

@Quick104
Quick104 merged commit e2037e0 into Silo-Server:main Nov 30, 2026
19 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 priority: P2 Limited scope, workaround exists, or polish size/S 0–49 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.

[bug] Match and Split dialogs show the item type untranslated

2 participants