Skip to content

perf(core): action groups' press tracking comes with the touch runtime - #11466

Draft
cixzhang wants to merge 15 commits into
perf/defer-touch-toast-popoverfrom
perf/defer-touch-action-groups
Draft

cixzhang wants to merge 15 commits into
perf/defer-touch-toast-popoverfrom
perf/defer-touch-action-groups

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Primary intent

Performance, stacked on #11463 (and #11450): AlertDialog, ButtonGroup and ToggleButtonGroup stop importing the action-group press tracking statically, and with it the gesture host and the long-press recognizer. They render it as a touch-runtime part once the shared loader has loaded the runtime. It is not a bug fix or a feature: nothing changes after the load, and there's no API change.

User or maintainer impact

Problem and solution fit

  • hooks/useActionGroupTracking builds its press on gestures/useGestureRecognizer and LongPressGestureRecognizer. AlertDialog called it directly, and ButtonGroup and ToggleButtonGroup called it through hooks/useGroupPressTracking, so all three carried the gesture host in their static graph.
  • The tracking is now the runtime part ActionGroupTracking, which calls the unchanged hook. Each group renders the part as a sibling after its group element, so the element's node is attached when the part attaches to it.
  • The finger-target helpers resolveNearestAction and measureNeighbours hold no gesture code. They move to hooks/actionGroupNeighbours.ts so useGroupPressTracking can read them statically. useActionGroupTracking re-exports them.

Authority

architecture:react-component-runtime INV13 and spec:AST-080 DEC-5, as amended in #11450. INV13's gap line drops hooks/useActionGroupTracking.

Change and evidence

  • hooks/useGroupPressTracking.ts, hooks/actionGroupNeighbours.ts (new; INV13 names why it is separate), hooks/useActionGroupTracking.ts, AlertDialog/AlertDialog.tsx, ButtonGroup/ButtonGroup.tsx, ToggleButton/ToggleButtonGroup.tsx, utils/touchRuntimeModules.tsx, plus the INV13 gap line.
  • With this change, no static path from the AlertDialog, ButtonGroup or ToggleButton entries reaches motion/animator or gestures/GestureHost.

Scope

Components: AlertDialog, ButtonGroup, ToggleButtonGroup, hooks/useGroupPressTracking, hooks/useActionGroupTracking

  • This PR has one primary intent.
  • Independently removable deltas were removed or split.
  • Public text and artifacts contain no internal Meta context.

Testing

Red first, each failing on #11463's head:

  • utils/touchRuntime.boundary.test.ts: the AlertDialog, ButtonGroup and ToggleButton entries reach no touch module statically.
  • ButtonGroupTracking.test.tsx: "tracks no slide before the touch runtime loads: each button keeps its own press".

Also:

  • The AlertDialog, ButtonGroup and ToggleButtonGroup tracking suites load the runtime in beforeAll.
  • The touched suites pass (AlertDialog, ButtonGroup, ToggleButton, useActionGroupTracking, internal/touch, touchRuntime), as do Core typecheck and check:knowledge.

Writing rubric results

  • R1 present tense: pass; only INV13's gap line changes.
  • R2–R7: none in the record.

Owner and land path

Owner: the Astryx fix loop, lane 3. Lands after #8690 merges, in stack order (#11450, #11463, #11466, #11476, #11478, #11508, #11518, #11525, #11530, #11536, #11540, #11544), each after Specs, CodeBunny at its head and green CI; the drain merges.

AlertDialog, ButtonGroup and ToggleButtonGroup no longer import the action-group tracking statically, and with it the gesture host and the long-press recognizer: the tracking is a runtime part they render after their group element, once the runtime has loaded. Until then each action keeps its own press. The finger target helpers move to hooks/actionGroupNeighbours.ts, which holds no gesture code. INV13's gap line drops hooks/useActionGroupTracking.
@vercel

vercel Bot commented Nov 13, 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 14, 2026 8:08pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 13, 2026
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec f5a76f6

@astracat-bot

astracat-bot Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟡 Reviewed (for maintainers only) Nov 14, 2026, 8:30 PM UTC

@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. Moving the action-group press tracking behind the touch runtime works once the runtime has loaded, but before that the groups are left half-tracked, and the change needs a changeset.

  • Before the touch runtime loads, ButtonGroup, ToggleButtonGroup and AlertDialog still mark their actions as tracked (ButtonGroup.tsx:259, ToggleButton.tsx:353-365, AlertDialog.tsx:295-296) while no tracker is mounted, so the press controller leaves a finger or pen press to a tracker that is not there and the action shows no press at all (family:action-groups FR2): key the marker, and the group hit band, on the tracker being mounted, and cover it with pointer-event tests.
  • The change ships @astryxdesign/core source without a changeset naming that package, which the repository's changeset-coverage check rejects: extend the touch-runtime-after-first-paint changeset to say that AlertDialog, ButtonGroup and ToggleButtonGroup do not slide before the runtime loads.

The description's "each action keeps its own press" and the comments at AlertDialog.tsx:204 and useGroupPressTracking.ts:125-126 should match whatever the fix does. Two small follow-ups: drop "Each follow-up removes its own names." from INV13, and move the new import in useActionGroupTracking.ts up into the import block.

Claims and files checked
  • Claim: the three groups no longer reach the press tracking, gesture host or long-press recognizer statically. Verified: an import walk and the new boundary tests, which fail on the base and pass on the head.
  • Claim: they render the tracking as a runtime part once the loader has run. Verified: AlertDialog.tsx:205-220, useGroupPressTracking.ts:147-169, touchRuntimeModules.tsx:140-151.
  • Claim: nothing changes after the load, and no API changes. Verified: identical tracking options, the tracking suites pass, and the built API surface shows no change.
  • Claim: pages load less JavaScript before first paint. Follows from the static-graph change; not measured here.
  • Claim: before the load, a held finger or pen does not slide. Verified: the new test fails on the base and passes on the head.
  • Claim: before the load, each action keeps its own press and runs by its own click. False for the press: a held finger on a tracked action shows no press in jsdom and in Chromium; its own click still runs.
  • Claim: keys work as always. Verified: the tracking handles pointers only and the keyboard paths are unchanged.
  • Claim: a press in flight at the load finishes untracked and the next press is tracked. Verified by reading: the part attaches only when it mounts; no test covers it.
  • Claim: useGroupPressTracking returns trackingPart, and a caller that does not render it gets no slide. Verified.
  • Claim: the target helpers move to a module with no gesture code and are re-exported from the old hook. Verified.
  • Claim: each group renders the part after its group element. Verified.
  • Claim: the INV13 gap line drops the old hook. Verified.
  • Claim: the tracking suites load the runtime first, and the touched suites, Core typecheck and the knowledge check pass. Verified.
  • File docs/architecture/react-component-runtime.md: non-blocking note (sequencing sentence).
  • File AlertDialog.tsx: blocking finding 1.
  • File AlertDialog.test.tsx: clear.
  • File ButtonGroup.tsx: blocking finding 1.
  • File ButtonGroupTracking.test.tsx: the new test cannot catch finding 1.
  • File ToggleButtonGroup.tsx: blocking finding 1.
  • File ToggleButtonGroupTracking.test.tsx: clear.
  • File actionGroupNeighbours.ts: clear.
  • File useActionGroupTracking.ts: non-blocking note (import placement).
  • File useGroupPressTracking.ts: blocking finding 1.
  • File touchRuntime.boundary.test.ts: clear.
  • File touchRuntimeModules.tsx: clear.
  • No changeset: blocking finding 2.

Automated review (maintainer link)

isEnabled: isTracking,
});
// The tracking comes with the shared touch runtime, which loads after
// first paint. Until then each action keeps its own press.

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.

Before the load the actions keep the press-group marker (isTracking at line 202 feeds PressGroupContext at 295-296), and the press controller leaves a tracked finger or pen press to the tracker (utils/pressFeedback.ts:654), which is not mounted yet. So until the runtime loads, a finger or pen press on Cancel or Delete paints nothing; it does not keep its own press. Key the marker on the tracker being mounted.

Comment on lines +125 to +126
* element. It is `null` until the runtime has loaded; until then each
* member keeps its own press.

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.

Members do not keep their own press while this is null: the group still marks them (ButtonGroup.tsx:259, ToggleButton.tsx:353-365), so the press controller paints nothing, and the hit band from useTouchHitArea at line 172 stays on with no tracker to resolve a tap on it. A finger 4 px below a 32 px member runs nothing before the load and runs it after. Returning whether the tracker is mounted (for example isEnabled && touchRuntime != null) would let the groups key the marker and the band on it.

expect(onC).not.toHaveBeenCalled();
expect(onB).not.toHaveBeenCalled();
expect([paintOf(a), paintOf(b), paintOf(c)]).toEqual([null, null, null]);
void onA;

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.

This case sends touch events only, and the press controller reads pointer events, so paintOf(a) stays null either way, and void onA drops the check that Cut's own press runs. A pointer-event finger press (as in the the 44 px touch target cases) shows the member paints nothing before the load, and a tap at BELOW_A runs nothing.

);
return index >= 0 && index < targets.length ? targets[index].element : null;
}
import {measureNeighbours, resolveNearestAction} from './actionGroupNeighbours';

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 import sits below const NO_TARGETS. It works because imports hoist, but it belongs in the import block at the top.

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec f305fb8

@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. Moving the action-group press tracking behind the touch runtime works once the runtime has loaded, but before that the three groups are left half-tracked, and the release note and the description still need to catch up.

  • Before the touch runtime loads, ButtonGroup, ToggleButtonGroup and AlertDialog still mark their actions as tracked (ButtonGroup.tsx:259, ToggleButton.tsx:352-358, AlertDialog.tsx:295-296) while no tracker is mounted, so a finger or pen press on an action shows no press and a tap in a group's 44 px band beside a small action runs nothing, against family:action-groups FR2 and the new FR1 sentence that each action keeps its own press: key the marker on the tracker being mounted, give members a working 44 px target until then, and cover both with pointer-event tests.
  • The change ships @astryxdesign/core source with no changeset in its own range, which scripts/release/changeset-coverage.mjs rejects: extend the touch-runtime-after-first-paint changeset to say that AlertDialog, ButtonGroup and ToggleButtonGroup do not slide before the runtime loads.
  • Miss: the description says only INV13's gap line changes in the records, but the head also adds the pre-load and actionGroupNeighbours sentences to INV13 and a pre-load sentence to family:action-groups FR1, so update the change list, the Authority line and the writing rubric results.

The comments at AlertDialog.tsx:203-204 and useGroupPressTracking.ts:123-127 should match whatever the fix does, and the new import in useActionGroupTracking.ts belongs in the import block at the top.

Claims and files checked
  • Claim: the three groups no longer import the press tracking, gesture host or long-press recognizer statically. Verified: the new boundary entries pass on the head and fail on the base.
  • Claim: before the change, AlertDialog reached the tracking hook directly and the two groups reached it through the group hook, and that hook builds on the gesture recognizer and long-press recognizer. Verified from the base imports.
  • Claim: the groups render the tracking as a runtime part once the shared loader has loaded it, as a sibling after the group element. Verified: AlertDialog.tsx:205-220 and :302, useGroupPressTracking.ts:146-167, ButtonGroup.tsx:263, ToggleButtonGroup.tsx:304, touchRuntimeModules.tsx:134-154.
  • Claim: no static path from these entries reaches the animator or the gesture host. Verified by the boundary test.
  • Claim: nothing changes after the load, and the API does not change. Verified: the tracking options are identical, the tracking suites pass, and the built API surface shows no change.
  • Claim: pages load less JavaScript before first paint. This follows from the static-graph change; it was not measured.
  • Claim: before the load, a held finger or pen does not slide. Verified: the new no-slide test passes on the head and fails on the base.
  • Claim: before the load, each action keeps its own press and runs by its own click. False for the press: a finger or pen held on a tracked action shows no press, in jsdom for all three groups and in Chromium for ButtonGroup and ToggleButtonGroup. Its own click still runs.
  • Claim: keys work as always. Verified: the tracking follows finger and pen only, and the keyboard paths are unchanged.
  • Claim: a press in flight at the load finishes untracked, and the next press is tracked. Verified by reading: the part attaches only when it mounts. No test covers it.
  • Claim: the group hook returns trackingPart, and a caller that does not render it gets no slide. Verified.
  • Claim: the target helpers move to a module with no gesture code and are re-exported from the old hook. Verified.
  • Claim: the Lab follow-up and the entry change come with another pull request. That is about another pull request and was not checked here.
  • Claim: INV13's gap line drops the old hook. Verified.
  • Claim: only INV13's gap line changes in the records. False: INV13 and family:action-groups FR1 also gain new sentences (third finding).
  • Claim: red first, the boundary entries and the no-slide test fail on the branch below. Verified on the issued base.
  • Claim: the tracking suites load the runtime first, and the touched suites, the Core typecheck and the knowledge check pass. Verified.
  • File docs/architecture/react-component-runtime.md: states a pre-load press the code does not deliver (first finding), and the description omits its new sentences (third finding).
  • File docs/families/action-groups.md: the same (first and third findings).
  • File AlertDialog.tsx: first finding.
  • File AlertDialog.test.tsx: clear.
  • File ButtonGroup.tsx: first finding.
  • File ButtonGroupTracking.test.tsx: the new test cannot catch the first finding.
  • File ToggleButtonGroup.tsx: first finding.
  • File ToggleButtonGroupTracking.test.tsx: clear.
  • File actionGroupNeighbours.ts: clear.
  • File useActionGroupTracking.ts: non-blocking note on import placement.
  • File useGroupPressTracking.ts: first finding.
  • File touchRuntime.boundary.test.ts: clear.
  • File touchRuntimeModules.tsx: clear.
  • No changeset: second finding.

Automated review (maintainer link)

Comment on lines +142 to +143
INV13), each action in AlertDialog, ButtonGroup and ToggleButtonGroup keeps
its own press, with no slide between actions.

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.

The code does not do this yet: before the load the groups keep the press-group marker and the band keyed to the touch presentation (ButtonGroup.tsx:259, ToggleButton.tsx:353-358, AlertDialog.tsx:295-296), so a held finger or pen shows no press on the action. Either key the marker and band on the tracker being mounted, or make this sentence say what happens.

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 0b72e35

@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. Moving the action-group press tracking behind the touch runtime works once the runtime has loaded, but before that the three groups are left half-tracked, and the release note and the description still need to catch up.

  • Before the touch runtime loads, ButtonGroup, ToggleButtonGroup and AlertDialog still mark their actions as tracked (ButtonGroup.tsx:259, ToggleButton.tsx:353-358, AlertDialog.tsx:295-296) while no tracker is mounted, so a finger or pen press on an action shows no press and a tap in a group's 44 px band beside a small action runs nothing, against family:action-groups FR2 and the new FR1 sentence that each action keeps its own press: key the marker on the tracker being mounted, give members a working 44 px target until then, and cover both with pointer-event tests.
  • The change ships @astryxdesign/core source with no changeset in its own range, which scripts/release/changeset-coverage.mjs rejects: extend the touch-runtime-after-first-paint changeset to say that AlertDialog, ButtonGroup and ToggleButtonGroup do not slide before the runtime loads.
  • Miss: the description says only INV13's gap line changes in the records, but the head also adds a pre-load sentence to INV13 and to family:action-groups FR1, so update Change and evidence, Authority and the writing rubric results.

The comments at AlertDialog.tsx:203-204 and useGroupPressTracking.ts:123-127 should match whatever the fix does, and the new import in useActionGroupTracking.ts belongs in the import block at the top.

Claims and files checked
  • Claim: the three groups no longer import the press tracking, gesture host or long-press recognizer statically. Verified: the new boundary entries pass on the head and fail on the base.
  • Claim: before the change, AlertDialog reached the tracking hook directly and the two groups reached it through the group hook, which builds on the gesture recognizer and long-press recognizer. Verified from the base imports.
  • Claim: the groups render the tracking as a runtime part, a sibling after the group element, once the shared loader has loaded it. Verified: AlertDialog.tsx:205-220 and :302, useGroupPressTracking.ts:146-167, ButtonGroup.tsx:263, ToggleButtonGroup.tsx:304, touchRuntimeModules.tsx:144-154.
  • Claim: no static path from these entries reaches the animator or the gesture host. Verified by the boundary test.
  • Claim: nothing changes after the load, and the API does not change. Verified: the tracking options are identical, the tracking suites pass, and the built API surface shows no change.
  • Claim: pages load less JavaScript before first paint. This follows from the static-graph change; it was not measured.
  • Claim: the load comes at idle, at most 2 s after first paint. Verified for when the load starts (touchRuntime.ts:41, :80); the window then lasts until the chunk has downloaded.
  • Claim: before the load, a held finger or pen does not slide. Verified: the new no-slide test passes on the head and fails on the base.
  • Claim: before the load, each action keeps its own press and runs by its own click. False for the press: a finger or pen held on a tracked action shows no press, in jsdom for all three groups and in Chromium for ButtonGroup and ToggleButtonGroup. Its own click still runs.
  • Claim: keys work as always. Verified: the tracking follows finger and pen only, and the keyboard paths are unchanged.
  • Claim: a press in flight at the load finishes untracked, and the next press is tracked. Verified by reading: the part attaches only when it mounts. No test covers it.
  • Claim: the group hook returns trackingPart, and a caller that does not render it gets no slide. Verified.
  • Claim: the target helpers move unchanged to a module with no gesture code and are re-exported from the old hook. Verified.
  • Claim: the Lab follow-up and the internal entry change come with other pull requests. That is about other pull requests and was not checked here.
  • Claim: INV13's gap line drops the old hook. Verified.
  • Claim: only INV13's gap line changes in the records. False: INV13 and family:action-groups FR1 also gain pre-load sentences (third finding).
  • Claim: red first, the boundary entries and the no-slide test fail on the branch below. Verified on the issued base.
  • Claim: the tracking suites load the runtime first, and the touched suites, the Core typecheck and the knowledge check pass. Verified.
  • File docs/architecture/react-component-runtime.md: states a pre-load press the code does not deliver (first finding), and the description omits its new sentence (third finding).
  • File docs/families/action-groups.md: the same (first and third findings).
  • File AlertDialog.tsx: first finding.
  • File AlertDialog.test.tsx: clear.
  • File ButtonGroup.tsx: first finding.
  • File ButtonGroupTracking.test.tsx: the new test sends touch events only and asserts no paint, so it cannot catch the first finding.
  • File ToggleButtonGroup.tsx: first finding.
  • File ToggleButtonGroupTracking.test.tsx: clear.
  • File actionGroupNeighbours.ts: clear.
  • File useActionGroupTracking.ts: non-blocking note on import placement.
  • File useGroupPressTracking.ts: first finding.
  • File touchRuntime.boundary.test.ts: clear.
  • File touchRuntimeModules.tsx: clear.
  • No changeset: second finding.

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 75bddae

@cixzhang

Copy link
Copy Markdown
Contributor Author

Decision: D-20261113-218

Records the owner's answer that the touch runtime loads once per page after first paint, never on demand, at 75bddae. Until it loads, each action in AlertDialog, ButtonGroup and ToggleButtonGroup keeps its own press, with no slide between actions. If its chunk fails to load, the page stays as before the load. It waives nothing.

@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. Moving the action-group press tracking behind the touch runtime works once the runtime has loaded, but before that the three groups are left half-tracked, and the release note and the description still need to catch up.

  • Before the touch runtime loads, ButtonGroup, ToggleButtonGroup and AlertDialog still mark their actions as tracked (ButtonGroup.tsx:259, ToggleButton.tsx:352-358, AlertDialog.tsx:295-296) while no tracker is mounted, so a finger or pen press on an action shows no press and a tap in a group's 44 px band beside a small action runs nothing, against family:action-groups FR2 and FR5 and the new FR1 and INV13 sentence that each action keeps its own press: key the marker on the tracker being mounted, give members a working 44 px target until then, and cover both with pointer-event tests.
  • The change ships @astryxdesign/core source with no changeset in its own range, which scripts/release/changeset-coverage.mjs rejects: extend the touch-runtime-after-first-paint changeset to say that AlertDialog, ButtonGroup and ToggleButtonGroup do not slide before the runtime loads.
  • Miss: the description says only INV13's gap line changes in the records, but the head also adds a pre-load sentence to INV13 and to family:action-groups FR1, so update Change and evidence, Authority and the writing rubric results.

With INV13 saying a failed runtime chunk leaves the page as it is before the load, the first finding lasts for the page's life on such a page. The comments at AlertDialog.tsx:203-204 and useGroupPressTracking.ts:125-127 should match whatever the fix does. Separately, the useActionGroupTracking.ts header still names AlertDialog and useGroupPressTracking as its consumers, and its new import belongs in the import block at the top.

Claims and files checked
  • Claim: the three groups no longer import the press tracking, gesture host or long-press recognizer statically. Verified: the new boundary entries pass on the head and fail on the base.
  • Claim: before the change, AlertDialog reached the tracking hook directly and the two groups reached it through the group hook, which builds on the gesture recognizer and long-press recognizer. Verified from the base imports.
  • Claim: the groups render the tracking as a runtime part, a sibling after the group element, once the shared loader has loaded it. Verified: AlertDialog.tsx:205-220 and :302, useGroupPressTracking.ts:146-167, ButtonGroup.tsx:263, ToggleButtonGroup.tsx:304, touchRuntimeModules.tsx:144-149.
  • Claim: no static path from these entries reaches the animator or the gesture host. Verified by the boundary test.
  • Claim: nothing changes after the load, and the API does not change. Verified: the tracking options are identical, the tracking suites pass, and the built API surface shows no change.
  • Claim: pages load less JavaScript before first paint. This follows from the static-graph change; it was not measured.
  • Claim: the window is first paint, then idle, at most 2 s. Partly true: the load starts at most 2 s after first paint (touchRuntime.ts:41, :78-84), and the window then lasts until the chunk has downloaded, or for the page's life if it fails.
  • Claim: before the load, a held finger or pen does not slide. Verified: the new no-slide test passes on the head and fails on the base.
  • Claim: before the load, each action keeps its own press and runs by its own click. False for the press: a finger or pen held on a tracked action shows no press, in jsdom for all three groups and in Chromium for ButtonGroup and ToggleButtonGroup. Its own click still runs: no tracker is mounted to take the press or swallow the click.
  • Claim: keys work as always. Verified: the tracking follows finger and pen only, the keyboard paths are unchanged, and the keyboard tests pass.
  • Claim: a press in flight at the load finishes untracked, and the next press is tracked. Verified by reading: the part attaches only when it mounts. No test covers it.
  • Claim: the group hook returns trackingPart, and a caller that does not render it gets no slide. Verified; both callers render it.
  • Claim: the target helpers move unchanged to a module with no gesture code and are re-exported from the old hook. Verified.
  • Claim: the Lab follow-up and the internal entry change come with other pull requests. That is about other pull requests and was not checked here.
  • Claim: INV13's gap line drops the old hook. Verified.
  • Claim: only INV13's gap line changes in the records. False: INV13 and family:action-groups FR1 also gain pre-load sentences (third finding).
  • Claim: red first, the boundary entries and the no-slide test fail on the branch below. Verified on the issued base: 4 fail.
  • Claim: the tracking suites load the runtime first, and the touched suites, the Core typecheck and the knowledge check pass. Verified.
  • File docs/architecture/react-component-runtime.md: states a pre-load press the code does not deliver (first finding), and the description omits its new sentence (third finding).
  • File docs/families/action-groups.md: the same (first and third findings).
  • File AlertDialog.tsx: first finding.
  • File AlertDialog.test.tsx: clear.
  • File ButtonGroup.tsx: first finding.
  • File ButtonGroupTracking.test.tsx: the new test sends touch events only and asserts no paint, so it cannot catch the first finding.
  • File ToggleButtonGroup.tsx: first finding.
  • File ToggleButtonGroupTracking.test.tsx: clear.
  • File actionGroupNeighbours.ts: clear.
  • File useActionGroupTracking.ts: non-blocking notes on its header and import placement.
  • File useGroupPressTracking.ts: first finding.
  • File touchRuntime.boundary.test.ts: clear.
  • File touchRuntimeModules.tsx: clear.
  • No changeset: second finding.

Automated review (maintainer link)

@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.

Approval waits on an engineering owner, and three fixes are needed. Moving the action-group press tracking behind the touch runtime works once the runtime has loaded, but the record text this pull request adds has no owner approval at this head, and before the load the three groups are left half-tracked.

  • Approval needs an engineering owner to accept or amend the sentences this pull request adds to INV13 in architecture:react-component-runtime (each action in AlertDialog, ButtonGroup and ToggleButtonGroup keeps its own press with no slide until the touch runtime loads, and the hooks/actionGroupNeighbours.ts sentence and gap-line edit) and to family:action-groups FR1, by commenting /approve-spec 7e7c956eea10ec4245d354038d75c50bb29cb480; the author may do so as an engineering owner.
  • Before the touch runtime loads, ButtonGroup, ToggleButtonGroup and AlertDialog still mark their actions as tracked (ButtonGroup.tsx:259, ToggleButton.tsx:352-358, AlertDialog.tsx:295-296) while no tracker is mounted, so a finger or pen press on an action paints nothing, against family:action-groups FR2 and the new "keeps its own press" sentence: key the marker (and the groups' 44 px band) on the tracker being mounted and cover it with pointer-event tests.
  • The change ships @astryxdesign/core source with no changeset in its own range, which scripts/release/changeset-coverage.mjs rejects: extend the touch-runtime-after-first-paint changeset to say that AlertDialog, ButtonGroup and ToggleButtonGroup do not slide before the runtime loads.
  • Miss: the description says only INV13's gap line changes in the records, but the head also adds pre-load sentences to INV13 and to family:action-groups FR1, so update Change and evidence, Authority and the writing rubric results.

Newly live check: architecture:component-import-boundaries INV10 asks a change that grows a shared module (hooks/useGroupPressTracking.ts) to report its first-load gzip delta on the four reference pages; please add them (they measure within the 0.3 KB allowance). The comments at AlertDialog.tsx:203-204 and useGroupPressTracking.ts:123-127 should match whatever the fix does, and the headers of useActionGroupTracking.ts and useGroupPressTracking.ts still describe the old static call.

Claims and files checked
  • Claim: the three groups no longer import the press tracking, gesture host or long-press recognizer statically. Verified: the new boundary entries pass on the head and fail on the base.
  • Claim: before the change, AlertDialog reached the tracking hook directly and the two groups through the group hook, which builds on the gesture and long-press recognizers. Verified from the base imports.
  • Claim: the groups render the tracking as a runtime part, a sibling after the group element, once the shared loader has loaded it. Verified: AlertDialog.tsx:205-220 and :302, useGroupPressTracking.ts:146-167, ButtonGroup.tsx:263, ToggleButtonGroup.tsx:304, touchRuntimeModules.tsx:144-154.
  • Claim: no static path from these entries reaches the animator or the gesture host. Verified by the boundary test.
  • Claim: nothing changes after the load, and the API does not change. Verified: the tracking options are identical, the tracking suites pass, the built API surface is unchanged, and Chromium frames after the load match the base.
  • Claim: pages load less JavaScript before first paint. Verified: about 18 KB gzip less on a page with one of these groups.
  • Claim: the window is first paint, then idle, at most 2 s. Partly true: the load starts at most 2 s after first paint (touchRuntime.ts:41, :90-103); the window then lasts until the chunk has downloaded, or for the page's life if it fails.
  • Claim: before the load, a held finger or pen does not slide. Verified: the new no-slide test passes on the head and fails on the base.
  • Claim: before the load, each action keeps its own press and runs by its own click, and keys work as always. False for the press: a finger or pen held on a tracked action paints nothing (Chromium for ButtonGroup and ToggleButtonGroup, jsdom for all three groups). Its own click still runs, and the keyboard paths are unchanged.
  • Claim: a press in flight at the load finishes untracked, and the next press is tracked. Verified by reading: the part attaches only when it mounts. No test covers it.
  • Claim: the group hook returns trackingPart, and a caller that does not render it gets no slide. Verified; both callers render it.
  • Claim: the target helpers move unchanged to a module with no gesture code and are re-exported from the old hook. Verified.
  • Claim: the Lab follow-up and the internal entry change come with other pull requests. About other pull requests; not checked here.
  • Claim: INV13's gap line drops the old hook. Verified.
  • Claim: only INV13's gap line changes in the records. False (fourth finding).
  • Claim: red first, the boundary entries and the no-slide test fail on the branch below. Verified: 4 fail on the issued base.
  • Claim: the tracking suites load the runtime first, and the touched suites, the Core typecheck and the knowledge check pass. Verified.
  • File docs/architecture/react-component-runtime.md: pre-load text with no owner approval at this head (first finding) that the code does not deliver (second) and the description omits (fourth).
  • File docs/families/action-groups.md: the same.
  • File AlertDialog.tsx: second finding.
  • File AlertDialog.test.tsx: clear.
  • File ButtonGroup.tsx: second finding.
  • File ButtonGroupTracking.test.tsx: the new test sends touch events only and asserts no paint, so it cannot catch the second finding.
  • File ToggleButtonGroup.tsx: second finding.
  • File ToggleButtonGroupTracking.test.tsx: clear.
  • File actionGroupNeighbours.ts: clear.
  • File useActionGroupTracking.ts: non-blocking notes on its header and import placement.
  • File useGroupPressTracking.ts: second finding; stale header.
  • File touchRuntime.boundary.test.ts: clear.
  • File touchRuntimeModules.tsx: clear.
  • No changeset: third finding.

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 7e7c956

@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 record text this pull request adds is now owner-approved, and moving the action-group press tracking behind the touch runtime works once the runtime has loaded, but before the load the three groups are left half-tracked, and the release note and the description still need to catch up.

  • Before the touch runtime loads, ButtonGroup, ToggleButtonGroup and AlertDialog still mark their actions as tracked (ButtonGroup.tsx:259, ToggleButton.tsx:352-358, AlertDialog.tsx:295-296) while no tracker is mounted, so a finger or pen press on an action paints nothing, against family:action-groups FR2 and the approved "each action keeps its own press": key the marker and the 44 px band on the tracker being mounted, and cover both with pointer-event tests.
  • The change ships @astryxdesign/core source with no changeset in its own range, which scripts/release/changeset-coverage.mjs rejects: extend the touch-runtime-after-first-paint changeset to say that AlertDialog, ButtonGroup and ToggleButtonGroup do not slide before the runtime loads.
  • Miss: the description says only INV13's gap line changes in the records, but the head also adds the pre-load and actionGroupNeighbours.ts sentences to INV13 and a pre-load sentence to family:action-groups FR1, so update Authority, Change and evidence and the writing rubric results.

Newly live check: architecture:component-import-boundaries INV10 asks a change that grows a shared module (hooks/useGroupPressTracking.ts) to report its first-load gzip delta on the four reference pages; please add those numbers. The comments at AlertDialog.tsx:203-204 and useGroupPressTracking.ts:124-126 should match whatever the fix does.

Claims and files checked
  • Claim: the three groups no longer import the press tracking, the gesture host or the long-press recognizer statically. Verified: the new boundary entries pass on the head and fail on the base.
  • Claim: before the change, AlertDialog reached the tracking hook directly and the two groups through the group hook, which builds on the gesture and long-press recognizers. Verified from the base imports.
  • Claim: the groups render the tracking as a runtime part, a sibling after the group element, once the shared loader has loaded it. Verified: AlertDialog.tsx:205-220 and :302, useGroupPressTracking.ts:146-167, ButtonGroup.tsx:263, ToggleButtonGroup.tsx:304, touchRuntimeModules.tsx:134-150.
  • Claim: no static path from these entries reaches the animator or the gesture host. Verified by the boundary test.
  • Claim: nothing changes after the load, and the API does not change. Verified: identical tracking options, the tracking suites pass, the built API surfaces show no row, and the Chromium frame after the load matches the base.
  • Claim: pages with these components download less JavaScript before first paint. Verified that the gesture code leaves their static graph; the size was not measured here.
  • Claim: the window is first paint, then idle, at most 2 s. Partly true: the load starts at most 2 s after first paint (touchRuntime.ts:41, :90-102); the window then lasts until the chunk has downloaded, or for the page's life if it fails.
  • Claim: before the load, a held finger or pen does not slide. Verified: the new no-slide test passes on the head and fails on the base.
  • Claim: before the load, each action keeps its own press and runs by its own click, and keys work as always. False for the press: a finger or pen held on a tracked action paints nothing (Chromium for ButtonGroup, jsdom for ButtonGroup and ToggleButtonGroup). A direct tap's own click is not intercepted, and the keyboard paths are unchanged.
  • Claim: a press in flight at the load finishes untracked, and the next press is tracked. Verified by reading: the part attaches only when it mounts. No test covers it.
  • Claim: the group hook returns trackingPart, and a caller that does not render it gets no slide. Verified; both callers render it.
  • Claim: the target helpers hold no gesture code, move to their own module and are re-exported from the old hook. Verified.
  • Claim: the Lab follow-up and the internal entry change come with other pull requests. About other pull requests; not checked here.
  • Claim: INV13's gap line drops the old hook. Verified.
  • Claim: only INV13's gap line changes in the records. False (third finding).
  • Claim: red first, the boundary entries and the no-slide test fail on the branch below. Verified: 4 fail on the issued base.
  • Claim: the tracking suites load the runtime first, and the touched suites, the Core typecheck and the knowledge check pass. Verified.
  • File docs/architecture/react-component-runtime.md: approved pre-load text the code does not deliver (first finding) and the description omits (third).
  • File docs/families/action-groups.md: the same.
  • File AlertDialog.tsx: first finding; its comment at 203-204.
  • File AlertDialog.test.tsx: clear.
  • File ButtonGroup.tsx: first finding.
  • File ButtonGroupTracking.test.tsx: the new test sends touch events only, so it cannot catch the first finding.
  • File ToggleButtonGroup.tsx: first finding.
  • File ToggleButtonGroupTracking.test.tsx: clear.
  • File actionGroupNeighbours.ts: clear.
  • File useActionGroupTracking.ts: non-blocking notes on its header and import placement.
  • File useGroupPressTracking.ts: first finding; stale header.
  • File touchRuntime.boundary.test.ts: clear.
  • File touchRuntimeModules.tsx: clear.
  • No changeset: second finding.

Automated review (maintainer link)

# Conflicts:
#	packages/core/src/AlertDialog/AlertDialog.tsx
# Conflicts:
#	docs/architecture/react-component-runtime.md
…motion moves

Main's AlertDialog touch motion (useAlertMotion) imports the motion engine statically, and INV13's gap list names it. AlertDialog's action-group tracking still comes from the runtime; the entry returns to the check in the follow-up that moves the motion behind the loader.

@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.

Approval waits on an engineering owner, and four fixes are needed. Moving the action-group press tracking behind the touch runtime works once the runtime has loaded, but the record text this pull request adds has no owner approval at this head, and before the load the three groups are left half-tracked.

  • Approval needs an engineering owner to accept or amend the sentences this pull request adds to INV13 in architecture:react-component-runtime (each action in AlertDialog, ButtonGroup and ToggleButtonGroup keeps its own press with no slide until the touch runtime loads, and the hooks/actionGroupNeighbours.ts sentence and gap-line edit) and to family:action-groups FR1, by commenting /approve-spec 4245ee5ea94ad97fa9c19472ac947fe5258f559a; the author may do so as an engineering owner.
  • Before the touch runtime loads, ButtonGroup, ToggleButtonGroup and AlertDialog still mark their actions as tracked (ButtonGroup.tsx:259, ToggleButton.tsx:352-358, AlertDialog.tsx:332-333) while no tracker is mounted, so a finger or pen press on an action paints nothing and a tap in a group's 44 px band runs nothing, against family:action-groups FR2 and FR5 and the new "keeps its own press" sentence: key the marker and the band on the tracker being mounted and cover both with pointer-event tests.
  • The change ships @astryxdesign/core source with no changeset in its own range, which scripts/release/changeset-coverage.mjs rejects: add one, or extend touch-runtime-after-first-paint, saying what changes for the three groups before the runtime loads.
  • Regression: the description says no static path from the AlertDialog entry reaches motion/animator and lists AlertDialog's boundary entry as red first, but after the base-branch merge AlertDialog still imports the animator through useAlertMotion and this head drops that entry, so say AlertDialog sheds only the gesture host and the long-press recognizer.
  • The description says only INV13's gap line changes in the records, but the head also adds the pre-load and actionGroupNeighbours.ts sentences to INV13 and a pre-load sentence to family:action-groups FR1, so update Authority, Change and evidence and the writing rubric results.

architecture:component-import-boundaries INV10 also asks a change that grows the shared hooks/useGroupPressTracking.ts for its first-load gzip delta; none of the four reference pages reaches the hook, so please add the base-against-head delta for a page that renders one of these groups. The comments at AlertDialog.tsx:240-241 and useGroupPressTracking.ts:124-126, and the two hooks' headers, should match whatever the fix does.

Claims and files checked

Review mode: full; reason: spec-record

  • Claim: the three groups stop importing the action-group press tracking statically, and with it the gesture host and the long-press recognizer. Verified: the ButtonGroup and ToggleButton boundary entries pass on the head and fail on the base, and AlertDialog's static graph no longer reaches the tracking, the gesture host or the long-press recognizer.
  • Claim: the groups render the tracking as a touch-runtime part, a sibling after the group element, once the shared loader has loaded it. Verified: AlertDialog.tsx:239-257 and :339, useGroupPressTracking.ts:146-173, ButtonGroup.tsx:263, ToggleButtonGroup.tsx:304, touchRuntimeModules.tsx:134-155.
  • Claim: not a bug fix or a feature; nothing changes after the load, and there is no API change. Verified: identical tracking options, the tracking suites pass, the built API surfaces show no row, and the Chromium frame after the load matches the base.
  • Claim: pages with these components download less JavaScript before first paint. Verified that the gesture code leaves their static graph (AlertDialog keeps the animator); the size was not measured here and the description defers it.
  • Claim: the pre-load window is first paint, then idle, at most 2 s. Partly true: the load starts at most 2 s after first paint (touchRuntime.ts:41, :90-102); the window then lasts until the chunk has downloaded, or for the page's life if it fails.
  • Claim: before the load, a held finger or pen does not slide across a group's actions. Verified: the new no-slide test passes on the head and fails on the base.
  • Claim: before the load, each action keeps its own press and runs by its own click, and keys work as always. False for the press: a finger or pen held on a tracked action paints nothing (Chromium for all three groups, jsdom for ButtonGroup); a direct tap's own click is not intercepted, and the keyboard paths are unchanged.
  • Claim: a press in flight at the load finishes that way, and the next one is tracked. Verified by reading: the part attaches only when it mounts. No test covers it.
  • Claim: the group hook now also returns trackingPart, and a caller that does not render it gets no slide. Verified; both callers render it.
  • Claim: the Lab follow-up and the internal entry change come with other pull requests. About other pull requests; not checked here.
  • Claim: before the change, AlertDialog called the tracking hook directly and the two groups through the group hook, which builds on the gesture and long-press recognizers. Verified from the base imports.
  • Claim: the finger-target helpers hold no gesture code, move to their own module and are re-exported from the old hook. Verified.
  • Claim: INV13's gap line drops the old hook. Verified; it keeps AlertDialog's motion hook.
  • Claim: no static path from the AlertDialog, ButtonGroup or ToggleButton entries reaches the animator or the gesture host. False for AlertDialog, which reaches the animator through its motion hook (third finding).
  • Claim: red first, the AlertDialog, ButtonGroup and ToggleButton boundary entries and the no-slide test fail on the branch below. Verified for ButtonGroup, ToggleButton and the no-slide test (3 fail on the issued base); the AlertDialog entry is no longer in the test (third finding).
  • Claim: the tracking suites load the runtime first, and the touched suites, the Core typecheck and the knowledge check pass. Verified.
  • Claim: only INV13's gap line changes in the records. False (fourth finding).
  • Claim: public text and artifacts contain no internal context. Verified.
  • File docs/architecture/react-component-runtime.md: proposed text awaiting owner approval; the code does not deliver its pre-load press (first finding), and the description omits it (fourth).
  • File docs/families/action-groups.md: the same.
  • File AlertDialog.tsx: first finding; its comment at 240-241.
  • File AlertDialog.test.tsx: clear.
  • File ButtonGroup.tsx: first finding.
  • File ButtonGroupTracking.test.tsx: the new test sends touch events only, so it cannot catch the first finding.
  • File ToggleButtonGroup.tsx: first finding.
  • File ToggleButtonGroupTracking.test.tsx: clear.
  • File actionGroupNeighbours.ts: clear.
  • File useActionGroupTracking.ts: non-blocking notes on its header and import placement.
  • File useGroupPressTracking.ts: first finding; stale header and comment at 124-126.
  • File touchRuntime.boundary.test.ts: clear; dropping AlertDialog's entry matches INV13's gap line (third finding is about the description).
  • File touchRuntimeModules.tsx: clear.
  • No changeset: second finding.

Automated review (maintainer link)

@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.

Approval waits on an engineering owner, and four fixes are needed. Moving the action-group press tracking behind the touch runtime works once the runtime has loaded, but the record text this pull request adds has no owner approval at this head, and before the load the three groups are left half-tracked.

  • Approval needs an engineering owner to accept or amend the sentences this pull request adds to INV13 in architecture:react-component-runtime (each action in AlertDialog, ButtonGroup and ToggleButtonGroup keeps its own press with no slide until the touch runtime loads, and the hooks/actionGroupNeighbours.ts sentence and gap-line edit) and to family:action-groups FR1, by commenting /approve-spec 6513dccbf21bdcdf7fa173ea20cb8f6539c5a11e; the author may do so as an engineering owner.
  • Before the touch runtime loads, ButtonGroup, ToggleButtonGroup and AlertDialog still mark their actions as tracked (ButtonGroup.tsx:259, ToggleButton.tsx:352-358, AlertDialog.tsx:332-333) while no tracker is mounted, so a finger or pen press on an action paints nothing and a tap in a group's 44 px band runs nothing, against family:action-groups FR2 and FR5 and the new "keeps its own press" sentence: key the marker and the band on the tracker being mounted and cover both with pointer-event tests.
  • The change ships @astryxdesign/core source with no changeset in its own range, which scripts/release/changeset-coverage.mjs rejects: add one, or extend touch-runtime-after-first-paint, saying what changes for the three groups before the runtime loads.
  • Regression: the description says no static path from the AlertDialog entry reaches motion/animator and lists AlertDialog's boundary entry as red first, but after the base-branch merge AlertDialog still imports the animator through useAlertMotion and this head drops that entry, so say AlertDialog sheds only the gesture host and the long-press recognizer.
  • The description says only INV13's gap line changes in the records, but the head also adds the pre-load and actionGroupNeighbours.ts sentences to INV13 and a pre-load sentence to family:action-groups FR1, so update Authority, Change and evidence and the writing rubric results.

architecture:component-import-boundaries INV10 also asks a change that grows the shared hooks/useGroupPressTracking.ts for its first-load gzip delta; none of the four reference pages reaches the hook, so please add the base-against-head delta for a page that renders one of these groups. The comments at AlertDialog.tsx:240-241 and useGroupPressTracking.ts:124-126, and the two hooks' headers, should match whatever the fix does.

Claims and files checked

Review mode: carry-forward; reason: none

  • Claim: the three groups stop importing the action-group press tracking statically, and with it the gesture host and the long-press recognizer. Verified: the ButtonGroup and ToggleButton boundary entries pass on the head and fail on the base, and AlertDialog's static graph no longer reaches the tracking, the gesture host or the long-press recognizer.
  • Claim: the groups render the tracking as a touch-runtime part, a sibling after the group element, once the shared loader has loaded it. Verified: AlertDialog.tsx:239-257 and :339, useGroupPressTracking.ts:146-173, ButtonGroup.tsx:263, ToggleButtonGroup.tsx:304, touchRuntimeModules.tsx:134-155.
  • Claim: not a bug fix or a feature; nothing changes after the load, and there is no API change. Verified: identical tracking options, the tracking suites pass, the built API surfaces show no row, and the Chromium frame after the load matches the base.
  • Claim: pages with these components download less JavaScript before first paint. Verified that the gesture code leaves their static graph (AlertDialog keeps the animator); the size was not measured here and the description defers it.
  • Claim: the pre-load window is first paint, then idle, at most 2 s. Partly true: the load starts at most 2 s after first paint (touchRuntime.ts:41, :90-102); the window then lasts until the chunk has downloaded, or for the page's life if it fails.
  • Claim: before the load, a held finger or pen does not slide across a group's actions. Verified: the new no-slide test passes on the head and fails on the base.
  • Claim: before the load, each action keeps its own press and runs by its own click, and keys work as always. False for the press: a finger or pen held on a tracked action paints nothing (Chromium for all three groups, jsdom for ButtonGroup); a direct tap's own click is not intercepted, and the keyboard paths are unchanged.
  • Claim: a press in flight at the load finishes that way, and the next one is tracked. Verified by reading: the part attaches only when it mounts. No test covers it.
  • Claim: the group hook now also returns trackingPart, and a caller that does not render it gets no slide. Verified; both callers render it.
  • Claim: the Lab follow-up and the internal entry change come with other pull requests. About other pull requests; not checked here.
  • Claim: before the change, AlertDialog called the tracking hook directly and the two groups through the group hook, which builds on the gesture and long-press recognizers. Verified from the base imports.
  • Claim: the finger-target helpers hold no gesture code, move to their own module and are re-exported from the old hook. Verified.
  • Claim: INV13's gap line drops the old hook. Verified; it keeps AlertDialog's motion hook.
  • Claim: no static path from the AlertDialog, ButtonGroup or ToggleButton entries reaches the animator or the gesture host. False for AlertDialog, which reaches the animator through its motion hook (third finding).
  • Claim: red first, the AlertDialog, ButtonGroup and ToggleButton boundary entries and the no-slide test fail on the branch below. Verified for ButtonGroup, ToggleButton and the no-slide test (3 fail on the issued base); the AlertDialog entry is no longer in the test (third finding).
  • Claim: the tracking suites load the runtime first, and the touched suites, the Core typecheck and the knowledge check pass. Verified.
  • Claim: only INV13's gap line changes in the records. False (fourth finding).
  • Claim: public text and artifacts contain no internal context. Verified.
  • File docs/architecture/react-component-runtime.md: proposed text awaiting owner approval; the code does not deliver its pre-load press (first finding), and the description omits it (fourth).
  • File docs/families/action-groups.md: the same.
  • File AlertDialog.tsx: first finding; its comment at 240-241.
  • File AlertDialog.test.tsx: clear.
  • File ButtonGroup.tsx: first finding.
  • File ButtonGroupTracking.test.tsx: the new test sends touch events only, so it cannot catch the first finding.
  • File ToggleButtonGroup.tsx: first finding.
  • File ToggleButtonGroupTracking.test.tsx: clear.
  • File actionGroupNeighbours.ts: clear.
  • File useActionGroupTracking.ts: non-blocking notes on its header and import placement.
  • File useGroupPressTracking.ts: first finding; stale header and comment at 124-126.
  • File touchRuntime.boundary.test.ts: clear; dropping AlertDialog's entry matches INV13's gap line (third finding is about the description).
  • File touchRuntimeModules.tsx: clear.
  • No changeset: second finding.

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 6513dcc

@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 record text this pull request adds is now owner-approved at this head, and moving the action-group press tracking behind the touch runtime works once the runtime has loaded, but four fixes remain.

  • Before the touch runtime loads, ButtonGroup, ToggleButtonGroup and AlertDialog still mark their actions as tracked (ButtonGroup.tsx:259, ToggleButton.tsx:352-358, AlertDialog.tsx:332-333) while no tracker is mounted, so a finger or pen press on an action paints nothing and a tap in a group's 44 px band runs nothing, against family:action-groups FR2 and FR5 and the approved "keeps its own press" sentence: key the marker and the band on the tracker being mounted and cover both with pointer-event tests.
  • The change ships @astryxdesign/core source with no changeset in its own range, which scripts/release/changeset-coverage.mjs rejects: add one, or extend touch-runtime-after-first-paint, saying what changes for the three groups before the runtime loads.
  • Regression: the description says no static path from the AlertDialog entry reaches motion/animator and lists AlertDialog's boundary entry as red first, but AlertDialog still imports the animator through useAlertMotion and the boundary test has no AlertDialog entry, so say AlertDialog sheds only the gesture host and the long-press recognizer.
  • The description says only INV13's gap line changes in the records, but the head also adds the pre-load and actionGroupNeighbours.ts sentences to INV13 and a pre-load sentence to family:action-groups FR1, so update Authority, Change and evidence and the writing rubric results.

architecture:component-import-boundaries INV10 also asks a change that grows the shared hooks/useGroupPressTracking.ts for its first-load gzip delta; please add the base-against-head delta for a page that renders one of these groups. The comments at AlertDialog.tsx:240-241 and useGroupPressTracking.ts:124-126, and the two hooks' headers, should match whatever the fix does.

Claims and files checked

Review mode: same-head; reason: none

  • Claim: the three groups stop importing the action-group press tracking statically, and with it the gesture host and the long-press recognizer. Verified: the ButtonGroup and ToggleButton boundary entries pass on the head and fail on the base, and AlertDialog's imports no longer reach the tracking hook.
  • Claim: the groups render the tracking as a touch-runtime part, a sibling after the group element, once the shared loader has loaded it. Verified: AlertDialog.tsx:242-257 and :339, useGroupPressTracking.ts:146-167, ButtonGroup.tsx:263, ToggleButtonGroup.tsx:304, touchRuntimeModules.tsx:134-155.
  • Claim: not a bug fix or a feature; nothing changes after the load, and there is no API change. Verified: identical tracking options, the tracking suites pass, and the built API surfaces show no row.
  • Claim: pages with these components download less JavaScript before first paint. Verified that the gesture code leaves their static graph (AlertDialog keeps the animator); the size is deferred by the description.
  • Claim: the pre-load window is first paint, then idle, at most 2 s. Partly true: the load starts at most 2 s after first paint (touchRuntime.ts:41); the window then lasts until the chunk has downloaded, or for the page's life if it fails.
  • Claim: before the load, a held finger or pen does not slide across a group's actions. Verified: the new no-slide test passes on the head and fails on the base.
  • Claim: before the load, each action keeps its own press and runs by its own click, and keys work as always. False for the press: a finger or pen held on a tracked action paints nothing (first finding); a direct tap's own click is not intercepted, and the keyboard paths are unchanged.
  • Claim: a press in flight at the load finishes that way, and the next one is tracked. Verified by reading: the part attaches only when it mounts.
  • Claim: the group hook now also returns trackingPart, and a caller that does not render it gets no slide. Verified; both callers render it.
  • Claim: the Lab follow-up and the internal entry change come with other pull requests. About other pull requests; not checked here.
  • Claim: before the change, AlertDialog called the tracking hook directly and the two groups through the group hook, which builds on the gesture and long-press recognizers. Verified from the base imports.
  • Claim: the finger-target helpers hold no gesture code, move to their own module and are re-exported from the old hook. Verified (actionGroupNeighbours.ts, useActionGroupTracking.ts:96-98).
  • Claim: INV13's gap line drops the old hook. Verified; it keeps AlertDialog's motion hook.
  • Claim: no static path from the AlertDialog, ButtonGroup or ToggleButton entries reaches the animator or the gesture host. False for AlertDialog, which reaches the animator through its motion hook (third finding).
  • Claim: red first, the AlertDialog, ButtonGroup and ToggleButton boundary entries and the no-slide test fail on the branch below. Verified for ButtonGroup, ToggleButton and the no-slide test; the test has no AlertDialog entry (third finding).
  • Claim: the tracking suites load the runtime first, and the touched suites, the Core typecheck and the knowledge check pass. Verified.
  • Claim: only INV13's gap line changes in the records. False (fourth finding).
  • Claim: public text and artifacts contain no internal context. Verified.
  • File docs/architecture/react-component-runtime.md: owner-approved text; the code does not deliver its pre-load press (first finding), and the description omits it (fourth).
  • File docs/families/action-groups.md: the same.
  • File AlertDialog.tsx: first finding; its comment at 240-241.
  • File AlertDialog.test.tsx: clear.
  • File ButtonGroup.tsx: first finding.
  • File ButtonGroupTracking.test.tsx: the new test sends touch events only, so it cannot catch the first finding.
  • File ToggleButtonGroup.tsx: first finding.
  • File ToggleButtonGroupTracking.test.tsx: clear.
  • File actionGroupNeighbours.ts: clear.
  • File useActionGroupTracking.ts: non-blocking notes on its header and import placement.
  • File useGroupPressTracking.ts: first finding; stale header and comment at 124-126.
  • File touchRuntime.boundary.test.ts: clear.
  • File touchRuntimeModules.tsx: clear.
  • No changeset: second finding.

Automated review (maintainer link)

This branch was successfully deployed

1 active deployment
Preview — 6513dccb Deployed Nov 14, 2026 by vercel[bot]
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