Skip to content

fix(web): say "Show it" on a restore toggle that covers one item - #4693

Merged
Quick104 merged 2 commits into
mainfrom
fix/restore-toggle-singular
Nov 20, 2026
Merged

Quick104 merged 2 commits into
mainfrom
fix/restore-toggle-singular

Conversation

@Quick104

@Quick104 Quick104 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

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

On the web admin Restore page, the toggle that opens a group of items always read "Show them" / "Hide them". Beside a group or section of one item, the pronoun disagreed with the singular text next to it: "1 can't be restored — it needs to be installed from a plugin catalog first ⌃ Hide them", or "It matches this server. Nothing to restore. ⌄ Show them". The toggle now reads "Show it" / "Hide it" when it covers one item. Two or more still read "Show them" / "Hide them".

Approach

Silo-Server/silo-translations#124 (merged) makes web.admin.backups.restore.choose.showThem and hideThem plurals on count. Each of the page's three toggles passes the number of things it opens:

  • a blocked group: the group's items, the same number its heading counts;
  • a section with nothing to restore: the section's items, the same ones the sentence beside it counts;
  • the settings that are never restored: the server's list of setting keys, which is fixed and always long, so this one stays plural.

The locale files are synced to release 2026.11.20-80e7bd8. Besides the toggle keys, the sync brings in the catalog changes released since the last pin: the singular blocked-group headings from Silo-Server/silo-translations#119 and Silo-Server/silo-translations#122 (the "it needs…" text beside this toggle), the node-delete note from Silo-Server/silo-translations#115, and 31 keys that other pull requests will use.

Validation

  • Reproduced on a dev sandbox built from main (28dd148), with three backups taken as plugins were uninstalled. A Plugins section whose one item matches showed "Show them", and a blocked group of one showed "Show them" / "Hide them".
  • The same sandbox rebuilt from this branch shows "Show it" / "Hide it" in both places at 390, 820, and 1440 px. A blocked group of two, the closed plural toggles, and the never-restored settings still read "Show them" / "Hide them". A section whose only item is blocked shows "it" on both toggles. In German, both forms read "Anzeigen" / "Ausblenden", taken from the catalog. The browser console logged no errors.
  • Web lint (no new warnings), Prettier, typecheck and build, and the bundle budget pass. Web tests: 3024 pass. 29 tests in 4 files fail because this host's Node has no localStorage; the same 29 fail on a clean main checkout.
  • make verify-local-paths passes.

Evidence: https://evidence.siloserver.org/r/silo-server/restore-toggle-singular/

Risks

None identified. The keys are web-only, and every place that uses them passes the count.

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 3a18f5a

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

Answered: Sol raised two low-priority points but couldn't post them, because its GitHub connection was refused. First, Latvian picks the one form for 21 and 31. That matches the Latvian heading beside the toggle, which uses the same form ("Nevar atjaunot 21 vienumu – tas…"), since Latvian treats numbers ending in 1 as singular. Second, a section of 21 items, narrowed by the filter and then collapsed, reads "Show them". That count matches the "21 match this server" sentence beside it, and reopening the section shows the filter box with its query, as on main. Opus and Gemini found nothing. Gemini noted that the backup warning toggles ("Show the accounts", "Show the files") are also plural for one item. That wording is the same on main, uses other keys, and is being fixed separately.

Visual review: 2 rounds, captures from 28dd148 with this change and from 3a18f5a

Member Round 1 Round 2
Sol better, 8.5/10 better, 8/10
Opus better, 7/10 new (after-only captures), 8/10
Gemini better, 7/10 better, 7/10

Fixed: nothing; no member found a problem the change introduced. Answered: the blocked-group heading also turning singular comes from the synced catalog (Silo-Server/silo-translations#119); the other findings (clipped plugin versions at 390 px, an orphaned word in the section summary, the bar's segment order, nested disclosures for one item) look the same on main and sit outside this change. The clipped versions are being fixed in a separate change.

AI Disclosure

  • Harness: T3 Code with Claude Code
  • Tool(s): Claude Code; Codex and Antigravity for the review panel; silo-translations make translate-pr for the catalog translations
  • Model(s): claude-opus-5-5 (implementation, captures, code review, translation pass); claude-sonnet-5-5 (code-review cleanup finder and validation check); gpt-6.2-sol, claude-opus-5-5, gemini-4-neon (visual review and background review)
  • Involvement: Fully AI-generated. The agent verified it live on a dev sandbox; a person has not verified it yet.
  • Adversarial review: code-review at xhigh (three finders, a validation check) found four low-severity candidates, each answered with evidence and none needing a change. The plan round was skipped because the fix passes a count at three call sites with nothing added. The simplify pass changed nothing. The background review and visual review are under Council review.

🤖 Generated with Claude Code

Note

Make backup-restore "Show"/"Hide" labels count-aware across web locales

  • Rewords backup-restore blocked messages to use singular item wording, and adds messages for settings managed by the server environment (blocked, caveat, reason, setting label) in all locales in web/src/locales
  • Converts the Hide and Show restore labels to count-based plural messages; RestoreChoose.tsx now passes the item count to the show/hide translation calls in BlockedGroupRows, NeverRestored, and SectionBlock
  • Adds translations for external-recommendation progress and skip reasons, Discover recommendation status, settings conflicts, environment-managed storage transitions, and backup-schedule task details; the generated key union in keys.ts is updated
  • Deployment-configuration guidance now says API servers must be restarted after removing a setting
  • Behavioral Change: every locale's hide/show entries changed from plain strings to plural message structures, so any untranslated locale or out-of-tree consumer of these keys must follow the new plural form

Macroscope summarized 3a18f5a.

Quick104 and others added 2 commits November 20, 2026 18:17
The Restore page's "Show them" / "Hide them" toggle now passes the count
of what it shows: the blocked group's size, the section's item count, or
the number of never-restored settings. With the catalog's plural form, a
group or section of one reads "Show it" / "Hide it".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings in the plural "Show it" / "Hide it" toggle keys
(Silo-Server/silo-translations#124), the singular blocked-group
headings (#119, #122), and the other catalog changes released since
the last pin.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added the size/XXXL 3000+ added + deleted lines (all files); change volume, not priority. label Nov 20, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 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-20T23:37:41.755385Z 3a18f5a PR opened
🔒 Security Review ✅ Completed 2026-11-20T23:40:55.934647Z 3a18f5a 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.

@coderabbitai

coderabbitai Bot commented Nov 20, 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 2 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: 2ccdf55b-8551-4799-ae6f-706b160bca4b
Commits

Reviewing files that changed from the base of the PR and between 1169342 and 3a18f5a.

Files selected for processing: 44

  • .silo-translations
  • web/src/locales/ar-XB.json
  • web/src/locales/ar.json
  • web/src/locales/bg.json
  • web/src/locales/ca.json
  • web/src/locales/cs.json
  • web/src/locales/da.json
  • web/src/locales/de.json
  • web/src/locales/el.json
  • web/src/locales/en-XA.json
  • web/src/locales/en.json
  • web/src/locales/es.json
  • web/src/locales/et.json
  • web/src/locales/fi.json
  • web/src/locales/fr.json
  • web/src/locales/he.json
  • web/src/locales/hi.json
  • web/src/locales/hr.json
  • web/src/locales/hu.json
  • web/src/locales/id.json
  • web/src/locales/it.json
  • web/src/locales/ja.json
  • web/src/locales/keys.ts
  • web/src/locales/ko.json
  • web/src/locales/lt.json
  • web/src/locales/lv.json
  • web/src/locales/ms.json
  • web/src/locales/nb.json
  • web/src/locales/nl.json
  • web/src/locales/pl.json
  • web/src/locales/pt-BR.json
  • web/src/locales/pt-PT.json
  • web/src/locales/ro.json
  • web/src/locales/ru.json
  • web/src/locales/sk.json
  • web/src/locales/sl.json
  • web/src/locales/sv.json
  • web/src/locales/th.json
  • web/src/locales/tr.json
  • web/src/locales/uk.json
  • web/src/locales/vi.json
  • web/src/locales/zh-Hans.json
  • web/src/locales/zh-Hant.json
  • web/src/pages/admin-backups/RestoreChoose.tsx
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@silo-kody

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

@silo-triage silo-triage Bot added bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish triaged High-confidence review completed; does not mean fixed, validated, or accepted for release. labels Nov 20, 2026
@Quick104
Quick104 merged commit 3516fb4 into main Nov 20, 2026
19 checks passed
@Quick104
Quick104 deleted the fix/restore-toggle-singular branch November 20, 2026 23:48
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 javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish size/XXXL 3000+ 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