You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(web): translate the item type in the Match and Split dialogs - #5660
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.
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.
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.
ClosesSilo-Server#5086
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: 4
Check name
Status
Explanation
Title check
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
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
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
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-triageBot
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
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.
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bugSomething isn't workingimpact: polishAnnoyance, cosmetic, or nice-to-havepriority: P2Limited scope, workaround exists, or polishsize/S0–49 added + deleted lines (all files); change volume, not priority.triagedHigh-confidence review completed; does not mean fixed, validated, or accepted for release.
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
itemTypeLabelhelper, 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
pnpm run lint,format:check,build,budget:check,tsc -p tsconfig.app.jsonandmake test-webpass.make verify-size-ratchet,verify-local-paths,verify-bidi,verify-case-collisionspass. Go checks not run: no Go files changed.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-5660/
Risks
None identified.
Checklist
AI Disclosure
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
itemTypeLabeland the translation function instead of rendering the rawitem.typestring. The badge text is the only change.Macroscope summarized 74ec54e.