Skip to content

fix(web): keep the start of more long names cut short in right-to-left languages - #5016

Merged
Quick104 merged 3 commits into
mainfrom
fix/rtl-truncated-entered-names-more
Nov 21, 2026
Merged

Quick104 merged 3 commits into
mainfrom
fix/rtl-truncated-entered-names-more

Conversation

@Quick104

@Quick104 Quick104 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

Other clients: N/A (web layout only; Apple, Android and Roku lay out their own text)

In Arabic, a long Latin name cut short with "…" showed its end instead of its start: the "…" sat where the name begins. An Arabic name on an English page did the same. This happened to collection titles (the Collections page cards and the admin Collections list), device names (admin Devices, and the Devices card on an admin user's Activity tab), profile names on an admin user's Overview, and the storage-location names in the Downloads History and Prepared files filters. The built-in Default Group's description "Applied automatically to newly created users." also showed as ".created users" on an Arabic page.

These are the sites a review of a sibling change left for a separate pull request. That change applies the same rule to libraries, policy documents, transcode nodes, access group names and others.

Approach

Each site now follows the "Right to left" rules in web/src/i18n/README.md. A name that can be in either script takes dir="auto", so it reads in its own direction and keeps its start when cut. Collection titles can come from metadata, so the two block-level ones also take .bidi-text. The access group description takes dir="auto" and align-with-page, so the sentence keeps its period at the end and its lines stay on the page's start side.

The shared title components take a direction only when asked. The admin collection list's ListRow (components/calm) also shows home-row titles, and the admin user detail ListRow also shows media titles. Either can be translated text, which shouldn't switch direction. So both components get an optional titleDir="auto", and only the collection, device and profile rows pass it.

The location filters needed more than dir. The selected name in the fixed-width trigger was clipped instead of cut with "…", and an over-wide menu item could push the menu off the screen. They follow the pattern the sibling change used for overlay images: each level down to the name can shrink, and the menu is capped at the screen width. Only the trigger cuts the name with "…". The open menu still wraps it, mid-word when it has no spaces, so two long names that start the same stay distinguishable.

Validation

  • Live on a dev sandbox, built from main for the before state and from this branch for the after state, in Chromium, Firefox and WebKit, in Arabic and English, at 393 and 1440 px. The data was long Latin and Arabic collection titles, profile names, device names and storage-location names. For each cut name, a script checked whether its first character was visible. On main, Chromium and Firefox lost the start at every site. With this change, none of the 130 measured captures did. WebKit was judged from its screenshots. The access group description was checked from screenshots: on main the period is at the start of the line, and with this change it is at the end.
  • Short names still sit on the page's start side. A device name that wraps on a phone lines up with the page in Firefox.
  • Web typecheck, ESLint and Prettier on the changed files pass. The admin collections, access groups and admin user detail tests pass. On this heavily loaded host some of them needed a longer timeout than the 5 s default.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/rtl-truncated-entered-names-more/

Risks

None identified. Rendering only: no API, stored data or translation keys change.

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

Ran as a follow-up run with one reviewer per round.

Visual review: 1 round, captures from d677a57

Member Round 1
Sol (gpt-6.2-sol, high) better, 8/10

Fixed: S2. The open location menu cut long names to one line; it now wraps them again, and only the trigger cuts the name. Re-captured on the final head.
Answered: S1, the title drawn on a collection card with no poster, still loses its start. It sits on the poster artwork, where the README keeps direction physical, and it's outside this change. It's tracked with the other remaining sites in a follow-up issue. S3: page text and counts differ between the before and after captures because the after build is a newer sandbox state. This change doesn't touch them.

Background review: 1 round, last reviewed c77d902. T3 Code's delegation was unavailable, so Sol ran through the codex CLI read-only and its finding was posted on its behalf.

Member Round 1
Sol (gpt-6.2-sol, high) 8/10, 1 finding

Fixed: S1. A location name with no spaces could still be clipped in the open menu. Both filters now let it wrap mid-word (20e668a), checked live in Chromium, Firefox and WebKit.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code; T3 Code delegate_task (Codex) for the visual and background reviews
  • Model(s): claude-opus-5-5 (implementation, code review); claude-sonnet-5-5 (code-review cleanup finder and validation check); gpt-6.2-sol (visual and background review)
  • Involvement: Fully AI-generated; a maintainer has not yet verified it
  • Adversarial review: a medium code review (three finders and a validation check) found no defects. No plan council ran, because each change follows a rule the README already sets. See Council review.

🤖 Generated with Claude Code

Quick104 and others added 2 commits November 21, 2026 04:20
…t languages

Collection titles, device and profile names, storage-location names in the
downloads filters, and access group descriptions now take their own text
direction, so a name in the other script keeps its beginning when it is cut
and a description keeps its final period at the end.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Only the filter's trigger cuts a long name with an ellipsis; the menu wraps
it, as before, so similar names stay distinguishable.

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 6 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: 81725b76-9064-4fce-b7f2-6940c9d6765e
Commits

Reviewing files that changed from the base of the PR and between ad89453 and 20e668a.

Files selected for processing: 10

  • web/src/components/calm/ListRow.tsx
  • web/src/components/collections/CollectionPosterCard.tsx
  • web/src/components/collections/admin/CollectionListItem.tsx
  • web/src/pages/AdminAccessGroups.tsx
  • web/src/pages/AdminDevices.tsx
  • web/src/pages/admin-downloads/HistoryTab.tsx
  • web/src/pages/admin-downloads/PreparedFilesTab.tsx
  • web/src/pages/admin-users/detail/activity/DevicesCard.tsx
  • web/src/pages/admin-users/detail/overview/ProfilesCard.tsx
  • web/src/pages/admin-users/detail/ui.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-21T10:37:56.369761Z c77d902 PR opened
🔒 Security Review ✅ Completed 2026-11-21T10:50:04.454775Z 20e668a 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
{l.name}
<SelectItem key={l.key} value={l.key} className="*:last:min-w-0">
{/* Cut with "…" in the trigger; the open menu wraps it. */}
<span dir="auto" className="in-data-[slot=select-trigger]:truncate">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Kody Rules medium

Automatic direction can clip the start of numeric-prefixed location names

A long numeric prefix before RTL text can cause the logical start of a location name to be clipped. Resolve direction using Unicode bidi behavior instead of relying solely on dir="auto", and test numeric prefixes and mixed-direction names at narrow widths in both interface directions.

Also found in:

  • web/src/components/calm/ListRow.tsx:162-162
  • web/src/pages/admin-downloads/HistoryTab.tsx:120-120

Kody rule violation: Preserve the logical start of bidirectional truncated text

Prompt for LLM
File web/src/pages/admin-downloads/PreparedFilesTab.tsx, line 150:

Automatic direction can clip the start of numeric-prefixed location names

Resolve the location name’s direction using Unicode bidi behavior that accounts for strong RTL digits and weak numeric prefixes, rather than relying solely on `dir="auto"`. A long numeric prefix followed by RTL text can otherwise be clipped at its logical start. Cover numeric prefixes and mixed-direction names at narrow widths in both interface directions.

**Also found in:**
- `web/src/components/calm/ListRow.tsx:162-162`
- `web/src/pages/admin-downloads/HistoryTab.tsx:120-120`

Kody rule violation: [Preserve the logical start of bidirectional truncated text](https://kodus.siloserver.org/settings/code-review/1247142351/kody-rules/543088f5-5d79-48a9-804f-7c9ce6776d3a?teamId=ba9922fc-c0ea-4cf8-87bb-9d4f42ffc73e)

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

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

One finding, below. Score for the change as it stands: 8/10.

Run by Codex (gpt-6.2-sol) through the codex CLI, read-only; posted by the author's agent on its behalf.

@Quick104
Quick104 merged commit a7f0671 into main Nov 21, 2026
22 checks passed
@Quick104
Quick104 deleted the fix/rtl-truncated-entered-names-more branch November 21, 2026 10:54
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