Skip to content

feat(AlertDialog): touch motion on the theme's timing - #8373

Merged
cixzhang merged 24 commits into
meta:mainfrom
vjeux:uikit/c18-alert-hold
Nov 14, 2026
Merged

cixzhang merged 24 commits into
meta:mainfrom
vjeux:uikit/c18-alert-hold

Conversation

@vjeux

@vjeux vjeux commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

User need

On a phone, an alert should appear and leave as iOS's does, and be 320 px wide. Today it rises with Dialog's entrance, vanishes at once and is 400 px wide. A toast its action raises must stay usable while it leaves.

Problem and solution fit

  • Under a finger, the alert scales from 1.2 to 1 while it and the dimming fade in, on --duration-medium-max and --ease-entrance.
  • It dismisses with a fade alone on --duration-exit and --ease-exit. The dialog stays open until the fade ends.
  • A close or a reopen midway turns back from where it is. Under Reduce Motion both are the animator's 200 ms cross-fade.
  • Pointer input waits while the alert enters. While it leaves, its content is inert.
  • The leaving hold now leaves a nested layer, its path and a child live region live. So a toast above the alert keeps its taps, and its words are read.
  • A mouse keeps today's motion and width.

Current specification

component:AlertDialog FR6, FR7 and FR9, under spec:AST-094 FR7, FR35 and FR45. The toast follows spec:AST-003 FR16 and spec:AST-086 FR2.

Overlap with #8084

#8084 implements the same FR6, FR7 and FR9 with a different design: CSS keyframes, an exit copy and a page-wide host registry. Only one of the two lands. This one fades the live dialog, so it needs no copy, no registry and no new private attribute.

Public delta and caller burden

  • No new prop, export or data attribute.
  • The motion and the input rules apply under a coarse primary pointer only.
  • The default width on a phone goes from 400 to 320 px. A caller's width still wins.

Design and alternatives

One internal hook drives the dialog and its ::backdrop with the shared motion animator, on readThemeTiming and the entrance easing, as Popover's touch motion does. The measured springs stay as reference only. An exit copy was rejected: it adds an element, and the toast then needs a registry.

Evidence

  • Red first, on main b537123: the new browser cases fail, because nothing animates. Without the hold change, an Undo tap during the fade did nothing in Chromium and WebKit. Four new hold unit cases failed.
  • A mutation that plays a fixed 404 ms curve instead of the theme's tokens fails two unit cases.

Scope

Components: AlertDialog, Layer. Popover's surface motion shares the new timing fallback.

  • One capability is added.
  • Unrelated fixes, cleanup, and policy changes were removed or split.
  • Consumer docs, focused tests, and migration evidence ship with the feature.
  • Public text and artifacts contain no internal Meta context.

Testing

The head, 16a8869, changes one test file over 43d6ceb: the turn-back check in AlertDialog.motion.interaction.browser.spec.ts. 43d6cebf27 merges main 9d19da9 into 5a5e131 with no conflict. That merge changes none of this pull request's files or the files they import directly. Deeper in AlertDialog's imports, through Button/Button.tsx, it changes utils/pressFeedback.ts (#8690) and two Icon files (#11498, #11502), and adds privateAttributes/pressHeld.stylex.ts (#8690). The sandbox page that the device runs open also imports @astryxdesign/core/Link, which this merge changes (#11558). 5a5e131eb2 merges main ca36b56 into d46da0f with no conflict. That merge changes architecture:layer-runtime, which this pull request also changes, in other rows, and Button/Button.tsx, which AlertDialog imports. d46da0f01f adds two commits to ccac987. One moves the fallback for a theme timing that does not resolve into motion/themeTiming.ts, which AlertDialog's and Popover's motion now call. The other says the motion runs on a phone or tablet. ccac987293 adds one record commit to 8476269: the line under Owns for Layer/inputHold.ts now names a blur dismissal hold. 847626984f merges main f5b5f96 into 1e2dd21 with no conflict. That merge changes none of this pull request's files. It changes Button/Button.tsx and Dialog/Dialog.tsx, which AlertDialog imports. 1e2dd21952 adds two commits to c4d74bc. One adds a sentence to INV16 of architecture:layer-runtime. The other splits four comment sentences for length, and makes two comments say a modal hosts its toast viewport. c4d74bcd18 merges main b890479 into c44f975 with no conflict. Main changed Layer/inputHold.ts, its test and INV16 of architecture:layer-runtime, which this pull request also changes. Its new focus: 'kept-inside' hold and this pull request's dismissal exceptions run on separate paths. c44f975d04 merges main 721dbf1 into 6f7e747 with no conflict, and 6f7e747 merges main 9d2ce46 into 836dd4c. 836dd4cf0b merges main a4595ef into 25b54b3, then adds two test commits. Main's line for Layer/holdEntranceInput.ts in architecture:layer-runtime met ours, and the merge keeps both. The entrance check of design:reduced-motion now reads script animations too, and the turn-back check dates the close at its call. 25b54b33dd merges main 1740654 into b5a6854 with no conflict. Then the motion reads its pointer flag through useCommittedRef, as architecture:react-component-runtime INV3 asks. b5a68547bc is seven commits on main b537123: the hold change, the alert's motion, two record commits, the entrance easing and two sandbox commits.

  • The turn-back check, changed at 16a8869:
    • Its first CI run, at 43d6ceb, failed once in WebKit with "no fade after the close".

    • Under load, the close's commit ran late. WebKit dated the fade at its last frame, and the fade ended before the next one.

    • The check looked for the fade once per frame, so it missed it. It now records the fade where the animator makes it.

    • A missing fade still fails. The check still waits at most 1 s for the fade, and the tolerances and the three takes are unchanged.

    • A local change makes the close end the alert with no fade. The check then fails with "no fade after the close", 3 of 3 times in each engine.

    • A take that paints no frame of the open alert while it fades is taken again, as before. The report records each retake with its frame count.

    • Failures in 20 runs per row, WebKit in CI's container with one worker, before and after the change:

      Load Before After
      none 0 0
      4 CPUs 0 0
      3 CPUs 8 1
      2 CPUs 13 10
      2 CPUs, three runs at once, beside another test batch 20 20
    • Every failure before the change is "no fade after the close". Every failure after it is a run in which no take painted two frames of the open alert while it faded.

    • In those runs, the fade still starts at the presented opacity.

    • Unloaded, the changed check passes 20 of 20 times in WebKit and 5 of 5 in Chromium. Strict ESLint and Prettier pass.

For 16a8869, every run used 1 worker, on a tree that differs from it only in two comments:

  • The AlertDialog, Dialog, Button, Layer, Toast, BottomSheet and Popover interaction specs: Chromium 267 passed (10 skipped), WebKit 207 passed (70 skipped) in CI's container. In Dialog's entrance check, the alert case waits for the alert's own hold to end.
  • Unit tests for the motion modules, AlertDialog, Popover, Dialog, Button, Layer, Toast, BottomSheet, the hooks and press feedback: 4,381 passed. The sandbox's route test passes.
  • The pull request's accessibility specs (pnpm test:a11y-contract:pr): 308 passed in Chromium. That is 45 fewer than at 5a5e131: main's test(Lightbox): run the keyboard and viewport specs on Lightbox changes #11524 now runs the two Lightbox specs only when Lightbox changes. Before its check read script animations, Dialog.reduced-motion saw none on the alert under Reduce Motion with a finger, and failed.
  • The core typecheck, the Storybook build, strict ESLint and Prettier on the changed files, pnpm check:knowledge and pnpm check:changesets pass.

Earlier, at 3c1ab6d on main b537123:

  • AlertDialog.motion.interaction.browser.spec.ts has 19 cases. On main with only the spec and the story, 16 fail and 3 pass: a key during the entrance, and both mouse cases. At 3c1ab6d, Chromium passes all 19, and WebKit in CI's container passes 16 and skips the three Chromium-only cases.
  • Without the hold change, both toast cases fail: Undo sits in an inert element, and the words go to an unexposed region. With --ease-standard back, the unit case "plays a theme's own entrance and exit tokens" fails.

Device runs at 16a8869: none. This head changes only a test file over 43d6ceb, so its shipped code is the code that these runs tested (spec:AST-094 DEC-31).

Device runs at the prior head 43d6ceb, stated in text: the clips exist and are not attached. The owners' decision for 43d6cebf27 records these runs (D-20261114-169). On one iPhone 14, both heads ran interleaved, two takes in normal motion and two under Reduce Motion each. Each take used a fresh page load. The phone read the sandbox's version.json for each head before and after the takes: 43d6ceb and 25b54b3. Between the two heads, this pull request's code differs only in tests, comment and doc wording, and one helper. Every other code difference comes from main.

  • Real iPhone 14, iOS 26.2 Safari, 43d6ceb, normal motion and Reduce Motion: pass. All four cases end the same as at 25b54b3 in every take, 16 of 16.
    • The present opens, and the dismissal closes. A close during the present leaves nothing open.
    • A reopen during the dismissal ends open, with the focus ring on Cancel.
    • In the first normal take, the first open after the fresh load shows the same frames at both heads. In the first Reduce Motion take, both fade in with no scale, within a frame of each other.
  • Android 16 emulator (1080 × 2400 at 420 dpi), Chrome 133, 43d6ceb: pass in every case. It ran at animation scale 1, at 4× CPU and under Remove animations.
    • At scale 1, the present scales from 1.2 to 1 as it fades in. It settles 386 ms after the first tap, and 371 ms after a later one. The dismissal fades only, and the dialog closes 197 and 192 ms after the tap.
    • A close during the present peaks at 0.85–0.89 opacity at scale 1 and 4× CPU, then closes. A reopen during the dismissal dips to 0.75–0.96, never closes, and ends at rest.
    • Under Remove animations, the first take was refused for a 517 ms stall. In the kept second take, the close during the present peaked at 0.36.
    • In that take, the page drew no frame for 150 ms just after the tap, and for 100 ms during the fade-in.
    • Under Remove animations, each change fades with no scale. A toast's Undo during the alert's fade runs 2 of 2 times in each setting.
    • Exit frame gaps against main 9d19da9 are medians of 12. The Delete story went 17 → 18.5 ms at scale 1 and 18 → 31 ms at 4× CPU. Under Remove animations it went 17 → 18 ms.
    • The alert over a toast went 18.5 → 33.5 ms at 4× CPU and 20 → 20 ms under Remove animations. Neither side lays an exit copy.
    • At scale 1, three attempts ran. The first refused Delete for a 333 ms stall and kept the toast pair at 17 → 20 ms.
    • The next two kept Delete, at 17 → 18.5 and 17 → 17 ms. Both refused the toast pair when main's page drew no frame for about 2 s.
    • Cases whose page exists at neither head nor main did not run. No case is red at 43d6ceb.
    • At 4× CPU, one Switch case failed at both builds in the first run, because Android's back gesture took the drag. With the control moved clear of that edge, it keeps one change per tap or drag at both builds, 8 of 8.
  • Not driven on the device: two quick presses in a row, because the driver delivers the second press at the first lift. The browser specs cover a tap during either transition in both engines.

Device runs at the prior head 5a5e131, stated in text: the clips exist and are not attached. The owners recorded these runs for 5a5e131 and required nothing further on the device side (D-20261113-331). On one iPhone 14, both heads ran interleaved, two takes in normal motion and two under Reduce Motion each. Each take used a fresh page load. The phone read the sandbox's version.json for each head: 5a5e131 and 25b54b3. Between the two heads, this pull request's code differs only in tests, comment and doc wording, and one helper. Its theme-timing fallback moved into motion/themeTiming.ts, with no behavior change. Every other code difference comes from main.

  • Real iPhone 14, iOS 26.2 Safari, 5a5e131, normal motion and Reduce Motion: pass. Every case ends the same as at 25b54b3 in all 8 takes.
    • The present opens, and the dismissal closes. A close during the present leaves nothing open.
    • A reopen during the dismissal lightens the dimming for 4 to 6 frames at both heads, then ends open.
    • On the first open after a page load, both heads fade the dimming and the card in from the first frame. Normal motion takes 5–7 frames to full, and Reduce Motion 4–5.
  • Android 16 emulator (1080 × 2400 at 420 dpi), Chrome 133, 5a5e131, on two emulators of the same image: pass in every case. It ran at animation scale 1, at 4× CPU and under Remove animations.
    • At scale 1, the present scales from 1.2 to 1 as it fades in. It settles 378 ms after the first tap, and 352 ms after a later one. The dismissal fades only, and the dialog closes 203 and 180 ms after the tap.
    • A close during the present peaks at 0.84–0.86 opacity, then closes. A reopen during the dismissal dips to 0.75–0.90, never closes, and ends at rest.
    • Under Remove animations, each change fades with no scale. A toast's Undo during the alert's fade runs 2 of 2 times in each setting.
    • Exit frame gaps against main ca36b56 are medians of 12. The Delete story went 17 → 17 ms at scale 1 and 18 → 25.5 ms at 4× CPU. Under Remove animations it stayed at 17 ms.
    • The alert over a toast went 17 → 21 ms at scale 1 and 20.5 → 34 ms at 4× CPU. Under Remove animations it went 17 → 22.5 ms. Neither side lays an exit copy.
    • Two earlier 4× CPU runs each had two takes refused by the rig's frame-stall check. Every refused stall came at a page's first alert close, and main's page stalled there too.
    • In Chromium at 4× CPU, that first close takes 159–181 ms here and 173–175 ms on main. The kept 4× CPU run closes the alert once before it measures.

Device runs at the prior head ccac987, stated in text: the clips exist and are not attached. On one iPhone 14, both heads ran interleaved, two takes in normal motion and two under Reduce Motion each. Each take used a fresh page load. The phone read the sandbox's version.json for each head: ccac987 and 25b54b3. Between the two heads, this pull request's code differs only in two tests and in comment wording. Every other code difference comes from main.

  • Real iPhone 14, iOS 26.2 Safari, ccac987, normal motion and Reduce Motion: pass. Every case ends the same as at 25b54b3 in all 8 takes.
    • The present opens, and the dismissal closes. A close during the present leaves nothing open, and a reopen during the dismissal ends open.
    • On the first open after a page load, both heads fade the dimming and the card in from the first frame. Normal motion takes 5–8 frames to full, and Reduce Motion 4–5.
  • Android 16 emulator (1080 × 2400 at 420 dpi), Chrome 133, ccac987: pass in every case but one Undo, below. It ran at animation scale 1, at 4× CPU and under Remove animations.
    • At scale 1, the present scales from 1.2 to 1 as it fades in. It settles 395 ms after the first tap, and 364 ms after a later one. The dismissal fades only, and the dialog closes 232 and 192 ms after the tap.
    • A close during the present peaks at 0.80–0.88 opacity, then closes. A reopen during the dismissal dips to 0.79–0.89, never closes, and ends at rest.
    • Under Remove animations, each change fades with no scale. A toast's Undo during the alert's fade runs 2 of 2 times at scale 1 and under Remove animations.
    • At 4× CPU it ran 1 of 2. In that run's second round, the page drew no frame from mid-entrance until the run's end.
    • So the entrance's input hold, which ends on the animation's own clock, stayed up. Both taps landed on its cover, Delete never ran, and the toast was never reached.
    • In Chromium, stopping the animation clock mid-entrance reproduces this. 4× CPU alone, and a 2.3 s main-thread block across the entrance's end, do not.
    • Exit frame gaps against main f5b5f96 are medians of 12. The Delete story went 17 → 17.5 ms at scale 1 and 18 → 24 ms at 4× CPU. Under Remove animations it stayed at 17 ms.
    • The alert over a toast went 17 → 20 ms at scale 1 and 19.5 → 32.5 ms at 4× CPU. Under Remove animations it went 17 → 20 ms. Neither side lays an exit copy.
    • The first scale-1 run's interruption take stopped at the rig's calibration tap, before its first case. That run's other three takes were kept. In them the Delete story went 17 → 17.5 ms, the alert over a toast 18 → 19.5 ms, and Undo ran 2 of 2. A second scale-1 run kept all four takes, and the scale-1 figures above come from it.

Device runs at the prior head c44f975, stated in text: the clips exist and are not attached. On one iPhone 14, both heads ran interleaved, two takes in normal motion and one under Reduce Motion each. The phone read the sandbox's version.json for each head: c44f975 and 25b54b3. Between the two heads, this pull request's code differs only in two tests. Every other code difference comes from main. The level read is the dimming under the card, per stream frame of about 28 ms.

  • Real iPhone 14, iOS 26.2 Safari, c44f975, normal motion: pass, with the same end state as 25b54b3 in every case.
    • The present opens. On the first open after a page load, the whole fade paints: 2, 17–22, 47–48, 69, 82–84, 91 and 97%. At 25b54b3 that first painted frame showed 82–86%.
    • A second open on the same page reaches 76–82% in its first painted frame at both heads.
    • The dismissal closes in 2 to 3 frames. A close during the present rises to 93–99%, then closes.
    • A reopen during the dismissal dips to 25–45%, returns to 97–99% and stays open.
  • Real iPhone 14, iOS 26.2 Safari, c44f975, Reduce Motion: pass, with the same fades as 25b54b3. The present fades in through 11–17, 33–41, 63–71 and 87–91% to full. The dismissal takes four frames.
    • A reopen during the dismissal dips to 58–62%, then returns. In the single take, a close during the present peaked at 56%, against 82% at 25b54b3. It closed one stream frame earlier, within the measure's resolution.
  • In WebKit in CI's container, a probe read the alert's computed opacity on each frame, over three fresh loads per head. The first open's first visible frame shows 0.48–0.56 at both heads.
  • Real Pixel 8, Android 17, Chrome 156, c44f975: pass in every case. It ran one take each at animation scale 1, at 4× CPU and under Remove animations.
    • At scale 1, the present scales from 1.2 to 1 as it fades in. It settles 407 ms after the first tap, and 385 ms after a later one. The dismissal fades only, and the dialog closes 207 ms after the tap.
    • A close during the present peaks at 0.78–0.85 opacity, then closes. A reopen during the dismissal dips to 0.78–0.90, never closes, and ends at rest.
    • Under Remove animations, each change fades with no scale. A toast's Undo during the alert's fade runs 2 of 2 times in each setting.
    • Exit frame gaps against main 721dbf1 are medians of 12. The Delete story went 26 → 36.5 ms at scale 1 and 36.5 → 31 ms at 4× CPU. Under Remove animations it went 26 → 29 ms.
    • The alert over a toast went 45.5 → 34 ms at scale 1 and 25.5 → 33.5 ms at 4× CPU. Under Remove animations it went 25 → 32.5 ms. Neither side lays an exit copy.

Device runs at the prior head 6f7e747, stated in text: the clips exist and are not attached. Both heads ran interleaved on one iPhone 14, two takes each. The phone read the sandbox's version.json for each head: 6f7e747 and 25b54b3. Between the two heads, this pull request's code differs only in two tests. Every other code difference comes from main. Scale is the card's width against its settled width, and opacity is the title's contrast against rest, read from frames of about 30 ms.

  • Real iPhone 14, iOS 26.2 Safari, 6f7e747, normal motion, the present: pass. It scales in from slightly larger to rest as it and the dimming fade in, and settles at its 320 pt width (measured 322 pt).
    • Its first painted frame shows 1.03× at 0.82–0.87 opacity. At 25b54b3 it showed 1.05–1.07× at 0.51–0.63, about one frame earlier in the entrance. Nothing jumps.
  • Real iPhone 14, iOS 26.2 Safari, 6f7e747, normal motion, the dismissal: pass. The alert and the dimming fade out together at full size, with no scale.
  • Real iPhone 14, iOS 26.2 Safari, 6f7e747, normal motion, a close during the present: pass. The entrance turns into a fade-out with no jump or restart.
  • Real iPhone 14, iOS 26.2 Safari, 6f7e747, normal motion, a reopen during the dismissal: pass. It dips to 0.08–0.13 opacity, returns to full and stays open, with focus on Cancel.
  • Real iPhone 14, iOS 26.2 Safari, 6f7e747, Reduce Motion: pass. The present and the dismissal are pure fades at full size, of about 0.13 s.
    • A close during the present fades out from mid fade-in, turning at 0.72 opacity, against 0.54 at 25b54b3. A reopen during the dismissal dips, then returns, with focus on Cancel.

Device runs at the prior head 25b54b3, stated in text: the clips exist and are not attached. Each iPhone run first read the sandbox's version.json, which names 25b54b3.

  • Real iPhone 14, iOS 26.2 Safari, 25b54b3, normal motion, the present: pass. It scales in from slightly larger to rest while it and the dimming fade in. Its first frame measured 1.08× at b5a6854.
  • Real iPhone 14, iOS 26.2 Safari, 25b54b3, normal motion, the dismissal: pass. The alert and the dimming fade out together at full size.
  • Real iPhone 14, iOS 26.2 Safari, 25b54b3, normal motion, a close during the present: pass. The entrance turns into a fade-out midway, with no jump.
  • Real iPhone 14, iOS 26.2 Safari, 25b54b3, normal motion, a reopen during the dismissal: pass. It dims, returns to full, and focus lands on Cancel.
  • Real iPhone 14, iOS 26.2 Safari, 25b54b3, Reduce Motion: pass. The present and the dismissal are pure fades at full size. A close during the present fades out from mid fade-in. A reopen during the dismissal dips, then returns, with focus on Cancel.
  • Android 16 emulator, Chrome 133, 25b54b3, two takes each at animation scale 1, under Remove animations, and at 4× CPU: pass in all five cases.
    • At scale 1, the present scales from 1.2 to 1 as it fades in, and settles in 336–375 ms. The dismissal fades only, and the dialog closes in 191–212 ms.
    • A close during the present peaks at 0.78–1.00 opacity, then closes. A reopen during the dismissal dips to 0.34–0.91, never closes, and ends at rest.
    • Under Remove animations, each change cross-fades with no scale. A toast's Undo during the alert's fade runs 4 of 4 times.
    • Exit frame gaps against main 1740654, medians of 12: the Delete story went 76 → 80.5 ms at scale 1. At 4× CPU it went 42.5 → 47 ms.
    • The alert over a toast: 86 → 86 ms at scale 1, and 80 → 170.5 ms at 4× CPU. At c44f975, above, it measures 45.5 → 34 ms at scale 1 and 25.5 → 33.5 ms at 4× CPU.

Public and internal API delta

  • Size: +2,971 / −117 lines in 22 files, of which product code is +487 / −53 and tests +2,320 / −23.
  • First-load JavaScript, gzip, on the four reference pages of architecture:component-import-boundaries INV10, from main 9d19da9 to 43d6ceb:
    • docs +10 B and form 0 B. No module on either page changes; the docs bytes come from how the build splits chunks.
    • menu +649 B and table +630 B. Both now load Layer/modalOutlet.ts (1,436 B minified), which Layer/inputHold.ts imports to put a nested layer back above the shield.
    • On those two pages, inputHold.ts itself grows 421 B minified and layerRoot.stylex.ts 55 B.
    • Measured with the pull-request size report's esbuild options and gzip (.github/scripts/lib/component-size.js), on each page's import of its components from the built packages.
  • Public: none. No export, prop or data attribute of @astryxdesign/core changes.
  • New internal hook packages/core/src/AlertDialog/useAlertMotion.ts, exporting useAlertMotion. No package entry exports it.
    • Usage: const motion = useAlertMotion({isOpen, isEnabled: isTouch && isInline !== true}); in AlertDialog. The Dialog then gets isOpen={motion.isPresented} and the merged motion.ref.
    • Why: the dialog must stay open while it fades, and the fade, the input hold and the reopen share one state.
    • Existing modules considered: motion/animator.ts, motion/themeTiming.ts and Layer/inputHold.ts do the work, and the hook only orders them. AlertDialog.tsx could hold it, but would double in size.
  • New reader hasLayerRootWithin(element) in the existing owner privateAttributes/layerRoot.stylex.ts, as architecture:public-component-api INV23 allows.
    • Usage: Layer/inputHold.ts keeps live an element that holds a nested layer, and makes its other children inert.
    • Existing modules considered: isLayerRoot reads one element; a walk with it would visit every node of the layer.
  • New internal export readThemeTimingOrInstant(element, tokens) in the existing module motion/themeTiming.ts. No package entry exports it.
    • Usage: useAlertMotion.ts and Popover/popoverSurfaceMotion.ts take the theme's timing from it, or no motion when that timing does not resolve.
  • Layer/inputHold.ts: no export changes. Only its 'layer' scope changes, as architecture:layer-runtime now states.
  • Test surface: the story AlertOverAToast serves the toast cases. The sandbox case interruptions lets a device clip show both interruptions.

Writing rubric results

component:AlertDialog: FR6, FR7 and FR9 lose their implementation-gap notes, and Current-state impact keeps only AR1's Tab gap. FR7 gains one clause for a toast (spec:AST-003 FR16). The verification rows name the new tests. Its Owns list names useAlertMotion.ts and says why it stays a private file. architecture:layer-runtime gains one present-tense ownership line for Layer/inputHold.ts, and one INV16 sentence on the nested layers a blur hold leaves live. It names hasLayerRootWithin, and says why the owner's other readers do not fit.

  • R1 narration, R2 research, R4 rejected alternatives, R5 change references, R7 project status: none.
  • R3 evidence: the FR6, FR7 and FR9 rows name the unit and browser tests.
  • R6 open questions: none touched.

@vercel

vercel Bot commented Oct 25, 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 14, 2026 3:30pm UTC

Request Review

@astracat-bot

astracat-bot Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 14, 2026, 4:10 PM UTC

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

Approval waits on an engineering owner's decision: no current spec covers AlertDialog's touch input rule as implemented here (every tap, press and click is held for 435 ms after the alert starts presenting, and while it fades out its content is inert and focus leaves it), so an engineering owner needs to approve or reject that rule and say which record states it, by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. Independently of that decision, these need changes:

  • The branch carries the unmerged #8084, #8342 and touch-foundation commits (about 37,000 authored lines in 214 files); once they land, rebase so this pull request is only the 7-file AlertDialog commit.
  • gestures/VelocityTracker.ts offers four selectable release filters and no stillness reset, which contradicts architecture:interaction-modality INV10 and spec:AST-100 FR2.
  • AlertDialog's touch action tracking has no presentation opt-out, which architecture:public-component-api INV16 requires unless a current AlertDialog record defines it.
  • Reopening the alert during its fade leaves focus on the document body, because the dismissal hold blurs the focused action and nothing restores it.
  • Under React StrictMode, an alert mounted open loses its presentation hold: the unmount-only effect's cleanup releases it during replay and the transition effect never places it again.
  • The description should give element counts for the hold's shield, as architecture:component-style-authoring INV7 asks for added elements.

[Automated review]

@github-actions

github-actions Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 16a8869

Storybook · Sandbox · built from this PR's head

Modified components

Component Size LoC Visual · A11y · RTL
LayerProvider 4.4 kB (0) · 20 B CSS (0) — ✓ · ✓ · ✗
AlertDialog · Storybook 🔴 128.5 kB (+17.1 kB) · 15.4 kB CSS (+29 B) 448 (+238) ✓ · ✓ · ✓
lab/Comments 368.9 kB (+1.4 kB) · 2.5 kB CSS (0) — — · — · —
147 more components
Component Size LoC Visual · A11y · RTL
lab/CommentThread 361.5 kB (+1.3 kB) · 2.4 kB CSS (0) — — · — · —
richtext/RichTextEditorToolbar 299.3 kB (+826 B) · 454 B CSS (0) — — · — · —
Pagination 123.4 kB (+754 B) · 18.9 kB CSS (0) — — · — · —
Markdown 201.9 kB (+739 B) · 21.7 kB CSS (0) — — · — · —
Selector 112.6 kB (+731 B) · 18.5 kB CSS (0) — — · — · —
DropdownMenu 106.8 kB (+717 B) · 18.6 kB CSS (0) — — · — · —
MoreMenu 107.0 kB (+695 B) · 18.6 kB CSS (0) — — · — · —
lab/CommentComposer 162.5 kB (+673 B) · 1.9 kB CSS (0) — — · — · —
Table 138.5 kB (+637 B) · 19.4 kB CSS (0) — — · — · —
lab/Schedule 114.5 kB (+631 B) · 3.9 kB CSS (0) — — · — · —
Popover · Storybook 98.4 kB (+620 B) · 15.1 kB CSS (0) 1,545 (−7) ✓ · ✓ · ✓
TableHeaderCell 121.3 kB (+611 B) · 18.7 kB CSS (0) — — · — · —
ContextMenu 120.3 kB (+607 B) · 18.4 kB CSS (0) — — · — · —
TableCell 121.6 kB (+603 B) · 18.9 kB CSS (0) — — · — · —
lab/ChatEmojiPicker 113.3 kB (+588 B) · 773 B CSS (0) — — · — · —
lab/ChatReactionBar 114.4 kB (+560 B) · 1.1 kB CSS (0) — — · — · —
PowerSearch 306.1 kB (+352 B) · 25.5 kB CSS (0) — — · — · —
SideNav 121.1 kB (+298 B) · 12.2 kB CSS (0) — — · — · —
charts/ChartTooltip 214.6 kB (+263 B) · 451 B CSS (0) — — · — · —
CommandPalette 79.1 kB (+246 B) · 12.7 kB CSS (0) — — · — · —
AppShell 97.4 kB (+242 B) · 14.3 kB CSS (0) — — · — · —
MobileNav 76.1 kB (+226 B) · 11.4 kB CSS (0) — — · — · —
DateInput 199.8 kB (+210 B) · 17.9 kB CSS (0) — — · — · —
TopNav 77.9 kB (+207 B) · 11.7 kB CSS (0) — — · — · —
charts/Chart 237.4 kB (+206 B) · 516 B CSS (0) — — · — · —
DateTimeInput 223.3 kB (+205 B) · 19.7 kB CSS (0) — — · — · —
TimeInput 174.6 kB (+205 B) · 16.9 kB CSS (0) — — · — · —
Dialog 25.5 kB (+183 B) · 6.9 kB CSS (0) — ✓ · ✓ · —
Drawer 53.9 kB (+182 B) · 8.4 kB CSS (0) — — · — · —
BreadcrumbItem 96.2 kB (+174 B) · 13.1 kB CSS (0) — — · — · —
BottomSheet 73.0 kB (+158 B) · 7.7 kB CSS (0) — — · — · —
ButtonGroup 44.1 kB (+102 B) · 3.7 kB CSS (0) — — · — · —
DropdownMenuSubMenu 79.1 kB (+102 B) · 10.3 kB CSS (0) — — · — · —
lab/ChatVirtualizer 57.2 kB (+100 B) · 223 B CSS (0) — — · — · —
lab/NavigationScreen 84.9 kB (+97 B) · 1.5 kB CSS (0) — — · — · —
lab/NavigationStack 84.9 kB (+97 B) · 1.5 kB CSS (0) — — · — · —
lab/TabBar 83.5 kB (+92 B) · 1.8 kB CSS (0) — — · — · —
lab/PageControl 78.1 kB (+81 B) · 709 B CSS (0) — — · — · —
ToggleButtonGroup 41.3 kB (+80 B) · 3.7 kB CSS (0) — — · — · —
ToggleButton 91.9 kB (+73 B) · 10.9 kB CSS (0) — — · — · —
SegmentedControl 102.0 kB (+71 B) · 6.9 kB CSS (0) — — · — · —
Switch 108.8 kB (+70 B) · 10.0 kB CSS (0) — — · — · —
Lightbox 145.2 kB (+69 B) · 11.9 kB CSS (0) — — · — · —
Toast 103.4 kB (+66 B) · 11.1 kB CSS (0) — — · — · —
Slider 114.3 kB (+59 B) · 8.9 kB CSS (0) — — · — · —
Tokenizer 103.5 kB (+34 B) · 20.1 kB CSS (0) — — · — · —
CheckboxListItem 79.6 kB (+32 B) · 11.9 kB CSS (0) — — · — · —
RadioListItem 75.8 kB (+31 B) · 10.5 kB CSS (0) — — · — · —
Carousel 74.5 kB (+30 B) · 11.7 kB CSS (0) — — · — · —
DateRangeInput 99.1 kB (+29 B) · 13.3 kB CSS (0) — — · — · —
lab/TourStep 93.0 kB (+29 B) · 691 B CSS (0) — — · — · —
ListItem 78.8 kB (+27 B) · 11.9 kB CSS (0) — — · — · —
NavHeadingMenu 18.5 kB (+21 B) · 3.5 kB CSS (0) — — · — · —
lab/TabBarMoreList 101.6 kB (+21 B) · 1.8 kB CSS (0) — — · — · —
MultiSelector 101.3 kB (+20 B) · 17.7 kB CSS (0) — — · — · —
lab/TransferListSelector 120.6 kB (+19 B) · 1.4 kB CSS (0) — — · — · —
lab/TransferList 111.8 kB (+13 B) · 1.2 kB CSS (0) — — · — · —
DrawerHeader 67.9 kB (+2 B) · 13.7 kB CSS (0) — — · — · —
TopNavMenu 81.4 kB (+2 B) · 12.0 kB CSS (0) — — · — · —
CodeBlock 79.9 kB (+1 B) · 12.1 kB CSS (0) — — · — · —
ContextMenuItem 35.1 kB (+1 B) · 6.9 kB CSS (0) — — · — · —
DropdownMenuItem 27.6 kB (+1 B) · 6.8 kB CSS (0) — — · — · —
SideNavHeading 82.3 kB (+1 B) · 12.1 kB CSS (0) — — · — · —
TableSelectionToolbar 75.1 kB (+1 B) · 14.0 kB CSS (0) — — · — · —
Text 14.2 kB (+1 B) · 5.5 kB CSS (0) — — · — · —
TextInput 72.6 kB (+1 B) · 12.0 kB CSS (0) — — · — · —
Timer 16.4 kB (+1 B) · 6.1 kB CSS (0) — — · — · —
Timestamp 35.8 kB (+1 B) · 11.0 kB CSS (0) — — · — · —
lab/DiffViewer 92.8 kB (+1 B) · 2.1 kB CSS (0) — — · — · —
Avatar 45.8 kB (0) · 5.7 kB CSS (0) — — · — · —
AvatarGroup 48.6 kB (0) · 5.8 kB CSS (0) — — · — · —
AvatarGroupOverflow 51.8 kB (0) · 5.7 kB CSS (0) — — · — · —
BaseTypeahead 78.2 kB (0) · 11.7 kB CSS (0) — — · — · —
Calendar 76.0 kB (0) · 11.4 kB CSS (0) — — · — · —
ChatComposer 84.4 kB (0) · 12.9 kB CSS (0) — — · — · —
ChatComposerInput 82.0 kB (0) · 12.1 kB CSS (0) — — · — · —
ChatComposerTokenElement 82.0 kB (0) · 12.1 kB CSS (0) — — · — · —
ChatLayout 88.2 kB (0) · 11.3 kB CSS (0) — — · — · —
ChatMessageList 30.6 kB (0) · 7.1 kB CSS (0) — — · — · —
ChatSendButton 65.3 kB (0) · 10.8 kB CSS (0) — — · — · —
ChatToolCalls 34.9 kB (0) · 8.4 kB CSS (0) — — · — · —
CheckboxInput 68.8 kB (0) · 10.1 kB CSS (0) — — · — · —
CheckboxList 73.0 kB (0) · 7.8 kB CSS (0) — — · — · —
CommandPaletteInput 34.3 kB (0) · 7.6 kB CSS (0) — — · — · —
CommandPaletteItem 13.4 kB (0) · 3.6 kB CSS (0) — — · — · —
ComplexSelector 77.4 kB (0) · 12.6 kB CSS (0) — — · — · —
DialogHeader 67.7 kB (0) · 12.3 kB CSS (0) — ✓ · ✓ · ✓
DropdownMenuCheckboxItem 28.4 kB (0) · 7.1 kB CSS (0) — — · — · —
DropdownMenuRadioItem 28.5 kB (0) · 7.1 kB CSS (0) — — · — · —
Field 59.3 kB (0) · 7.3 kB CSS (0) — — · — · —
FieldLabel 55.2 kB (0) · 5.8 kB CSS (0) — — · — · —
FileInput 74.0 kB (0) · 11.7 kB CSS (0) — — · — · —
Heading 14.8 kB (0) · 5.5 kB CSS (0) — — · — · —
HoverCard 30.1 kB (0) · 4.5 kB CSS (0) — — · — · —
InfoTip 50.2 kB (0) · 5.4 kB CSS (0) — — · — · —
InputGroup 60.9 kB (0) · 7.9 kB CSS (0) — — · — · —
Link 56.2 kB (0) · 7.1 kB CSS (0) — — · — · —
Outline 25.3 kB (0) · 4.1 kB CSS (0) — — · — · —
Overlay 23.0 kB (0) · 3.9 kB CSS (0) — — · — · —
ProgressBar 11.9 kB (0) · 6.4 kB CSS (0) — — · — · —
RadioList 60.7 kB (0) · 7.3 kB CSS (0) — — · — · —
SegmentedControlItem 18.8 kB (0) · 4.3 kB CSS (0) — — · — · —
SelectableCard 18.7 kB (0) · 7.5 kB CSS (0) — — · — · —
SelectorOption 23.8 kB (0) · 6.6 kB CSS (0) — — · — · —
SideNavCollapseButton 65.7 kB (0) · 10.8 kB CSS (0) — — · — · —
Spinner 27.2 kB (0) · 6.3 kB CSS (0) — — · — · —
StatusDot 33.7 kB (0) · 5.4 kB CSS (0) — — · — · —
Step 31.6 kB (0) · 5.6 kB CSS (0) — — · — · —
Stepper 66.6 kB (0) · 10.9 kB CSS (0) — — · — · —
Tab 14.9 kB (0) · 4.2 kB CSS (0) — — · — · —
TabList 47.1 kB (0) · 6.5 kB CSS (0) — — · — · —
Thumbnail 69.2 kB (0) · 12.3 kB CSS (0) — — · — · —
Token 29.3 kB (0) · 4.8 kB CSS (0) — — · — · —
Toolbar 47.0 kB (0) · 8.1 kB CSS (0) — — · — · —
Tooltip 32.0 kB (0) · 4.5 kB CSS (0) — — · — · —
TopNavHeading 81.9 kB (0) · 12.0 kB CSS (0) — — · — · —
TopNavItem 14.6 kB (0) · 4.0 kB CSS (0) — — · — · —
TopNavMegaMenu 75.9 kB (0) · 12.6 kB CSS (0) — — · — · —
TopNavMegaMenuItem 14.3 kB (0) · 4.2 kB CSS (0) — — · — · —
TreeList 46.2 kB (0) · 5.9 kB CSS (0) — — · — · —
Typeahead 87.5 kB (0) · 13.3 kB CSS (0) — — · — · —
lab/CommentPin 60.2 kB (0) · 1.2 kB CSS (0) — — · — · —
lab/DialogHeroHeader 88.4 kB (0) · 372 B CSS (0) — — · — · —
lab/LineClamp 16.4 kB (0) · 168 B CSS (0) — — · — · —
lab/ListInput 93.4 kB (0) · 922 B CSS (0) — — · — · —
lab/SelectableCardGroup 68.6 kB (0) · 162 B CSS (0) — — · — · —
lab/TabBarItem 3.9 kB (0) · 1.8 kB CSS (0) — — · — · —
richtext/RichTextEditor 305.3 kB (0) · 2.6 kB CSS (0) — — · — · —
richtext/RichTextView 281.9 kB (0) · 2.3 kB CSS (0) — — · — · —
Button 64.9 kB (−1 B) · 10.8 kB CSS (0) — — · — · —
ChatDictationButton 65.4 kB (−1 B) · 10.8 kB CSS (0) — — · — · —
ChatLayoutScrollButton 65.4 kB (−1 B) · 11.0 kB CSS (0) — — · — · —
Collapsible 29.0 kB (−1 B) · 4.5 kB CSS (0) — — · — · —
SideNavItem 76.8 kB (−1 B) · 11.9 kB CSS (0) — — · — · —
TabMenu 78.7 kB (−1 B) · 11.9 kB CSS (0) — — · — · —
TextArea 66.7 kB (−1 B) · 9.4 kB CSS (0) — — · — · —
lab/EmojiPicker 92.3 kB (−1 B) · 751 B CSS (0) — — · — · —
charts/ChartLegend 56.6 kB (−2 B) · 224 B CSS (0) — — · — · —
Banner 66.9 kB (−2 B) · 11.3 kB CSS (0) — — · — · —
ClickableCard 18.5 kB (−2 B) · 7.3 kB CSS (0) — — · — · —
Item 20.3 kB (−2 B) · 6.0 kB CSS (0) — — · — · —
List 19.0 kB (−2 B) · 790 B CSS (0) — — · — · —
MobileNavToggle 65.2 kB (−2 B) · 10.8 kB CSS (0) — — · — · —
NumberInput 77.4 kB (−2 B) · 12.2 kB CSS (0) — — · — · —
IconButton 64.9 kB (−7 B) · 10.8 kB CSS (0) — — · — · —
layer — — — · ✓ · —
Layer — — ✓ · ✓ · —

Package size: @astryxdesign/core 7.57 MB packed (+9.8 kB); no new dependencies.

Touched components checked; add ci:run-visual or ci:run-rtl to run the full suites.


Generated by PR Enrichment workflow | View full report

@vercel

vercel Bot commented Oct 25, 2026

Copy link
Copy Markdown

Deployment failed for project astryx with the following error:

The provided GitHub repository does not contain the requested branch or commit reference. Please ensure the repository is not empty.

vjeux added a commit to vjeux/astryx that referenced this pull request Oct 26, 2026
meta#8342 (64a5a7f) into meta#8373

Brings in the alert stack's new head (on meta#8270 a44569c) and the
presentation hold on meta#8336 af532ad. The gesture files are meta#8336's own
merged versions (meta#8336 carries meta#8270), and AlertDialog keeps this pull
request's migration onto the hold.

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

Approval waits on an engineering owner's decision: no current spec covers AlertDialog's touch input rule as implemented here (every tap, press and click is held for 435 ms after the alert starts presenting, and while it fades out its content is inert and focus leaves it), so an engineering owner needs to approve or reject that rule and say which record states it, by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. Independently of that decision, these need changes:

  • The branch carries the unmerged #8084, #8342 and touch-foundation commits (about 37,600 authored lines in 198 files); once they land, rebase so this pull request is only its 7-file AlertDialog commit.
  • AlertDialog's touch action tracking has no presentation opt-out, which architecture:public-component-api INV16 requires unless a current AlertDialog record defines it.
  • AlertDialog's import now carries the whole touch layer and the complete spring table, while architecture:component-style-authoring INV6 asks for a lazy load under a coarse pointer or a stated justification, and only the table rows the alert uses.
  • Reopening the alert during its fade leaves focus on the document, because the dismissal hold blurs the focused action and nothing restores it.
  • Under React StrictMode an alert mounted open loses its presentation hold, since the unmount-only effect's cleanup releases it during replay and the transition effect never places it again.
  • The description should give element counts for the hold's shield, as architecture:component-style-authoring INV7 asks for added elements.

[Automated review]

vjeux added a commit to vjeux/astryx that referenced this pull request Oct 26, 2026
…ng) into meta#8373

The hold's presentation window, a cancellable timer here, is timed from the spring the alert plays, as meta#8084's window is; the CLI docs golden and the motion roles are regenerated, not hand-merged.
vjeux added a commit to vjeux/astryx that referenced this pull request Oct 26, 2026
…lus UIKit's lag) into meta#8373

The changed-springs test runs on the hold's window timer here.
vjeux added a commit to vjeux/astryx that referenced this pull request Oct 26, 2026
F2's line at 04:52Z reaches the migration through the hold; it carries meta#8270 d25ba89, a fast-forward of the meta#8270 head under meta#8084. No conflicts; the motion roles (45 in 4 tables) and the CLI docs golden are unchanged.
vjeux added a commit to vjeux/astryx that referenced this pull request Oct 26, 2026
F2's line at 06:14Z reaches the migration through the hold: meta#8076 07aa9c0 and meta#8270 14db8b5. No conflicts; the base retires the theme motion surface (the role generator and its generated kinds), which this branch never edited.
vjeux added a commit to vjeux/astryx that referenced this pull request Oct 26, 2026
…into meta#8373

The hold's window timer takes the same spring-derived window, now read from the table; the no-theme-variable test runs on that timer here.

@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: one copied helper and the device results this head needs. The record edits carry an engineering owner's approval for this head, and the motion, input holds and phone width match component:AlertDialog FR6, FR7 and FR9.

  • Miss: useAlertMotion.ts:58-67 copies Popover's timingOn (Popover/popoverSurfaceMotion.ts:83-86, the same fallback to no motion when a theme's timing does not resolve), so please export that fallback from motion/themeTiming.ts, call it from both files and delete both copies.
  • component:AlertDialog FR6's verification row and spec:AST-094 DEC-27 need the iPhone Safari and Android emulator results stated for the head that lands, and the earlier runs do not carry here because this head's main merges changed Layer/inputHold.ts, Button/Button.tsx and Dialog/Dialog.tsx.

Non-blocking: the docs say the motion runs "on any touch device", but it follows a coarse primary pointer, so a finger on a touchscreen laptop gets the mouse behavior, and "on a phone or tablet" would be accurate. A head that changes record text needs a new /approve-spec <full head SHA>.

Claims and files checked
  • Claim: under a finger the alert scales from 1.2 to 1 while it and the dimming fade in, on the theme's entrance duration and easing. Verified: useAlertMotion.ts:41-44, :108-120; a probe 700 ms into a slowed entrance read scale 1.06, opacity 0.70 and dimming 0.70.
  • Claim: it dismisses with a fade alone on the exit tokens and stays open until the fade ends. Verified: useAlertMotion.ts:47-50, :279-300; a probe 700 ms into a slowed exit read it open at 0.89 with no scale.
  • Claim: a close or a reopen midway turns back from where it is. Verified: fadeFromHere (useAlertMotion.ts:90-100); the hook's unit tests.
  • Claim: under Reduce Motion both are the animator's 200 ms cross-fade. Verified in code (the animator's reduced-motion plan); the browser case was not run here.
  • Claim: pointer input waits while the alert enters, and its content is inert while it leaves. Verified: the 'viewport' and 'layer' holds (useAlertMotion.ts:251, :292); a probe found Cancel and Delete inert during the exit.
  • Claim: the leaving hold leaves a nested layer, its path and a child live region live, so a toast above the alert keeps its taps and its words are read. Verified: inputHold.ts:157, :196-202, :511, :804, :1059, :1083; the four new hold cases fail on the base and pass here; an Undo tap during the fade ran.
  • Claim: a mouse keeps today's motion and width. Verified: the desktop frame is pixel-identical at 400 px.
  • Claim: no new prop, export or data attribute, and callers decide nothing new. Verified: the generated API surface has no row; AlertDialog.public.test.ts.
  • Claim: the motion and input rules apply under a coarse primary pointer only. Verified: useTouchPresentation reads (pointer: coarse); AlertDialog.tsx:214-217.
  • Claim: the default width on a phone goes from 400 to 320 px, and a passed width still wins. Verified: AlertDialog.tsx:213; unit test; probe 370 to 320 px.
  • Claim: the motion needs no exit copy, no registry and no new private attribute. Verified: it animates the live dialog and adds no attribute or module-scope registry.
  • Claim: one private hook drives the dialog and its backdrop with the shared animator and the theme's timing, and no spring plays. Verified: useAlertMotion.ts:108-120; unit test "plays no spring".
  • Claim: a new reader in the existing layer-root owner finds a nested layer. Verified: layerRoot.stylex.ts:40-42.
  • Claim: the input hold's exports are unchanged; only its layer scope changes. Verified: the new helpers are module-local.
  • Claim: size is +2,902 / −100 in 18 files, product code +475 / −36 and tests +2,263 / −23. Verified against the clone's numstat.
  • Claim: this head adds one record line to a merge of main that changes none of the pull request's files but changes Button and Dialog. Verified; that merge also changes Toast and ToastViewport, which the toast case uses.
  • Claim: main's kept-inside hold runs on a separate path from the new exceptions. Verified: inputHold.ts:464-466.
  • Claim: red-first, mutation, unit, accessibility, typecheck and lint runs pass. Re-run here: the four hold cases fail on the base and pass on the head; the AlertDialog, Layer, Dialog, Toast and BottomSheet unit suites, the core typecheck and ESLint on the changed files pass; the browser and accessibility specs were not re-run.
  • Claim: device runs at this head are pending. True, and they are still required.
  • Claim: the changeset repeats the claims above, ending "With a mouse nothing changes". Verified as above.
  • Claim: the docs say the actions are tracked as one group under a finger or a pen while a mouse keeps each button's click. Verified: tracking requires a coarse pointer. The docs' "on any touch device" overstates where the motion runs (non-blocking).
  • File .changeset/alertdialog-touch-motion.md: clear.
  • File apps/sandbox/src/app/(raw)/pages/alert-dialog-cases/caseIds.ts: clear.
  • File apps/sandbox/src/app/(raw)/pages/alert-dialog-cases/cases.tsx: clear.
  • File apps/storybook/stories/AlertDialog.stories.tsx: clear.
  • File docs/architecture/layer-runtime.md: clear (owner-approved at this head).
  • File docs/specs/components/AlertDialog/AlertDialog.spec.md: finding: the FR6 row (line 231) needs the device and emulator results at this head.
  • File packages/core/src/AlertDialog/AlertDialog.doc.mjs: clear, with one non-blocking wording note.
  • File packages/core/src/AlertDialog/AlertDialog.public.test.ts: clear.
  • File packages/core/src/AlertDialog/AlertDialog.test.tsx: clear.
  • File packages/core/src/AlertDialog/AlertDialog.tsx: clear.
  • File packages/core/src/AlertDialog/__tests__/AlertDialog.motion.interaction.browser.spec.ts: clear (read, not run here).
  • File packages/core/src/AlertDialog/useAlertMotion.test.tsx: clear.
  • File packages/core/src/AlertDialog/useAlertMotion.ts: finding at lines 58-67 (copied helper).
  • File packages/core/src/Dialog/__tests__/Dialog.reduced-motion.a11y.browser.spec.ts: clear (read, not run here).
  • File packages/core/src/Dialog/__tests__/DialogTouchEntrance.interaction.browser.spec.ts: clear (read, not run here).
  • File packages/core/src/Layer/inputHold.test.tsx: clear.
  • File packages/core/src/Layer/inputHold.ts: clear.
  • File packages/core/src/privateAttributes/layerRoot.stylex.ts: clear.

Automated review (maintainer link)

readThemeTimingOrInstant in motion/themeTiming.ts reads a theme timing,
or plays no motion when the timing does not resolve. AlertDialog's
motion and Popover's surface motion call it in place of their own
copies, so a change to that fallback reaches both.
The motion follows a coarse primary pointer, so a finger on a
touchscreen laptop gets the mouse behavior. The docs now say "on a
phone or tablet" instead of "on any touch device".
@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 5a5e131

@cixzhang

cixzhang commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Decision: D-20261114-169

Records the Specs consistency stamp at 43d6ceb after a main merge that brought swipe actions. The records stay consistent, and every applicable device cell was taken again at this exact head: all 61 Android emulator cells kept at normal, slow and reduced motion, and the real iPhone side-by-side against the owner's passed head shows the same behavior in all 16 pairs. One early red was a capture failure in the test rig, not either build, and its re-run kept.

@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 code and the record edits are in order, and one piece of evidence the spec requires is still missing at this head.

  • The FR6 verification row of component:AlertDialog and spec:AST-094 DEC-27 need real-iPhone Safari and Android emulator results for the head that lands, stated in text (device or emulator, browser, head, animation settings, result); the description still lists this head's device runs as pending, and DEC-31 cannot carry the earlier runs because this head changes the pull request's own files.

The record edits carry an engineering owner's approval for this head, and the unit tests for the alert, the input hold and the theme timing pass here. The two comment-wording suggestions from the last review still apply and stay non-blocking.

Claims and files checked
  • Changeset, under a finger the alert scales into place from 1.2 while it and the dimming fade in on the theme's entrance timing: verified (useAlertMotion.ts:226-239, the unit curve cases).
  • Changeset, on close it fades out with the dimming on the theme's exit timing, and a close or reopen midway turns back from where it is: verified (useAlertMotion.ts:241-288, unit cases).
  • Changeset, a touch does nothing while it appears, and keys and assistive technology still act: verified (the 'viewport' hold; unit cases).
  • Changeset, nothing reaches it while it leaves, but a toast its action raised stays live and is read: verified (AlertDialog.tsx:221-229, inputHold.ts:1059-1105; the nested-layer and live-region hold cases).
  • Changeset, reduced motion only cross-fades: verified (the animator's opacity-only plan; the browser spec's reduced-motion case covers it).
  • Changeset and description, with no width a phone's default goes from 400 to 320 px in every theme and a passed width wins: verified (AlertDialog.tsx:213, the width unit case).
  • Changeset and description, nothing changes with a mouse: verified (every new path is gated on a coarse primary pointer; unit mouse case).
  • Description, no new prop, export or data attribute: verified (the generated API surface has no row; AlertDialog.public.test.ts).
  • Description, one fallback for an unresolved theme timing shared by the alert and Popover: verified (motion/themeTiming.ts:311-319).
  • Description, the head merges main with no conflict, and that merge changes the layer runtime record and Button: verified.
  • Description, size of +2,943 / −117 lines in 22 files: verified.
  • Description, device runs at this head are pending: verified, and this is the finding above.
  • Description, test tallies: partly verified (a 398-test unit subset passes here; the browser runs were not repeated).
  • Files: all 22 changed files were read; AlertDialog.spec.md carries the finding above, useAlertMotion.ts and AlertDialog.tsx carry the wording suggestions, and the other 19 are clear.

Automated review (maintainer link)

Comment on lines +36 to +37
* The presentation plays the theme's entrance easing over its duration step
* for UIKit's measured 404 ms alert present. A tap opens an alert, and a tap

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.

Non-blocking (architecture:knowledge-contracts INV29 style): "over its duration step for UIKit's measured 404 ms alert present" leaves the step unnamed. Suggested: "The present plays --ease-entrance over --duration-medium-max, the theme's step for UIKit's measured 404 ms present."

Comment on lines +209 to +211
// Only under the touch presentation does a press slide across the
// actions, and does the alert scale in and fade out. A desktop press stays
// the native button's, and a mouse keeps the theme's entrance.

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.

Non-blocking (architecture:knowledge-contracts INV29 style): the first sentence carries two topics. Suggested: "Only the touch presentation tracks a press across the actions. It also scales the alert in and fades it out. A desktop press stays the native button's, and a mouse keeps the theme's entrance."

@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: CI has not run on this head yet. Every job skipped because the pull request is a draft, and it already has the ci:run label, so CI runs once it is marked ready for review.

The device results for this head are now stated in the description, which resolves the one item from the last review. The touch motion, the input holds, the phone width and the toast that stays live during the fade follow component:AlertDialog FR6, FR7 and FR9. The record edits carry an engineering owner's approval for this head.

Two optional comment-wording suggestions from the last review still apply (useAlertMotion.ts:36-37 and AlertDialog.tsx:209-211). Neither blocks.

Claims and files checked
  • Changeset: under a finger the alert scales into place from 1.2 while it and the dimming fade in, on the theme's entrance timing. Verified (useAlertMotion.ts:40-43, :226-240; the unit curve cases; a Chromium frame mid-entrance).
  • Changeset: on close it fades out with the dimming on the theme's exit timing, and a close or a reopen midway turns back from where it is. Verified (useAlertMotion.ts:45-49, :242-295; unit cases).
  • Changeset: while it appears a touch does nothing, and keys and assistive technology still act. Verified (the pointer-only entrance hold; unit cases).
  • Changeset: while it leaves nothing reaches it, but a toast its action raised stays live and is read. Verified (AlertDialog.tsx:218-229, inputHold.ts:1059-1122; unit cases; a Chromium frame where Undo ran during the fade).
  • Changeset: with reduced motion it only cross-fades. Verified (the animator's fixed opacity-only cross-fade; the pull request's reduced-motion browser case).
  • Changeset and description: on a phone with no width the alert goes from 400 to 320 px in every theme, and a passed width wins. Verified (AlertDialog.tsx:213; the width unit case; frames at 370 → 320 px).
  • Changeset and description: nothing changes with a mouse. Verified (every new path is gated on a coarse primary pointer; desktop frames are pixel-identical).
  • Description: today the alert rises with Dialog's entrance, vanishes at once and is 400 px wide. Verified (base frames).
  • Description: no new prop, export or data attribute. Verified (the generated API surface shows no changed row; AlertDialog.public.test.ts).
  • Description: one internal hook drives the dialog and its backdrop on the shared animator and the theme's timing, and the measured springs stay reference only. Verified (no spring plays; unit case).
  • Description: one shared fallback for an unresolved theme timing, used by the alert and Popover. Verified (motion/themeTiming.ts:311-319; Popover's removed copy was identical).
  • Description: the alternative pull request is open, and only one of the two lands. Verified that it is still an open draft.
  • Description: the head merges main with no conflict, and that merge changes the layer runtime record and Button. Verified, along with the described commit history.
  • Description: size is +2,943 / −117 lines in 22 files, with product code +487 / −53 and tests +2,292 / −23. Verified.
  • Description: unit tests, the core typecheck, strict ESLint and Prettier on the changed files, and the knowledge and changeset checks pass. Verified here (396 unit tests in the AlertDialog, Layer hold, theme timing, Popover and Dialog suites).
  • Description: browser interaction, accessibility-spec and Storybook tallies, and the red-first and mutation results. Not re-run here, since CI skipped on the draft. They are consistent with the unit results and with this review's frames.
  • Description: iPhone Safari runs side by side with the approved head, and Android emulator runs at normal, slow and removed animations, all at this head. Stated in text as the repository requires, and they cover the cases the spec lists.
  • Files: all 22 changed files were read. useAlertMotion.ts and AlertDialog.tsx carry the two optional wording suggestions. The other 20 are clear: the changeset, the two sandbox case files, the story, both records, AlertDialog.doc.mjs, AlertDialog.public.test.ts, AlertDialog.test.tsx, the motion browser spec, useAlertMotion.test.tsx, the two Dialog browser specs, inputHold.test.tsx, inputHold.ts, popoverSurfaceMotion.ts, both theme-timing tests, themeTiming.ts and layerRoot.stylex.ts.

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 43d6ceb

1 similar comment
@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 43d6ceb

@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: one report is missing. The code, the record edits and the device evidence otherwise check out at this head.

  • Newly live check: this pull request grows the shared Layer/inputHold.ts, motion/themeTiming.ts and privateAttributes/layerRoot.stylex.ts modules, so architecture:component-import-boundaries INV10 asks the description to state the base-against-head first-load gzip delta on the four reference pages (docs, form, menu and table); a source build here measures 0, 0, +670 B and +661 B, mostly from the new import of Layer/modalOutlet.ts in inputHold.ts.

The device results stated for the previous head still count here, because this head only merges main and changes none of the pull request's files or their direct imports. Two optional comment-wording suggestions from the last review still apply (useAlertMotion.ts:36-37 and AlertDialog.tsx:209-211).

Claims and files checked
  • Changeset: under a finger the alert scales into place from 1.2 while it and the dimming fade in on the theme's entrance timing. Verified (useAlertMotion.ts:40-43, :226-240; unit curve cases).
  • Changeset: it fades out with the dimming on the theme's exit timing, and a close or reopen midway turns back from where it is. Verified (useAlertMotion.ts:45-49, :241-287; unit cases).
  • Changeset: while it appears a touch does nothing, and keys and assistive technology still act. Verified (pointer-only 'viewport' hold; unit cases).
  • Changeset: while it leaves nothing reaches it, but a toast its action raised stays live and is read. Verified (AlertDialog.tsx:221-229, inputHold.ts:1059-1110; unit cases).
  • Changeset: with reduced motion it only cross-fades. Verified (the animator's opacity-only substitution; the reduced-motion browser case).
  • Changeset and description: on a phone with no width the alert goes from 400 to 320 px in every theme, and a passed width wins. Verified (AlertDialog.tsx:213; width unit case).
  • Changeset and description: nothing changes with a mouse. Verified (every new path is gated on a coarse primary pointer).
  • Description: no new prop, export or data attribute. Verified (the generated API surface shows no changed row; AlertDialog.public.test.ts).
  • Description: one internal hook drives the dialog and its backdrop on the shared animator and the theme's timing, and the measured springs stay reference only. Verified (no spring plays; unit case).
  • Description: one shared fallback for an unresolved theme timing serves the alert and Popover. Verified (motion/themeTiming.ts:311-319).
  • Description: this head merges main with no conflict and changes none of the pull request's files or their direct imports, while deeper imports and the sandbox page's Link import change. Verified.
  • Description: size is +2,943 / −117 lines in 22 files, product code +487 / −53 and tests +2,292 / −23. Verified.
  • Description: unit tests, the core typecheck and the knowledge and changeset checks pass. Verified here (558 unit tests in 16 files).
  • Description: browser interaction and accessibility tallies, red-first and mutation results. Not re-run here, since CI skipped on the draft; consistent with the unit results.
  • Description: iPhone Safari and Android emulator runs at the previous head. Stated in text as the repository requires, and they carry to this head.
  • Files: all 22 changed files were read. Layer/inputHold.ts, motion/themeTiming.ts and layerRoot.stylex.ts carry the INV10 report finding; useAlertMotion.ts and AlertDialog.tsx carry the two optional wording notes; the other 17 are clear (the changeset, both sandbox case files, the story, both records, AlertDialog.doc.mjs, AlertDialog.public.test.ts, AlertDialog.test.tsx, the motion browser spec, useAlertMotion.test.tsx, both Dialog browser specs, inputHold.test.tsx, popoverSurfaceMotion.ts and both theme-timing tests).

Automated review (maintainer link)

Comment thread packages/core/src/Layer/inputHold.ts Resolved

@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: CI has not run on this head yet, because every job skips while the pull request is a draft; it runs once the pull request is ready for review, and the ci:run label is already set.

The per-page first-load size report is now in the description and matches a fresh measurement on the built packages (docs +10 B, form 0 B, menu +649 B, table +630 B gzip). The device results stated for the previous head still count here, because this head only merges main and touches none of the pull request's files or their direct imports. Two optional comment-wording suggestions remain inline (useAlertMotion.ts:36-38, AlertDialog.tsx:209-211).

Claims and files checked
  • Changeset: under a finger the alert scales into place from 1.2 while it and the dimming fade in, on the theme's entrance timing. Verified (useAlertMotion.ts:40-43, :96-108; unit curve cases; a frame 700 ms into a slowed entrance shows scale 1.059 at opacity 0.704).
  • Changeset: it fades out with the dimming on the theme's exit timing, and a close or a reopen midway turns back from where it is. Verified (useAlertMotion.ts:46-49, :78-88, :242-289; unit cases).
  • Changeset: while it appears a touch does nothing, and keys and assistive technology still act. Verified (the pointer-only 'viewport' hold; unit and hold cases).
  • Changeset: while it leaves nothing reaches it, but a toast its action raised stays live and its words are read. Verified (AlertDialog.tsx:218-229, inputHold.ts:157-206, :1059-1113; unit cases; a frame of the Undo tap running during the fade).
  • Changeset: with reduced motion it only cross-fades. Verified (the shared animator's opacity-only 200 ms substitution).
  • Changeset and description: on a phone with no width the alert goes from 400 to 320 px in every theme, and a passed width wins. Verified (AlertDialog.tsx:213; the width unit case; frames at 320 px against 370 px after the clamp on a 402 px screen).
  • Changeset and description: with a mouse nothing changes. Verified (every new path is gated on a coarse primary pointer; desktop frames are pixel-identical).
  • Description: today the alert rises with Dialog's entrance, vanishes at once and requests 400 px. Verified (base frames).
  • Description: the leaving hold now leaves a nested layer, its path and a child live region live. Verified (inputHold.ts:1083-1113; hold unit cases).
  • Description: the governing claims are the component's own touch-motion, input and width requirements under the touch-presentation spec, with the toast's hosting and announcement rules. Verified (the component record is current; the record edits carry an owner's approval for this head).
  • Description: an earlier pull request implements the same requirements differently, and only one should land. Verified (it is still an open draft).
  • Description: no new prop, export or data attribute, and the motion and input rules apply under a coarse primary pointer only. Verified (the generated API surface shows no changed row; the width default is the one documented change).
  • Description: one internal hook drives the dialog and its backdrop on the shared animator and the theme's timing, and the measured springs stay reference only. Verified (no spring plays; unit case).
  • Description: red-first and mutation results on an earlier base. Not re-run here.
  • Description: this head merges main with no conflict and changes none of the pull request's files or their direct imports, while deeper imports and the sandbox page's link import change; the earlier merge chain is as described. Verified against the commit graph and the merge's changed files.
  • Description: browser interaction and accessibility tallies. Not re-run here, since CI skips the draft.
  • Description: unit tests, the core typecheck, and the knowledge and changeset checks pass. Verified here (1,225 unit tests in 41 files; the other checks pass); the Storybook build, ESLint and Prettier were not re-run.
  • Description: iPhone Safari and Android emulator results at the previous head, recorded by an owner. Stated in text as the repository requires, and they carry to this head.
  • Description: size is +2,943 / −117 lines in 22 files, product code +487 / −53 and tests +2,292 / −23. Verified.
  • Description: first-load gzip on the four reference pages is docs +10 B, form 0 B, menu +649 B and table +630 B; menu and table now load the modal-outlet module (1,436 B minified), the hold grows 421 B and the layer-root owner 55 B. Verified by a fresh build of each page.
  • Description: the new hook, the new layer-root reader and the new theme-timing export are internal, in their existing owners, and no package entry exports them; the hold changes only its dismissal scope. Verified.
  • Description: the story for a toast and the sandbox case for interruptions serve the tests and device runs. Verified.
  • Description: writing-rubric results for both records. Verified against the record diffs.
  • Files: all 22 changed files were read. useAlertMotion.ts and AlertDialog.tsx carry the two optional wording notes; the other 20 are clear (the changeset, both sandbox case files, the story, both records, AlertDialog.doc.mjs, AlertDialog.public.test.ts, AlertDialog.test.tsx, the motion browser spec, useAlertMotion.test.tsx, both Dialog browser specs, inputHold.test.tsx, inputHold.ts, popoverSurfaceMotion.ts, themeTiming.ts, both theme-timing tests and layerRoot.stylex.ts).

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor

The 320 px phone width is an approved design: AlertDialog DEC-2 (decided by the owner, 2026-10-26) and FR9 state that on a phone an alert is 320 px wide in every theme, as iOS's is. Approved designs ship on the normal gates, so needs:design-review is cleared. (Posted by Cindy's agent.)

A loaded engine can run the commit that closes the alert late. The
animator then dates the fade at the last frame, and it can retire the
fade before the next frame. The check looked for the fade in the
dialog's running animations once per frame, so it could miss it and
fail with "no fade after the close".

The check now records the fade where the animator makes it, reads its
start time in that task, and waits for it on a timer, still for at most
1 s. A close that makes no fade still fails with "no fade after the
close". A take whose fade ends before any frame is taken again, as
before, and the report records each retake.
@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 16a8869

@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: one line of the description is out of date. The code, the record edits and the evidence otherwise check out at this head, and an engineering owner approved the record edits for it.

  • The description's size line still says +2,943 / −117 lines with tests +2,292 / −23, but this head's test commit makes it +2,971 / −117 with tests +2,320 / −23; please update that line, which needs no new commit.

Two optional comment-wording suggestions remain inline (useAlertMotion.ts:36-38, AlertDialog.tsx:209-211). CI has not run on this head because the pull request is a draft.

Claims and files checked
  • Changeset: under a finger the alert scales into place from 1.2 while it and the dimming fade in, on the theme's entrance timing. Verified (useAlertMotion.ts:226-240; unit curve cases; a frozen frame 23% into a slowed entrance shows scale 1.063 with card and dimming at 0.681).
  • Changeset: it fades out with the dimming on the theme's exit timing, and a close or a reopen midway turns back from where it is. Verified (useAlertMotion.ts:241-289; unit cases; a frame 900 ms into a slowed exit shows the open alert at 0.833).
  • Changeset: while it appears a touch does nothing, and keys and assistive technology still act. Verified (the pointer-only hold at useAlertMotion.ts:239; unit and hold cases).
  • Changeset: while it leaves nothing reaches it, but a toast its action raised stays live and its words are read. Verified (AlertDialog.tsx:218-229, inputHold.ts:152-168, :1054-1110; unit cases; a frame of the toast's Undo tap running during the fade).
  • Changeset: with reduced motion it only cross-fades. Verified (200 ms opacity-only curves on the card and the dimming under reduced motion).
  • Changeset and description: on a phone with no width the alert goes from 400 to 320 px in every theme, and a passed width wins. Verified (AlertDialog.tsx:213; the width unit case; frames at 320 px against 370 px on the base).
  • Changeset and description: with a mouse nothing changes. Verified (every new path is gated on a coarse primary pointer; desktop frames are pixel-identical).
  • Description: today the alert rises with Dialog's entrance, vanishes at once and requests 400 px. Verified (base frames).
  • Description: the leaving hold leaves a nested layer, its path and a child live region live. Verified (inputHold.ts:152-168, :1054-1110; hold unit cases).
  • Description: the governing claims are the component's touch-motion, input and width requirements under the touch-presentation spec, with the toast's hosting and announcement rules. Verified (the component record is current; the record edits carry an owner's approval for this head).
  • Description: an earlier pull request implements the same requirements differently, and only one should land. Verified (it is still an open draft).
  • Description: no new prop, export or data attribute, and the motion and input rules apply under a coarse primary pointer only. Verified (the generated API surface shows no changed row; the width default is the one documented change).
  • Description: one internal hook drives the dialog and its backdrop on the shared animator and the theme's timing, and the measured springs stay reference only. Verified (no spring plays; unit case).
  • Description: red-first and mutation results on an earlier base. Not re-run here.
  • Description: this head changes one test file, the turn-back check, over the previous head; that head merged main with no conflict and changed none of the pull request's files or their direct imports. Verified against the commit graph and the merge's changed files.
  • Description: the turn-back check now finds the fade where it is made, still waits at most 1 s, keeps its tolerances and three takes, and records each retake. Verified by reading the change; the check was not run here.
  • Description: browser, accessibility, Storybook-build and lint results at the previous head. Not re-run here, since CI skips the draft.
  • Description: unit tests, the knowledge check and the changeset check pass. Verified here (1,225 unit tests in 41 files; both checks pass).
  • Description: iPhone Safari and Android emulator results at the previous head. Stated in text as the repository requires, and they carry to this head because only a test file changed.
  • Description: the previous head's owner record is linked as the decision for an earlier head. That comment now records the previous head's stamp; the paragraph is out of date (non-blocking).
  • Description: size is +2,943 / −117 lines in 22 files, product code +487 / −53 and tests +2,292 / −23. False at this head: +2,971 / −117, tests +2,320 / −23 (product code is right).
  • Description: first-load gzip on the four reference pages is docs +10 B, form 0 B, menu +649 B and table +630 B. Stated for the previous head; no package source changed since.
  • Description: the new hook, the layer-root reader and the theme-timing export are internal and in their existing owners, and the hold changes only its dismissal scope. Verified.
  • Description: the toast story and the interruptions sandbox case serve the tests and device runs. Verified.
  • Description: writing-rubric results for both records. Verified against the record diffs.
  • Files: all 22 changed files were read. useAlertMotion.ts and AlertDialog.tsx carry the two optional wording notes; the other 20 are clear (the changeset, both sandbox case files, the story, both records, AlertDialog.doc.mjs, AlertDialog.public.test.ts, AlertDialog.test.tsx, the motion browser spec, useAlertMotion.test.tsx, both Dialog browser specs, inputHold.test.tsx, inputHold.ts, popoverSurfaceMotion.ts, themeTiming.ts, both theme-timing tests and layerRoot.stylex.ts).

Automated review (maintainer link)

@vjeux

vjeux commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

The size line now reads +2,971 / −117 in 22 files, with tests +2,320 / −23, from git diff --numstat against the merge base 9d19da9.

@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: CI has not run on this head yet, because every job skips while the pull request is a draft; it runs once the pull request is ready for review, and the ci:run label is already set.

The description's size line now matches the diff, which was the one change requested on this revision. The record edits carry an engineering owner's approval for this head, and the device results stated for the previous head still count, because the only commit since edits a browser test. Optional: the device-runs paragraph for an earlier head links an owner comment that now describes a later head, and two comment-wording suggestions remain inline (useAlertMotion.ts:36-38, AlertDialog.tsx:209-211).

Claims and files checked
  • Changeset: under a finger the alert scales into place from 1.2 while it and the dimming fade in, on the theme's entrance timing. Verified (useAlertMotion.ts:40-43, :226-239; unit curve cases; a frame 700 ms into a slowed entrance shows scale 1.059 at opacity 0.706).
  • Changeset: it fades out with the dimming on the theme's exit timing, and a close or a reopen midway turns back from where it is. Verified (useAlertMotion.ts:46-49, :242-289; unit cases; open at opacity 0.834 900 ms into a slowed exit).
  • Changeset: while it appears a touch does nothing, and keys and assistive technology still act. Verified (the pointer-only hold at useAlertMotion.ts:239; unit and hold cases).
  • Changeset: while it leaves nothing reaches it, but a toast its action raised stays live and its words are read. Verified (AlertDialog.tsx:221-229, inputHold.ts:157-205, :1059-1110; unit cases; an Undo tap ran during the fade in the toast story).
  • Changeset: with reduced motion it only cross-fades. Verified (the shared animator's 200 ms opacity-only substitution).
  • Changeset and description: on a phone with no width the alert goes from 400 to 320 px in every theme, and a passed width wins. Verified (AlertDialog.tsx:213; the width unit case; 320 px against 370 px after the clamp on a 402 px screen).
  • Changeset and description: with a mouse nothing changes. Verified (every new path is gated on a coarse primary pointer; desktop frames are pixel-identical).
  • Description: today the alert rises with Dialog's entrance, vanishes at once and requests 400 px. Verified (base frames).
  • Description: the leaving hold leaves a nested layer, its path and a child live region live. Verified (inputHold.ts:1083-1110; hold unit cases).
  • Description: no new prop, export or data attribute. Verified (the generated API surface shows no changed row; the width fallback is the one documented default change).
  • Description: one internal hook drives the dialog and its backdrop on the shared animator and the theme's timing, and Popover shares the new timing fallback with no behavior change. Verified (popoverSurfaceMotion.ts calls the shared fallback with a non-null element).
  • Description: the size line (+2,971 / −117, tests +2,320 / −23). Verified against the diff.
  • Description: first-load size deltas on the four reference pages (docs +10 B, form 0 B, menu +649 B, table +630 B). Verified by a fresh build of the four pages from the built packages.
  • Description: this head changes one test file over the previous head, whose merge of main touches none of the pull request's files. Verified.
  • Description: device results on a real iPhone and an Android emulator at the previous head. Stated in text; they carry to this head because the only commit since edits a test-only file.
  • Description: the link to the owners' decision for an earlier head's device runs. The linked comment now describes a later head (optional fix).
  • Description: red-first and mutation results on an earlier base. Not re-run here.
  • Files: .changeset/alertdialog-touch-motion.md, the sandbox caseIds.ts and cases.tsx, AlertDialog.stories.tsx, layer-runtime.md, AlertDialog.spec.md, AlertDialog.doc.mjs, AlertDialog.public.test.ts, AlertDialog.test.tsx, AlertDialog.motion.interaction.browser.spec.ts, useAlertMotion.test.tsx, Dialog.reduced-motion.a11y.browser.spec.ts, DialogTouchEntrance.interaction.browser.spec.ts, inputHold.test.tsx, Popover/popoverSurfaceMotion.ts, themeTiming.server.test.ts, themeTiming.test.ts, themeTiming.ts, layerRoot.stylex.ts: clear.
  • Files: AlertDialog.tsx and useAlertMotion.ts: clear apart from the optional wording notes; inputHold.ts: clear.

Automated review (maintainer link)

This branch was successfully deployed

1 active deployment
Preview — 16a88691 Deployed Nov 14, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) ci:run-a11y Run the accessibility suite on this PR; write access, next push (AST-030 FR12) CLA Signed This label is managed by the Meta Open Source bot. needs:design-review Affects visuals — Design should review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants