Repository navigation
docs(AST-094, AST-057): motion guidance; gesture springs; swipe-row returns - #9915
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec 766c5dc |
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
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-094FR4's new exception (spec.md:142-145) lets any gesture-driven release, fling or settle play a spring with no named role, but FR45 andspec:AST-108FR3 still shape every gesture spring bytempoand by "the role's fixed weight" forcharacter, 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 howtempoandcharacterapply 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]
| (`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 |
There was a problem hiding this comment.
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 | |
There was a problem hiding this comment.
This row tests only a gesture-driven exit, while the FR4 exception covers any release, fling or settle; align the two.
…ve for geometry-keyed gesture motion
|
/approve-spec 55cdf6e |
There was a problem hiding this comment.
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-094FR4's exception (spec.md:142-145) lets a gesture-driven release, fling or settle play an unnamed spring, but FR45, DEC-26 andspec:AST-108FR3 still shape every gesture spring through a role's weight forcharacter, 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 (temposcales it, its measured bounce holds at everycharacter), 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, andcomponent:LightboxFR5 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]
| (`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 |
There was a problem hiding this comment.
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".
| 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 |
There was a problem hiding this comment.
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 | |
There was a problem hiding this comment.
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.
…on step by its documented role
…m measurement in the Storybook theme
|
/approve-spec adb699c |
There was a problem hiding this comment.
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-090FR12 and FR14,component:AlertDialogFR6,component:LightboxFR16 andspec:AST-057FR5 and FR7 (including the FR7 row this pull request adds) still play every tap-started exit on--duration-exit, andcomponent:ProgressBarFR4 still moves its fill on--duration-mediumagainst a 1000 ms measurement; keep exits on--duration-exitand 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 andspec:AST-108FR3 still shape every gesture spring through a role's weight forcharacter, 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 (temposcales it, its measured bounce holds at everycharacter) 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), andcomponent:LightboxFR5 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]
| 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 |
There was a problem hiding this comment.
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.
| (`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 |
There was a problem hiding this comment.
"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".
| 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 |
There was a problem hiding this comment.
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…".
There was a problem hiding this comment.
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-187anddocs/specs/components/SegmentedControl/SegmentedControl.spec.md:142misstate 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 onsegmented.selectionSpring. spec:AST-090FR14'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]
| 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. |
There was a problem hiding this comment.
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 | |
There was a problem hiding this comment.
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.
| - **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 |
There was a problem hiding this comment.
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'.
| - 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 |
There was a problem hiding this comment.
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 | |
There was a problem hiding this comment.
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
|
/approve-spec 56619f9 |
There was a problem hiding this comment.
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:170and:188-190,docs/specs/components/SegmentedControl/SegmentedControl.spec.md:141and the AST-094 lines atdocs/specs/AST-094-touch-presentations/spec.md:945-946,:978and:995call 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:170and 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 | |
There was a problem hiding this comment.
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 | |
There was a problem hiding this comment.
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). | |
There was a problem hiding this comment.
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
|
/approve-spec e34df44 |
There was a problem hiding this comment.
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) anddocs/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
mainindocs/specs/components/ContextMenu/ContextMenu.spec.md, wheremainrewrote FR8, its verification row and a gap for disabled rows, so mergemainand 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). - |
There was a problem hiding this comment.
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.
| 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 |
There was a problem hiding this comment.
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 | |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
…pact entry; Switch's well springs play for every touch change
|
/approve-spec f9566de |
There was a problem hiding this comment.
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, althoughswitchControl.travelnow 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 | |
There was a problem hiding this comment.
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.
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-094FR45.Existing authority searched
spec:AST-094FR4, FR45 and DEC-26 (as merged), and the generated motion-roles page.spec:AST-057FR5 and FR7 (swipe-row returns and closes).component:DateInputFR14 (the sheet wheel's turn).mainfor the wheel's touch presentation.Decision
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.
Motion guidance:
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).
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."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.
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.
AST-094, classification by main interaction (owner decisions, 2026-11-04):
tempo), never a spring, since a tap carries no velocity; no character or option plays a platform-measured curve for it."springs.settlefrom 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.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.--duration-exitand--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.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-exitand--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.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
animateanduseDragToSnapPoints'ssettleTo, 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-105FR4)." The motion-roles intro matches. The branch merges currentmain, which carries that AST-105 text.Switch and SegmentedControl: they move to the gesture class in the classification table, as above. Their records' springs are unchanged.
Records aligned to the main-interaction rule (no new direction):
switchControl.liftin item 12; Switch's verification row fails a tap, key orvaluechange that settles on a curve instead ofswitchControl.travel.springs.contextMenuLift,springs.contextMenuMorphandsprings.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 playsprings.sliderLiftandsprings.sliderDrop; Slider FR7 no longer calls them unplayed references or a gap.springs.settlefrom rest; the gap namespicker.tapSpin.durationMsontiming.curves.move.--duration-exitpasses; "no kind of motion without a named step defaults to one duration step".tempoorcharacter(usePager calls solvePaging with no theme input); the FR45 browser row notes it.switchControl.liftspring role, in Switch's record and AST-094's Switch row.Exit timing scoped to tap components:
spec:AST-090FR14, its Non-goals, its AST-094 and BottomSheet lines and DEC-5, plus AST-094's "Every overlay" row, play--duration-exitonly 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 onswitchControl.settleafterswitchControl.minimumLiftMs; FR45's and DEC-26's headings name the main-interaction rule.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-090FR14'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.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
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 inscripts/motion-roles-table.mjsand the page was regenerated;generate-motion-roles --checkpasses.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
Scope
Validation
pnpm check:knowledge: "Knowledge templates and records are aligned."generate-motion-roles --check: pass (35 roles)git diff --check: clean