Repository navigation
fix(web): keep the start of long people's names cut short in right-to-left languages - #4910
Conversation
…-left languages In Arabic, a long left-to-right username or profile name lost its start wherever the web app cuts it with an ellipsis: "…rtholomew_reynolds" instead of "aaron_bartholomew_…". On an English page, a long Arabic name lost its start the same way. Each name now reads in the direction of its first letter (dir="auto"), per the right-to-left rule in web/src/i18n/README.md. Where the box would stretch, w-fit max-w-full (or a wrapper for a flex-1 item) keeps a short name on the page's start side. Covers the dashboard Now Playing widget, the activity page, the user detail breadcrumb and Profiles tab, the users list group line, download requesters, device override profile tabs, the impersonation banner, the sidebar account menu, profile settings, the current profile link, and Watch Together member lists. 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 31 minutes. View limit details
|
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. |
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:
|
Problem
Related issue: N/A
Validation tasks: changes #1200 C1; changes #1197 C1; changes #1221 C1 (minor: in a right-to-left language, a long name in the "Viewing as" banner, the users list group line, the user detail breadcrumb and Profiles tab, or the device profile tabs now keeps its start)
Other clients: Apple N/A (name text takes its direction from its first letter and no view overrides it); Android N/A (same, Compose content direction); Roku N/A (no right-to-left interface language)
In Arabic, a long username or profile name written in Latin letters loses its beginning wherever the web app cuts it short with "…". The account menu shows "…berghe-Oppenheimer Reynolds" instead of "Bartholomew Maximiliano…". On an English page, a long Arabic name loses its beginning the same way. #4783 fixed this for the admin users list, the dashboard Users widget and access group members. This change fixes the other places that show a person's name on one line:
Each name now keeps its beginning and ends in "…". Arabic names on the Arabic page look as before, and short names stay on the row's start side.
Approach
Each name reads in the direction of its first letter (
dir="auto"), asweb/src/i18n/README.mdprescribes for a name cut withtruncate. Where the name's box would stretch (the account menu header lines and the current profile link),w-fit max-w-fullsizes it to its text so a short name stays on the start side. The movie picker's member name keepsflex-1on a wrapper, with the name in a span sized to its text.Some names are left for separate changes. When a name leads or sits inside a longer line,
dir="auto"on the whole line would let the name's script set the direction of the translated text around it and reverse a short line on an Arabic page. Those lines need the name in its own element: the Watch Together player's "{name} (you)" row, the Downloads summary line on phones, the suggestion list, the banner's "authorized by" sentence and the collection card's "by {owner}". Also separate: the "Allow for profiles" dialogs, where a long profile name widens the dialog past the screen, and names of things such as libraries and collections. The access group line is the one thing's name included here, because it sits in the users list rows that #4783 fixed.Validation
localStorageis undefined in some tests); none of them covers a changed file.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/rtl-truncated-people-names/
Risks
None identified. The change adds attributes and width classes to existing elements. A name that mixes scripts reads in the direction of its first letter, so the part written the other way can still lose its own start, as the README notes.
Checklist
Council review
Background review: round 1 on this head
Visual review: 2 rounds, captures from 8dce03d0 (the same change before the last rebase)
Fixed: added captures where the banner, the breadcrumb and the English users list group line are long enough to be cut. Answered: a cut Latin name on an Arabic row ends a few pixels short of the start edge, because the ellipsis ends at a whole letter; problems the captures showed that predate this change went to separate changes. Sol's finding: on an English page, a name whose leading digits alone are wider than the box and are followed by Arabic letters ("123456789012399999999999 ريم") now loses its first digits, because
dir="auto"takes right to left from the first letter. Accepted as the mixed-script trade-off the README describes: the common case of a short number before an Arabic or Latin name ("2024 مريم…", "2024 Bartholomew…") now keeps its start on both pages, and any fixed direction for digit-led names would break one of those instead.AI Disclosure
🤖 Generated with Claude Code