Skip to content

architecture(react-component-runtime): INV13 lists the sheet drag's jobs the public gesture layer does not cover - #8751

Merged
cixzhang merged 3 commits into
meta:mainfrom
vjeux:uikit/c17-inv13-sheet-gaps
Oct 27, 2026
Merged

cixzhang merged 3 commits into
meta:mainfrom
vjeux:uikit/c17-inv13-sheet-gaps

Conversation

@vjeux

@vjeux vjeux commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Exact decision needed

Whether architecture:react-component-runtime INV13's known public-API gap list names these jobs that spec:AST-107's public layer does not expose, so that components may reach the internal modules for them (FR7):

  • 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 (spec:AST-094 FR36);
  • a drag on one element that moves another (a sheet's handle and body move the sheet);
  • the animator's jobs beyond FR3's handle: a motion role other than springs.stateChange (spec:AST-094 FR4, spec:AST-108 FR3), 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 past flickThreshold, or back to the start) on springs.settle. FR3's animator moves one element's x, y, scale, rotate and opacity, with no spring choice. DEC-1 keeps the machinery internal.
  • INV13 already lists the selection lock, the holds, custom recognizer relationships, the host, velocity, the rubber band, haptics, long press, the rectangle morph, the spring helpers and UIKit's tables, the touch query and the cross-fade constants, but not these jobs.
  • spec:AST-094 FR4–FR6, FR14, FR19, FR36; spec:AST-100 FR3.
  • Open pull requests: the public factories, and one INV12 edit in this file; none changes INV13's list.

Decision

INV13's gap list gains these jobs; nothing else changes.

Rejected alternatives

  • Growing FR2 or FR3 so these uses sit on the public layer: it hands out machinery, against spec:AST-107 DEC-1.

Claim scope and non-goals

  • The gap list's entries only. No public API or component behavior changes.
  • How the sheet decides a release is implementation and stays outside the record.

Evidence and implementation relationship

The sheet's release projects by the measured sheet.release.projectionSeconds over 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

  • R1 narration: none; the entries are noun phrases describing jobs.
  • R2 research in the record: none.
  • R3 evidence naming a change: none; the entries cite spec:AST-094, spec:AST-108 and design:reduced-motion requirements.
  • R4 rejected alternatives over one line or outside a decision: none in the record; the one alternative is in this description.
  • R5 pull request or issue references remaining: none.
  • R6 ruled open questions still listing options: none.

Scope

  • This PR contains specification records only.
  • It records observable behavior and preserves equivalent internal implementations.
  • Any named internal mechanism is intentionally public, names its dependent caller/system, and explains why an equivalent implementation would not satisfy the contract.
  • Verification states the evidence layer and failure signal without prescribing CI job/workflow topology.
  • It records one intentional durable decision, not a rescue for a separable tagalong.
  • The canonical knowledge owner, affected current claims, and overlapping open work are named; any ownership collision is resolved or called out for human decision.
  • Adjacent API, visual, accessibility, composition, and implementation facts remain outside scope unless this exact decision depends on them.
  • Public text and artifacts contain no internal Meta context.

The decision is the record owner's.

Validation

  • pnpm check:knowledge: knowledge templates and records are aligned.
  • Prettier: clean.
  • git diff --check: clean.

…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).
@vercel

vercel Bot commented Oct 27, 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 Oct 27, 2026 10:50pm UTC

Request Review

@vjeux
vjeux requested a review from josephfarina as a code owner October 27, 2026 21:33
@astracat-bot

astracat-bot Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Oct 27, 2026, 11:12 PM UTC

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

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

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]

Comment on lines +208 to +210
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

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

@cixzhang

Copy link
Copy Markdown
Contributor

Posted by Cindy's agent on her behalf.

Thanks. These three rows are the kind of gap spec:AST-107 FR7 asks INV13 to list, so they're covered by Cindy's decision that Core and Lab use the public layer except for listed gaps. One rewording: the dim animation on ::backdrop isn't a touch-module gap. architecture:layer-runtime INV14 already makes the layer runtime own the backdrop tint, so please cite INV14 for the dim instead of listing it as a gap. Row 3 then covers only the drag on one element that moves another. With that change, this can be approved. If it stays idle, we'll make the edit after about 30 minutes, keeping your authorship.

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

Copy link
Copy Markdown
Contributor

/approve-spec 56f0dab

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

vjeux commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

Thanks, done in 56f0dab: row 3 is the drag alone, and the sheet's dim cites architecture:layer-runtime INV14 as the layer runtime's backdrop tint. One addition since your comment: the animator's jobs beyond FR3's handle (other motion roles, closed-form curves, the Reduce Motion substitution), which Core's components reach the internal animator for. Its ::backdrop target came out with the dim.

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

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]

Comment on lines +213 to +215
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.

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.

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.

This branch was successfully deployed

1 active deployment
Preview — 56f0dab3 Deployed Oct 27, 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.

2 participants