Repository navigation
fix(web): keep the start of a name inside a joined detail line in right-to-left languages - #5041
Conversation
…-to-left languages The home row editor's "by" owner, the MDBList "by" user and the invitations "invited by" inviter now get their own dir="auto" element inside a " · "-joined line, through a shared MetaLine. The name keeps its start and is cut first; the other parts keep the page's order and are cut with their own "…" after it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
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 6 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 (gpt-6.2-sol, reviewed 388cd18)
S3 [P3] Apply the owner-name fix to shared collection posters. CollectionPosterCard.tsx:52–53 still passes the owner as a string to the same byOwner translation inside a single truncating block. The Collections page, Library Collections, and home collection rows all use this card for shared collections. At 100 px in an Arabic-direction WebKit fixture, the byline for ALEXANDRIA CINEMA FINDER ZYXW showed the end of the name next to the ellipsis and hid the start. Render that byline with the same direction-aware owner phrase.
AI disclosure: gpt-6.2-sol via Codex.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and notes readable A name that leads a MetaLine (the MDBList author) now keeps its width and the details after it are cut first, as on main; a name that ends the line is still cut first. Names of three characters or fewer are kept whole, as in the impersonation banner, so "김님 작성" has no gap. Screen readers read an inline copy of the line, so words joined to a name stay joined. The invitation note gets its own dir="auto" element, so a cut note keeps its start, and an MDBList result with no author name drops the "by" phrase. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Quick104
left a comment
There was a problem hiding this comment.
Maintainer review (claude-opus-5-5, reviewed 4d4f8f2)
I merged main into the branch first (4d4f8f2). The branch was cut before #4991 and #5026 landed, and both change the code this PR builds on: the impersonation banner's name sizing, the collection poster card's owner line, and the i18n README's rules for a name or note inside a cut line.
Findings, with the earlier background review's S1 and S2 answered in their own threads:
- S1 [P3] confirmed. A name of one or two characters leaves a gap before the words after it. Chromium and Firefox give a one-letter Korean or Chinese owner a 26 px box for 13 px of text, so "김님 작성" shows as "김 님 작성". Main's banner now keeps names of three characters or fewer whole (
min-w-max), so the PR body's claim thatLineNamematches the banner is out of date. Screen readers hear the gap too: in both engines the chooser's description reads "김 님 작성" and "由 王 创建", because each flex item counts as a block when the description is computed. I'm fixing both in a commit on this branch, so there's no need to change it yourself. - S2 [P2] confirmed. In MDBList results the author is cut to "by Al…" in English at 196 px, while main showed "by AlexandriaCinephile · M…". English never had the bidi bug, so this is a plain regression for English readers. Main's i18n README already covers this case: when the text after a name is cut first, the name keeps its width. I'm fixing this on the branch too.
- S3 resolved by the merge. Main's poster card already puts the owner in its own
dir="auto"element (#4991). - Two new findings are inline below. I'm fixing both.
One item is left for the maintainers and isn't changed here. With a long translated phrase ("Készítette: ", "Invitation envoyée par ") on a very narrow line, the phrase's words, the separator and the name's two-letter floor can be wider than the line. The plain details before them then collapse to nothing, leaving a bare " · " at the line's start, and the words clip without a "…". The PR's Risks section already names the clipping. The orphan separator is the new part.
AI disclosure: claude-opus-5-5 via Claude Code in T3 Code.
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:
|
Every part of a MetaLine now keeps a letter and "…" (or all of a part of three characters or fewer) when the line is cut, so the details before a long translated phrase no longer collapse and leave a bare " · ", and a one-letter invitation note no longer vanishes between its quotes. The note is a LineName, and the part at the end of the line is the one cut first, one rule for names and plain text alike. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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:
|
MetaLine's inline screen-reader copy is absolutely placed. In a scrolling list under a positioned page, such as the MDBList results on the collection editor, each copy sat at its row's place outside the scroll box and stretched the page (Chromium). The line now wraps both copies in a relative box, and the copy is left out of a selection. The Add row chooser describes its item with the line itself when it has no separate screen-reader text, instead of a second copy, and the MDBList author is trimmed once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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:
|
Maintainer review summaryReviewed head: bb4e836. Since the last summary (f815f1e), I merged main twice (b8759b9 and d6bb6b7) and pushed one review commit (bb4e836). Fit: 9/10 · Readiness: 9/10 — ready CI passed on bb4e836 (19 checks). Fit. Right-to-left pages need names and notes that keep their start when cut. This change stays in the web layer, adds no setting or API, and costs only a few spans per row. Readiness. The two conditions from the last round are closed:
No test in this PR fails on the base, because the behavior is layout, which jsdom doesn't lay out. The browser measurement above is the proof. What this round changed
Left for the maintainers
Checks
Council
Rounds 1 and 2 ran at xhigh (Sol, Gemini) and high (Opus); round 3 ran every member at medium. Round 3:
Evidence for this round, with main and this branch side by side in WebKit, Chromium and Firefox: https://evidence.siloserver.org/r/silo-server/pr-5041-review-r3/ The earlier round's captures: https://evidence.siloserver.org/r/silo-server/pr-5041-review/ 🤖 Claude Code in T3 Code (claude-opus-5-5); council members gpt-6.2-sol (Codex), claude-opus-5-5 and gemini-4-neon (Antigravity). |
…joined-meta-lines # Conflicts: # web/src/pages/admin-settings/InvitationList.tsx
…joined-meta-lines # Conflicts: # web/src/components/homeRows/addRow/collectionChooser.tsx
Quick104
left a comment
There was a problem hiding this comment.
Maintainer review of d6bb6b7, after merging main twice. #4984 and #4861 changed the same lines; both merges keep main's changes. I found three small cleanups and no correctness defects. I'm fixing all three in a commit on this branch, so there's no need to change anything yourself. The summary comment covers the rest of this round.
Nit: the i18n README doesn't mention MetaLine. web/src/i18n/README.md is where these rules live, and it names neither MetaLine nor LineName. Its closest rule, for a <summary> · <email> line, points to the wrapping AccountRow pattern. So the next detail line that is joined and cut short will likely be written as one string again, with the same bug. Repair: add a bullet that sends a one-line, cut detail line to MetaLine, and point LineName's doc to LineTitle for titles. I'm adding both on this branch.
🤖 Claude Code in T3 Code (claude-opus-5-5)
…once The short-name floor in MetaLine copied the impersonation banner's line for line; both now use nameFloor from lib/direction. The invitations card and table row built the same note and "Invited by" phrases in two lists; one builder now serves both, wrapping the user text for the row. The i18n README points a one-line, cut detail line to MetaLine, and LineName's doc points titles to LineTitle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 #1197 C1
Other clients: N/A (web layout fix; the Apple, Android and Roku apps lay out these lines themselves)
In Arabic, a long Latin name lost its first letters to the "…" when it sat in a detail line that joins several parts with " · ". This happened on three screens. In the Add row dialog, the "by" owner under a collection, both in the list to add from and in the chosen list. In the Synced list step, the "by" user under an MDBList search result. In the admin invitations table, the "Invited by" name and the link invitation's note before it. On an English page, a long Arabic name lost its start the same way. Each name and note now keeps its start and is cut at its own end, and the rest of the line keeps the page's reading order.
Approach
Each of these lines was one joined string in one
truncatebox, so the name had no element of its own. A newMetaLinecomponent (web/src/components/MetaLine.tsx) lays the line out as a flex row. Plain parts are joined with " · " into one item that is cut with its own "…". A translated phrase that names someone passes the name tot()as aLineNameelement withdir="auto", following the "name inside a longer line" rule from #4991. The phrase's words stay whole and keep the page's direction, so Korean's "{owner}님 작성" keeps its word order. The line is cut from its end, as a singletruncateline is: the part at the end takes only the room the others leave, so it is cut first. Every part keeps a letter and "…", and a part of three characters or fewer is kept whole, as #4991's impersonation banner keeps a short name. So in the Add row dialog and the invitations table the name at the end is cut first, and in MDBList results the details after the name are. The invitation note is aLineNametoo, following the i18n README's rule for a note in a cut line (#5026). Screen readers read an inline copy of the line, because a flex row makes them put spaces around each part ("김 님 작성"); the copy sits in the line's own box and is left out of a selection.The invitations card wraps its details instead of cutting them, so it keeps the joined string. Only the table row uses
MetaLine.#4991's other pattern doesn't fit these lines: an
inline-blockname inside the existingtruncate. Here "by " or other parts come before the name, so a long name's inline box overflows the line and the line's "…" hides the whole name.Validation
mainand checked this branch with a dev-only page. The page mounts the realCollectionsRowEditor(in the dialog form's column, at 360 and 520 px),MDBListBrowserandInvitationListwith long Latin, long Arabic and short names. A script ran it in Chromium, Firefox and WebKit, in Arabic, English and thear-XBpseudo-locale:verify-local-paths,verify-bidiandverify-case-collisionspass.format:checkflags onlysrc/lib/settingsConformance.json, which this PR doesn't touch and which fails the same way onmain.MetaLine(fixed), the PR's originalMetaLineandmain's single string, mounted through the web app's own Vite and Tailwind build and measured in Chromium and Firefox. The MDBList author stays whole in English at 196 px ("by AlexandriaCinephile · M…"; the first version showed "by Al…"). A one-letter Korean or Chinese owner leaves no gap. A Latin note on an Arabic page keeps its start. The chooser's description reads "김님 작성". A scrolling list doesn't stretch the page. Round 3 below adds WebKit. Related web suites (235 tests), typecheck and ESLint pass.MetaLinewas served by the web app's own Vite and Tailwind build and tested on 48 lines per engine (196 to 360 px; long Latin, long Arabic, one-letter and digits-only names; name first and last; Arabic and English pages). Main's single joined string loses the name's start in 16 of them in WebKit 26.6 and 9 in Chromium 153 and Firefox 155. This branch loses it in none, and no part collapses. Typecheck, ESLint, a production build and the related web suites (234 tests) pass.Evidence
Before and after pairs of the Add row dialog's collection list at 520 and 360 px, the MDBList results and the invitations table, in Arabic, English and
ar-XB, across the three engines. The numbers above cover every engine and locale.Evidence: https://evidence.siloserver.org/r/silo-server/rtl-names-in-joined-meta-lines/
The maintainer review changed the cut order, the short-name floor and the screen-reader copy after these captures. Its captures of the final head, with the real components in Chromium and Firefox, are linked from the review summary comment. Round 3's WebKit, Chromium and Firefox captures of main and this branch: https://evidence.siloserver.org/r/silo-server/pr-5041-review-r3/
Risks
main, "Movies · Manual · 24 titles · b…" kept the earlier details whole and dropped the owner entirely. Now the owner keeps a letter and "…", and "24 titles" gives up its room first.mainthese details weren't cut at that width, because the owner was dropped instead.Follow-ups:
ActivityLineinRoomRail.tsx) passes the member's name tot()as an element withoutdir="auto", inside atruncateline. It is a sentence that can also hold a media title, which can run the other way too, soMetaLinedoesn't fit it. It needs its own fix.truncatestill mix a name into page-direction text: the dashboard's API clients and top profiles widgets, the plugin tile's "by" publisher, the request queue's "by" route, and the server activity worker line.MetaLinefits most of them.MetaLinehas no unit test: the behavior is layout, which jsdom doesn't lay out.PickRow) is cut withoutdir="auto", so an Arabic list name on an English page loses its start. The same code is onmain; fix(web): keep a list name's start when it runs the other way in the synced-list picker #5164 fixes it.Checklist
Council review
Plan check (before implementing): Opus (claude-opus-5-5, medium). It dropped a separate screen-reader string for the chooser and confirmed the name sizing against how flexbox resolves sizes.
Background review: Sol (gpt-6.2-sol, high) on 388cd18 found S1 (short names leave a gap, and screen readers hear spaces), S2 (the MDBList author was cut before the details) and S3 (the poster card's owner line). The maintainer review fixed S1 and S2. S3 was already fixed on
mainby #4991.Visual review of the PR as opened: one round on the author's captures.
Its findings were the WebKit mid-number cut (listed under Risks), the gap beside a cut name's "…" (the browser stops at the last whole letter), and the box after short names (fixed in the maintainer review).
Maintainer review (/silo review mode): main merged in, then three council rounds. Rounds 1 and 2 ran at xhigh (Sol, Gemini) and high (Opus); round 3 ran every member at medium.
Rounds: 3, last reviewed b8759b9
Fixed:
Round 1, in 8facbaf: short names keep their width; screen readers read an inline copy of the line; the line is cut from its end, so the MDBList author stays; the invitation note reads in its own direction; an empty MDBList author drops the "by" phrase.
Round 2, in 1653cea and f815f1e: every part keeps a letter and "…", so a one-letter note no longer vanishes between its quotes and the details before the inviter, which still share their room, can no longer both shrink to a bare " · "; one rule picks the part that is cut first; the screen-reader copy sits in the line's own box, because in Chromium a list's copies stretched the page; the copy is left out of a selection; the chooser no longer holds four copies of its line.
Round 3, in bb4e836: the short-name floor is shared with the impersonation banner through
nameFloor; the invitations card and table row build their details once; the i18n README points a one-line, cut detail line toMetaLine.Answered:
main.MetaLine, are listed under Follow-ups.dir="auto"with no strong character resolves left to right in all three engines. FoldingCollectionOptionBody's two branches into one was left out, since each is short and easy to read. Whether the single collection picker's screen-reader copy stretches a scrolling list, asMetaLine's did before f815f1e, is unconfirmed; that markup is onmaintoo.AI Disclosure
🤖 Generated with Claude Code
Note
Add
MetaLineandLineNameto keep name starts visible in RTL metadata linesMetaLinecomponent that renders middle-dot-separated metadata as independently truncatable parts, plus aLineNamecomponent for user text with automatic direction, its own truncation, and a name-width floornameFloorhelper into direction.ts and reuses it inImpersonationBanner"- Replaces joined metadata strings withMetaLinein MDBList browsing, the collections row editor/chooser, and invitation rows;PickRowandCollectionOptionBodynow acceptReactNodemetadataMetaLineandLineNameMacroscope summarized bb4e836.