Skip to content

fix(web): show restore section types in the interface language - #4710

Merged
Quick104 merged 1 commit into
mainfrom
fix/restore-section-type-names
Nov 21, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/restore-section-type-names

Conversation

@Quick104

@Quick104 Quick104 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

Other clients: N/A (web admin only; the Apple, Android, and Roku apps have no restore screens)

On a backup's Restore page, each row under Home and library sections has a short detail line: the section's type, then what the restore does to it. The type was built from the raw section_type id ("custom_filter" became "Custom filter"), so it stayed in English in every interface language. In Arabic each line read "Recently added · ‹Arabic›". Because the line is right-to-left, a narrow row showed only the end of the English word ("…ntly added") and none of the Arabic.

This change names the type with the translated row names the home rows editor already uses, so the whole line follows the interface language.

Approach

rowSecondary in web/src/pages/admin-backups/restoreGroups.ts now calls rowKindLabel from web/src/lib/homeRows/catalog.ts and the local sectionTypeName helper is gone. No catalog keys are added: every section type the server defines already has a web.home.rows.kinds.* entry.

In English the restore page now uses the editor's names, so two labels change: "Custom filter" reads "Smart row" and "Random" reads "Surprise me". The others read the same.

Validation

  • Reproduced on a dev deployment built from main (1169342): with the admin profile in Arabic, a backup taken before deleting a library listed eight sections, and every detail line started with the English type. After rebuilding from this branch (43a2df7) on the same data, every line is Arabic. English shows the editor's names. Checked at 1024 px and 360 px, with no browser console errors. In German the longer names truncate inside the detail line with an ellipsis and the row keeps its shape.
  • Web typecheck, ESLint, Prettier, the restore and home rows catalog tests, the web build, and the bundle budget pass.
  • Full web suite: the remaining failures were timeouts in unrelated files (player, auth, admin collections). The set of failing files changed between runs on a heavily loaded host, and none of these files imports the restore pages. CI runs the suite.
  • No test added: this is a wording change, which "Decide what to test" leaves out.

Evidence: https://evidence.siloserver.org/r/silo-server/restore-section-type-names/

Risks

A backup from a newer Silo with a section type this build's catalog doesn't know shows the generic "Row" instead of a name derived from the id. That is how rowKindLabel treats unknown types everywhere else. Every type the server defines today has a name.

The expanded row's list of changes (for example "item limit" or "web only") is still English text from the server. That is a separate fix.

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

Rounds: 1, last reviewed 43a2df7

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

Visual review: 1 round, captures from 43a2df7

Member Round 1
Sol better, 7/10
Opus better, 6/10
Gemini better, 5/10

Answered: at 360 px "Surprise me" now truncates to "Surprise …", where "Random" fitted. The detail line was already cutting 5 of 8 type names at that width, and 3 rows read better after this change, so the label stays the editor's. The cramped one-line row layout and the narrow desktop column predate this change. Titles clipping without an ellipsis is a separate fix already in progress.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code, T3 Code task delegation, Codex, Antigravity
  • Model(s): claude-opus-5-5 (implementation); claude-sonnet-5-5 (review subagents); gpt-6.2-sol, claude-opus-5-5, gemini-4-neon (council and visual review)
  • Involvement: Fully AI-generated; verified by the agent on a dev deployment, awaiting maintainer review
  • Adversarial review: a multi-agent code review at high effort found no defects in the diff; it confirmed that the server's change-list strings are English, which is out of scope here and handed to a separate fix. The plan round was skipped because the fix swaps one existing helper for another. See Council review for the visual review and the background review on this pull request.

🤖 Generated with Claude Code

Note

Fix restore section types to show labels in the interface language

Restore rows for home sections now get their section-type label from rowKindLabel in the home-row catalog, so labels follow the user's interface language. Removes the local sectionTypeName helper, which replaced underscores with spaces and capitalized the first character without translation.

Macroscope summarized 43a2df7.

The restore page's home and library section rows named each section's
type by tidying its raw id ("custom_filter" became "Custom filter"), so the
type stayed in English whatever the interface language. Use rowKindLabel,
the translated name the home rows editor already shows. In English the
restore page now uses the editor's names too ("Smart row", "Surprise me").

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 21, 2026
@coderabbitai

coderabbitai Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 4 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

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: c8760d14-f152-4ad1-81a0-213735c7c388
Commits

Reviewing files that changed from the base of the PR and between 0d649bd and 43a2df7.

Files selected for processing: 1

  • web/src/pages/admin-backups/restoreGroups.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@silo-kody

silo-kody Bot commented Nov 21, 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 ❌

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 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-21T00:34:23.071724Z 43a2df7 PR opened
🔒 Security Review ✅ Completed 2026-11-21T00:31:04.323714Z 43a2df7 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-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 21, 2026
@Quick104
Quick104 merged commit d7eb725 into main Nov 21, 2026
19 checks passed
@Quick104
Quick104 deleted the fix/restore-section-type-names branch November 21, 2026 00:51
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.

1 participant