Skip to content

fix(web): stop restore rows cutting names short next to empty space - #4788

Merged
Quick104 merged 9 commits into
mainfrom
fix/restore-row-name-width-cap
Nov 21, 2026
Merged

Quick104 merged 9 commits into
mainfrom
fix/restore-row-name-width-cap

Conversation

@Quick104

@Quick104 Quick104 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #4718
Related issue: N/A
Validation tasks: none

Other clients: N/A (backup restore is only in the web admin)

On the backup restore Choose step, item and account rows cut long names short even when the rest of the line was empty. A one-line row capped the name at 60% of the line (45% for an account) whether or not any detail text sat beside it. Artwork rows never have detail text, and the server labels them <title> <image type>, so a long title's poster, backdrop and logo rows all showed the same cut-off title. The folded "match this server" list kept its 60% cap at every width, so on a phone two matching names that differ only at the end looked the same.

Account rows had two more cases. The admin badge, profile count and merge status turned on at the same 42rem of row width where the row goes to one line, and together they left the name and email about 220 px. In 1344–1366 px windows an account with an email showed about 100 px of its name. The merge status sat in a 160 px badge that cuts a long destination short, and the row's details hid their full copy at those widths.

This change stops cutting short a name that has nothing beside it, lets matching names wrap, gives account names the room the extras took, and shows a merge destination in full in the details.

Approach

  • Item and account rows keep the 60% and 45% caps, and the one-line "…", only when a detail renders beside the name. A name with nothing beside it wraps instead, so a title longer than the line still shows its image type.
  • The "match this server" list no longer cuts names short. Names wrap, breaking after dots like the other rows do, and a detail that doesn't fit moves under its name.
  • Account rows still go to one line at 42rem. Between 42 and 52rem the row shows the admin badge as its shield icon alone (screen readers get the label), and shows the merge status only when it names a different account. The profile count, and a merge status that would repeat the row's name, move to the details, as on narrow rows. From 52rem the row shows all three again; the page's width cap keeps rows from reaching much past 56rem.
  • The details show "Merge into " at every width, because the badge can cut a long destination short. "New account" still shows once.

Web only: RestoreRows.tsx and RestoreUsers.tsx. No API, text, or translation changes.

A name beside a short detail, such as a collection with "12 items", still stops at 60%. Giving it the detail's unused room needs both widths measured, which CSS can't do on its own; #4791 tracks it.

Validation

  • Reproduction: not on a live server. A dev sandbox couldn't start on either try, because its host had no free Docker network address pools. A temporary dev-only route rendered the real Choose step inside the admin shell's layout with fixture data. Captures of main and of this branch show each case before the fix and gone after it at 1920, 1440, 1366, 1024, 834 and 393 px, in Arabic at 393 and 1440 px, and in the en-XA pseudo-locale at 1920 px. The route is not in this branch.
  • At 393 px the page doesn't scroll sideways in English or Arabic.
  • Typecheck, lint, format, build and bundle budget: pass.
  • Web tests: failures only in seven test files that share no code with this change. Four fail the same way on main, and the other three passed when rerun.
  • make verify-local-paths and make verify-size-ratchet: pass.
  • No passed case on the v1.0 validation board reaches the restore step.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/issue-4718/

Risks

Account rows between 42 and 52rem of row width, which covers most desktop windows with the admin sidebar and restore summary, no longer show the profile count, or a merge status that repeats the row's name, on the row itself, and show the admin badge as an icon. The opened details show the role and status, and list the profiles.

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

Plan round: Sol, Opus and Gemini checked the plan before implementation. Adopted from it: the "match this server" list wraps with flex-wrap instead of a container query (Sol, Opus), the details' merge line wraps long names (Sol, Gemini), and "New account" stays out of wide rows' details (Sol).

Background review: rounds 1 to 3 on dc062db, fe670c5 and 2b49e10

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

Round 1: Opus posted one nit, a simpler class list for the name, applied in 0513001. Sol and Gemini couldn't post their reviews (a GitHub 401 and a rate-limit pause), so their findings are here. Fixed: a merge into a differently named account no longer leaves the row between 42 and 52rem (Sol), and the account extras switch at 52rem instead of 56rem, which rows under a blocked group never reach (Gemini). Answered: an invited or email-only account repeats its email as its contact line, which also caps its name (Sol, Gemini). Main does the same, so a separate pull request will fix it.

Round 2: fixed in 2b49e10, a merge between two email-only accounts showed a blank "Merge into " badge (Gemini). Answered: when the account here has no username, the preview leaves out its name, so the status names the backup's username (Sol). That was already wrong on main and belongs in the server preview, which a separate pull request will fix. A review bot's note that a cut-short name loses its start in right-to-left languages also predates this change and is tracked in #4837.

Round 3, which finished after this merged: Gemini found nothing new. Opus suggested dropping a redundant term from the merge destination's fallback (same result). Sol found that a matching name with a part that can't wrap, such as a run of joined emoji, makes the "match this server" list scroll sideways; #4907 fixes it. Sol also found that an account here with no username whose email changed shows the backup's old email as the destination, the same gap in the preview as round 2's, which its separate fix covers.

Visual review: 2 rounds, final captures from dc062db

Member Round 1 Round 2
Sol better, 8/10 better, 8/10
Opus better, 7/10 better, 8/10
Gemini better, 7/10 better, 8/10

Fixed: a name with nothing beside it wraps instead of ending in "…", a wrapped matching name no longer leaves one word alone on its last line, and account rows keep the admin icon between 42 and 52rem. Answered: a name beside a short detail keeps its cap (#4791), and from 56rem the details repeat the merge status on purpose, since the badge can cut it short.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code and its review subagents; T3 Code delegated tasks for the council (Codex, Claude, Antigravity); Playwright (headless Chromium) for captures
  • Model(s): claude-opus-5-5 (implementation, captures, code review); claude-sonnet-5-5 (code-review cleanup finder and validation check); gpt-6.2-sol, claude-opus-5-5, gemini-4-neon (plan, visual and background reviews)
  • Involvement: Fully AI-generated. The agent verified it on a dev-only harness, not a live server; a person has not verified it yet.
  • Adversarial review: code review at xhigh (three finders, a validation check, a sweep, and a re-review of the later commit) found two consistency gaps in the "match this server" list, both fixed. A plan round and a two-round visual review ran; see Council review.

🤖 Generated with Claude Code

Note

Fix restore row labels being cut short next to empty space

  • In RestoreRows.tsx, ItemRow labels now wrap and use the full row width by default. At the @2XL breakpoint, labels are capped at 60% and truncated only when a secondary detail is present. The SameRow label wraps via BreakableKey instead of truncating, and the secondary detail can wrap to a new line.
  • In RestoreUsers.tsx, account labels fall back to the merge destination when neither local_username nor username exists, and wrap when no contact text is present.
  • Adjusts visibility of profile count, administrator text, and merge status by container width; expanded details now show merge status at every width.
  • Behavioral Change: administrator text is screen-reader-only below the 52rem breakpoint, and non-merge status and administrator details are hidden at 52rem and above in expanded details.

Macroscope summarized 2b49e10.

Quick104 and others added 5 commits November 20, 2026 21:22
… beside it

On the backup restore Choose step, a one-line item row capped its name at 60%
of the line (45% for an account) even when the row had no detail text, so a
long name was cut short next to blank space. Artwork rows have no detail
text, and the server labels them "<title> <image type>", so a long title's
poster, backdrop and logo rows all showed the same cut-off title. The cap now
applies only when a detail sits beside the name.

The "match this server" list capped names at 60% at every width, so on a
phone two names that differ only at the end looked the same. Its names are
no longer cut short; a detail that doesn't fit beside a name moves under it.

A wide account row shows its merge status in a badge that cuts a long
destination short, and its details hid their copy at that width. The details
now show a merge in full at every width.

Closes #4718

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

A matching plugin's name is its dotted id and version, which now wraps in
the "match this server" list. It breaks after its dots as the other restore
rows do, and a detail wrapped under a name keeps the small gap those rows
leave between the two lines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
An account row added its admin badge, profile count and merge status at the
same 42rem of row width where it goes to one line. Together they leave a
42rem row about 220 px for the name and contact line, so an account with an
email showed about 100 px of its name, in 1344-1366 px windows for example.
They now join the line from 56rem. Below that the row shows its name,
contact line and state, and the details show the admin role and the status,
as they do on narrow rows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The visual review of the "match this server" list found artwork names
wrapping so that "poster" or "backdrop" sat alone on the second line.
Pretty wrapping keeps more of the name with its last word where the browser
supports it.

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

The visual review found that a title longer than a whole one-line row still
lost the end of its name, so its poster, backdrop and logo rows looked alike
again. A row name with no detail beside it now wraps instead of ending in
"…", so it is never cut short; a name beside a detail keeps its one-line cap.

It also found that rows between 42 and 56rem no longer showed which accounts
are administrators. The admin badge's shield icon now shows from 42rem, with
its label from 56rem; screen readers get the label at every width.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added the size/M 50–199 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 41 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: 631b9e1e-6f53-44a3-8fe3-64f52e0ea2cc
Commits

Reviewing files that changed from the base of the PR and between 41e1749 and 2b49e10.

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

@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-21T03:39:16.148118Z 80015cc New commits
🔒 Security Review ✅ Completed 2026-11-21T03:54:23.027288Z 2b49e10 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

@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 dc062db)

One nit, posted on the ItemRow line (O1). The same simplification applies to AccountRow, noted on its line.

What I checked and found sound: the 56rem threshold for the account extras holds up. At 42rem the old badge, profile count, 160 px status, state tag and disclosure left roughly 190 to 220 px for name and contact, which matches the stated problem. max-w-full is needed on the lone-name branch: without it a shrink-0 label in the @2xl flex row would take its max-content width and overflow. The container-query max-w-[60%] and [45%] still override the base max-w-full, since the variants differ and tailwind-merge keeps both. In SameRow, the detail still truncates when it wraps onto its own line. The secondary and contact checks match the conditions that render the detail span, so an empty string takes the lone-name path in both places.

AI disclosure: written by Claude Opus 5.5 (claude-opus-5-5) through Claude Code.

Quick104 and others added 2 commits November 20, 2026 22:04
The adversarial review found that moving the merge status to 56rem hid it
on rows between 42 and 56rem even when it names a different account, such
as a backup's "sam-old" merging into this server's "sam-current". That
status now shows from 42rem whenever the destination differs from the row's
name. A merge into the same name, which adds nothing the row doesn't already
say, still waits for 56rem.

The name's class list is also simpler: wrapping is part of the base classes,
and only the one-line cap depends on a detail being there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The restore page caps its width, so an account row is at most about 904 px
wide, and one under a blocked group 12 px less. At 56rem (896 px) the admin
label, profile count and merge status showed only in windows of about
1870 px and up, and never on blocked rows, so a wide screen showed
"Administrator" on one row and only its icon on the row below. From 52rem
both kinds of row show them, and a 1440 px window still keeps the name's
room.

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 (gpt-6.2-sol, reviewed fe670c5)

One new finding on the merge badge for a local account with only an email.

AI disclosure — gpt-6.2-sol via Codex.

@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 fe670c5)

Round-2 check of 0513001422 and fe670c543c:

  • G1 (resolved): every @4xl: in AccountRow is now @[52rem]: (832 px). Both restorable rows (capped at 904 px by PageFrame 1560 px, the 20rem + gap-8 summary column, and SettingsGroup's 16rem + gap-x-12 left column) and blocked rows (892 px after BlockedGroupRows's ps-3) reach 832 px on wide desktop viewports while 1366/1440/1728 px layouts stay in the compact @2xl tier.
  • G2 (deferred): confirmed pre-existing on 4762d23bc9 (contact and the unconditional width cap were unchanged from main); left to the separate follow-up.
  • G3 (low): one new edge case in the renamed-destination check on email-only accounts, left inline below.

AI disclosure: review written with Gemini 4 Neon in T3 Code (Antigravity).

…width-cap

# Conflicts:
#	web/src/pages/admin-backups/RestoreUsers.tsx
When neither the backup's account nor the account here has a username, the
merge status read "Merge into " with no name, and from this change on it
also showed on rows between 42 and 52rem as if it named another account.
It now falls back to the row's label, the email the preview names the
account by, so it reads "Merge into <email>" and waits for 52rem like any
merge into the same name.

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 (Opus 5.5, reviewed 2b49e10)

Earlier finding: O1 resolved.

The merge from main is clean. Against the merge base with main (41e1749), the diff holds only this PR's changes, and main's per-status <div> wrappers and their comment are intact. The G3 fix gives an email-only merge a name, and its badge stays hidden between 42 and 52rem because the destination equals the row's label. One nit (O2) is inline.

Score: 8.5/10.

AI disclosure: written by Claude Opus 5.5 (claude-opus-5-5) in Claude Code.

.filter(Boolean)
.join(" · ");
// With no username on either side, the name is the email the row is labelled with.
const destination = account.local_username || account.username || item.label;

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.

O2 (nit): account.username is redundant here.

The server labels every account row with its username, or its email when the username is empty (label := a.Username; if label == "" { label = a.Email } in internal/backup/users_plan.go). So when account.username is set, it already equals item.label, and account.username || item.label is always just item.label.

Suggested change:

// Without a local username, the merge is named after this row.
const destination = account.local_username || item.label;

The result is the same for every row, including the G3 case and the email-only local account case from S3. The rule also matches what the badge condition destination !== item.label tests: whether the merge names a different account. Leave the code as it is if you'd rather not depend on the server's label rule, but in that case the comment should explain the middle term too, since today it only explains the last one.

@Quick104
Quick104 merged commit 8fc0339 into main Nov 21, 2026
24 checks passed
@Quick104
Quick104 deleted the fix/restore-row-name-width-cap branch November 21, 2026 04:55
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/M 50–199 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] Restore rows cap a name at 60% even with nothing beside it

1 participant