Repository navigation
fix(web): translate item types on the metadata refresh task page - #4687
Merged
Merged
Conversation
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>
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. |
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:
|
Contributor
3 of 4 tasks
This was referenced Nov 23, 2026
4 tasks done
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
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 andmovieunder 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 ofGlobalSearch.tsxintoweb/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
series,movie,season, andepisode. 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.pnpm run lint,format:check,build, andbudget:checkpass.localStorageis undefined there); none import the changed files.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
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
No member found anything to post.
Visual review: 2 rounds, captures from ef3496e
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
🤖 Generated with Claude Code