Skip to content

fix(web): clip a restore profile name that can't wrap - #4755

Merged
Quick104 merged 4 commits into
mainfrom
fix/restore-profile-name-unbreakable
Nov 21, 2026
Merged

Quick104 merged 4 commits into
mainfrom
fix/restore-profile-name-unbreakable

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 is web admin only)

After #4708, a long profile name wraps in the backup restore screen's profile list. A
name that no line break can split still ran past its row. A run of emoji joined by
zero-width joiners is one grapheme, so a valid 41-character name made of 21 joined emoji
ran 146 px past the row at a 320 px viewport, and at 1024 px past the list into the space
beside it. This change clips such a run at the row's edge, and the words of a name that
mixes words with such a run wrap inside the row. Names that wrap normally look the same as
before.

Approach

The name's label in ProfileRow becomes a block that can shrink to the row
(block min-w-0) and clips only sideways (overflow-x-clip):

  • Clipping only sideways keeps tall marks visible. overflow-hidden also clipped
    vertically and changed how Thai tone marks and stacked combining marks drew on ordinary
    names.
  • As a block, a name that mixes words with an unbreakable run wraps its words at the
    row's width, and only the run is clipped. Left as the shared Label's flex box, the text
    would wrap at the run's width and its words would run into the clip.
  • px-[0.25em] -mx-[0.25em] gives the clip room on each side without moving anything, so
    letters whose ink reaches past their edge stay whole, such as a leading "j" or the end
    of some Telugu names. Measured overhang across about twenty scripts peaked at 0.136em,
    and the room grows with the text size. An unbreakable run is clipped 0.25em past the
    row's edge.

The label also carries the full name as its title, as the account and item names on this
screen already do, so a clipped name can be read on hover; the label can't be selected. An
ellipsis isn't possible: the browser won't place one inside a grapheme.

Validation

  • Reproduced on a Silo dev deployment built from main, then rebuilt from this branch,
    with the same backup. On main the joined-emoji name ran 146, 106, and 66 px past its
    row at 320, 360, and 1024 px, and 106 px in Arabic. With the change it is clipped 3.5 px
    past the row's edge. At 1440 px it fits and is unchanged. The page doesn't scroll
    sideways in either case.
  • With every account's profiles open (two 64-character names, one without spaces, a
    short one, "jasper", and the Telugu name "మంగళ"), the Users section is byte-identical
    before and after at 360, 1024, and 1440 px and in Arabic. At 320 px only the mixed name
    below changes.
  • A 78-character name mixing words with the run, at 320 px: on main the first line runs
    past the row and "Uncle" is cut off at the screen's edge. With the change the words wrap
    inside the row and only the run is clipped.
  • Rendering the row's markup with the built CSS and the app's own font in Chromium, left
    to right and right to left, at 1× and 2× and at the Extra large text size, every test
    name draws pixel-identically to main: a leading "j", Telugu, Devanagari, Arabic, Thai,
    Vietnamese with stacked marks, combining marks, and the 64-character names. With less
    room, a leading "j" and Telugu lost ink.
  • Web lint, format check, build, and bundle budget pass. No test is added: the change is
    CSS classes and a title, and the measurements above are the check.

Evidence

Surface and build: web admin, Backups › Restore › Choose › Users, before main 3282395, after 6135696.

Evidence: https://evidence.siloserver.org/r/silo-server/restore-profile-name-unbreakable/

Risks

None identified. overflow-x: clip needs Safari 16 or later. Older Safari ignores it and
shows today's overflow.

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: 2, last reviewed 6135696

Member Round 1 (2802053) Round 2 (6135696)
Sol (gpt-6.2-sol, xhigh) 8/10 9/10
Opus (claude-opus-5-5, high) 8/10 9/10
Gemini (gemini-4-neon, xhigh) failed on a provider quota 9/10 (retry)

Visual review: 2 rounds, captures from 2802053

Member Round 1 Round 2
Sol better, 8/10 better, 9/10
Opus better, 7/10 better, 9/10
Gemini better, 6/10 better, 6/10 (partial; the run hit its quota)

Fixed: 1 px of clip room trimmed a leading "j" at larger text and the end of a Telugu name (round 1, Opus and Sol); the room is now 0.25em. A review comment asked for a way to read a clipped name; the label now has a title. The visual review moved the clip from 4 px to 1 px past the row, which the overhang fix moved back to 0.25em; real names keeping their ink comes first. Answered: a fade mask would fade every ordinary name; an ellipsis can't go inside one grapheme; a touch or keyboard reveal for a clipped name is left out because only a name with an unbreakable run longer than the row is ever clipped, and the full name stays the checkbox's accessible name.

Follow-ups, outside this change: item and account names on this screen overflow narrow rows the same way, and the Review and Run steps didn't wrap long profile names (fixed in #4738). Round 2 also found that the fixed 0.25em of room still trims a hooked letter in Firefox with a raised minimum font size, and the follow-up fixture found a Thai name trimmed in Firefox; both are fixed in #4848, which clips only when the name overflows.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code, T3 Code delegated tasks, Codex, Antigravity
  • Model(s): claude-opus-5-5 (implementation and code review), gpt-6.2-sol, claude-opus-5-5, gemini-4-neon (visual and adversarial review), claude-sonnet-5-5 (code-review subagent)
  • Involvement: Fully AI-generated. The agent verified it on a dev sandbox and in a browser fixture; a person has not verified it yet.
  • Adversarial review: Sol's background review of fix(web): keep long profile names inside the restore profile list #4708 found the unbreakable name. Code review of this change found that overflow-hidden clipped tall marks, that a flex label lost whole words of a mixed name, and that sideways clipping trimmed letter overhang; the background review found that 1 px of room was too little; each was fixed and re-measured. A review comment led to the title. The plan round was skipped as a mechanical fix. Background and visual review results are under Council review.

🤖 Generated with Claude Code

A run of emoji joined by zero-width joiners is one grapheme, so no line
break can split it. A valid 41-character profile name made of 21 joined
emoji still ran past its row in the restore profile list, by 146 px at a
320 px viewport and past the list's edge at 1024 px.

The name's label is now a block that can shrink to the row, and it clips
sideways only what can't wrap. As a block, the words of a name that mixes
words with such a run wrap at the row's width instead of being clipped
with it. Clipping only sideways keeps tall marks above and below the line
visible, and a little inline padding offset by a negative margin keeps
letters that reach past their edge, such as a final "f", whole. Names
that wrap render the same as before.

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 22 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: 4af1635a-aeb5-4391-8ace-c889d0da18b9
Commits

Reviewing files that changed from the base of the PR and between 3282395 and 6135696.

Files selected for processing: 1

  • web/src/pages/admin-backups/RestoreUsers.tsx
  • 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 ❌

@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 21, 2026
@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-21T02:06:00.898842Z 6135696 New commits
🔒 Security Review ✅ Completed 2026-11-21T02:08:13.029055Z 6135696 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 bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish labels Nov 21, 2026
A profile name that can't wrap is clipped at the row's edge, and the label
can't be selected, so two names that differ only past the clip looked the
same. The name's label now carries the full name as its title, as the
account and item names on the same screen already do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adversarial review (claude-opus-5-5, reviewed 2802053)

One finding, inline. It is small, but it contradicts the PR's claim that ordinary names render the same at Extra large text. The rest held up: block and min-w-0 act as described, overflow-x-clip leaves the vertical axis visible, the disabled, locked, and warning-line states are unaffected, and the change is web-only, so Apple, Android, Roku, and jellycompat need nothing.

@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 ❌
⚠️ 5 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Preserve optional store capabilities through production wrappers
  • Detach mandatory cleanup from request cancellation and bound its lifetime
  • Preserve durable media identity and share identity-evidence precedence
  • Bound decoder throughput trades and share direct-play eligibility
  • Retain distributed firing claims through their own validity windows

Quick104 and others added 2 commits November 20, 2026 21:03
…tters

The 1 px of room beside the profile name's clip was too small: a leading
"j" at Large and Extra large text, and the end of some Telugu names, reach
past their letter's edge by up to about 0.14em and were trimmed. The room
is now 0.25em, which grows with the text size, so every ordinary name
renders as it did before the clip. A name that can't wrap is clipped up to
0.25em past the row's edge.

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 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adversarial review (claude-opus-5-5, reviewed 6135696)

Round 1: O1 (a leading "j" trimmed at larger text sizes) is resolved. The room is now 0.25em, so it grows with the text, and the comment matches the code.

The fix looks right, and I found no simpler one. A run of emoji joined by U+200D is a single grapheme, so no line-breaking property can split it, and clipping is the remaining option. For ordinary names, the padding and negative margin cancel out in layout. I have one note, about the other rows on this screen.

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adversarial review (Gemini 4 Neon, reviewed 6135696)

The change to ProfileRow itself (web/src/pages/admin-backups/RestoreUsers.tsx:96-105) holds up: -mx-[0.25em] block min-w-0 overflow-x-clip px-[0.25em] and title={profile.name} match the stated behavior across LTR/RTL, text scaling, disabled/locked states, warning lines, and screen-reader accessible names without clipping ordinary overhanging glyphs. All Round 1 items (O1, S1, S2, Kody) are resolved.

Two low-severity gaps remain outside the diff for the same unbreakable-grapheme input (fine to address in follow-up PRs if this PR stays scoped to ProfileRow):

  • G1 (low) — Narrow AccountRow and ItemRow labels on the same Choose step paint over the state tag and chevron (web/src/pages/admin-backups/RestoreUsers.tsx:203-212, web/src/pages/admin-backups/RestoreRows.tsx:292-301).
    Below @2xl (row width under 42rem / 672px, which applies at 320 px, 360 px, 1024 px, 1280 px, and 1504–1647 px when SettingsGroup splits into two columns), both rows use @max-2xl:wrap-anywhere without horizontal clipping. Because <StateTag> and <RowDisclosure> sit directly beside the label column, a 21-emoji ZWJ username, library, collection, or home-section name (all accepted as arbitrary UTF-8 by internal/auth/normalize.go and internal/backup/restoreset_users.go:691-695) paints across both controls and extends ~118 px past a 320 px row.
    Suggested repair: Add @max-2xl:-mx-[0.25em] @max-2xl:overflow-x-clip @max-2xl:px-[0.25em] to both <Label> elements so unbreakable runs clip inside the gap-3 gutter before <StateTag> while @2xl:truncate stays unchanged on wide rows.

  • G2 (low) — Later steps of the restore wizard still overflow on the same profile.name (web/src/pages/admin-backups/RestoreRun.tsx:146-164, web/src/pages/admin-backups/RestoreReview.tsx:66-77).
    Choosing the same profile whose name ProfileRow now clips and advancing to Review or Restore renders that exact name (web/src/pages/admin-backups/restoreModel.ts:724-739 for library-access caveats; internal/backup/users_apply.go:382 sets profile.label = pp.entry.Name for AccountReport) without min-w-0, wrap-anywhere, or horizontal clipping. At 320 px, a 21-emoji ZWJ name overflows by 115 px in AccountReport and 94 px in caveats, and an ordinary 64-character no-space name overflows by 244 px and 212 px.
    Suggested repair: Give AccountReport's text wrapper (web/src/pages/admin-backups/RestoreRun.tsx:150) min-w-0 flex-1 wrap-anywhere with horizontal clipping (-mx-[0.25em] overflow-x-clip px-[0.25em]), and apply wrap-anywhere plus horizontal clipping to caveat items in web/src/pages/admin-backups/RestoreReview.tsx:66-77.

@Quick104
Quick104 merged commit 579ae4e into main Nov 21, 2026
25 checks passed
@Quick104
Quick104 deleted the fix/restore-profile-name-unbreakable branch November 21, 2026 02:56
Quick104 added a commit that referenced this pull request Nov 21, 2026
A name holding a run no line break can split, such as emoji joined by
zero-width joiners, ran past its box on the backup restore screens: the
Choose step's library heading and its summary panel, the Review step's
plan sentences and left-out list, and the Run report's item and profile
lines. In the summary panel the sentence also set the width of the
phone layout's only column, so every section ran past the screen.

Each of these now clips such a run sideways at its edge, as the profile
rows do since #4755. The summary panel no longer widens the column, and
its sentences wrap like the Review step's. Every other name renders as
before.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Quick104 added a commit that referenced this pull request Nov 21, 2026
* fix(web): clip restore item and account names that can't wrap

A restore row's name that holds a run no line break can split, such as
emoji joined by zero-width joiners, ran past its row on the Choose step
in narrow rows. Item names (libraries, collections, home sections,
plugins), account names, and an account's "Merge into" line now clip
that run sideways at the row's edge, as profile names do since #4755.
Every other name renders as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(web): clip a restore item or account name only while it overflows

Clipping every name in a narrow row, even with 0.25em of room, cut marks
that reach above or below the line on ordinary Thai and Vietnamese names
in Firefox, which clips overflow-x: clip vertically too. A small hook now
measures each name (and an account's "Merge into" line) after layout and
on resize, and the row clips it sideways only while its text is wider
than its box.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant