Skip to content

fix(web): name restore row checkboxes from the plain label - #4734

Merged
Quick104 merged 3 commits into
mainfrom
fix/restore-row-checkbox-name
Nov 21, 2026
Merged

Quick104 merged 3 commits into
mainfrom
fix/restore-row-checkbox-name

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 (the backup restore screen exists only in web admin)

Since #4715, a screen reader can announce a restore row's checkbox with a space in the middle of its name, such as "maximiliana. vandenberghe". #4715 added <wbr> break points after the dots and underscores in each row's name so it wraps between words in a narrow row. In a one-line row (42rem and wider) those <wbr> elements are hidden, and Chromium then reads each one as a space when it builds the checkbox's name from its label. This change names each checkbox from the plain label instead.

#4715 also shows an account's merge status ("Merge into …") in its details whenever the row is narrow, which now includes 1024–1280 px desktop windows. A very long unbroken username there ran past the edge of the details; the line now wraps.

Approach

  • ItemRow and AccountRow pass the plain label to their checkbox as aria-label. The visible <label htmlFor> stays, so clicking the name still toggles the checkbox.
  • The account details' merge line gets wrap-anywhere.

Validation

  • On a Silo dev deployment built from main, the account rows' checkboxes at 1440 px were named maximiliana. vandenberghe and theodora. vanderwoodsen. On this branch they are maximiliana.vandenberghe and theodora.vanderwoodsen at 360, 1024 and 1440 px.
  • With a 189-character unbroken username in an open account's merge line at 1024 px, the details panel held 1225 px of content in 368 px on main, and 368 px on this branch.
  • Web lint, format check and typecheck pass. Web tests pass except 29 in four API, auth and player files, which fail the same way on main on the test machine.
  • No test added: the accessible name comes from Chromium's layout of hidden <wbr> elements, which jsdom doesn't reproduce.

Evidence

Nothing on screen changes apart from a very long username wrapping in an account's details, so the evidence is the measured names and widths.

Evidence: https://evidence.siloserver.org/r/silo-server/restore-row-checkbox-name/

Risks

None identified. The checkbox's name was already the label's text; it now skips the <wbr> elements.

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

These are two findings from the background review of #4715, which merged before the fix landed there. The plan round was skipped because the fix is two attributes and one class where the reviewers placed them. The visual review was skipped because nothing on screen changes apart from the long-username wrap.

Background review: running, reviewing d70f408

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

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code; T3 Code delegated tasks for the background review (Codex, Claude, Antigravity); Playwright (headless Chromium) for the accessibility checks
  • Model(s): claude-opus-5-5 (implementation and checks); gpt-6.2-sol, claude-opus-5-5, gemini-4-neon (background review)
  • Involvement: Fully AI-generated. The agent verified it live on a dev deployment; a person has not verified it yet.
  • Adversarial review: the findings came from the background review of fix(web): show restore item and account names in full in narrow rows #4715 (gpt-6.2-sol). This change got a single-pass code review, given its size, and the simplify pass changed nothing; see Council review.

🤖 Generated with Claude Code

Note

Name restore row checkboxes from the plain label and refine BreakableKey dot breaks

  • Sets the checkbox aria-label to the row's plain display label in ItemRow (RestoreRows.tsx) and to the account item label in AccountRow (RestoreUsers.tsx), so screen readers get an explicit name.
  • Changes BreakableKey separator rules: underscores stay break points; a dot is a break point only when the next character is not a digit, dot, or whitespace.
  • Adds the wrap-anywhere class to the small-screen account status paragraph.
  • Behavioral Change: BreakableKey no longer inserts break opportunities after dots followed by a digit, another dot, or whitespace — check existing restore-row key rendering for unwanted wrap changes.

Macroscope summarized 3ba5c79.

Chromium read the <wbr> break points in a row's name as spaces, so a
checkbox was announced as "maximiliana. vandenberghe". Each checkbox now
takes its accessible name from the plain label. The account details'
merge line also wraps a long username instead of running past the panel.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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: 2839d2c2-f56c-4059-a10b-386f40d4706e
Commits

Reviewing files that changed from the base of the PR and between 5be6082 and 3ba5c79.

Files selected for processing: 2

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

@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-21T01:26:24.088547Z d70f408 PR opened
🔒 Security Review ✅ Completed 2026-11-21T01:32:58.425353Z 3ba5c79 New commits
ℹ️ 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 the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 21, 2026
@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 ❌

@silo-triage silo-triage Bot added bug Something isn't working evidence-required Needs before-and-after evidence before the Evidence check passes impact: polish Annoyance, cosmetic, or nice-to-have javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish labels Nov 21, 2026
@silo-triage

silo-triage Bot commented Nov 21, 2026

Copy link
Copy Markdown

The accessibility snapshots support the checkbox-name fix. The merge-line wrapping also changes visible layout, but the Evidence section provides measurements instead of captures. Please add before-and-after screenshots of the expanded account details with the same long username at an affected desktop width and at phone width if affected; if phone layout is unchanged, note that explicitly.

Quick104 and others added 2 commits November 20, 2026 20:27
The break rule allowed a break after any dot not followed by a digit, so
"Wait... What?" could split inside its ellipsis in a narrow row, and a
dot before a space gained a needless break point. A dot now breaks only
when a letter or symbol other than a dot or space follows it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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 ❌

@Quick104
Quick104 merged commit dec9d15 into main Nov 21, 2026
18 checks passed
@Quick104
Quick104 deleted the fix/restore-row-checkbox-name branch November 21, 2026 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working evidence-required Needs before-and-after evidence before the Evidence check passes impact: polish Annoyance, cosmetic, or nice-to-have javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish size/S 0–49 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant