Repository navigation
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
/approve-spec f5a76f6 |
|
AI review status for this pull request.
|
There was a problem hiding this comment.
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-groupsFR2): key the marker, and the group hit band, on the tracker being mounted, and cover it with pointer-event tests. - The change ships
@astryxdesign/coresource without a changeset naming that package, which the repository's changeset-coverage check rejects: extend thetouch-runtime-after-first-paintchangeset 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:
useGroupPressTrackingreturnstrackingPart, 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.
| isEnabled: isTracking, | ||
| }); | ||
| // The tracking comes with the shared touch runtime, which loads after | ||
| // first paint. Until then each action keeps its own press. |
There was a problem hiding this comment.
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.
| * element. It is `null` until the runtime has loaded; until then each | ||
| * member keeps its own press. |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
Non-blocking: this import sits below const NO_TARGETS. It works because imports hoist, but it belongs in the import block at the top.
|
/approve-spec f305fb8 |
There was a problem hiding this comment.
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, againstfamily:action-groupsFR2 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/coresource with no changeset in its own range, whichscripts/release/changeset-coverage.mjsrejects: extend thetouch-runtime-after-first-paintchangeset 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
actionGroupNeighbourssentences to INV13 and a pre-load sentence tofamily:action-groupsFR1, 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-220and: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-groupsFR1 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.
| INV13), each action in AlertDialog, ButtonGroup and ToggleButtonGroup keeps | ||
| its own press, with no slide between actions. |
There was a problem hiding this comment.
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.
|
/approve-spec 0b72e35 |
There was a problem hiding this comment.
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, againstfamily:action-groupsFR2 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/coresource with no changeset in its own range, whichscripts/release/changeset-coverage.mjsrejects: extend thetouch-runtime-after-first-paintchangeset 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-groupsFR1, 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-220and: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-groupsFR1 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.
# Conflicts: # docs/architecture/react-component-runtime.md
|
/approve-spec 75bddae |
|
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. |
There was a problem hiding this comment.
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, againstfamily:action-groupsFR2 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/coresource with no changeset in its own range, whichscripts/release/changeset-coverage.mjsrejects: extend thetouch-runtime-after-first-paintchangeset 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-groupsFR1, 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-220and: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-groupsFR1 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.
There was a problem hiding this comment.
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 thehooks/actionGroupNeighbours.tssentence and gap-line edit) and tofamily:action-groupsFR1, 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, againstfamily:action-groupsFR2 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/coresource with no changeset in its own range, whichscripts/release/changeset-coverage.mjsrejects: extend thetouch-runtime-after-first-paintchangeset 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-groupsFR1, 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-220and: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.
|
/approve-spec 7e7c956 |
There was a problem hiding this comment.
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, againstfamily:action-groupsFR2 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/coresource with no changeset in its own range, whichscripts/release/changeset-coverage.mjsrejects: extend thetouch-runtime-after-first-paintchangeset 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.tssentences to INV13 and a pre-load sentence tofamily:action-groupsFR1, 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-220and: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.
# 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.
There was a problem hiding this comment.
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 thehooks/actionGroupNeighbours.tssentence and gap-line edit) and tofamily:action-groupsFR1, 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, againstfamily:action-groupsFR2 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/coresource with no changeset in its own range, whichscripts/release/changeset-coverage.mjsrejects: add one, or extendtouch-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/animatorand lists AlertDialog's boundary entry as red first, but after the base-branch merge AlertDialog still imports the animator throughuseAlertMotionand 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.tssentences to INV13 and a pre-load sentence tofamily:action-groupsFR1, 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-257and: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.
There was a problem hiding this comment.
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 thehooks/actionGroupNeighbours.tssentence and gap-line edit) and tofamily:action-groupsFR1, 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, againstfamily:action-groupsFR2 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/coresource with no changeset in its own range, whichscripts/release/changeset-coverage.mjsrejects: add one, or extendtouch-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/animatorand lists AlertDialog's boundary entry as red first, but after the base-branch merge AlertDialog still imports the animator throughuseAlertMotionand 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.tssentences to INV13 and a pre-load sentence tofamily:action-groupsFR1, 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-257and: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.
|
/approve-spec 6513dcc |
There was a problem hiding this comment.
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, againstfamily:action-groupsFR2 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/coresource with no changeset in its own range, whichscripts/release/changeset-coverage.mjsrejects: add one, or extendtouch-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/animatorand lists AlertDialog's boundary entry as red first, but AlertDialog still imports the animator throughuseAlertMotionand 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.tssentences to INV13 and a pre-load sentence tofamily:action-groupsFR1, 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-257and: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.
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
useGroupPressTrackingnow also returnstrackingPart, which a group renders after its group element; before the touch runtime loads, each action keeps its own press. A caller that doesn't render it gets no slide. The hook reaches the internal touch entry with chore(core): the internal touch entry exposes group press tracking to Lab #11283, and Lab's Rating (chore(core): the internal touch entry exposes group press tracking to Lab #11283, feat(lab): add Rating, a star rating input and read-only display #11082) must rendertrackingPart. Whichever of this and chore(core): the internal touch entry exposes group press tracking to Lab #11283 lands second adds that contract sentence to INV13's internal-entry list.Problem and solution fit
hooks/useActionGroupTrackingbuilds its press ongestures/useGestureRecognizerandLongPressGestureRecognizer. AlertDialog called it directly, and ButtonGroup and ToggleButtonGroup called it throughhooks/useGroupPressTracking, so all three carried the gesture host in their static graph.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.resolveNearestActionandmeasureNeighbourshold no gesture code. They move tohooks/actionGroupNeighbours.tssouseGroupPressTrackingcan read them statically.useActionGroupTrackingre-exports them.Authority
architecture:react-component-runtimeINV13 andspec:AST-080DEC-5, as amended in #11450. INV13's gap line dropshooks/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.motion/animatororgestures/GestureHost.Scope
Components: AlertDialog, ButtonGroup, ToggleButtonGroup, hooks/useGroupPressTracking, hooks/useActionGroupTracking
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:
beforeAll.check:knowledge.Writing rubric results
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.