Repository navigation
fix(web): show unmatched items' type and status in the interface language - #5023
Conversation
Seven backup and restore messages in the web admin chose "it" or "them" with a plural on a count they never print. In Russian, Ukrainian, Croatian, Lithuanian and Latvian CLDR's "one" form also covers 21, 31 or 101, and in Slovenian 101, so 21 omitted accounts read "its data is too large" and the Restore page offered "Show it" for 21 items. The callers now pass exactAmount(count), and the catalog selects on exactlyOne, exactlyTwo (for the Slovenian and Arabic dual) or other. English is unchanged. docs/architecture/i18n.md and the web i18n README now say when a web message selects on the exact amount instead of a plural. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Re-pin web translations to silo-translations 2026.11.21-b2f2d7a, which includes Silo-Server/silo-translations#135, and have the backup warning toggles use the shared exactAmount() from @/i18n. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…uage The admin Libraries page's Unmatched Items section printed each item's content type and match status as the raw API values (movie, unmatched, pending, ambiguous) in both the table and the card layout. The type now uses the shared item-type labels and the status uses new catalog keys; a value the client has no label for still shows as sent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
#4741 was squash-merged into main as 5641447, so this branch's copies of its commits are resolved to main's versions. The web stays pinned to silo-translations 2026.11.21-06af3eb, which builds on main's b2f2d7a; the diff against main is now only this PR's change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
| <TableCell className="text-sm">{u.library_name}</TableCell> | ||
| <TableCell> | ||
| <Badge variant="outline">{u.content_type}</Badge> | ||
| <Badge variant="outline">{itemTypeLabel(t, u.content_type)}</Badge> |
There was a problem hiding this comment.
Localized badge labels do not match the server-side search values
Searching for a translated badge label returns no matches because ListUnmatchedItems filters only raw English API values. Map localized search terms to API values or extend the search contract to support localized labels.
Prompt for LLM
File web/src/components/admin/libraries/UnmatchedItemsSection.tsx, line 285:
Localized badge labels do not match the server-side search values
Searching for the translated type or status displayed in a badge returns no matching items because `ListUnmatchedItems` filters only the raw English API values. Map localized search terms to the corresponding API values or extend the search contract to support localized labels.
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
There was a problem hiding this comment.
Confirmed on a dev deployment built from 0de4011: q=Film and q=Ausstehend return nothing, while q=movie and q=pending return the movie and the pending series. The server compares the query with mi.type and the English status (libraries_service.go, ListUnmatchedItems), so it can't match a translated label. That search behavior predates this PR. What's new is that the badge no longer shows the word that works.
Maintainer decision, not a change for the author. Fixing it means teaching search about translated labels: either the web sends the raw type or status when the query matches a translated label exactly, or the endpoint takes explicit type and status filters. Both are outside this PR's display fix, so I've left this thread open for the maintainers.
🤖 Claude Code (claude-opus-5-5)
There was a problem hiding this comment.
The mismatch is confirmed, and I agree it merits a maintainer decision rather than a change in this display-focused PR. The search behavior predates the PR, but translated badges make the working English search terms less discoverable.
Would you like me to create a follow-up issue for that decision?
Quick104
left a comment
There was a problem hiding this comment.
Review of 0de4011, after bringing the branch up to date with main. The diff against main is now this PR's change alone. One finding on the diff is below, and I'm fixing it on this branch. The search gap is answered in the existing thread on line 285, and the summary comment covers the rest.
🤖 Claude Code (claude-opus-5-5)
Translated types such as "Электронная книга" ran past the card edge on a phone-width screen with large text, because the Type badge kept the badge's no-wrap default. It now wraps like the Status badge below it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Main now pins silo-translations 2026.11.21-04a2222 with #4994. This branch keeps 2026.11.21-06af3eb, the next release, which adds only the Unmatched Items status keys; the locale files are regenerated from it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review summaryReviewed head: febcad7 (after three merges of main and one fix commit). Plain bug fix, not superseded: main still printed the raw values before this PR. Branch update. The branch was stacked on #4741, which merged as a squash, so it still carried #4741's commits. I merged main in (0de4011), resolving those files to main's versions, then merged it again after #4994 re-pinned main (0dec3a5). Main then reorganized the Libraries page into tabs (#5087) and moved its translation pin to 2026.11.22-d12da65, which already carries this PR's three status keys. I merged main a third time (febcad7): the section keeps main's new Addressed
Left for the maintainers
Pre-existing, outside this diff
Validated features. Not run: the review account's token lacks the scope the validation board needs. The PR body says Series and Audiobooks web admin cases #1251 and #1255 reach this section but haven't run. Verification. A dev deployment built from 0de4011, ece7907, and the final head 0dec3a5, with a German browser at 1440 px: the rows read "Serie / Ausstehend", "Serie / Mehrdeutig", "Film / Nicht zugeordnet" (two template items were set to pending and ambiguous so all three statuses show). The card fix was checked in Russian at 320 and 390 px. User manual. Unaffected: the admin docs don't quote these badge values. Other clients. Web admin only; Apple, Android, and Roku have no Unmatched Items screen. Translation catalog. Silo-Server/silo-translations#141 is merged and released; main's pin 2026.11.22-d12da65 includes its keys, so this PR no longer changes the pin. Council (Sol gpt-6.2-sol xhigh, Opus claude-opus-5-5 high, Gemini gemini-4-neon xhigh)
Round 1 found the search gap, the dialog badge, the card wrap (fixed), and the raw types elsewhere. In round 2, Sol raised word-level clipping at an extreme text scale; checked live, the whole card layout collapses at that scale, so it's outside this change. Fit: 9/10 · Readiness: 8/10 — conditional (assuming CI is green) Fit: admin pages should read correctly in the admin's language; this reuses the shared type helper, adds three catalog keys, and costs nothing at runtime. Readiness: the change is small and verified live in both layouts; the one open item is the search decision above. If the maintainers accept it as a follow-up, nothing else holds this back. 🤖 Claude Code (claude-opus-5-5) |
Main's translation pin 2026.11.22-d12da65 already carries the three unmatched status keys, so the pin and generated locale files now match main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Problem
Related issue: N/A
Validation tasks: none (Series — Web admin #1251 and Audiobooks — Web admin #1255 reach this section in C1 and C2, but neither has been run yet)
Other clients: N/A (web admin only; Apple, Android, and Roku have no Unmatched Items screen)
In any interface language other than English, the Unmatched Items section on the Libraries page showed each item's Type and Status as the raw API values:
movie,seriesand the other item types, andunmatched,pendingorambiguous. In German the badges read "movie" and "unmatched" under the German column labels, in the desktop table and in the card layout below 1024 px. This change shows the translated label instead. The values stay English as data.Approach
itemTypeLabelhelper, which fix(web): show ambiguous root types and confidence in the interface language #4994 also uses for the Ambiguous Roots section. It covers every type this list can return (movie, series, season, episode, audiobook, ebook, manga). A type it doesn't know prints as sent.web.admin.libraries.unmatched.status.unmatched,.pendingand.ambiguous, added in feat(catalog): name the Unmatched Items statuses in the admin's language silo-translations#141 with themake translatepass for every language. The server only sends those three values here; anything else prints as sent.Validation
unmatched) showedmovieandunmatchedbefore and "Film" and "Nicht zugeordnet" after, in the table at 1440 px and in the cards at 820 and 390 px. The sandbox has no pending or ambiguous items, so those two labels were not seen live; they use the same switch and their keys are in the synced catalog.tsc -b, eslint and prettier pass on the change. The admin web tests pass; four timing-sensitive tests on other admin pages timed out on the heavily loaded host and passed when rerun alone.make lint-changedandmake verify-local-pathspass.Evidence: https://evidence.siloserver.org/r/silo-server/unmatched-items-badge-labels/
Risks
Follow-ups
Checklist
Council review
Ran as a follow-up from #4994's review: one member per round. Plan round skipped as mechanical (root cause shown in the source and live; the fix sits where the values are rendered and follows #4994's pattern; it adds nothing beyond the three catalog keys).
Background review: done, reviewed 46ade8f (no review posted on the PR; the first attempt was cancelled and the retry returned its findings without posting)
S1 (low): searching for a translated badge ("Film", "Nicht zugeordnet") misses the row, because the server matches the English values. Left open for a decision, as described under Risks.
Maintainer review (after the branch was brought up to date with main):
Fixed: the card layout's Type badge wrap (ece7907). Left open for a decision: search by a translated label (see Risks). Pre-existing and tracked: the dialogs' raw type (#5086). The review summary comment has the details.
Visual review: captures from eb80b479
Answered: every visual finding matched the base or sits outside this change. The view filter cuts "Warten auf Zuordnung" off at 820 px in both captures (#5024). The fixed header covers page actions only at the captured scroll position. The search placeholder clips at phone width (already a #4994 follow-up). The scan timestamps' US format comes from the capture, which sets only the browser language and leaves the default formatting locale on English.
AI Disclosure
make translate🤖 Generated with Claude Code
Note
Translate unmatched items' type and status labels in admin UI
statusLabelhelper and the existing item-type label helperstatusLabelhelper covers theunmatched,pending, andambiguousstatuses; any other status value is shown as the raw stringMessageKeyin keys.ts and translated entries across all locale filesMacroscope summarized 0dec3a5.