Repository navigation
fix(web): keep long profile names inside the restore profile list - #4708
Conversation
On the backup restore Choose step, each profile under an account showed its name on one line that could not shrink or wrap. A profile name can be 64 characters, and the profile list is narrow: on a phone, and at 1024 px where the list sits between the admin sidebar and the restore summary. A long name ran 140 to 230 px past the row's edge and left its detail with no width. The name and detail now share a wrapping line. When they don't fit side by side, the detail moves under the name, and a name wider than the row wraps, including one with no spaces. Rows that fit look the same as before. 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:
|
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. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Problem
Related issue: N/A
Validation tasks: none
Other clients: N/A (the backup restore screen is web admin only)
On the backup restore screen, a long profile name could not fit in an account's profile
list. The name stayed on one line, ran past the row's edge, and pushed the profile's
detail ("Primary · Created here · …") down to zero width. This change lets the name wrap
and moves the detail under it when the two don't fit side by side.
Profile names can be up to 64 characters. The profile list is narrow on a phone, and also
at 1024 px, where the restore list sits between the admin sidebar and the restore summary
and its rows are about 340 px wide. There, both 64-character test names ran 140 to 230 px
past the row, and their detail was hidden.
Approach
In
ProfileRowthe name and detail now share a line that can wrap (flex-wrap), and thename can wrap within the row (
wrap-anywhereinstead ofshrink-0). A row whose name anddetail fit on one line looks the same as before. Otherwise the detail moves under the name
and still ends in "…" if it is wider than the row, and a name wider than the row wraps,
including one with no spaces.
A short name with a long detail also gets two lines on a narrow screen, where its detail
used to be cut off beside the name. That was a deliberate tradeoff, since it shows more of
the detail. Capping the name's width and ending it in "…", as the account row does, would
show only about 20 characters of a profile name at phone width.
Validation
mainwith two restorable accounts whoseprofiles have 64-character names, one with spaces and one without. At 360, 390, and 1024
px the names overflowed the row and the detail measured 0 px wide. On the fixed build
both names stay inside the row on two lines with their detail in full. At 768 and 1440
px the names keep one line, and a detail that doesn't fit beside them moves under them.
German (longer detail text) and Arabic (right to left) behave the same way, and nothing
scrolls sideways at 320, 360, or 390 px.
checkbox, and Space toggles it.
the test host, and none of them imports the changed file: four fail the same way on the
unfixed base, and three timing-sensitive player and collection tests pass or fail from
run to run on the same commit.
check.
Evidence
Surface and build: web admin, Backups › Restore › Choose › Users, fixed build 4bf1856.
Evidence: https://evidence.siloserver.org/r/silo-server/restore-profile-name-overflow/
Risks
None identified. The change is limited to the profile list on the restore screen.
Checklist
Council review
Rounds: 1, reviewed 4bf1856
Visual review: 2 rounds, captures from 4bf1856
Answered: a reported 2 px checkbox shift is not there (the captures are byte-identical down through the rows that still fit on one line). The detail line still ends in "…" when it is wider than the row, as every secondary line on this screen does; making it wrap is a separate change. The account row's own name clipping and the English account description are outside this change (the second is #4669). Follow-up: Sol's one finding, that a name no line break can split (a long run of joined emoji) still ran past the row, arrived after this merged and is fixed in #4755.
AI Disclosure
leading-nonewould cramp a wrapped name, was refuted by running tailwind-merge and by the measured 20 px line height. A simplify pass reworded one comment. Background and visual review results are under Council review.🤖 Generated with Claude Code
Note
Fix profile name overflow in restore profile list
Long profile names in the restore users list now wrap onto extra lines instead of overflowing. The
ProfileRowcontainer allows wrapping, adds horizontal and vertical gaps, and removes the label's no-shrink behavior. See RestoreUsers.tsx.Macroscope summarized 4bf1856.