Skip to content

fix(web): keep the start of long people's names cut short in right-to-left languages - #4910

Merged
Quick104 merged 1 commit into
mainfrom
fix/rtl-truncated-names-keep-start
Nov 21, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/rtl-truncated-names-keep-start

Conversation

@Quick104

@Quick104 Quick104 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • the sidebar account menu and its button, the current profile link in settings, and Profiles settings;
  • the "Viewing as" banner;
  • the admin user detail breadcrumb and Profiles tab, and the access group line under each row of the users list;
  • the dashboard Now Playing widget and the Activity page (username links and profile pills);
  • download requesters on the Downloads preparation list, and the profile tabs in device overrides;
  • the Watch Together people list and the movie picker's member list.

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"), as web/src/i18n/README.md prescribes for a name cut with truncate. Where the name's box would stretch (the account menu header lines and the current profile link), w-fit max-w-full sizes it to its text so a short name stays on the start side. The movie picker's member name keeps flex-1 on 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

  • A test server couldn't start, so a temporary dev-only route (not committed) mounted the real components with fixture names: long Latin, long Arabic and short usernames, profile names and group names, with a fake signed-in session for the account menu and settings. Before (main) and after ran in Chromium, Firefox and WebKit, in Arabic and English, at 393 and 1440 px.
  • In Chromium and Firefox, names with their first letter cut off dropped from 11–19 per run to 0 on the surfaces above. Two names stay flagged in Arabic runs, and this change doesn't draw either: a profile pill that the Now Playing tag row hides when it wraps, and the Downloads summary line on phones, one of the separate cases. WebKit's text measurements ignore the ellipsis, so its screenshots were checked instead; they show the same fix.
  • Short names keep their position (within 4 px in every engine, language and width), Latin names on English pages are unchanged, and there are no new console errors.
  • Web lint (no errors), Prettier, typecheck, production build and bundle budget pass. The full web test suite passes except 7 files that also fail on main on the machine that ran it (Node 26, where localStorage is undefined in some tests); none of them covers a changed file.
  • No test added: this is how browsers lay out text, which jsdom doesn't do.

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

  • 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

Background review: round 1 on this head

Member Round 1
Sol (gpt-6.2-sol, xhigh) 1 finding, 9/10 (not posted: GitHub rate limit)
Opus (claude-opus-5-5, high) no findings, 9/10
Gemini (gemini-4-neon, xhigh) unavailable (provider quota reached on launch and retry)

Visual review: 2 rounds, captures from 8dce03d0 (the same change before the last rebase)

Member Round 1 Round 2
Sol better, 9/10 better, 9/10
Opus better, 8/10 better, 9/10
Gemini better, 8/10 unavailable (provider quota)

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

  • Harness: Claude Code (in T3 Code)
  • Tool(s): Claude Code; T3 Code delegated tasks for the council (Codex, Claude, Antigravity); Playwright for captures
  • Model(s): claude-opus-5-5 (implementation); gpt-6.2-sol, claude-opus-5-5, gemini-4-neon (council); claude-opus-5-5 and claude-sonnet-5-5 (code-review subagents)
  • Involvement: Fully AI-generated. The agent verified it in a dev-only page with the real components; a person has not verified it yet.
  • Adversarial review: no plan round, because the fix is mechanical. Code review used three finders, verifiers, a sweep and a 1.0 validation check. It took two lines out of the change (names inside a longer line) and found missed sites, which moved to separate changes. A three-model visual review checked the captures, and a background review runs on the PR. See Council review.

🤖 Generated with Claude Code

…-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]>
@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 31 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: d65d04cc-f5a3-4d8e-9ba3-fc4af78b8e3b
Commits

Reviewing files that changed from the base of the PR and between dbceadc and 1180339.

Files selected for processing: 13

  • web/src/components/AppSidebar.tsx
  • web/src/components/ImpersonationBanner.tsx
  • web/src/components/admin/dashboard/widgets/NowPlayingWidget.tsx
  • web/src/components/admin/deviceOverrides.tsx
  • web/src/components/admin/users/AdminUserCompactList.tsx
  • web/src/components/settings/CurrentProfileLink.tsx
  • web/src/pages/AdminActivity.tsx
  • web/src/pages/admin-downloads/PreparationTab.tsx
  • web/src/pages/admin-users/detail/UserDetailHeader.tsx
  • web/src/pages/admin-users/detail/profiles/ProfilesTab.tsx
  • web/src/pages/settings/ProfilesSettings.tsx
  • web/src/pages/watchtogether/room/RoomRail.tsx
  • web/src/pages/watchtogether/room/picker/MovieDetailPanel.tsx
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@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-21T05:06:02.680680Z 1180339 PR opened
🔒 Security Review ✅ Completed 2026-11-21T05:08:26.399879Z 1180339 PR opened
ℹ️ 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-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 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
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.

1 participant