Repository navigation
chore(core): the internal touch entry exposes group press tracking to Lab - #11283
Conversation
… Lab Lab's Rating presses its stars as one group, as ButtonGroup and ToggleButtonGroup do. Core's private internal/touch entry re-exports useGroupPressTracking, GROUP_PRESS_POINTERS, and pressGroupItemProps for it, with an identity test, and react-component-runtime INV14 names them. The catalog gains Rating's two messages. No public entry changes. Co-authored-by: Rajatendu1 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The internal/touch re-exports, their identity test, the two header comments, and the two catalog messages move to their own Core pull request, meta#11283 (its changeset covers the catalog), so this one changes only Lab and the CLI's discover list. It merges after meta#11283. Co-authored-by: Rajatendu1 <[email protected]>
PR Analysis Report🔎 Preview ·
|
| Component | Size | LoC |
|---|---|---|
| richtext/RichTextEditorToolbar | 299.6 kB (+43 B) · 454 B CSS (0) | — |
| lab/ChatVirtualizer | 57.3 kB (+41 B) · 223 B CSS (0) | — |
| lab/EmojiPicker | 92.4 kB (+41 B) · 751 B CSS (0) | — |
116 more components
| Component | Size | LoC |
|---|---|---|
| lab/TabBarMoreList | 102.0 kB (+41 B) · 1.8 kB CSS (0) | — |
| richtext/RichTextEditor | 305.5 kB (+41 B) · 2.6 kB CSS (0) | — |
| lab/NavigationScreen | 85.0 kB (+40 B) · 1.5 kB CSS (0) | — |
| lab/NavigationStack | 85.0 kB (+40 B) · 1.5 kB CSS (0) | — |
| lab/PageControl | 78.2 kB (+40 B) · 709 B CSS (0) | — |
| PowerSearch | 306.8 kB (+39 B) · 25.5 kB CSS (0) | — |
| lab/CommentComposer | 173.6 kB (+39 B) · 1.9 kB CSS (0) | — |
| lab/DiffViewer | 93.2 kB (+39 B) · 2.1 kB CSS (0) | — |
| lab/ListInput | 93.6 kB (+39 B) · 922 B CSS (0) | — |
| lab/TabBar | 83.6 kB (+39 B) · 1.8 kB CSS (0) | — |
| lab/TransferList | 112.2 kB (+39 B) · 1.2 kB CSS (0) | — |
| richtext/RichTextView | 282.1 kB (+39 B) · 2.3 kB CSS (0) | — |
| lab/Comments | 369.7 kB (+38 B) · 2.5 kB CSS (0) | — |
| lab/TransferListSelector | 121.1 kB (+38 B) · 1.4 kB CSS (0) | — |
| lab/DialogHeroHeader | 88.6 kB (+36 B) · 372 B CSS (0) | — |
| lab/CommentThread | 362.7 kB (+35 B) · 2.4 kB CSS (0) | — |
| lab/TourStep | 93.2 kB (+3 B) · 691 B CSS (0) | — |
| AlertDialog | 128.6 kB (0) · 15.4 kB CSS (0) | — |
| AppShell | 97.6 kB (0) · 14.3 kB CSS (0) | — |
| AvatarGroupOverflow | 51.9 kB (0) · 5.7 kB CSS (0) | — |
| Banner | 67.0 kB (0) · 11.3 kB CSS (0) | — |
| BaseTypeahead | 78.3 kB (0) · 11.7 kB CSS (0) | — |
| BreadcrumbItem | 96.7 kB (0) · 13.3 kB CSS (0) | — |
| Button | 65.0 kB (0) · 10.8 kB CSS (0) | — |
| ButtonGroup | 44.1 kB (0) · 3.7 kB CSS (0) | — |
| Calendar | 76.1 kB (0) · 11.4 kB CSS (0) | — |
| Carousel | 74.7 kB (0) · 11.7 kB CSS (0) | — |
| ChatComposer | 84.6 kB (0) · 12.9 kB CSS (0) | — |
| ChatComposerInput | 82.2 kB (0) · 12.1 kB CSS (0) | — |
| ChatComposerTokenElement | 82.2 kB (0) · 12.1 kB CSS (0) | — |
| ChatDictationButton | 65.5 kB (0) · 10.8 kB CSS (0) | — |
| ChatLayout | 88.3 kB (0) · 11.3 kB CSS (0) | — |
| ChatLayoutScrollButton | 65.6 kB (0) · 11.0 kB CSS (0) | — |
| ChatSendButton | 65.4 kB (0) · 10.8 kB CSS (0) | — |
| CheckboxInput | 69.0 kB (0) · 10.1 kB CSS (0) | — |
| CheckboxList | 73.1 kB (0) · 7.8 kB CSS (0) | — |
| CheckboxListItem | 79.9 kB (0) · 12.0 kB CSS (0) | — |
| ClickableCard | 18.5 kB (0) · 7.3 kB CSS (0) | — |
| CodeBlock | 80.1 kB (0) · 12.1 kB CSS (0) | — |
| Collapsible | 29.0 kB (0) · 4.5 kB CSS (0) | — |
| CommandPalette | 77.8 kB (0) · 12.7 kB CSS (0) | — |
| CommandPaletteItem | 13.4 kB (0) · 3.6 kB CSS (0) | — |
| ComplexSelector | 77.6 kB (0) · 12.6 kB CSS (0) | — |
| ContextMenu | 101.8 kB (0) · 18.7 kB CSS (0) | — |
| ContextMenuItem | 35.4 kB (0) · 7.1 kB CSS (0) | — |
| DateInput | 200.0 kB (0) · 17.9 kB CSS (0) | — |
| DateRangeInput | 99.3 kB (0) · 13.3 kB CSS (0) | — |
| DateTimeInput | 223.5 kB (0) · 19.7 kB CSS (0) | — |
| DialogHeader | 67.8 kB (0) · 12.3 kB CSS (0) | — |
| DrawerHeader | 68.0 kB (0) · 13.7 kB CSS (0) | — |
| DropdownMenu | 107.2 kB (0) · 18.8 kB CSS (0) | — |
| DropdownMenuCheckboxItem | 28.6 kB (0) · 7.3 kB CSS (0) | — |
| DropdownMenuItem | 27.8 kB (0) · 6.9 kB CSS (0) | — |
| DropdownMenuRadioItem | 28.6 kB (0) · 7.3 kB CSS (0) | — |
| DropdownMenuSubMenu | 78.2 kB (0) · 10.4 kB CSS (0) | — |
| Field | 59.4 kB (0) · 7.3 kB CSS (0) | — |
| FileInput | 74.1 kB (0) · 11.7 kB CSS (0) | — |
| IconButton | 65.0 kB (0) · 10.8 kB CSS (0) | — |
| InputGroup | 61.0 kB (0) · 7.9 kB CSS (0) | — |
| Item | 20.5 kB (0) · 6.2 kB CSS (0) | — |
| Lightbox | 145.9 kB (0) · 11.9 kB CSS (0) | — |
| Link | 56.3 kB (0) · 7.1 kB CSS (0) | — |
| ListItem | 79.0 kB (0) · 12.0 kB CSS (0) | — |
| Markdown | 202.4 kB (0) · 21.9 kB CSS (0) | — |
| MobileNav | 76.2 kB (0) · 11.4 kB CSS (0) | — |
| MobileNavToggle | 65.3 kB (0) · 10.8 kB CSS (0) | — |
| MoreMenu | 107.5 kB (0) · 18.8 kB CSS (0) | — |
| MultiSelector | 101.4 kB (0) · 17.7 kB CSS (0) | — |
| NumberInput | 77.5 kB (0) · 12.2 kB CSS (0) | — |
| Outline | 25.3 kB (0) · 4.1 kB CSS (0) | — |
| Pagination | 123.7 kB (0) · 19.0 kB CSS (0) | — |
| Popover | 98.6 kB (0) · 15.1 kB CSS (0) | — |
| RadioList | 60.8 kB (0) · 7.3 kB CSS (0) | — |
| RadioListItem | 76.1 kB (0) · 10.7 kB CSS (0) | — |
| SegmentedControlItem | 18.8 kB (0) · 4.3 kB CSS (0) | — |
| SelectableCard | 18.7 kB (0) · 7.5 kB CSS (0) | — |
| Selector | 112.8 kB (0) · 18.6 kB CSS (0) | — |
| SelectorOption | 24.0 kB (0) · 6.7 kB CSS (0) | — |
| SideNav | 121.2 kB (0) · 12.2 kB CSS (0) | — |
| SideNavCollapseButton | 65.8 kB (0) · 10.8 kB CSS (0) | — |
| SideNavHeading | 82.5 kB (0) · 12.1 kB CSS (0) | — |
| SideNavItem | 76.9 kB (0) · 11.9 kB CSS (0) | — |
| Slider | 114.5 kB (0) · 8.9 kB CSS (0) | — |
| Step | 31.6 kB (0) · 5.6 kB CSS (0) | — |
| Stepper | 66.7 kB (0) · 10.9 kB CSS (0) | — |
| Switch | 108.9 kB (0) · 10.0 kB CSS (0) | — |
| Tab | 14.9 kB (0) · 4.2 kB CSS (0) | — |
| Table | 119.9 kB (0) · 19.6 kB CSS (0) | — |
| TableCell | 103.0 kB (0) · 19.1 kB CSS (0) | — |
| TableHeaderCell | 102.7 kB (0) · 18.9 kB CSS (0) | — |
| TableSelectionToolbar | 75.2 kB (0) · 14.0 kB CSS (0) | — |
| TabMenu | 78.8 kB (0) · 11.9 kB CSS (0) | — |
| TextArea | 66.8 kB (0) · 9.4 kB CSS (0) | — |
| TextInput | 72.7 kB (0) · 12.0 kB CSS (0) | — |
| Thumbnail | 69.3 kB (0) · 12.3 kB CSS (0) | — |
| TimeInput | 174.7 kB (0) · 16.9 kB CSS (0) | — |
| Timestamp | 26.9 kB (0) · 11.0 kB CSS (0) | — |
| Toast | 103.6 kB (0) · 11.1 kB CSS (0) | — |
| ToggleButton | 92.0 kB (0) · 10.9 kB CSS (0) | — |
| ToggleButtonGroup | 41.3 kB (0) · 3.7 kB CSS (0) | — |
| Token | 29.5 kB (0) · 4.9 kB CSS (0) | — |
| Tokenizer | 104.3 kB (0) · 20.3 kB CSS (0) | — |
| TopNav | 78.0 kB (0) · 11.7 kB CSS (0) | — |
| TopNavHeading | 82.1 kB (0) · 12.0 kB CSS (0) | — |
| TopNavItem | 14.5 kB (0) · 4.0 kB CSS (0) | — |
| TopNavMegaMenu | 76.1 kB (0) · 12.6 kB CSS (0) | — |
| TopNavMegaMenuItem | 14.3 kB (0) · 4.2 kB CSS (0) | — |
| TopNavMenu | 81.5 kB (0) · 12.0 kB CSS (0) | — |
| TreeList | 46.2 kB (0) · 5.9 kB CSS (0) | — |
| Typeahead | 87.8 kB (0) · 13.5 kB CSS (0) | — |
| lab/ChatEmojiPicker | 113.6 kB (0) · 773 B CSS (0) | — |
| lab/ChatReactionBar | 114.7 kB (0) · 1.1 kB CSS (0) | — |
| lab/CommentPin | 60.4 kB (0) · 1.2 kB CSS (0) | — |
| lab/Schedule | 114.6 kB (0) · 3.9 kB CSS (0) | — |
| lab/SelectableCardGroup | 68.7 kB (0) · 162 B CSS (0) | — |
| lab/TabBarItem | 3.9 kB (0) · 1.8 kB CSS (0) | — |
Package size: @astryxdesign/core 7.61 MB packed (+667 B); no new dependencies.
Not run on this PR: add ci:run-visual for Visual, ci:run-rtl for RTL.
Generated by PR Enrichment workflow | View full report
|
/approve-spec 7ccdbc0 |
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Changes requested. The internal re-exports and the new INV13 text follow the current records; four small fixes are needed first.
@astryx.rating.starLabelinpackages/core/locales/en.jsonputs "stars" after a plain{max, number}, so a one-star Rating reads "1 of 1 stars" and no translation can make the noun agree with the count, because translations must keep the source's argument kinds; use{value, number} of {max, plural, one {# star} other {# stars}}and say in the description thatmaxpicks the plural.- This pull request changes
docs/architecture/react-component-runtime.md, so its description needs a## Writing rubric resultssection that reports R1 to R7 fromdocs/contributing/spec-writing.mdfor the added INV13 lines. - The description cites
architecture:react-component-runtimeINV14 twice, but the amended clause is INV13 and that record has no INV14, so change both citations to INV13. - Miss: the description says the split makes #11082 Lab-only, but #11082 also changes CLI, Storybook and internal registry files, so say instead that it changes no Core file.
Smaller notes:
- Miss: in the new INV13 text, "owns under INV23" should read
architecture:public-component-apiINV23, because this record has no INV23. - The new header comments name Rating and
RatingTracking.test.tsxbefore either exists here, and thetouch.tsSYNC note asks for the three names inLAB_ONLY_NAMESinscripts/touch-support-bundle.test.mjs.
One Lab NavigationStack interaction test failed on this head when its timing window opened too late; that test is outside this change, so re-run it.
Claims and files checked
- Changeset: the internal touch entry re-exports the group press tracking and the group-item mark: verified (
packages/core/src/internal/touch.ts:123-129). - Changeset: the catalog gains two Rating messages: verified (
packages/core/locales/en.json:2570-2577). - Changeset: apps import nothing new: verified (no public entry changes, and CI's API report lists no public rows).
- Description: the group tracking and the mark were not reachable from Lab before: verified (the base touch entry exports neither).
- Description: the touch entry is private, undocumented and limited by lint to Core and Lab: verified as a rule, but the clause is INV13, not INV14: false citation.
- Description: the record names the new exposures in one sentence each: verified (
react-component-runtime.md:339-346); clause number false. - Description: the identity test checks each name against its source: verified (
touch.test.ts:211-218). - Description: the header comments name the new caller and the entry: verified (
useGroupPressTracking.ts:9-11,pressGroupItem.stylex.ts:12). - Description: the split makes #11082 Lab-only: false (#11082 also changes CLI, Storybook and registry files).
- Description: the identity test fails without the re-exports and passes with them: consistent (10 cases before, 11 after; the new case needs the three exports; CI's unit tests pass on this head).
- Description: the knowledge and repository checks pass: verified (CI's repository guardrails pass on this head).
- Description: no component imports change, and nothing public, behavioural or visual changes: verified.
- Description: public text carries no internal context: verified.
.changeset/core-internal-touch-group-press.md: clear.docs/architecture/react-component-runtime.md: rubric results missing; unqualified INV23 (non-blocking).packages/core/locales/en.json: star label plural contract (blocking).packages/core/src/hooks/useGroupPressTracking.ts: header names a test that does not exist here (non-blocking).packages/core/src/internal/touch.test.ts: clear (the new case sits outside the describe block).packages/core/src/internal/touch.ts: clear (SYNC follow-through noted).packages/core/src/privateAttributes/pressGroupItem.stylex.ts: clear.
…ng callers The Rating star label pluralizes on max. Header comments no longer name Rating or its test before they exist, INV13 cites architecture:public-component-api INV23, and the touch-support bundle test lists the three new Lab-only names.
|
/approve-spec d8c9cbc |
There was a problem hiding this comment.
Approved pending CI: the CI run on this head is re-running after its one failure. The internal re-exports, the amended INV13 text and the two catalog messages follow the current records, and no change is needed.
The failed test-node (4/4) shard is not caused by this change: its door-conformance case for astryx experimental theme editor new brand --like neutral failed because a Node test rebuilt the Neutral theme mid-run, which #11355 fixed on main; if the re-run hits it again, updating the branch from main brings in that fix.
One optional note: the new identity test in packages/core/src/internal/touch.test.ts sits outside describe('internal/touch'); moving it inside keeps it reported with the other re-export cases.
Claims and files checked
- Changeset: the internal touch entry re-exports the group press tracking and the group-item mark for Lab's Rating: verified (
packages/core/src/internal/touch.ts:124-129). - Changeset: the catalog gains two Rating messages: verified (
packages/core/locales/en.json:2570-2577). - Changeset: apps import nothing new: verified (no public entry names the three exports;
scripts/touch-support-bundle.test.mjs:486-495checks Core's root entry and passes). - Description: Rating presses its stars as one group through these names: verified (#11082's Rating calls
useGroupPressTrackingand spreadspressGroupItemProps(GROUP_PRESS_POINTERS)from the internal touch entry). - Description: the tracking and the mark were not reachable from Lab before: verified (the base touch entry exports neither).
- Description: this pull request carries the Core part of #11082, which changes no Core file and merges after it: verified (#11082's file list has no Core path, and its description says it depends on this one).
- Description: the touch entry is private, undocumented, outside the compatibility promise and limited by lint to Core and Lab under INV13: verified (
docs/architecture/react-component-runtime.md:333-336). - Description: nothing public changes and every component behaves as before: verified (no component file changes; no public entry gains a name; the generated API delta for this head lists no rows).
- Description: the identity test checks each re-export against its source: verified (
packages/core/src/internal/touch.test.ts:211-218). - Description: INV13 names the two new exposures, one sentence each: verified (
docs/architecture/react-component-runtime.md:339-347). - Description: the two header comments name the new caller and the entry: verified (
useGroupPressTracking.ts:11,pressGroupItem.stylex.ts:12-13). - Description: the star label pluralizes on
max: verified (packages/core/locales/en.json:2571; the catalog contract check passes). - Description: the bundle test lists the three names as Lab-only, as the touch entry's sync note asks: verified (
scripts/touch-support-bundle.test.mjs:159-161,touch.ts:22-23). - Description: the Core part was written as part of #11082 and split out: verified (#11082's first commit carried these Core files; this branch's first commit credits its author as co-author).
- Description: the identity test fails without the re-exports (1 of 11) and passes with them (11 of 11): verified (CI runs the file's 11 tests green on this head; the base has 10 cases and none of the three names, so the new case fails there).
- Description: the knowledge and repository checks pass: verified (the repository guardrails pass on this head).
- Description: CI impact none: verified (no workflow, test-runner or build configuration file changes).
- Description: the writing-rubric results hold for the added INV13 lines: verified (no narration, research, change references, open questions or project status in them).
- Description: no public API, behaviour, visual or policy change, and no internal context in public text: verified.
.changeset/core-internal-touch-group-press.md: clear.docs/architecture/react-component-runtime.md: clear.packages/core/locales/en.json: clear.packages/core/src/hooks/useGroupPressTracking.ts: clear.packages/core/src/internal/touch.test.ts: clear (optional note on test placement).packages/core/src/internal/touch.ts: clear.packages/core/src/privateAttributes/pressGroupItem.stylex.ts: clear.scripts/touch-support-bundle.test.mjs: clear.
| }); | ||
| }); | ||
|
|
||
| it('re-exports the shared group tracking that Lab Rating reads', async () => { |
There was a problem hiding this comment.
Non-blocking: this case sits outside describe('internal/touch'), unlike the other re-export cases. Moving it inside keeps it reported under the entry it checks.
There was a problem hiding this comment.
Changes requested: the internal re-exports, the amended INV13 text and the two catalog messages follow the current records, and one description fix is needed before approval.
- Regression: the description's Evidence and Testing sections say the identity test fails 1 of 11 and passes 11 of 11 ("11 passed"), but after the merge of
mainthis head'spackages/core/src/internal/touch.test.tshas 12 cases and CI reports 12 tests, so update the three tallies to 12.
The required test check is red only because the test-node (3/4) shard reached its 15-minute limit just after all of its tests passed, so a CI re-run should clear it. One optional note: the new identity test at packages/core/src/internal/touch.test.ts:219 still sits outside describe('internal/touch').
Claims and files checked
- Changeset: the internal touch entry re-exports the group press tracking and the group-item mark for Lab's Rating: verified (
packages/core/src/internal/touch.ts:127-132). - Changeset: the catalog gains two Rating messages: verified (
packages/core/locales/en.json:2574-2581). - Changeset: apps import nothing new: verified (no public entry gains a name;
scripts/touch-support-bundle.test.mjs:494-495keeps the three names off Core's root entry and passes on this head). - Description: Rating presses its stars as one group through these names: verified (#11082's Rating calls
useGroupPressTrackingand spreadspressGroupItemProps(GROUP_PRESS_POINTERS)from the internal touch entry). - Description: the tracking and the mark were not reachable from Lab before: verified (the base's internal entries export neither).
- Description: this pull request carries the Core part of #11082, which changes no Core file and merges after it: verified (#11082's file list has no Core path, and its description says it depends on this one).
- Description: the touch entry is private, undocumented, outside the compatibility promise and limited by lint to Core and Lab: verified (the runtime record's INV13 and the
no-core-internal-importlint rule). - Description: nothing public changes and every component behaves as before: verified (no component file changes; the generated API delta lists no public rows; no published component reads the two keys).
- Description: the identity test checks each re-export against its source: verified (
packages/core/src/internal/touch.test.ts:219-226). - Description: the record names the two new exposures, one sentence each: verified (
docs/architecture/react-component-runtime.md:361-369). - Description: the header comments name the new caller and the entry: verified (
useGroupPressTracking.ts:11,pressGroupItem.stylex.ts:12-13). - Description: the star label pluralizes on
max: verified (packages/core/locales/en.json:2575; the catalog contract check passes). - Description: the bundle test lists the three names as Lab-only, as the touch entry's sync note asks: verified (
scripts/touch-support-bundle.test.mjs:160-162,touch.ts:22-23). - Description: written as part of #11082 and split out: verified (the first commit credits its author as co-author).
- Description: the identity test fails without the re-exports (1 of 11): false count (12 cases at this head).
- Description: the test file passes 11 of 11, and Testing's "11 passed": false count (CI reports 12 tests).
- Description: the knowledge and repository checks pass: verified (the knowledge and catalog checks pass in CI on this head).
- Description: CI impact none: verified (no workflow, runner or build configuration changes).
- Description: the writing-rubric results hold for the added record lines: verified.
- Description: no public API, behaviour, visual or policy change, and no internal context in public text: verified.
.changeset/core-internal-touch-group-press.md: clear.docs/architecture/react-component-runtime.md: clear.packages/core/locales/en.json: clear.packages/core/src/hooks/useGroupPressTracking.ts: clear.packages/core/src/internal/touch.test.ts: clear (optional note on test placement).packages/core/src/internal/touch.ts: clear.packages/core/src/privateAttributes/pressGroupItem.stylex.ts: clear.scripts/touch-support-bundle.test.mjs: clear.
|
/approve-spec a9b81d2 |
There was a problem hiding this comment.
Approved pending CI: the required test, build and docsite-test checks are deferred on this head and run before merge. The internal re-exports, the amended runtime-record text (approved by an engineering owner for this head) and the two catalog messages follow the current records, and the description's test tallies now match the test file.
One optional note: the new identity test at packages/core/src/internal/touch.test.ts:219 still sits outside describe('internal/touch').
Claims and files checked
- Changeset: the internal touch entry re-exports the group press tracking and the group-item mark for Lab's Rating: verified (
packages/core/src/internal/touch.ts:127-132). - Changeset: the catalog gains two Rating messages: verified (
packages/core/locales/en.json:2582-2589). - Changeset: apps import nothing new: verified (no public entry gains a name;
scripts/touch-support-bundle.test.mjs:494-495keeps the three names off Core's root entry). - Description: Rating presses its stars as one group through these names: verified (the Lab Rating pull request imports all three from the internal touch entry).
- Description: the tracking and the mark were not reachable from Lab before: verified (no internal entry at the base exports them).
- Description: this pull request carries the Core part, so the Lab pull request changes no Core file and merges after it: verified (its file list has no Core path, and its description says it depends on this one).
- Description: the touch entry is private, undocumented, outside the compatibility promise and limited by lint to Core and Lab: verified (the runtime record's INV13,
docs/architecture/react-component-runtime.md:363-366). - Description: nothing public changes and every component behaves as before: verified (no component file changes; no published component reads the two keys).
- Description: the identity test checks each re-export against its source: verified (
packages/core/src/internal/touch.test.ts:219-226). - Description: the record names the two new exposures, one sentence each: verified (
docs/architecture/react-component-runtime.md:371-379). - Description: the header comments name the new caller and the entry: verified (
useGroupPressTracking.ts:11,pressGroupItem.stylex.ts:12-13). - Description: the star label pluralizes on
max: verified (packages/core/locales/en.json:2583). - Description: the bundle test lists the three names as Lab-only, as the touch entry's sync note asks: verified (
scripts/touch-support-bundle.test.mjs:160-162,touch.ts:22-23). - Description: written as part of the Lab pull request and split out: verified (the first commit credits its author as co-author).
- Description: the identity test fails without the re-exports (1 of 12): verified by reading (no other case uses the three names; the file has 12 cases).
- Description: the test file passes 12 of 12: verified on the identical patch at the previous revision; the test job is deferred on this head.
- Description: the knowledge and repository checks pass: verified (the repository check, including the knowledge and catalog checks, passes in CI on this head).
- Description: CI impact none: verified (no workflow, runner or build configuration changes).
- Description: the writing-rubric results hold for the added record lines: verified.
- Description: no public API, behaviour, visual or policy change, and no internal context in public text: verified.
.changeset/core-internal-touch-group-press.md: clear.docs/architecture/react-component-runtime.md: clear.packages/core/locales/en.json: clear.packages/core/src/hooks/useGroupPressTracking.ts: clear.packages/core/src/internal/touch.test.ts: clear (optional note on test placement).packages/core/src/internal/touch.ts: clear.packages/core/src/privateAttributes/pressGroupItem.stylex.ts: clear.scripts/touch-support-bundle.test.mjs: clear.
|
/approve-spec f2e797a |
There was a problem hiding this comment.
Changes requested: the description needs one addition before approval. The internal re-exports, the amended INV13 text (approved by an engineering owner for this head) and the two catalog messages follow the current records.
- Newly live check:
architecture:component-import-boundariesINV10 asks a pull request that grows a shared module to report its first-load gzip delta per page, so please add base-to-head numbers for the four reference pages and for a page that renders a Lab component importing the internal touch entry (a build from source gives 0 B on docs, form, menu and table, and +40 to +46 B gzip on Lab TabBar, PageControl and NavigationStack pages, all from the two new catalog strings).
One optional note: the new identity test in packages/core/src/internal/touch.test.ts still sits outside describe('internal/touch').
Claims and files checked
Review mode: same-head; reason: none
Claims:
- Changeset: the internal touch entry re-exports the group press tracking and the group-item mark for Lab's Rating. Verified (
packages/core/src/internal/touch.ts:131-136; the identity test passes). - Changeset: the catalog gains two Rating messages. Verified (
packages/core/locales/en.json:2706-2713). - Changeset: apps import nothing new. Verified (no public entry gains a name; the bundle test keeps the three names off Core's root entry; the API surface comparison lists no changed row).
- Description: Rating presses its stars as one group, as ButtonGroup and ToggleButtonGroup do. Verified (the Lab Rating pull request calls the tracker and spreads the writer;
useGroupPressTracking.ts:9-10). - Description: the tracking and the mark were not reachable from Lab. Verified (no internal entry at the base exports them).
- Description: this pull request carries the Core part, so the Lab pull request changes no Core file and merges after it. Verified (its file list has no Core path).
- Description: the internal touch subpath is reserved, undocumented, outside the compatibility promise and limited by lint to Core and Lab. Verified (the current runtime record's INV13).
- Description: nothing public changes, and every component behaves as before. Verified (no API row changes; no rendered change; the four reference pages are the same size).
- Description: the identity test checks that each name is the same value as its source. Verified (
touch.test.ts:223-230). - Description: INV13 names the two new exposures, one sentence each. Verified (
docs/architecture/react-component-runtime.md:371-379). - Description: the header comments name the new caller and the entry. Verified (
useGroupPressTracking.ts:11,pressGroupItem.stylex.ts:12-13). - Description: the star label pluralizes on
max. Verified (en.json:2707). - Description: the bundle test lists the three names as Lab-only, as the SYNC note asks. Verified (
scripts/touch-support-bundle.test.mjs:212-214; it passes). - Description: without the re-exports the identity test fails, 1 of 12. Verified (the head's test run against the base: 1 failed, 11 passed).
- Description:
touch.test.tspasses 12 of 12, and the knowledge check passes. Verified. - Description: product and runtime behavior is unchanged, and CI is unaffected. Verified (no component import changes; no CI file changes).
- Description: the writing rubric reports no narration and no evidence-cell change for the INV13 lines. Verified.
- Description: lint and the repository checks pass. Verified for ESLint on the changed files and every repository check that runs without git history; three checks that need git history were not run.
- Description: no public API, product, visual or policy change, and no internal context in public text. Verified.
Files:
.changeset/core-internal-touch-group-press.md: clear.docs/architecture/react-component-runtime.md: clear (owner-approved for this head).packages/core/locales/en.json: clear.packages/core/src/hooks/useGroupPressTracking.ts: clear.packages/core/src/internal/touch.test.ts: clear (optional note above).packages/core/src/internal/touch.ts: INV10 per-page first-load report missing.packages/core/src/privateAttributes/pressGroupItem.stylex.ts: clear.scripts/touch-support-bundle.test.mjs: clear.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet, because the pull request is a draft; its build, test and lint jobs run once it is marked ready for review. The internal re-exports, the amended INV13 text (approved by an engineering owner for this head) and the two catalog messages follow the current records, and the new Size section supplies the per-page first-load report that INV10 asks for.
One optional note: the new identity test in packages/core/src/internal/touch.test.ts still sits outside describe('internal/touch').
Claims and files checked
Review mode: same-head; reason: none
Claims:
- Changeset: the internal touch entry re-exports the group press tracking and the group-item mark for Lab's Rating. Verified (
packages/core/src/internal/touch.ts:131-136; the identity test passes). - Changeset: the catalog gains two Rating messages. Verified (
packages/core/locales/en.json:2706-2713). - Changeset: apps import nothing new. Verified (no public entry gains a name; the bundle test keeps the three names off Core's root entry; the API surface comparison lists no changed row).
- Description: Rating presses its stars as one group, as ButtonGroup and ToggleButtonGroup do. Verified (the Lab Rating pull request calls the tracker and spreads the writer;
useGroupPressTracking.ts:9-10). - Description: the tracking and the mark were not reachable from Lab. Verified (no internal entry at the base exports them).
- Description: this pull request carries the Core part, so the Lab pull request changes no Core file and merges after it. Verified (its file list has no Core path).
- Description: the internal touch subpath is reserved, undocumented, outside the compatibility promise and limited by lint to Core and Lab. Verified (the current runtime record's INV13;
touch.ts:10-16). - Description: nothing public changes, and every component behaves as before. Verified (no API row changes; no rendered change).
- Description: the identity test checks that each name is the same value as its source. Verified (
touch.test.ts:223-230). - Description: INV13 names the two new exposures, one sentence each. Verified (
docs/architecture/react-component-runtime.md:371-379). - Description: the header comments name the new caller and the entry. Verified (
useGroupPressTracking.ts:11,pressGroupItem.stylex.ts:12-13). - Description: the star label pluralizes on
max, so a translation can make the noun agree. Verified (en.json:2707). - Description: the bundle test lists the three names as Lab-only, as the SYNC note asks. Verified (
scripts/touch-support-bundle.test.mjs:212-214; it passes). - Description: without the re-exports the identity test fails, 1 of 12. Verified (the head's test run against the base: 1 failed, 11 passed).
- Description:
touch.test.tspasses 12 of 12, and the knowledge check passes. Verified. - Description: product and runtime behavior is unchanged, and CI is unaffected. Verified (no component import changes; no CI file changes).
- Description: the writing rubric reports no narration and no evidence-cell change for the INV13 lines. Verified.
- Description: lint and the repository checks pass. Verified for ESLint on the changed files and every repository check that runs without git history; three checks that need git history were not run.
- Description: no public API, product, visual or policy change, and no internal context in public text. Verified.
- Description (Size): the sizes come from the shared reference-page measurer of #11731, base against the main this head merged. Verified (#11731 adds that measurer; the head's merge parent is the base).
- Description (Size): the four reference pages do not change. Verified (an independent build from source: 0 B on docs, form, menu and table).
- Description (Size): pages built from the internal touch names each Lab component imports grow 0 B minified and at most 4 B gzip. Verified (rebuilt from source: 0 B on all three; PageControl's output differs only in renamed minified identifiers).
- Description (Size): whole Lab component pages grow 40 to 46 B gzip, far under INV10's 0.3 KB limit. Verified (independent whole-page builds: +40, +46 and +42 B, all from the two catalog strings).
Changed review rules:
- Re-review scope rule (go to a full review above three changed rules or a long rule diff; list each changed rule's result): checked: the rule diff since the last review (two rules), no finding.
- Review mode line (two new full-review reasons): checked: this review's mode and reason, no finding.
Files:
.changeset/core-internal-touch-group-press.md: clear.docs/architecture/react-component-runtime.md: clear (owner-approved for this head).packages/core/locales/en.json: clear.packages/core/src/hooks/useGroupPressTracking.ts: clear.packages/core/src/internal/touch.test.ts: clear (optional note above).packages/core/src/internal/touch.ts: clear (the first-load report it needed is now in the description).packages/core/src/privateAttributes/pressGroupItem.stylex.ts: clear.scripts/touch-support-bundle.test.mjs: clear.
|
/approve-spec 1c4bfac |
There was a problem hiding this comment.
Approved pending CI: CI has not finished on this head; the build, node tests, lint and typecheck pass, and the remaining UI and interaction test shards must pass before merge. The internal re-exports, the amended INV13 text (approved by an engineering owner for this head) and the two catalog messages follow the current records, including the newer press feedback record, and the description's per-page first-load report holds.
One optional note: the new identity test in packages/core/src/internal/touch.test.ts still sits outside describe('internal/touch').
Claims and files checked
Review mode: same-head; reason: none
Changed rules (1): Whatever the scope, these are computed… (how changed rules are counted in a follow-up review); checked: the whole pull request and its prior review, no finding.
Claims:
- Changeset: the internal touch entry re-exports the group press tracking and the group-item mark for Lab's Rating. Verified (
packages/core/src/internal/touch.ts:131-136; the identity test passes). - Changeset: the catalog gains two Rating messages. Verified (
packages/core/locales/en.json:2718-2725). - Changeset: apps import nothing new. Verified (no public API row changes; the bundle test keeps the three names off Core's root entry; the reference pages do not change).
- Description: Rating presses its stars as one group, as ButtonGroup and ToggleButtonGroup do. Verified (the Lab Rating pull request calls the tracker and spreads the writer from the internal touch entry).
- Description: the tracking and the mark were not reachable from Lab. Verified (no internal entry at the base exports them).
- Description: this pull request carries the Core part, so the Lab Rating pull request changes no Core file. Verified (its file list has no Core path).
- Description: the internal touch subpath is reserved, undocumented, outside the compatibility promise and limited by lint to Core and Lab. Verified (the current runtime record's INV13;
touch.ts:11-15). - Description: nothing public changes, and every component behaves as before. Verified (no API row changes; no component file changes).
- Description: the identity test checks that each name is the same value as its source. Verified (
touch.test.ts:223-230). - Description: INV13 names the two new exposures, one sentence each. Verified (
docs/architecture/react-component-runtime.md:371-379). - Description: the header comments name the new caller and the entry. Verified (
useGroupPressTracking.ts:11,pressGroupItem.stylex.ts:12-13). - Description: the star label pluralizes on
max, so a translation can make the noun agree. Verified (en.json:2719). - Description: the bundle test lists the three names as Lab-only, as the entry's SYNC note asks. Verified (
scripts/touch-support-bundle.test.mjs:212-214; 16 tests pass). - Description: the Lab Rating pull request's author wrote this part, split out so that pull request changes no Core file and merges after this one. Verified (that pull request's author and file list).
- Description: without the re-exports the identity test fails, 1 of 12. Verified (the head's test run against the base: 1 failed, 11 passed).
- Description:
touch.test.tspasses 12 of 12, and the knowledge check passes. Verified. - Description: product and runtime behavior is unchanged, since no component import changes. Verified.
- Description: no CI impact. Verified (no CI file changes).
- Description: the writing rubric reports no narration, research, evidence change, alternatives, change references, open questions or project status for the INV13 lines. Verified.
- Description: no public API, product, visual or policy change, and no internal context in public text. Verified.
- Description: the touch test passes 12 cases, and 1 fails with the re-exports removed. Verified (the same runs as above).
- Description: lint-staged and the repository checks pass. Verified (ESLint and Prettier on the changed files; the lint job passes on this head).
- Description (Size): the sizes come from the shared reference-page measurer, base against the
mainthe measured head merged. Verified. - Description (Size): the four reference pages do not change. Verified on this head (0 B on docs, form, menu and table).
- Description (Size): pages built from the internal touch names each Lab component imports grow 0 B minified and at most 4 B gzip. Verified (on this head: 0 B minified, 0 to 2 B gzip).
- Description (Size): whole Lab component pages grow 40 to 46 B gzip. Verified (on this head: 40, 42 and 42 B, all from the two catalog strings).
- Description (Size): both stay far under INV10's 0.3 KB limit. Verified.
Files:
.changeset/core-internal-touch-group-press.md: clear.docs/architecture/react-component-runtime.md: clear (owner-approved for this head; merges cleanly with the current text).packages/core/locales/en.json: clear.packages/core/src/hooks/useGroupPressTracking.ts: clear.packages/core/src/internal/touch.test.ts: clear (optional note above).packages/core/src/internal/touch.ts: clear.packages/core/src/privateAttributes/pressGroupItem.stylex.ts: clear.scripts/touch-support-bundle.test.mjs: clear.
Maintainer impact
Lab's Rating (#11082) presses its stars as one group, the way ButtonGroup and ToggleButtonGroup press their members. The group press tracking and the private group-item mark live in Core and are not reachable from Lab, so Rating needs them through Core's private
internal/touchentry. This PR carries that Core part of #11082 on its own, so #11082 changes no Core file.Intended invariant
architecture:react-component-runtimeINV13:@astryxdesign/core/internal/touchis reserved for Astryx's own packages, undocumented, outside the compatibility promise, and limited by lint to Core and Lab. Nothing public changes; every component behaves as before.Change
internal/touch.tsre-exportsuseGroupPressTracking,GROUP_PRESS_POINTERS, andpressGroupItemProps;internal/touch.test.tschecks each is the same function or value as its source.useGroupPressTracking.tsandpressGroupItem.stylex.ts: header comments name the new caller and the entry.en.jsongains Rating's two catalog messages (@astryx.rating.starLabel,@astryx.rating.readOnlyLabel). The star label pluralizes onmax({max, plural, one {# star} other {# stars}}), so a translation can make the noun agree.scripts/touch-support-bundle.test.mjslists the three new names as Lab-only, astouch.ts's SYNC note asks.Written by @Rajatendu1 as part of #11082; split out here so #11082 changes no Core file and merges after this.
Evidence
internal/touch.test.tspasses (12 of 12);pnpm check:knowledgepasses.Writing rubric results
For the added
architecture:react-component-runtimeINV13 lines (the group press tracking and the group-item mark oninternal/touch):Scope
Components: internal/touch
Testing
pnpm exec vitest run packages/core/src/internal/touch.test.ts: 12 passed; 1 fails with the re-exports removed.pnpm check:repo) pass.Size
First-load JavaScript, minified / gzip bytes, base
1ac15daf(the main this head merged) → headf2e797ae. Measured withpnpm size:pagesfrom #11731 (INV10's reference pages over Core compiled asbuild:esmdoes). The three Lab rows are pages built from the@astryxdesign/core/internal/touchnames each Lab component imports; the script was extended locally to accept a subpath with named imports:The four reference pages do not change. A Lab page that imports the internal entry grows by a few bytes at most; CodeBunny's own build of whole Lab component pages measured +40 to +46 B gzip on TabBar, PageControl and similar. Both stay far under INV10's 0.3 KB limit for an unused feature.