Skip to content

chore(core): the internal touch entry exposes group press tracking to Lab - #11283

Merged
cixzhang merged 6 commits into
mainfrom
core/internal-touch-group-press
Nov 19, 2026
Merged

cixzhang merged 6 commits into
mainfrom
core/internal-touch-group-press

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

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/touch entry. This PR carries that Core part of #11082 on its own, so #11082 changes no Core file.

Intended invariant

architecture:react-component-runtime INV13: @astryxdesign/core/internal/touch is 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.ts re-exports useGroupPressTracking, GROUP_PRESS_POINTERS, and pressGroupItemProps; internal/touch.test.ts checks each is the same function or value as its source.
  • INV13 names the two new exposures, one sentence each.
  • useGroupPressTracking.ts and pressGroupItem.stylex.ts: header comments name the new caller and the entry.
  • en.json gains Rating's two catalog messages (@astryx.rating.starLabel, @astryx.rating.readOnlyLabel). The star label pluralizes on max ({max, plural, one {# star} other {# stars}}), so a translation can make the noun agree.
  • scripts/touch-support-bundle.test.mjs lists the three new names as Lab-only, as touch.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

  • Failure before the change: the identity test fails without the re-exports (1 of 12).
  • Success after the change: internal/touch.test.ts passes (12 of 12); pnpm check:knowledge passes.
  • Product/runtime behavior verified unchanged: no component imports change; the re-exports are new names on a private entry.
  • CI impact: none.

Writing rubric results

For the added architecture:react-component-runtime INV13 lines (the group press tracking and the group-item mark on internal/touch):

  • R1 narration: none; both sentences say what the subpath carries.
  • R2 research: none.
  • R3 evidence: no evidence cell changes.
  • R4 rejected alternatives: none.
  • R5 change references: none.
  • R6 open questions: none.
  • R7 project status: none.

Scope

Components: internal/touch

  • No intended public API, product behavior, visual direction, or policy change.
  • Product changes discovered during the work were removed or split.
  • Public text and artifacts contain no internal Meta context.

Testing

  • pnpm exec vitest run packages/core/src/internal/touch.test.ts: 12 passed; 1 fails with the re-exports removed.
  • Pre-commit hooks (lint-staged, pnpm check:repo) pass.

Size

First-load JavaScript, minified / gzip bytes, base 1ac15daf (the main this head merged) → head f2e797ae. Measured with pnpm size:pages from #11731 (INV10's reference pages over Core compiled as build:esm does). The three Lab rows are pages built from the @astryxdesign/core/internal/touch names each Lab component imports; the script was extended locally to accept a subpath with named imports:

Page Base Head Change
docs (Text, Heading, Link, Card, Divider, List) 228,478 / 74,888 228,478 / 74,888 +0 / +0
form (Button, IconButton, TextInput, CheckboxInput, Text, Heading, Card) 238,761 / 78,015 238,761 / 78,015 +0 / +0
menu (DropdownMenu, ContextMenu, Button, Text) 371,729 / 126,510 371,729 / 126,510 +0 / +0
table (Table, Text, Button) 399,154 / 136,971 399,154 / 136,971 +0 / +0
Lab TabBar's internal-touch imports 97,819 / 29,689 97,819 / 29,689 +0 / +0
Lab PageControl's internal-touch imports 60,340 / 22,193 60,340 / 22,197 +0 / +4
Lab NavigationStack's internal-touch imports 80,264 / 24,033 80,264 / 24,034 +0 / +1

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.

… 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]>
@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 15, 2026 4:17pm UTC

Request Review

@github-actions github-actions Bot added the needs:design-review Affects visuals — Design should review label Nov 11, 2026
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 11, 2026
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 11, 2026
cixzhang added a commit to Rajatendu1/astryx that referenced this pull request Nov 11, 2026
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]>
@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 1c4bfac

Storybook · Sandbox · built from this PR's head

Modified components

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

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 7ccdbc0

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 11, 2026
@astracat-bot

astracat-bot Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 19, 2026, 4:34 AM UTC

@cixzhang cixzhang added ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) ci:run-a11y Run the accessibility suite on this PR; write access, next push (AST-030 FR12) labels Nov 11, 2026

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested. The internal re-exports and the new INV13 text follow the current records; four small fixes are needed first.

  • @astryx.rating.starLabel in packages/core/locales/en.json puts "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 that max picks the plural.
  • This pull request changes docs/architecture/react-component-runtime.md, so its description needs a ## Writing rubric results section that reports R1 to R7 from docs/contributing/spec-writing.md for the added INV13 lines.
  • The description cites architecture:react-component-runtime INV14 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-api INV23, because this record has no INV23.
  • The new header comments name Rating and RatingTracking.test.tsx before either exists here, and the touch.ts SYNC note asks for the three names in LAB_ONLY_NAMES in scripts/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.

Automated review (maintainer link)

Comment thread packages/core/locales/en.json Resolved
@cixzhang
cixzhang marked this pull request as ready for review November 11, 2026 19:53
…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.
@cixzhang
cixzhang marked this pull request as draft November 12, 2026 02:50
@cixzhang
cixzhang marked this pull request as ready for review November 12, 2026 02:51
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 12, 2026
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec d8c9cbc

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 12, 2026

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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-495 checks Core's root entry and passes).
  • Description: Rating presses its stars as one group through these names: verified (#11082's Rating calls useGroupPressTracking and spreads pressGroupItemProps(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.

Automated review (maintainer link)

});
});

it('re-exports the shared group tracking that Lab Rating reads', async () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 main this head's packages/core/src/internal/touch.test.ts has 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-495 keeps 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 useGroupPressTracking and spreads pressGroupItemProps(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-import lint 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.

Automated review (maintainer link)

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 12, 2026
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec a9b81d2

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 12, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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-495 keeps 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.

Automated review (maintainer link)

@cixzhang
cixzhang marked this pull request as draft November 14, 2026 20:51
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 14, 2026
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec f2e797a

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 14, 2026

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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-boundaries INV10 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.ts passes 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.

Automated review (maintainer link)

Comment thread packages/core/src/internal/touch.ts Resolved

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.ts passes 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.

Automated review (maintainer link)

@cixzhang
cixzhang marked this pull request as ready for review November 15, 2026 16:03
@cixzhang
cixzhang marked this pull request as draft November 15, 2026 16:06
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 15, 2026
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 1c4bfac

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Nov 15, 2026

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.ts passes 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 main the 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.

Automated review (maintainer link)

@cixzhang
cixzhang marked this pull request as ready for review November 19, 2026 04:16
@cixzhang
cixzhang merged commit f672a82 into main Nov 19, 2026
154 checks passed
@github-actions
github-actions Bot deleted the core/internal-touch-group-press branch November 19, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 1c4bfacb Deployed Nov 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) ci:run-a11y Run the accessibility suite on this PR; write access, next push (AST-030 FR12) CLA Signed This label is managed by the Meta Open Source bot. needs:design-review Affects visuals — Design should review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant