Repository navigation
docs(spec): useMenuPress states its boundary with core's group tracker - #8572
Conversation
…ion-group tracker The track-across-items loop useMenuPress owns is the same job as core's internal action-group tracker. The record now says the loop moves into the tracker in the change after the in-flight menu press work, that useMenuPress then keeps only its menu-only parts, and that no third copy is added meanwhile.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report
Generated by PR Enrichment workflow | View current CI run |
There was a problem hiding this comment.
Approval waits on an engineering owner deciding whether useMenuPress's track-across-items loop should move into core's internal action-group tracker, with no third copy meanwhile: no current record establishes that direction, and an engineering owner (the author may, as one) records the decision by commenting /approve-spec <full head SHA> on the head they approve. If the direction is approved, the paragraph still needs these changes, so approving the reworked head avoids a second approval:
- It narrates a planned change ("recorded 2026-10-26", "the change after the in-flight menu press work", "once it lands"), which
architecture:knowledge-contractsINV10 keeps out of current records, so state only durable facts there and keep the plan in the pull request. - It names the internal
hooks/actionGroupTracker.ts, which is not onmain, while INV18 places internal seams in an architecture record rather than a module contract. - The description needs the
## Writing rubric resultssection that knowledge-contracts asks of every pull request that changes a record.
[Automated review]
…ithout an internal file name The ownership boundary now says, as a durable fact, that tracking a held finger across a control group's targets outside a menu or picker is core's internal group tracker's, that its loop is the same job as this module's tracking, and that no third copy is added (knowledge-contracts INV10, INV18).
There was a problem hiding this comment.
Approval waits on an engineering owner providing the governing spec for this addition, which no current spec establishes: whether useMenuPress's non-goals should assign held-finger tracking across control groups outside menus and pickers to core's internal group tracker, with no third copy of that loop, a decision an engineering owner (the author may, as one) records by commenting /approve-spec <full head SHA> on the head they approve. If the direction is approved, the bullet still needs two changes, so approving the reworked head avoids a second approval:
- The tracker it names is not on
main(only #8127 adds it, and nothing tracks page-control dots), so the current record would point readers at an owner that does not exist yet; land the bullet with or after the tracker. - An internal owner and a one-loop rule belong in an architecture record under
architecture:knowledge-contractsINV18, asarchitecture:interaction-modalityINV10 does for the velocity tracker, with this module keeping only the caller-visible boundary.
[Automated review]
|
/approve-spec b789149 |
There was a problem hiding this comment.
Changes requested, for the pull request description only: the record change itself points to the press-tracking owner that architecture:interaction-modality INV13 and family:action-groups already name, and an engineering owner approved this head.
- The description's Change section still describes an earlier bullet ("a segmented control's segments, a page control's dots", "no third copy is added"), but the bullet at
useMenuPress.spec.mdlines 136–139 names neither control, andfamily:action-groupsmakes SegmentedControl a named exception and Pagination a non-member, so please reword it to describe the INV13 pointer and the newfamily:action-groupsreference.
Editing the description needs no new commit, so the approval for this head still stands.
[Automated review]
There was a problem hiding this comment.
Approved: the new "Does not own" item points to the press-tracking owner that architecture:interaction-modality INV13 and family:action-groups already name, an engineering owner approved this head, and the description now matches the record change.
- Optional: the Maintainer impact says
useMenuPressruns MultiSelector's options, but MultiSelector does not mount it yet (INV13 records that gap); consider "runs menus and Selector's options and owns MultiSelector's".
[Automated review]
|
Decision: D-20261111-410 |
Maintainer impact
Core has two trackers of a held finger moving across a group of targets:
useMenuPress, which runs menus and Selector's and MultiSelector's options, and the internal module thatfamily:action-groupsmembers share. The record now says where that boundary sits, so no third copy appears.Change
module:DropdownMenu/useMenuPress's "Does not own" list gains one item: tracking a held finger across an action-group's targets outside menus and those options belongs to the one internal module thatarchitecture:interaction-modalityINV13 names forfamily:action-groupsmembers. The record addsfamily:action-groupsto its related records. This module covers menus and Selector's and MultiSelector's options only.There is no behavior, API or code change, and the module's Owns list is unchanged.
Writing rubric results
Testing
pnpm check:knowledge: records aligned.