Repository navigation
fix(web): stop restore rows cutting names short next to empty space - #4788
Conversation
… 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]>
|
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 41 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:
|
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. |
Quick104
left a comment
There was a problem hiding this comment.
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.
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 — 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:
|
Quick104
left a comment
There was a problem hiding this comment.
Adversarial review (Gemini 4 Neon, reviewed fe670c5)
Round-2 check of 0513001422 and fe670c543c:
- G1 (resolved): every
@4xl:inAccountRowis now@[52rem]:(832 px). Both restorable rows (capped at 904 px byPageFrame1560 px, the20rem+gap-8summary column, andSettingsGroup's16rem+gap-x-12left column) and blocked rows (892 px afterBlockedGroupRows'sps-3) reach 832 px on wide desktop viewports while1366/1440/1728 pxlayouts stay in the compact@2xltier. - G2 (deferred): confirmed pre-existing on
4762d23bc9(contactand the unconditional width cap were unchanged frommain); 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 — 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:
|
Quick104
left a comment
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
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
Web only:
RestoreRows.tsxandRestoreUsers.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
en-XApseudo-locale at 1920 px. The route is not in this branch.make verify-local-pathsandmake verify-size-ratchet: pass.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
Council review
Plan round: Sol, Opus and Gemini checked the plan before implementation. Adopted from it: the "match this server" list wraps with
flex-wrapinstead 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
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
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
🤖 Generated with Claude Code
Note
Fix restore row labels being cut short next to empty space
ItemRowlabels 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. TheSameRowlabel wraps viaBreakableKeyinstead of truncating, and the secondary detail can wrap to a new line.local_usernamenorusernameexists, and wrap when no contact text is present.Macroscope summarized 2b49e10.