Skip to content

use XDS component prefix - #9

Merged
cixzhang merged 7 commits into
mainfrom
xds-prefix
Jan 14, 2026
Merged

cixzhang merged 7 commits into
mainfrom
xds-prefix

Conversation

@cixzhang

Copy link
Copy Markdown
Contributor

Per poll in the group, we want to keep the XDS prefix on components (XDSButton vs. Button). This updates the demo Button, adds component naming guidance, and updating other docs accordingly.

Checked storybook:

Screenshot 2026-01-14 at 11 05 59 AM

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jan 14, 2026
@cixzhang
cixzhang merged commit 8ad47d0 into main Jan 14, 2026
2 checks passed
@cixzhang
cixzhang deleted the xds-prefix branch January 15, 2026 20:09
cixzhang added a commit that referenced this pull request Apr 26, 2026
* update component prefix

* update component prefix

* update filenames too

* more updates
josephfarina added a commit that referenced this pull request Jun 1, 2026
Adds a subprocess e2e that places a hostile `gh` shim first on PATH
(records invocations + exits 87) and runs the real CLI binary in
non-interactive dry-run, --json, XDS_GAP_REPORT=off, and
--list-categories modes. Asserts exit 0 and that the sentinel is never
written, proving the dry-run-by-default safety gate (#2370/#2371) holds
at the process boundary, not just in shouldActuallyFile unit logic.

Closes checklist item #9 (prove no gh call via PATH shim) for gap-report.
potatowagon added a commit to potatowagon/astryx that referenced this pull request Oct 29, 2026
Review feedback from astracat-bot on meta#7723, confirmed by measurement.

Lexical's getTextDirection builds its classes as character ranges over
UTF-16 code units. The left-to-right class spans \u2C00-\uFB1C, which
contains the whole surrogate range \uD800-\uDFFF, so the first code unit
of any character outside the Basic Multilingual Plane reads as strongly
left-to-right. The same class spans \u0800-\u1FFF, which takes Samaritan
and Mandaic with it. Measured:

    ltr   emoji + Hebrew        '🎉 מזל טוב'
    ltr   emoji + Arabic        '👍 مرحبا'
    ltr   Adlam                 '𞤀𞤣𞤤𞤢𞤥'
    ltr   Samaritan             'ࠀࠁࠂ'

A browser's own dir="auto" reads all four right-to-left, because UAX meta#9 P2
skips an emoji as a neutral and classifies a character by what it is rather
than by how UTF-16 happens to encode it. Before this PR those paragraphs
inherited the document's direction and so were right in a Hebrew document
by luck; writing Lexical's answer out made them explicitly wrong.

firstStrongDirection iterates the string, which yields whole code points,
and classifies each against Unicode script properties. 19 cases checked,
including the four above, digits and punctuation before Hebrew, emoji-only
and empty text.

Two tests added, both failing on the commit before this one.
potatowagon added a commit to potatowagon/astryx that referenced this pull request Nov 3, 2026
Review feedback from astracat-bot on meta#7723, confirmed by measurement.

Lexical's getTextDirection builds its classes as character ranges over
UTF-16 code units. The left-to-right class spans \u2C00-\uFB1C, which
contains the whole surrogate range \uD800-\uDFFF, so the first code unit
of any character outside the Basic Multilingual Plane reads as strongly
left-to-right. The same class spans \u0800-\u1FFF, which takes Samaritan
and Mandaic with it. Measured:

    ltr   emoji + Hebrew        '🎉 מזל טוב'
    ltr   emoji + Arabic        '👍 مرحبا'
    ltr   Adlam                 '𞤀𞤣𞤤𞤢𞤥'
    ltr   Samaritan             'ࠀࠁࠂ'

A browser's own dir="auto" reads all four right-to-left, because UAX meta#9 P2
skips an emoji as a neutral and classifies a character by what it is rather
than by how UTF-16 happens to encode it. Before this PR those paragraphs
inherited the document's direction and so were right in a Hebrew document
by luck; writing Lexical's answer out made them explicitly wrong.

firstStrongDirection iterates the string, which yields whole code points,
and classifies each against Unicode script properties. 19 cases checked,
including the four above, digits and punctuation before Hebrew, emoji-only
and empty text.

Two tests added, both failing on the commit before this one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant