Repository navigation
architecture(react-component-runtime): INV13 lists the sheet drag's jobs the public gesture layer does not cover - #8751
Conversation
…obs the public gesture layer does not cover The known public-API gap list gains three jobs BottomSheet's drag does that spec:AST-107's public layer does not expose: a pull that a scroll area hands over only at its edge (spec:AST-094 FR14, FR19); a snap-point drag whose release can dismiss its surface, judged by the use's measured projection (FR36); and a drag on one element that moves another, with a pseudo-element's animation (the sheet's dim on its ::backdrop).
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
…s beyond the public handle The gap list names what components reach the internal animator for that spec:AST-107 FR3's public handle does not offer: a motion role other than springs.stateChange, a closed-form curve played with retargets, a companion on its clock and a chosen start, the Reduce Motion substitution for a move, an entrance or an exit, and a pseudo-element target such as a dialog's ::backdrop. The sheet's drag entry keeps only the drag that moves another element; its dim is the pseudo-element target.
There was a problem hiding this comment.
This spec change is on hold for an engineering owner's decision: it amends architecture:react-component-runtime INV13, a current invariant, and the spec-owner-approval check is still pending for this head. An engineering owner, including the author if they are one, records approval by commenting /approve-spec <full head SHA> on this pull request if the three new gap entries stand as worded. One point to settle first: the third entry's first clause, “a drag on one element that moves another”, is also served by spec:AST-107 FR1's usePanGesture values applied through FR3's animator, so only its ::backdrop animation is a gap the public layer leaves open, and narrowing the entry to that would keep FR7's boundary check meaningful. The citations of spec:AST-094 FR14, FR19 and FR36 check out, and no other record needs to change.
[Automated review]
| FR36); a drag on one element that moves another, and a pseudo-element's | ||
| animation (a sheet's handle and scrolling body move the sheet, whose dim | ||
| animates its `::backdrop`); and the touch hit-area expansion. Components import |
There was a problem hiding this comment.
This entry's first clause, “a drag on one element that moves another”, overlaps spec:AST-107 FR1: usePanGesture reports {state, translation, velocity} for a drag on its element, and a component can apply those values to another element through FR3's animator, while spring choice is already the listed “spring and curve helpers” gap. Only the ::backdrop animation is a job the public layer leaves open. As worded, FR7's boundary check would accept any component that tracks a separate drag surface through the recognizers instead of createPanGesture; consider narrowing the entry to the pseudo-element's animation, or stating why the public pan cannot serve the sheet's handle.
|
Posted by Cindy's agent on her behalf. Thanks. These three rows are the kind of gap |
…s backdrop tint for the sheet's dim The sheet's dim on ::backdrop is the layer runtime's backdrop tint (architecture:layer-runtime INV14), not a touch-module gap: the sheet-drag entry cites INV14 for it, and the animator entry no longer lists a pseudo-element target.
|
/approve-spec 56f0dab |
|
Thanks, done in 56f0dab: row 3 is the drag alone, and the sheet's dim cites |
There was a problem hiding this comment.
This architecture:react-component-runtime INV13 amendment is ready to merge: an engineering owner approved this exact head, and the requirements its four new gap entries cite resolve on main. Optionally, refresh the description, which still lists a ::backdrop pseudo-element target that the record now routes to architecture:layer-runtime INV14. If you also tighten the entry, by narrowing the Reduce Motion clause to what spec:AST-107 FR3's public handle lacks (choosing the entrance or exit cross-fade) or citing spec:AST-108 FR4a for the companion's shared clock, the new head needs a fresh /approve-spec.
[Automated review]
| retargets, a companion on its clock and a chosen start (`spec:AST-094` FR5, | ||
| FR6), and the Reduce Motion substitution for a move, an entrance or an exit | ||
| (`design:reduced-motion` DR1–DR3); and the touch hit-area expansion. |
There was a problem hiding this comment.
Optional: spec:AST-107 FR3 already says of the public handle “Reduce Motion is planned for every animation (design:reduced-motion DR1–DR3)”, so this clause reads wider than the gap; what the handle lacks is choosing the entrance or exit cross-fade for travel whose own opacity does not say (the internal animator's crossfadeAs). The companion's shared clock is stated by spec:AST-108 FR4a (“Coordinated animations share one clock”), not by FR5 or FR6. Neither blocks: the list as worded has exact-head owner approval, and a new commit would need a fresh one.
Exact decision needed
Whether
architecture:react-component-runtimeINV13's known public-API gap list names these jobs thatspec:AST-107's public layer does not expose, so that components may reach the internal modules for them (FR7):spec:AST-094FR14, FR19);spec:AST-094FR36);springs.stateChange(spec:AST-094FR4,spec:AST-108FR3), a closed-form curve with retargets, a companion on its clock and a chosen start (FR5, FR6), the Reduce Motion substitution for a move, an entrance or an exit (design:reduced-motion), and a pseudo-element target such as::backdrop.Existing authority searched
spec:AST-107: FR2's snap-point drag pans the element itself and lands on px offsets (nearest, next pastflickThreshold, or back to the start) onsprings.settle. FR3's animator moves one element'sx,y,scale,rotateandopacity, with no spring choice. DEC-1 keeps the machinery internal.spec:AST-094FR4–FR6, FR14, FR19, FR36;spec:AST-100FR3.Decision
INV13's gap list gains these jobs; nothing else changes.
Rejected alternatives
spec:AST-107DEC-1.Claim scope and non-goals
Evidence and implementation relationship
The sheet's release projects by the measured
sheet.release.projectionSecondsover its detents and the dismissed position, on UIKit's sheet springs; the public snap-point drag has neither and moves only the element it pans. The animator entries are the internal animator's uses in Core today.Writing rubric results
spec:AST-094,spec:AST-108anddesign:reduced-motionrequirements.Scope
The decision is the record owner's.
Validation
pnpm check:knowledge: knowledge templates and records are aligned.git diff --check: clean.