Repository navigation
fix(web): say "Show it" on a restore toggle that covers one item - #4693
Conversation
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]>
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. |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
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. View limit details
|
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:
|
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.showThemandhideThemplurals oncount. Each of the page's three toggles passes the number of things it opens: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
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".localStorage; the same 29 fail on a cleanmaincheckout.make verify-local-pathspasses.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
Council review
Rounds: 1, last reviewed 3a18f5a
Answered: Sol raised two low-priority points but couldn't post them, because its GitHub connection was refused. First, Latvian picks the
oneform 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 onmain. 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 onmain, uses other keys, and is being fixed separately.Visual review: 2 rounds, captures from 28dd148 with this change and from 3a18f5a
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
mainand sit outside this change. The clipped versions are being fixed in a separate change.AI Disclosure
make translate-prfor the catalog translations🤖 Generated with Claude Code
Note
Make backup-restore "Show"/"Hide" labels count-aware across web locales
BlockedGroupRows,NeverRestored, andSectionBlockMacroscope summarized 3a18f5a.