Skip to content

docs(AST-094, AST-057): motion guidance; gesture springs; swipe-row returns - #9915

Merged
cixzhang merged 17 commits into
mainfrom
docs/motion-guidance-gesture-springs
Nov 5, 2026
Merged

cixzhang merged 17 commits into
mainfrom
docs/motion-guidance-gesture-springs

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Motion follows each component's main interaction: in a component people drag, swipe or pinch (a sheet, a swipe row, the Lightbox, a Switch thumb under touch), every move settles on that component's springs, a tap included; in a component people tap (a menu, a Dialog, an Accordion), motion plays the theme's curve tokens. Companion motion keeps the main motion's pace, and springs pair with the theme's timing tiers. Records only.

Exact decision needed

None. This records the owner's 2026-11-04 decisions: motion follows a component's main interaction, companions keep its pace, and springs pair with timing tiers. It brings the touch, exit and component records into line with spec:AST-094 FR45.

Existing authority searched

  • spec:AST-094 FR4, FR45 and DEC-26 (as merged), and the generated motion-roles page.
  • spec:AST-057 FR5 and FR7 (swipe-row returns and closes).
  • component:DateInput FR14 (the sheet wheel's turn).
  • Current source on main for the wheel's touch presentation.

Decision

  1. AST-094 FR4: "A gesture-driven motion (a release, fling or settle) may play a spring measured from the platform reference without a named motion role (FR45); every other motion plays a motion role." FR4's "MUST NOT play a literal" now carves out that one measured gesture spring. A new verification line passes a gesture-driven exit playing a measured table spring and fails a program-started one.

  2. Motion guidance:

    • The owner's words open the motion-roles page's intro, attributed to "the owner": "The guidance im thinking is: timing should be coordinated between spring and motion curve tokens, then use spring for gestures where velocity matters, use motion curves for taps presses and other non gesture motion."
    • FR45 adds the rule: "Springs drive motion a gesture carries velocity into; curve tokens (a duration plus an easing) drive taps, presses and every other non-gesture motion. Spring and curve timing share one coordinated scale, so the theme's tempo scales both (implementation gap: springs are tuned independently today; the mapping is an open owner decision)."
  3. AST-057: "springs back" becomes "returns" in the Contract-at-a-glance Behavior row and the one-destructive-action, reversible-toggle, soft-delete and chooser cases. FR7's verification row now also fails a swipe close that starts from rest instead of the release velocity. (The earlier tap-return wording is withdrawn: swipe rows are a gesture component under item 7.) FR5's tap-fired return, the non-goal and the current-state gap now play the row's spring from rest, matching FR7 (item 8).

  4. DateInput FR14's implementation gap: "With the touch presentation, a turn onto a row plays picker.tapSpin, whatever pointer starts it; without it, the wheel is a scrolling column and a click or key turn plays the browser's smooth scroll."

  5. AST-094 FR45, the general rule: superseded by item 7. The geometry-keyed curve arm is removed again from FR45, DEC-26 and Lightbox FR5.

  6. AST-094 FR45, picking tokens: "A motion a tap, key or the program starts, for which the platform has a measured duration, plays the theme duration token whose value in the Storybook theme (neutral) is nearest that measurement, with the easing for its kind (entrance, exit or move); the measured value stays a reference in the component's motion table. Small anchored surfaces (a popover, a menu, a toggle, a row) and full-screen surfaces (a dialog, a sheet, the Lightbox) each take their own platform measurement; no kind of motion defaults to one duration step. " It now applies only to components whose main interaction is a tap. A new verification line passes a token cited as nearest to the measurement in the Storybook theme. It fails a token chosen by role alone, or nearest at Core's unthemed defaults.

  7. AST-094, classification by main interaction (owner decisions, 2026-11-04):

    • Goal: the motion-roles intro opens with the owner's goal ("The main goals are consistent timings and well-coordinated pieces.") and one sentence on how the rules serve it.
    • Rule (intro and FR45): "A component whose main interaction is a gesture plays springs for its motion, including moves a tap starts inside it (a tap on a sheet detent or a close button settles on the same spring), so its pieces stay coordinated. A component whose main interaction is a tap plays the theme's curve tokens (duration and easing, scaled by tempo), never a spring, since a tap carries no velocity; no character or option plays a platform-measured curve for it."
    • Classification table: gesture → springs (BottomSheet, Drawer, swipeable List rows, Lightbox, the pager and Carousel, ContextMenu's long-press presentation, Slider, pull-to-refresh); the DateInput and TimeInput wheels get their own gesture row (a tap, key or program turn plays springs.settle from rest; the flick coast keeps UIKit's measured deceleration; the slow-release snap stays as recorded); tap → curve tokens (Accordion, Disclosure, Collapsible, DropdownMenu, Popover, Tooltip, HoverCard, Dialog, AlertDialog, Tabs, Checkbox, press feedback). Switch and SegmentedControl are gesture-capable: the thumb drags, so a tap-started toggle or selection settles on the same spring (owner decision, 2026-11-04). Toast keeps what its record states today (springs recorded), with an open note.
    • Companion pace: companion motion (a scrim, handle, chrome or backdrop) runs on the main motion's spring progress and settle time, or curve duration and easing, never on independent timing. A new verification line covers it.
    • Coordinated scale: "Springs follow the theme's tempo: tempo scales a spring's speed and leaves its bounce unchanged. Each spring pairs with a timing tier, so its settle and its companion curves finish together: menu springs with --duration-medium-min, sheet and sub-menu springs with --duration-medium, settle and emphasis springs with --duration-medium-max. Quick taps and presses keep timing tokens and no spring. At tempo 1, every measured spring keeps its platform feel." A pairing table lists each spring role's tier. Roles the owner's tiers don't name are marked "no tier named yet"; finger tracking stays fixed.
    • Scope changes: FR45's token-step rule, the "every other motion plays the theme's tokens" sentence, and the tap-started exit sentence now apply to tap-classified components. The step rule's exit case is scoped to overlay exits: "a tap-started overlay exit plays --duration-exit and --ease-exit (FR7)"; an in-place toggle cross-fade is not an exit. FR4's measured-spring exception stays. Lightbox FR5 lists all its moves as named springs again (zoom settle, double-tap zoom included), with the controls fade as companion motion.
  8. Gesture components' tap-started closes: AST-057 FR7 (a tap, outside, scroll, Escape, fired-entry or program close of a swipe row) and AST-094 FR7 (a sheet's and the Lightbox's exits that a tap, key, outside press or the program starts) now follow the main-interaction rule. Those are gesture components, so such a close plays the component's spring, the same settle as a swipe close, from rest. Overlay exits in tap components keep --duration-exit and --ease-exit. Both verification rows fail a tap-started close on a curve instead of the spring. The "records to align separately" note is removed. Lightbox FR12 and FR16 (the grow from the source, the return and the touch closes) are aligned to springs too, as are AST-057 FR5, its non-goal and gap.

  9. Glide pointer: AST-094 FR45 and FR4's measured-reference paragraph no longer list the layout glide among motions that keep their springs. Two remain, the animator's animate and useDragToSnapPoints's settleTo, and both places add: "AST-105's glide, swap and edge reveal are tap-started layout motion and play the theme's curve tokens (spec:AST-105 FR4)." The motion-roles intro matches. The branch merges current main, which carries that AST-105 text.

  10. Switch and SegmentedControl: they move to the gesture class in the classification table, as above. Their records' springs are unchanged.

  11. Records aligned to the main-interaction rule (no new direction):

  • Switch FR15 (and its summary, compatibility and motion-table lines) and SegmentedControl FR9: a tap's toggle or selection settles on the thumb's spring from rest. AST-094's quick-taps line, Impact list and rows match. The Switch lift moves to switchControl.lift in item 12; Switch's verification row fails a tap, key or value change that settles on a curve instead of switchControl.travel.
  • ContextMenu's long-press lift, grow and return play springs.contextMenuLift, springs.contextMenuMorph and springs.contextMenuDismiss, in the ContextMenu record, AST-094 FR33 and the rows; "a long press is not a gesture" is removed. Slider's lift and drop play springs.sliderLift and springs.sliderDrop; Slider FR7 no longer calls them unplayed references or a gap.
  • DateInput FR14: a tap, key or program wheel turn plays springs.settle from rest; the gap names picker.tapSpin.durationMs on timing.curves.move.
  • "A role plays only for motion a gesture drives", the Intent, Non-goals, FR1, FR13, the Impact list and DEC-26 are scoped to tap components. The generated motion-roles intro matches. The pager's programmatic move settles on its spring (gap).
  • The Impact list no longer names AST-105's glide among springs.
  • The token-step rule and its row are scoped to a tap component's motion whose record names no step; Dialog and AlertDialog replace "a sheet, the Lightbox"; a tap component's overlay exit on --duration-exit passes; "no kind of motion without a named step defaults to one duration step".
  • Pager: the measured settle keeps an implementation gap: it doesn't yet follow tempo or character (usePager calls solvePaging with no theme input); the FR45 browser row notes it.
  • Toast: "theme timing for a tap dismiss; a spring from the release for a swipe", as Toast FR5 records.
  1. Switch lift and the FR4 exception:
  • Switch is a gesture component, so the thumb lift while a finger presses plays its switchControl.lift spring role, in Switch's record and AST-094's Switch row.
  • FR4's exception is narrowed: "A gesture-driven exit (a release that closes or dismisses) may play a spring measured from the platform reference without a named motion role (FR45); its component's motion table lists that spring with its platform source. Every other gesture-driven motion plays a motion role." Both FR4 rows match. The pager's settle is not an exit, so its implementation gap covers it, not this exception.
  1. Exit timing scoped to tap components: spec:AST-090 FR14, its Non-goals, its AST-094 and BottomSheet lines and DEC-5, plus AST-094's "Every overlay" row, play --duration-exit only for a tap component's tap-, key- or program-started overlay exit; a gesture component's such close (a sheet, the Lightbox) plays its spring from rest (FR7). AST-094 drops "a thumb that lifts" from the curve-token examples. Optional wording: Lightbox AR6 reads only named roles; the Switch lift settles back on switchControl.settle after switchControl.minimumLiftMs; FR45's and DEC-26's headings name the main-interaction rule.

  2. Touch scope for Switch and SegmentedControl (the owner's ruling was a touch ruling): under a touch presentation, every input settles the thumb or selection on its spring from rest; without a touch presentation a click, a key or a value change keeps the theme's curve, the released behavior, so there is no desktop change. Switch FR15 and SegmentedControl FR9 say so, their gaps state today accurately (SegmentedControl's touch tap already springs; a mouse click or a key on the curve is not a gap), and their verification rows match. AST-094's "Motion that FR45 moves" table adds unchanged mouse-click-and-key rows for both, the Impact list says only touch moves to the spring, the classification row and FR45's browser row carry the touch scope, Toast's class reads as open, and DEC-26's exit sentence is scoped to tap components. spec:AST-090 FR14's and DEC-5's headings and its consumer-docs line are scoped to tap components; a sheet's and the Lightbox's touch close springs.

  3. Touch scope, corrected to what ships: under a touch presentation every input on Switch and SegmentedControl (a tap, a click, a key, a value change) settles on the spring, as it does today; without a touch presentation a click, a key or a value change plays the theme's curve, as released. Switch's Behavior row, summary, compatibility lines, FR15, motion-table paragraph and verification row, SegmentedControl FR9 and its row, and AST-094's Impact list, FR45 table rows, classification row and FR45 browser row now say so.

Rejected alternatives

None.

Claim scope and non-goals

  • FR4's exception, FR45's guidance sentence and gap, and the AST-057 and DateInput wording only.
  • The spring-to-curve timing mapping stays an open owner decision, recorded as an implementation gap.

Changed records

  • docs/specs/AST-094-touch-presentations/spec.md: FR4 exception (gesture-driven exits only) and its rows; FR45 (main-interaction rule, classification table, companion pace, spring tiers, token-step rule for tap components) and its rows; FR7 and the exit rows; the Impact list; DEC-26.
  • docs/specs/AST-094-touch-presentations/motion-roles.md: intro opens with the owner's guidance. The page is generated, so the text lives in scripts/motion-roles-table.mjs and the page was regenerated; generate-motion-roles --check passes.
  • docs/specs/AST-057-row-actions/spec.md: Behavior row, four case rows, FR5, FR7 verification row, non-goal and current-state gap.
  • docs/specs/components/Lightbox/Lightbox.spec.md: FR5, FR12, FR16, AR6.
  • docs/specs/AST-090-exit-motion/spec.md: Non-goals, FR14, the AST-094 and BottomSheet lines, DEC-5.
  • docs/specs/components/Switch/Switch.spec.md, docs/specs/components/SegmentedControl/SegmentedControl.spec.md, docs/specs/components/ContextMenu/ContextMenu.spec.md, docs/specs/components/Slider/Slider.spec.md: aligned to the main-interaction rule (item 11).
  • docs/specs/components/DateInput/DateInput.spec.md: FR14 and its implementation gap.

Writing rubric results

  • R1 narration: none. The guidance is a quoted owner statement on the motion-roles page; every other added sentence states the system in the present tense.
  • R2 research in the record: none.
  • R3 evidence naming a change: none.
  • R4 rejected alternatives over one line or outside a decision: none.
  • R5 pull request or issue references remaining: none.
  • R6 ruled open questions still listing options: none. The open timing mapping is recorded as an implementation gap, with no options listed.

Scope

  • Records only (plus the generator text for the generated page); no Changeset.
  • Public text contains no internal Meta context.

Validation

  • pnpm check:knowledge: "Knowledge templates and records are aligned."
  • generate-motion-roles --check: pass (35 roles)
  • Prettier: pass
  • git diff --check: clean

@vercel

vercel Bot commented Nov 4, 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 5, 2026 1:26pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 4, 2026
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 4, 2026
@astracat-bot

astracat-bot Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 5, 2026, 1:35 PM UTC

@cixzhang

cixzhang commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec 766c5dc

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

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · f9566de

Storybook · Sandbox · built from this PR's head

Package size: no published package changed; no new dependencies.

API changes: none in this pull request

Committed API report behind this build: cli 9 rows, core 4 rows; run pnpm api:report.

Not run on this PR: add ci:run-visual, ci:run-a11y or ci:run-rtl to run them.


Generated by PR Enrichment workflow | View full report

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

The AST-057 and DateInput edits match FR5, FR7 and current source, and the spec approval covers the new direction. One record inconsistency needs a fix first:

  • spec:AST-094 FR4's new exception (spec.md:142-145) lets any gesture-driven release, fling or settle play a spring with no named role, but FR45 and spec:AST-108 FR3 still shape every gesture spring by tempo and by "the role's fixed weight" for character, FR45's verification row fails a gesture spring that ignores either, and the pager's unnamed settle is still listed as an implementation gap (:213-214); scope the exception to the gesture-driven exit its new verification row tests and say how tempo and character apply to it, or state how both knobs reach an unnamed spring, extend the row past exits and remove the pager gap.

Smaller, optional fixes: keep "on timing.curves.move" in DateInput FR14's gap, cite FR5 beside FR7 in AST-057's Behavior row, and add the scroll close to AST-057's FR7 verification row.

[Automated review]

Comment on lines +142 to +145
(`architecture:theme-tokens` INV3), with one exception. A gesture-driven
motion (a release, fling or settle) may play a spring measured from the
platform reference without a named motion role (FR45); every other motion
plays a motion role. The roles this record names are listed below with their defaults and

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 exception covers every gesture-driven release, fling or settle, but FR45 and spec:AST-108 FR3 still shape every gesture spring by tempo and by the role's fixed weight for character, and FR45's verification row fails a gesture spring that ignores either; a spring with no role has no weight, and the pager's unnamed settle is still listed as an implementation gap below. Suggest scoping this to the spring a gesture-driven exit plays (as the new FR4 row tests), saying tempo scales it and it keeps its measured bounce at every character, and writing "every other gesture-driven motion plays a motion role" so tap and program motion stay on FR45's theme tokens.

| FR3 | Unit tests of the spring, decay, rubber band and projection math against an independent integration and values read from UIKit | under-, critically and overdamped springs; release velocities; both rates; overscroll depths | changing a formula or a constant breaks the agreement with UIKit's values |
| FR3 pager | Unit tests of the pager's page choice against the recorded UIKit releases | releases at 292.7–298.6 pt/s that stay and 310.7–329.9 pt/s that advance, at 10, 25 and 40 % of a page; releases at rest at 45–48.5 % and 55–57.5 %; a 1.5-page drag released at 0, 600 and 3000 pt/s; a release moving back toward the start page | a page chosen by projection, a release at or past 300 pt/s that stays, or a release that travels more than one page from its start fails |
| FR4 | Role unit tests over every touch motion | each role at its table value; a theme that writes `motion` | a literal played in place of a role, a value that differs from the table at `tempo` 1 and `'standard'`, or a theme that changes a role other than through its motion knobs fails |
| FR4 | Role unit tests over gesture-driven exits | a gesture-driven exit (a release, fling or settle) playing a spring measured from the platform reference with no named role; the same unnamed spring played by a program-started motion | a gesture-driven exit playing a measured table spring passes; a program-started motion playing it fails |

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 row tests only a gesture-driven exit, while the FR4 exception covers any release, fling or settle; align the two.

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 4, 2026
@cixzhang

cixzhang commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec 55cdf6e

@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 spec approval at this head covers the new direction, and the AST-057 and DateInput edits match FR5, FR7 and current source. Two record contradictions need a fix first:

  • spec:AST-094 FR4's exception (spec.md:142-145) lets a gesture-driven release, fling or settle play an unnamed spring, but FR45, DEC-26 and spec:AST-108 FR3 still shape every gesture spring through a role's weight for character, FR45's browser row fails a spring that ignores it, and the pager gap (:215-216) still lists that settle as unfinished; scope the exception to a gesture-driven exit (tempo scales it, its measured bounce holds at every character), or say how both knobs reach an unnamed spring, extend the FR4 row and drop the pager gap.
  • FR45's new curve arm (:262-265, :928) plays a settle keyed by zoom ratio on a measured curve, but FR45's browser row (:927) still fails "a gesture's settle that starts from rest or plays a theme curve" over a Lightbox pinch with no carve-out for the curve, and component:Lightbox FR5 still requires its zoom settle to be a named-role spring from the gesture's velocity; exempt geometry-keyed settles from that row and amend Lightbox FR5 with its measurement, or name the record the arm governs.

Smaller, optional fixes: write "Gesture-driven motion whose…" in FR45's curve sentence, keep timing.curves.move in DateInput FR14's gap, cite FR5 beside FR7 in AST-057's Behavior row, and add the pointer-outside and scroll closes to AST-057's FR7 row.

[Automated review]

Comment on lines +142 to +145
(`architecture:theme-tokens` INV3), with one exception. A gesture-driven
motion (a release, fling or settle) may play a spring measured from the
platform reference without a named motion role (FR45); every other motion
plays a motion role. The roles this record names are listed below with their defaults and

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 exception lets any gesture-driven release, fling or settle play an unnamed spring. But FR45 (:268-270), DEC-26 and spec:AST-108 FR3 still shape every gesture spring through "the role's fixed weight" for character. FR45's browser row (:927) fails a spring that ignores it, and the pager gap (:215-216) still lists that settle as unfinished. Suggest scoping this to a gesture-driven exit's spring, as the new row at :921 tests: tempo scales it, and it keeps its measured bounce at every character. Then write "every other gesture-driven motion plays a motion role".

Comment on lines +262 to +265
that velocity, under every pointer (FR43). Motion whose platform behavior
doesn't depend on the release velocity (for example, a settle keyed by zoom
ratio) plays a curve, on the timing scale coordinated with the springs; a
component that uses this cites its platform measurement. A gesture is

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.

Two passages still say otherwise about a settle keyed by zoom ratio playing a curve. FR45's browser row (:927) still fails "a gesture's settle that starts from rest or plays a theme curve" over a Lightbox pinch. component:Lightbox FR5 still requires "the zoom settle" to be a named-role spring that "starts at the gesture's velocity". Exempt geometry-keyed settles from that row, and amend Lightbox FR5 with its measurement, or name the record this arm governs. Optional: start the sentence "Gesture-driven motion whose…" so it cannot read as tap or program motion.

| FR12 | No surface renders native `disabled`. A disabled field MUST stay focusable with `aria-disabled`, block typing, picking, clearing, and opening, describe its disabled reason when one is given, and take disabled paint. While busy (`isLoading` or a pending Action) the pointer and bottom-sheet surfaces expose `aria-disabled` and `aria-busy`, stay focusable, and block new commits; the native surface does the same for `isLoading`, and during a pending Action stays editable so the OS picker remains attached but rejects additional commits until the Action settles. A busy field that is not disabled keeps its ordinary paint and Spinner, shows no hover ring while commits are blocked, and keeps its keyboard focus ring. Caller handlers other than focus and blur MUST NOT run while the field is disabled (`spec:AST-085` FR2). Implementation gap: only a caller `onClick` is skipped while disabled; caller key, paste, and pointer handlers (such as `onKeyDown`, `onKeyUp`, `onPaste`, and `onPointerDown`) still run on every surface, the native field included. | `spec:AST-085/FR1–FR6`; `family:input-fields/FR4–FR6`; `family:buttons/FR4`; current source and focused tests |
| FR13 | A bottom-sheet picker wheel that comes to rest on a disabled row (outside `min`/`max`) MUST continue to the nearest enabled row, a tie going toward the committed row, and select it there. A wheel resting on its committed row MUST NOT select or commit, even when that row is outside the bounds, so opening a bounded sheet never changes an untouched value: a committed value outside the bounds stays, and an empty field stays empty. This holds for every wheel in the DateInput, TimeInput, and DateTimeInput sheets. | DEC-1; UIDatePicker on the iOS 26.2 simulator; current source |
| FR14 | A shown bottom-sheet picker wheel whose value changes from outside, as when a bound clamps the time after another wheel turned, MUST turn onto the new row rather than jump to it, on the theme's move duration and easing tokens, as a tap on a row does (`spec:AST-094` FR45). The internal motion role `picker.tapSpin.durationMs`, UIKit's measured 300 ms, stays as the measured reference. Under a finger, a tapped row commits its value when its turn ends; a keyboard or assistive-technology activation commits at once. Implementation gap: under a finger, the turn and a tapped row's turn still play `picker.tapSpin.durationMs` on `timing.curves.move`; under a mouse, the turn plays the browser's smooth scroll. | UIDatePicker on the iOS 26.2 simulator; current source |
| FR14 | A shown bottom-sheet picker wheel whose value changes from outside, as when a bound clamps the time after another wheel turned, MUST turn onto the new row rather than jump to it, on the theme's move duration and easing tokens, as a tap on a row does (`spec:AST-094` FR45). The internal motion role `picker.tapSpin.durationMs`, UIKit's measured 300 ms, stays as the measured reference. Under a finger, a tapped row commits its value when its turn ends; a keyboard or assistive-technology activation commits at once. Implementation gap: with the touch presentation, a turn onto a row plays `picker.tapSpin`, whatever pointer starts it; without it, the wheel is a scrolling column and a click or key turn plays the browser's smooth scroll. | UIDatePicker on the iOS 26.2 simulator; current source |

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: the touch wheel plays picker.tapSpin.durationMs on timing.curves.move (PickerWheel.tsx:171-172). Keeping both names says which role and which curve the gap is about.

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 4, 2026
@cixzhang

cixzhang commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec adb699c

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

@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 spec approval at this head covers the new direction, and the AST-057 and DateInput edits match FR5, FR7 and current source. Three record contradictions need a fix first:

  • FR45's new token-picking sentence (docs/specs/AST-094-touch-presentations/spec.md:265-272) and its row (:942) give a tap-, key- or program-started motion the duration step nearest its platform measurement and fail a step chosen by role, but FR7, FR45's own exit sentence (:298-300), spec:AST-090 FR12 and FR14, component:AlertDialog FR6, component:Lightbox FR16 and spec:AST-057 FR5 and FR7 (including the FR7 row this pull request adds) still play every tap-started exit on --duration-exit, and component:ProgressBar FR4 still moves its fill on --duration-medium against a 1000 ms measurement; keep exits on --duration-exit and limit the rule to motion whose record names no step, or amend those records to the new rule.
  • FR4's exception (:142-145) lets a gesture-driven release, fling or settle play an unnamed spring, but FR4 still plays roles only for gesture motion (:198) while the exception says every other motion plays a role, FR45, DEC-26 and spec:AST-108 FR3 still shape every gesture spring through a role's weight for character, FR45's browser row (:940) fails a spring that ignores it, and the pager gap (:215-216) still lists that settle as unfinished; scope the exception to a gesture-driven exit (tempo scales it, its measured bounce holds at every character) and write "every other gesture-driven motion", or say how both knobs reach an unnamed spring, extend the FR4 row and drop the pager gap.
  • FR45's curve arm (:262-265, :941) plays a settle keyed by zoom ratio on a measured curve, but FR45's browser row (:940) still fails a Lightbox pinch settle that starts from rest or plays a theme curve, DEC-26 still opens by settling every gesture's motion on a spring (:1280-1282), and component:Lightbox FR5 still requires its zoom settle to be a named-role spring from the gesture's velocity; exempt geometry-keyed settles from that row and DEC-26's opening, and amend Lightbox FR5 with its measurement or name the record the arm governs.

Smaller, optional fixes: write "Gesture-driven motion whose…" in FR45's curve sentence, state the coordinated-scale gap once, keep timing.curves.move in DateInput FR14's gap, cite FR5 beside FR7 in AST-057's Behavior row, and add the pointer-outside, scroll and fired-entry closes to AST-057's FR7 row.

[Automated review]

Comment on lines +265 to +272
that uses this cites its platform measurement. A motion a tap, key or the
program starts, for which the platform has a measured duration, plays the
theme duration token whose value in the Storybook theme (neutral) is nearest
that measurement, with the easing for its kind (entrance, exit or move); the
measured value stays a reference in the component's motion table. Small
anchored surfaces (a popover, a menu, a toggle, a row) and full-screen
surfaces (a dialog, a sheet, the Lightbox) each take their own platform
measurement; no kind of motion defaults to one duration step. Springs follow

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 picks a tap-started motion's duration step by its nearest measurement, exits included ("the easing for its kind (entrance, exit or move)"), and says no kind of motion defaults to one step. FR7 (:251-253), FR45's own exit sentence (:298-300), spec:AST-090 FR12 and FR14, AlertDialog FR6, Lightbox FR16 and AST-057 FR5 and FR7 still play every tap-started exit on --duration-exit, and ProgressBar FR4 still plays its fill on --duration-medium against a 1000 ms measurement. The row at :942 fails a step chosen by role, so those records now fail it. Suggest keeping exits on --duration-exit and limiting this to motion whose record names no step, or amending those records.

Comment on lines +142 to +145
(`architecture:theme-tokens` INV3), with one exception. A gesture-driven
motion (a release, fling or settle) may play a spring measured from the
platform reference without a named motion role (FR45); every other motion
plays a motion role. The roles this record names are listed below with their defaults and

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.

"Every other motion plays a motion role" also covers tap motion, but :198 plays a role only for gesture motion and FR45 sends tap motion to theme tokens. An unnamed spring also has no weight for character, which FR4 (:200-202), FR45, DEC-26 and spec:AST-108 FR3 apply through, and the FR45 row at :940 fails a spring that ignores it; the pager gap at :215-216 still lists that settle as unfinished. Suggest scoping this to a gesture-driven exit's spring (tempo scales it, its measured bounce holds at every character) and writing "every other gesture-driven motion plays a motion role".

Comment on lines +262 to +264
velocity, under every pointer (FR43). Motion whose platform behavior doesn't
depend on the release velocity (for example, a settle keyed by zoom ratio)
plays a curve, on the timing scale coordinated with the springs; a component

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.

A settle keyed by zoom ratio on a measured curve still fails the FR45 browser row at :940 ("a gesture's settle that starts from rest or plays a theme curve", over a Lightbox pinch), DEC-26's opening (:1280-1282) still settles every gesture's motion on a spring, and component:Lightbox FR5 still requires its zoom settle to be a named-role spring from the gesture's velocity. Exempt geometry-keyed settles there and amend Lightbox FR5 with its measurement, or name the record this arm governs. Optional: start the sentence "Gesture-driven motion whose…".

@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 /approve-spec at this head settles the direction, and this head only merges main, but four record fixes remain:

  • Miss: the implementation gaps in docs/specs/components/Switch/Switch.spec.md:183-187 and docs/specs/components/SegmentedControl/SegmentedControl.spec.md:142 misstate today's motion against FR15 and FR9, since a mouse's click or a key still slides on the theme's curve with no gap recorded, and SegmentedControl lists as a gap the finger tap it already settles on segmented.selectionSpring.
  • spec:AST-090 FR14's and DEC-5's headings (docs/specs/AST-090-exit-motion/spec.md:185-186, :348) still say tap-started exits play the theme's exit timing, against the bodies scoped to tap components.
  • Miss: AST-090's consumer-docs line (docs/specs/AST-090-exit-motion/spec.md:264-266) still tells the docs that every tap-started touch exit plays the theme's exit timing, which FR14 contradicts for a sheet and the Lightbox.
  • Miss: AST-094's "Motion that FR45 moves" table (docs/specs/AST-094-touch-presentations/spec.md:983, :999) and its Impact gap (:950-954) leave out that a mouse's click or a key on Switch and SegmentedControl moves from the theme's curve to a spring, the one mouse-visible change these records direct.

Once these are fixed, an engineering owner approves the new head with /approve-spec <full head SHA>; the author may do so as an engineering owner. Smaller wording notes (the tier table, row 1016's "Gesture-capable" class, Toast's row and DEC-26's exit sentence) are in the review.

[Automated review]

Comment on lines +183 to +187
not play. Implementation gap: under a coarse primary pointer the switch still
plays `switchControl.wellOn` and `switchControl.wellOff` for a tap instead of
changing the track colour on the travel spring's pace, and under a fine primary
pointer the thumb does not follow a drag and a release settles on the theme's
duration.

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.

Miss: FR15 (:169) settles a tap, key or value change on switchControl.travel from rest under every pointer, and row :328 fails one on a curve. Today a mouse's click or a key slides the thumb and fades the track on --duration-fast and --ease-standard (packages/core/src/Switch/Switch.tsx:334-346, :542-553), but this gap names only the coarse pointer's track springs and the fine pointer's drag. Add the fine pointer's click, key and value change on the curve.

| FR8 | The radiogroup owns `role`, `aria-label` (from `label`), `aria-disabled`, and `data-size`; a caller value for any of them is replaced. Other base props reach the radiogroup, and `ref` reaches it. Implementation gap: a caller `aria-describedby` is replaced, by the disabled-reason id or by nothing, against `architecture:public-component-api` INV5. | `architecture:public-component-api` INV5; current source and tests |
| FR9 | Under every pointer, a change of selection slides the selected surface from the old segment to the new one as one surface, the radiogroup's `::before`, animating transform and opacity only. A change that a tap, a click, a key or the program starts slides on the theme's duration and easing tokens, a finger included (`spec:AST-094` FR45); a drag's release settles on a spring from the release velocity (FR10, FR13). | Owner direction; `spec:AST-094` FR13; current source and tests |
| FR9 | Under every pointer, a change of selection slides the selected surface from the old segment to the new one as one surface, the radiogroup's `::before`, animating transform and opacity only. A change that a tap, a click, a key or the program starts settles on the same spring as a drag's release, from rest, a finger included: SegmentedControl's main interaction is a gesture (`spec:AST-094` FR45); a drag's release settles on that spring from the release velocity (FR10, FR13). | Owner direction; `spec:AST-094` FR13; current source and tests |
| FR10 | A drag's release settles on the internal `segmented.*` motion roles with UIKit's measured values, starting at the release velocity under every pointer, with the theme's `character` and `tempo` shaping the spring (`spec:AST-094` FR4, FR45, DEC-15; thresholds internal under `spec:AST-002` FR3). Under Reduce Motion the old surface fades out in place as the new one fades in (`design:reduced-motion` DR1–DR3). With a fine pointer under Reduce Motion, the theme's transition shows the change. Implementation gap: under a finger a tap's, a click's or a key's slide still plays `segmented.selectionSpring`, and under a mouse or a pen a drag's release slides on the theme's duration. | UIKit measurements (iOS 26.2); `design:reduced-motion` DR1–DR3; current tests |

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.

Miss: FR9 (:141) settles a tap, click or key change on the drag release's spring from rest. A finger's tap already settles on segmented.selectionSpring (useSegmentedSelectionMotion.ts:1273-1278), which this gap lists as nonconforming, while a mouse's click or a key slides on the theme's duration (:1279-1291), which it leaves out. Drop the finger tap and name the mouse's click and the key.

Comment thread docs/specs/AST-090-exit-motion/spec.md Outdated
Comment on lines +185 to +186
- **FR14 — Touch exits are never removed; tap-started exits play the theme's
exit timing.** A dialog or layer surface in a touch presentation plays the

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 heading (and DEC-5's at :348) still says tap-started exits play the theme's exit timing, while the body plays a gesture component's tap-, key- or program-started exit on its spring (:188-192). Suggest: 'a tap component's tap-started exits play the theme's exit timing'.

Comment thread docs/specs/AST-090-exit-motion/spec.md Outdated
Comment on lines 264 to 266
- Consumer docs: `motion` describes both curves, that exits are off by default
in a pointer presentation, how a theme turns each kind on, that a touch
exit is never removed and a tap-started one plays the theme's exit timing, and that callers keep content rendered

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.

Miss: 'a tap-started one plays the theme's exit timing' holds only in a tap component; a sheet's or the Lightbox's tap-started exit plays its spring under FR14 (:188-192). Scope this consumer-docs line to tap components.

| SegmentedControl | A mouse's or a pen's drag release | Slides on the theme's duration | Settles on a spring from the release velocity |
| Component | Motion | Today | Under FR45 |
| --------------------------- | ----------------------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Switch | Thumb travel and track colour on a tap, a hold or a key, under a finger | Measured switch springs | The thumb's `switchControl.travel` spring from rest, under every pointer |

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.

Miss: this row and the SegmentedControl row (:999) give the tap and key motion only 'under a finger', and the Impact gap (:950-954) names only ProgressBar and DateInput. Under FR45 a mouse's click or a key on Switch and SegmentedControl moves from the theme's curve to a spring from rest, the one mouse-visible change these records direct. Add rows for a mouse's click and a key (today: the theme's curve; under FR45: the spring from rest) and name them in the Impact gap.

… spring applies under touch; a mouse click or a key keeps the theme's curve
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 5, 2026
@cixzhang

cixzhang commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec 56619f9

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

@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 /approve-spec at this head settles the direction, and the four fixes requested on the previous head are made, but two record fixes remain:

  • Under a touch presentation, a key or a mouse click on Switch and SegmentedControl settles on the spring today, yet docs/specs/components/Switch/Switch.spec.md:170 and :188-190, docs/specs/components/SegmentedControl/SegmentedControl.spec.md:141 and the AST-094 lines at docs/specs/AST-094-touch-presentations/spec.md:945-946, :978 and :995 call its theme curve 'as released' and 'unchanged', so either put the curve on a mouse click, a key or a value change without a touch presentation, or record the move from spring to curve in the impact rows and gaps.
  • Switch's Behavior row (docs/specs/components/Switch/Switch.spec.md:80) says a tap or a key settles the thumb on the spring under every pointer, which contradicts FR15 at :170 and the summary at :95-97.

Once these are fixed, an engineering owner approves the new head with /approve-spec <full head SHA>; the author may do so as an engineering owner. Smaller wording notes (the compatibility lines, the tier table, Toast's row and DEC-26) are in the review.

[Automated review]

| FR12 | `ref`, `onFocus`, and `onBlur` reach the input, and a caller `aria-labelledby` and `aria-describedby` name and describe it. Other base props (`id`, `data-*`, other ARIA, `onClick`, and other handlers), `className`, `style`, `xstyle`, and `width` reach the field root. Caller ARIA attributes name and describe the switch, so they MUST reach the input (`architecture:public-component-api` INV5). Implementation gap: ARIA other than `aria-labelledby` and `aria-describedby`, such as `aria-label`, lands on the field root. | Current tests; `architecture:public-component-api` INV5 |
| FR13 | The thumb is one circle under any pointer, at each state's size: a drag moves it under every pointer, a touch presentation lifts it, nothing reshapes it, and its lift and rubber band derive from the box it renders. | Owner direction, 2026-10-26 |
| FR14 | The thumb, lifted under a finger or banded past either end under any pointer, paints inside the track, in either writing direction. | Owner direction, 2026-10-25 |
| FR15 | For every pointer (`spec:AST-094` FR43) a tap, a hold of any length or a short drag toggles the switch at the release (a tap through the browser's click; where the browser sends no click for a finger's release, as for a hold, the switch clicks its input itself), and a drag commits the side it flipped the switch to, which it reaches once the pointer is the track width less the thumb width from where it pressed, toward the other end, and leaves again once the pointer comes back past where it pressed (measured in `motion/uikit/switch.ts`: `travel`, `flipDistance`). A finger's drag commits wherever the finger lifts; a mouse's or a pen's commits when it is released inside the switch's tracking bounds, its box grown by UIControl's 70 px tracking expansion. Under a finger a press slid off and lifted outside without a flip toggles it too, as `spec:AST-094` FR11 allows for a toggle under `spec:AST-020` FR9's slide-off exception (DEC-5); a mouse or a pen released outside those bounds leaves it alone, flipped or not, as the native checkbox does. Under every pointer the thumb follows the drag on `switchControl.tracking`, banded past either end, and the track's colour changes where the drag flips the switch; at the release the thumb settles to the committed end on `switchControl.travel`, starting at the release velocity, with the theme's `character` and `tempo` shaping the spring (`spec:AST-094` FR43, FR45). Under a touch presentation, a tap, a hold without a drag or a change of `value` settles the thumb on the same `switchControl.travel` spring from rest, and the track's colour changes on that spring's pace: under touch, Switch's main interaction is a gesture (`spec:AST-094` FR45). A mouse click or a key, and a change of `value` without a touch presentation, move the thumb and the track's colour on the theme's duration and easing tokens, as released. Under a touch presentation the thumb also lifts while a finger presses, on the `switchControl.lift` spring, and settles back on `switchControl.settle` after at least `switchControl.minimumLiftMs`; under a fine primary pointer it does not lift (`spec:AST-094` FR13). At a release the track's colour changes over the settle spring's computed time (`spec:AST-108` FR4a). The switch's own click, for a hold and for a flipping drag, is the exception `spec:AST-094` FR11 states for Switch. Under reduced motion nothing lifts or springs: a tap, a release or a change cross-fades the thumb to its rest and the track colour with it, while a dragging pointer still moves the thumb. A finger's slide-off toggle (`spec:AST-020` FR9, DEC-5; `spec:AST-094` FR11) meets WCAG 2.5.2 Pointer Cancellation through its Abort or Undo option: sliding back, or toggling again, undoes it. A mouse or pen released outside the tracking bounds cancels the press. | `spec:AST-094` FR11, FR13, FR43, FR45; `spec:AST-020` FR9/DEC-5; `design:reduced-motion`; WCAG 2.5.2 |

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.

Under a touch presentation (a coarse primary pointer, AST-094 FR13) a key or a mouse click settles the thumb on switchControl.travel today, so 'a mouse click or a key ... on the theme's duration and easing tokens, as released' is not what ships there. Either put the curve on 'a mouse click, a key or a change of value without a touch presentation', or record the move from spring to curve in the gap and AST-094's impact rows.

| FR8 | The radiogroup owns `role`, `aria-label` (from `label`), `aria-disabled`, and `data-size`; a caller value for any of them is replaced. Other base props reach the radiogroup, and `ref` reaches it. Implementation gap: a caller `aria-describedby` is replaced, by the disabled-reason id or by nothing, against `architecture:public-component-api` INV5. | `architecture:public-component-api` INV5; current source and tests |
| FR9 | Under every pointer, a change of selection slides the selected surface from the old segment to the new one as one surface, the radiogroup's `::before`, animating transform and opacity only. A change that a tap, a click, a key or the program starts slides on the theme's duration and easing tokens, a finger included (`spec:AST-094` FR45); a drag's release settles on a spring from the release velocity (FR10, FR13). | Owner direction; `spec:AST-094` FR13; current source and tests |
| FR10 | A drag's release settles on the internal `segmented.*` motion roles with UIKit's measured values, starting at the release velocity under every pointer, with the theme's `character` and `tempo` shaping the spring (`spec:AST-094` FR4, FR45, DEC-15; thresholds internal under `spec:AST-002` FR3). Under Reduce Motion the old surface fades out in place as the new one fades in (`design:reduced-motion` DR1–DR3). With a fine pointer under Reduce Motion, the theme's transition shows the change. Implementation gap: under a finger a tap's, a click's or a key's slide still plays `segmented.selectionSpring`, and under a mouse or a pen a drag's release slides on the theme's duration. | UIKit measurements (iOS 26.2); `design:reduced-motion` DR1–DR3; current tests |
| FR9 | Under every pointer, a change of selection slides the selected surface from the old segment to the new one as one surface, the radiogroup's `::before`, animating transform and opacity only. Under a touch presentation, a change that a tap or the program starts settles on the same spring as a drag's release, from rest: under touch, SegmentedControl's main interaction is a gesture (`spec:AST-094` FR45). A mouse click or a key slides on the theme's duration and easing tokens, as released. A drag's release settles on that spring from the release velocity (FR10, FR13). | Owner direction; `spec:AST-094` FR13; current source and tests |

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.

Under a touch presentation every change, a key or a mouse click included, slides on segmented.selectionSpring today, so 'A mouse click or a key slides on the theme's duration and easing tokens, as released' does not hold there. This row also gives no timing for a program change without a touch presentation.

| Area | Contract |
| ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Public contract | None changes. Switch takes `label`, `value`, `onChange`, `changeAction`, `isLoading`, `isDisabled`, `disabledMessage`, `isRequired`, `isOptional`, `status`, `size`, `labelPosition`, `labelSpacing`, field content, and base props. |
| Behavior | A native checkbox with `role="switch"` drawn as a track and thumb. A change calls `onChange`, then an optional `changeAction` with the optimistic value; while busy the switch shows a Spinner in the thumb and refuses changes. Its press and drag work for every pointer: the thumb follows a drag and settles from the release on a spring, and a tap or a key settles it on the same spring from rest (FR15). |

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 row still says a tap or a key settles the thumb on the spring under every pointer; FR15 and the summary now spring only a tap under a touch presentation and keep a mouse click or a key on the theme's motion tokens.

…les on the spring; without touch the theme's curve, as released
@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 5, 2026
@cixzhang

cixzhang commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec e34df44

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

@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 /approve-spec at this head settles the direction, and the two fixes requested on the previous head are made, but two record fixes remain:

  • Miss: the Current-state impact lists in docs/specs/AST-094-touch-presentations/spec.md (lines 859-972) and docs/specs/AST-090-exit-motion/spec.md (lines 212-264) have lost the line break before each entry, so their 28 and 13 entries render as one bullet each; put each - entry back on its own line.
  • Regression: the branch now conflicts with main in docs/specs/components/ContextMenu/ContextMenu.spec.md, where main rewrote FR8, its verification row and a gap for disabled rows, so merge main and keep that FR8 beside this pull request's FR5 motion text.

Optional: Switch's gap at Switch.spec.md:185-186 could say that under a touch presentation switchControl.wellOn and switchControl.wellOff play for every change, not only a tap. After the fixes, an engineering owner approves the new head with /approve-spec <full head SHA>.

[Automated review]

three motion knobs join the motion configuration (FR4, DEC-15,
`spec:AST-108`). - `architecture:interaction-modality`: the touch-presentation
conditions (FR13) sit beside the shared modality state, and INV13 gives every
action group one press tracking (DEC-17). -

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 list has lost the line break before each entry (this line ends '(DEC-17). -'), so its 28 entries render as one bullet. Put each - entry back on its own line, as on main, and rewrap.

Comment thread docs/specs/AST-090-exit-motion/spec.md Outdated
a CSS part beside it takes the spring's settle time (FR3, FR4a); and an exit
duration set as a reference to a tempo-scaled token follows `tempo` (FR5).
- `design:reduced-motion`: no claim changes. Under reduced motion a pointer
projections (INV1, INV7). - `architecture:layer-runtime`: a layer closes when

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.

Same here: each - now sits mid-line, so the 13 Current-state impact entries render as one bullet. Restore one entry per line.

| FR2 | The `context-menu` target stays on the painted Pointer menu surface and alternative Touch menu surface, not on the Trigger area or cursor anchor. | `architecture:component-theming-surface`; current source |
| FR3 | Pointer action rows retain DropdownMenu ownership. The touch frame retains BottomSheet ownership, while data-driven touch lists and rows retain List ownership. | Current source and owner docs |
| FR4 | Compound `menuContent` remains a caller-supplied pointer-menu interior and may also render inside the touch frame; the data-driven touch path instead converts the same item data to List and ListItem presentation. | Current source and tests |
| FR5 | The Pointer menu surface carries `data-astryx-menu-press` and follows `module:DropdownMenu/useMenuPress` FR1–FR7: the row under the release acts, the highlight follows a held pointer, a mouse released outside closes and a finger leaves the menu open, the stray click never acts, and `touch-action` follows overflow. The long press that opened the menu does not close it as it lifts; a tap outside closes it, and a mouse press outside closes it at the press. Under a finger the menu MUST close as a pan that starts outside it begins (`spec:AST-094` FR32), MUST hand the held finger that opened it to the menu as the opening press, and MUST treat a pen's press outside as FR32 does (FR33). The lift and the grow apply only to a menu opened by touch (a touch-initiated open on a coarse pointer); a menu opened by mouse or keyboard keeps its released appearance and motion, with no lift, no tint and no grow. A touch-opened menu MUST grow out of the finger's point and shrink back into it (`spec:AST-094` FR31) as its own surface, by transform and opacity only (`spec:AST-094` FR5), with no second element such as a glass surface growing behind it, and on a block trigger MUST lift the trigger above the page with the menu beside it (FR33; DD1, DEC-2). The long-press presentation is a gesture component, so the trigger's lift plays `springs.contextMenuLift`, the menu's grow `springs.contextMenuMorph`, and the trigger's return, part of the menu's exit, `springs.contextMenuDismiss` (`spec:AST-094` FR4, FR7, FR45). Implementation gap: it keeps the layer's own entrance and exit, a scroll that starts outside leaves it open, the opening finger is not handed to the menu so it cannot slide to a row, no trigger lift or page tint exists, and a pen press outside closes it at the press. Right-click, Shift+F10, long-press invocation, and keyboard navigation are as FR1 and FR8 state. | `module:DropdownMenu/useMenuPress`; `spec:AST-094` FR26–FR33 |

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.

main has since rewritten FR8 in this table (a disabled row is reached by the keys and typeahead and stays inert), and both sides re-pad it, so the branch conflicts here. Merge main and keep its FR8, verification row and gap beside this FR5.

`switchControl.settle` after at least `switchControl.minimumLiftMs`
(`spec:AST-094` FR45); the other rows stay measured references the switch does
not play. Implementation gap: under a coarse primary pointer the switch still
plays `switchControl.wellOn` and `switchControl.wellOff` for a tap instead of

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: under a touch presentation a click, a key or a change of value also fades the track on switchControl.wellOn and switchControl.wellOff today, so 'for every change' states the gap FR15 creates.

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 5, 2026
@cixzhang

cixzhang commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

/approve-spec f9566de

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

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

Approved pending CI: the required test suites are deferred on this head and run before merge.

An engineering owner approved the records at this exact head, and both fixes requested on the previous head are in: the Current-state impact lists in spec:AST-094 and spec:AST-090 are one entry per line again, and the merge with main keeps ContextMenu's FR8, its verification row and its gap beside this pull request's FR5.

No blocking findings.

  • Miss (optional): FR45's spring-tier table (docs/specs/AST-094-touch-presentations/spec.md:357-363) leaves out Switch's six spring roles, although switchControl.travel now settles every touch change; adding them to the "no tier named yet" row, or naming their tier, would make it cover every spring.

[Automated review]

| `springs.menuOpen`, `springs.menuClose`, `springs.contextMenuLift`, `springs.contextMenuDismiss`, `springs.contextMenuMorph` | `--duration-medium-min` |
| `springs.subMenuOpen`, `springs.subMenuBack`, and a sheet's springs | `--duration-medium` |
| `springs.settle`, `springs.emphasis` | `--duration-medium-max` |
| `segmented.selectionSpring`, `springs.directChange`, `springs.quickChange`, `springs.stateChange`, `springs.timedChange`, `springs.viewChange`, `springs.sliderLift`, `springs.sliderDrop`, `springs.sliderRelease` | no tier named yet |

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: Switch's six spring roles (switchControl.travel, lift, settle, tracking, wellOn, wellOff) are the only registered springs this table leaves out, although switchControl.travel now settles every touch change. Adding them to this row, or naming their tier, would make the table cover every spring.

This branch was successfully deployed

1 active deployment
Preview — f9566dee Deployed Nov 5, 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