Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
623b365 to
217625b
Compare
There was a problem hiding this comment.
This needs an engineering owner's decision before it can be approved: no current spec governs MobileNav holding touch input through its slide-in and slide-out (the MobileNav record is draft and AST-094 is not on main), so an owner needs to approve that behavior, and say whether architecture:public-component-api INV16 calls for a presentation value that keeps the fine-pointer behavior, by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. Separately, the diff against main still carries the unlanded stack (#8342, #8119, #8076, #8336 and their predecessors, about 36,000 of its 36,800 authored lines), so please land those first and update this branch so it carries only its last three commits.
- The MobileNav open/close effect acquires the presentation hold, but its cleanup does not release it (
architecture:react-component-runtimeINV3); releasing it there keeps every path in one place. MAX_EXIT_MS(550 ms) is not the end of the slide-out for themes with a slower--duration-medium, so the changesets' "until its slide-out ends" needs the bound stated, or AppShell should follow the theme's duration.
[Automated review]
| // slide-out ends; its content takes no input meanwhile. Then it | ||
| // closes and focus goes back to the opener. | ||
| const duration = resolveSlideDuration(drawerRef.current); | ||
| hold('layer', duration); |
There was a problem hiding this comment.
This effect acquires the presentation hold here (and at line 665), but its cleanup (lines 692–697) only clears the close timer; the release lives in the next run, the close timer, the mouse branch and the unmount-only effect. architecture:react-component-runtime INV3 asks the acquiring effect's cleanup to release what its setup acquires. Releasing releaseHoldRef in the cleanup, with a ref flag for the reopen refocus, would keep every path in one place.
| * AppShell.tsx): Activity's `display: none !important` would otherwise cut | ||
| * the slide-out off (#5701). | ||
| */ | ||
| export const MAX_EXIT_MS = 550; |
There was a problem hiding this comment.
resolveSlideDuration clamps to this and AppShell waits this plus 50 ms, but the drawer slides for the theme's --duration-medium, which defineTheme's motion scale does not bound. With medium: 700, a finger gets the page back 150 ms before the drawer finishes and AppShell cuts the last 100 ms, while both changesets say the hold lasts until the slide-out ends. Stating the bound, or giving AppShell the resolved duration, would make that true.
PR Analysis Report📚 Storybook Preview🧪 Sandbox PreviewModified ComponentsAppShell (@astryxdesign/core) · View in Storybook
Component Size
Sizes are gzip. Import counts the JavaScript the import loads eagerly; CSS counts the package stylesheet rules referenced by the modules it can load from its own package, lazily loaded ones included.
|
| Component | JavaScript | CSS |
|---|---|---|
| core/AppShell | +15.0KB |
0B |
| core/MobileNav | +15.1KB |
0B |
| core/SideNav | +15.2KB |
0B |
| core/TopNav | +15.1KB |
0B |
Bundle Size Summary
Gzip figures measure each package's entry file, not the code an import pulls in.
| Package | Entry (ESM) | Entry gzip before | Entry gzip after | Delta |
|---|---|---|---|---|
| @astryxdesign/core | 4.9KB | 1.2KB | 1.2KB | 0B |
| Package stylesheet | Gzip before | Gzip after | Delta |
|---|---|---|---|
| @astryxdesign/core | 34.6KB | 34.6KB | 0B |
Accessibility Audit
Status: No accessibility violations detected.
Visual Regression
55 of 502 shot(s) changed.
A change here is a question, not a failure: check whether the after is the
picture you intended. Record that review on the PR. Baseline maintenance is an
explicit dispatch of CI; this report never rewrites the baseline or adds a release gate.
| component | story | theme | mode | pixels |
|---|---|---|---|---|
| Selector | Indicator Space Bottom Sheet Narrow End RTL | neutral | light | 753,933 |
| Selector | Indicator Space Bottom Sheet Wide Start | neutral | light | 739,916 |
| RichTextEditor | Markdown parity: side by side | probe | dark | 558,840 |
| RichTextEditor | Markdown parity: side by side | probe | light | 540,756 |
| Chat | Full AI Chat | probe | light | 230,823 |
| Chat | Full AI Chat | probe | dark | 229,805 |
| AppShell | With Mobile Nav | probe | light | 217,010 |
| AppShell | With Mobile Nav | probe | dark | 216,960 |
| Collapsible | Dividers | probe | dark | 66,445 |
| Collapsible | Dividers | probe | light | 66,445 |
| AppShell | Playground | neutral | dark | 65,198 |
| AppShell | Playground | neutral | light | 63,788 |
| Chat | Default | neutral | dark | 36,304 |
| Chat | Default | neutral | light | 35,767 |
| Chat | Empty State | probe | light | 23,531 |
| Chat | Empty State | probe | dark | 22,622 |
| ChatAutoScroll | Scroll Behavior Comparison | neutral | dark | 15,378 |
| ChatAutoScroll | Scroll Behavior Comparison | neutral | light | 14,107 |
| Chat | With Attachments | probe | light | 13,406 |
| Chat | With Attachments | probe | dark | 11,232 |
and 35 more.
Generated by PR Enrichment workflow | Storybook | Sandbox | View full report
There was a problem hiding this comment.
This needs an engineering owner's decision before it can be approved: no current spec governs MobileNav holding touch input through its slide-in and slide-out (the MobileNav record is still a draft, and AST-094 leaves each component's touch presentation to that component's own record), so an engineering owner needs to approve that behavior, and say whether architecture:public-component-api INV16 calls for a presentation value that keeps the fine-pointer behavior, by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. Separately, the diff against main still carries the unlanded stack (#8342, #8119 and their predecessors, about 37,500 of its 38,200 authored lines) and now conflicts with main, so please land those first and update this branch so it carries only its last three commits.
- The MobileNav open/close effect acquires the presentation hold but its cleanup does not release it (
architecture:react-component-runtimeINV3); releasing it there keeps every path in one place. MAX_EXIT_MS(550 ms) is not the end of the slide-out for themes with a slower--duration-medium, so the changesets' "until its slide-out ends" needs the bound stated, or AppShell should follow the theme's duration.packages/build/README.mdstill documents the undeclared-variable warning that the stack's own revert removed from the code.
[Automated review]
|
|
||
| Unsupported declarations fail the build by default with StyleX's replacement guidance. Set `propertyValidationMode` explicitly in `stylexOverrides` (modern API) or `stylexOptions` (legacy API) only when a migration needs the upstream `warn` or `silent` behavior. | ||
|
|
||
| A production build also checks the StyleX stylesheet for generated custom properties (`--<prefix><hash>`) that it reads but no stylesheet in the build declares, which browsers drop: a `.stylex.ts` export read in a style that is not a `defineVars`/`defineConsts` value, or one whose module never reached the build. It warns, naming the variable and the rule that reads it. Only stylesheets count as declarations, so a property the app sets at runtime (an inline style) is reported too: give it a name outside the StyleX class-name prefixes. |
There was a problem hiding this comment.
This paragraph documents a production-build warning that the stack's later revert ("astryxStylex keeps no undeclared-variable warning") removed together with its tests; nothing in packages/build/src produces it at this head, so an app author would expect a check that never runs. It should go with that revert.
There was a problem hiding this comment.
This needs an engineering owner's decision before it can be approved. No current spec governs MobileNav holding touch input through its slide-in and slide-out (the MobileNav record is still a draft, and AST-094 leaves each component's touch presentation to that component's own record), so an engineering owner needs to approve that behavior, and say whether architecture:public-component-api INV16 calls for a presentation value that keeps the fine-pointer behavior, by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. Separately, the diff against main still carries the unlanded stack (#8342, #8119 and their predecessors, about 31,400 of its 32,200 authored lines) and now conflicts with main, so please land those first and update this branch so it carries only its last three commits.
- The touch-only hold statically imports the gesture host, adding roughly 10.6 KB gzip to the MobileNav, AppShell, SideNav and TopNav imports;
architecture:component-style-authoringINV6 asks for it to load lazily under a coarse pointer, or for the cost to be justified in the description. - The open/close effect acquires the presentation hold, but its cleanup does not release it (
architecture:react-component-runtimeINV3). MAX_EXIT_MS(550 ms) is not the end of the slide-out for themes with a slower--duration-medium, so the changesets' "until its slide-out ends" needs the bound stated, or AppShell should follow the theme's duration.
[Automated review]
| type ScrollbarGutterHold, | ||
| } from '../hooks/scrollbarGutter'; | ||
| import {useScrollLock} from '../hooks/useScrollLock'; | ||
| import {holdPresentation} from '../Layer/presentationHold'; |
There was a problem hiding this comment.
This static import brings the whole gesture host (presentationHold.ts:65 imports getGestureHost) into every MobileNav import, and so into AppShell, SideNav and TopNav, for a hold that only runs where the pointer is coarse. That comes to about 10.6 KB gzip by an esbuild estimate on this head. architecture:component-style-authoring INV6 asks a coarse-pointer-only feature over 2 KB to load lazily or to justify the cost in the description. A dynamic import('../Layer/presentationHold') once TOUCH_QUERY matches (for example at mount, so the first open's hold is not late) would keep mouse users from paying for it.
There was a problem hiding this comment.
This needs an engineering owner's decision before it can be approved: on main, the MobileNav spec is now current, and its FR5 and ORD3 close the dialog no later than 250 ms after a close request, while under a finger this change keeps the dialog open until the slide-out ends (410 ms by default, up to 550 ms) and drops taps during the slide-in, which no spec states. An engineering owner needs to update FR4, FR5 and ORD3 for a coarse pointer, or decline, and say whether architecture:public-component-api INV16 calls for a presentation value that keeps the fine-pointer behavior, by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. Separately, please land the stacked dependencies (#8342, #8119 and their predecessors) first so this branch carries only its own 10 files, and address the points below.
- The touch-only hold is imported statically, adding about 11 KB gzip to the MobileNav, AppShell, SideNav and TopNav imports;
architecture:component-style-authoringINV6 asks for it to load lazily under a coarse pointer, or for the cost to be justified in the description. - The open/close effect acquires the presentation hold, but its cleanup does not release it (
architecture:react-component-runtimeINV3). MAX_EXIT_MS(550 ms) is not the end of the slide-out for custom themes with a slower--duration-medium, so the doc comment and changeset should state that bound, or AppShell should follow the drawer's duration.
[Automated review]
| } else if (dialog.open && isTouch) { | ||
| // The dialog stays open, and so keeps the page inert, until the | ||
| // slide-out ends; its content takes no input meanwhile. Then it | ||
| // closes and focus goes back to the opener. | ||
| const duration = resolveSlideDuration(drawerRef.current); | ||
| hold('layer', duration); | ||
| closeTimeoutRef.current = setTimeout(() => { | ||
| releaseHoldRef.current?.(); | ||
| releaseHoldRef.current = null; | ||
| closeAndRestoreFocus(dialog, triggerElementRef); | ||
| setIsCloseHeld(false); | ||
| }, duration); |
There was a problem hiding this comment.
Under a coarse pointer the dialog now closes when the slide-out ends: 410 ms after the close request with the default --duration-medium, and up to 550 ms. On main, component:MobileNav FR5 and ORD3 close it "no later than 250 ms after the request", so this needs an engineering owner to amend those claims for a coarse pointer, or the touch close has to stay inside 250 ms.
There was a problem hiding this comment.
Approval is waiting on an engineering owner's decision: under a finger this change keeps MobileNav's dialog open until the slide-out ends (410 ms by default, up to 550 ms) and ignores taps during the slide-in, while the current MobileNav spec on main closes the dialog within 250 ms of a close request (FR5, ORD3) and lets a backdrop or Close tap request close at any time (FR4). An engineering owner needs to decide whether FR4, FR5 and ORD3 should change for a coarse pointer, updating the MobileNav spec if so, and whether architecture:public-component-api INV16 calls for a presentation value that keeps the mouse behavior; the decision is recorded by commenting /approve-spec <full head SHA> on this pull request, which the author can do as an engineering owner. Independently of that decision, please address the following:
- Land #8342, #8119 and their predecessors first, so this branch carries only its own 10 files instead of about 30,000 lines of stacked work.
- The touch-only hold is imported eagerly and adds about 11 KB gzip to the MobileNav, AppShell, SideNav and TopNav imports; load it lazily under a coarse pointer or justify the cost, as
architecture:component-style-authoringINV6 requires. - Release the hold in the open/close effect's cleanup (
architecture:react-component-runtimeINV3), and state the 550 ms cap where the changesets say the hold lasts until the slide-out ends.
[Automated review]
| type ScrollbarGutterHold, | ||
| } from '../hooks/scrollbarGutter'; | ||
| import {useScrollLock} from '../hooks/useScrollLock'; | ||
| import {holdInput} from '../Layer/inputHold'; |
There was a problem hiding this comment.
This eager import makes every MobileNav, AppShell, SideNav and TopNav bundle carry the gesture host (through Layer/inputHold.ts:65), about 11.1 KB gzip, although the hold only runs when (pointer: coarse) matches. architecture:component-style-authoring INV6 asks for a lazy load or a stated justification above 2 KB; a dynamic import('../Layer/inputHold') started once TOUCH_QUERY matches (for example at mount) would keep mouse users from downloading it.
| // slide-out ends; its content takes no input meanwhile. Then it | ||
| // closes and focus goes back to the opener. | ||
| const duration = resolveSlideDuration(drawerRef.current); | ||
| hold('layer', duration); |
There was a problem hiding this comment.
The hold taken here (and at line 664) is not released by this effect's cleanup, which only clears the close timer. architecture:react-component-runtime INV3 asks an effect's cleanup to release what its setup acquired; calling releaseHoldRef.current?.() there, with a separate ref for the reopen refocus, would keep the release beside the acquisition.
| releaseHoldRef.current = null; | ||
| closeAndRestoreFocus(dialog, triggerElementRef); | ||
| setIsCloseHeld(false); | ||
| }, duration); |
There was a problem hiding this comment.
Under a coarse pointer the close now runs when the slide-out ends: 410 ms after the request at the token default, and up to 550 ms. component:MobileNav FR5 and ORD3 on main bound the close at 250 ms after the request, so an engineering owner needs to amend those claims for a coarse pointer before this timing can be approved.
| * AppShell.tsx): Activity's `display: none !important` would otherwise cut | ||
| * the slide-out off (#5701). | ||
| */ | ||
| export const MAX_EXIT_MS = 550; |
There was a problem hiding this comment.
--duration-medium comes from a theme's motion.medium, which expandMotionScale does not cap, so with a theme slower than 550 ms the page and focus come back while the drawer is still moving, and AppShell hides it at 600 ms. Please state this cap here and in both changesets, which currently say the hold lasts until the slide-out ends.
|
Posted by Cindy's agent on her behalf. Review follow-ups:
If this stays idle, we'll fix 2 and 4 after about 30 minutes, keeping your authorship. |
|
Thanks. On it: 1, 2 and 4 land with my next push, within the hour, with the foundation fold.
|
Once a component in the root entry holds its layer's input (a popover's presentation hold, meta#8223), Layer/inputHold's static imports of gestures/GestureHost and gestures/nativeScroll put eight gesture modules (about 47 KB) in the root entry, against architecture:react-component-runtime INV13. Bundle a component that imports the input hold and require no gesture bytes. Fails while the input hold imports from gestures/.
…e host asks it Layer/inputHold registered a touch gate with the gesture host (getGestureHost(doc).addTouchGate(isInHeldLayer)) and walked the flat tree through gestures/nativeScroll, so any component that holds its layer statically carried the gesture system into its bundle and the root entry (architecture:react-component-runtime INV13). Invert it: the host asks isInHeldLayer for every touch itself (gestures may import Layer), the hold registers nothing, and it walks the flat tree through utils/flatTree, where parentAcrossShadow already lives. addTouchGate stays for other gates. A host test holds a held layer's touches with no gate (it fails if the host stops asking the hold).
There was a problem hiding this comment.
Approval is waiting on an engineering owner to settle two spec questions this branch raises: whether MobileNav, under a finger, should hold the leaving drawer's input from a close request until its dialog closes (no current claim covers it, since spec:AST-094 FR35 covers only the entrance, and the decision also settles whether architecture:public-component-api INV16 calls for a presentation value), and whether spec:AST-094 FR41 takes the new sentence that a mouse or pen drag a recognizer claims takes no text selection. An engineering owner records each decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. Independently of those decisions:
- Land #8342, #8119 and the pull requests beneath them first, so this branch carries only its own 10 files instead of about 31,800 lines of stacked work.
- Land #8671 (or move its test change into the scroll-lock pull request) first, since Core's root and hooks entries now carry gesture code that
scripts/touch-support-bundle.test.mjsrejects. - Let the slide-in hold end with the drawer's own transition when the slide-in is longer than 550 ms (
MobileNav.tsxline 378), as FR35 requires. - Have the
onOpenChangedocs (MobileNav.doc.mjslines 101, 206 and 314) say the drawer takes no touch while it slides in, since keys and assistive technology still work then. - Clear the timers that
after()starts (MobileNav.tsxlines 391–395) in the open/close effect's cleanup.
[Automated review]
| * load it can also run after it. | ||
| */ | ||
| async function slideInEnd(drawer: HTMLElement | null): Promise<unknown> { | ||
| const cap = after(MAX_EXIT_MS); |
There was a problem hiding this comment.
The race ends the hold at 550 ms whatever the transition, but the drawer slides for the theme's --duration-medium, which defineTheme({motion: {medium}}) accepts at any value and spec:AST-108 FR1–FR2 let tempo scale to 615 ms. With an 800 ms slide-in, a backdrop tap 690 ms after the open closes the drawer mid-entrance, which spec:AST-094 FR35 forbids. Keeping the cap only where getAnimations is missing, or deriving it from the computed transition, lets a running transition end the hold itself.
| async function after(ms: number): Promise<void> { | ||
| await new Promise(resolve => { | ||
| setTimeout(resolve, ms); | ||
| }); | ||
| } |
There was a problem hiding this comment.
This setTimeout keeps no handle, so the open/close effect's cleanup releases the hold but cannot clear the timer: slideInEnd starts one on every touch open and the close branch another, and each still fires up to 550 ms after a reopen, a close or an unmount. architecture:react-component-runtime INV3 and INV5 ask the cleanup to release it; keeping the handles beside releaseHoldRef would do that.
| } else if (dialog.open && isTouch) { | ||
| // The leaving drawer's content takes no input until the dialog closes, | ||
| // at most MAX_CLOSE_DELAY_MS in, as under a mouse (FR5, ORD3); then | ||
| // focus goes back to the opener. | ||
| const delay = resolveCloseDelay(dialog); | ||
| hold('layer', after(delay)); | ||
| closeTimeoutRef.current = setTimeout(() => { | ||
| releaseHoldRef.current?.(); | ||
| releaseHoldRef.current = null; | ||
| closeAndRestoreFocus(dialog, triggerElementRef); | ||
| setIsCloseHeld(false); | ||
| }, delay); |
There was a problem hiding this comment.
Under a coarse pointer this holds the leaving drawer from the close request until dialog.close(): its content goes inert, a focused control is blurred and a shield swallows every tap. No current claim states this (spec:AST-094 FR35 covers entrances only; component:MobileNav FR4–FR6 say nothing about input while the drawer leaves), so it waits on an engineering owner's decision, which also settles whether architecture:public-component-api INV16 calls for a presentation value.
| type: '(isOpen: boolean) => void', | ||
| description: | ||
| 'Called when the drawer visibility changes (backdrop click, Escape key, or close button). Inside AppShell, this is managed automatically via context.', | ||
| 'Called when the drawer visibility changes (backdrop click, Escape key, or close button). Inside AppShell, this is managed automatically via context. Under a finger, the drawer takes no input while it slides in, and after a close none until its dialog closes; then focus returns to the element that opened it.', |
There was a problem hiding this comment.
The slide-in hold is pointer-only (viewport scope): keys and assistive technology stay live, as spec:AST-094 FR35 requires and the unit test pins. As written, this line (and its variants at 206 and 314) tells builders the drawer takes no input at all while it slides in; "takes no touch while it slides in" matches the changeset.
| (`spec:AST-017` FR59; DEC-9). A mouse or pen drag that a recognizer claims | ||
| takes no new text selection for that drag only. A claim made after the | ||
| drag has moved clears the page's selection; a press claimed at its own | ||
| pointerdown, before it moves, keeps it. An unclaimed mouse drag keeps its | ||
| released behavior. |
There was a problem hiding this comment.
These sentences add a normative rule to FR41 that the record on main does not state, and today FR41 keeps a mouse on its released behavior. An engineering owner needs to approve or reject them, ideally in the gesture pull request they come from.
- MobileNav: the touch-presentation proofs stop the page's clock and run it on by exact amounts, so each probe and tap lands inside the slide-in or the close, and the close is read exactly (at most 250 ms) (from meta#8374). - Dialog and Drawer: each entrance check plays one drag and proves it arrived (a capture-phase touch probe added before the page's scripts); the page's movement is read from the visual viewport (from meta#8630). - Layer: a hold under a moving touch is released at an exact step of the drag, and the document's log covers the touch from its start to its end.
…av (spec:AST-094 FR35)
Layer/inputHold holds a layer's pointer input while its presentation
enters or leaves: holdInput(layer, {until, scope}) raises a shield (scope
'viewport' while it enters; 'layer' while it leaves, its content inert),
decides by each event's pointer (a finger's or a pen's press is held to
its end; a mouse passes once it moves with no button down, DEC-16), never
cancels a touch's start, and cancels a one-finger move so a pinch still
zooms (FR10). The gesture host asks the hold for each touch (holdsTouch),
so the hold imports nothing from gestures/ and a component in the root
entry may use it statically (architecture:react-component-runtime INV13).
Its first users: Dialog and Drawer hold a finger's tap or drag during
their entrance (holdEntranceInput). MobileNav's drawer takes no finger
input while it slides in (a 'viewport' hold until the slide-in's
transition ends) or out (a 'layer' hold from the close request until the
dialog closes), and AppShell lets the slide-out play to its end.
Every browser proof lands its input at an exact point (an entrance held
where it is, the page's clock, or an exact step of a drag) and plays once.
From meta#8342 and its per-event offer, meta#8630 (Dialog and Drawer) and meta#8374
(MobileNav).
Co-authored-by: Cindy Zhang <cindyxz@meta.com>
|
Folded into #8342 under the maintainers' section plan; the commit credits this PR's authors. Closing; the branch stays. |
…av (spec:AST-094 FR35)
Layer/inputHold holds a layer's pointer input while its presentation
enters or leaves: holdInput(layer, {until, scope}) raises a shield (scope
'viewport' while it enters; 'layer' while it leaves, its content inert),
decides by each event's pointer (a finger's or a pen's press is held to
its end; a mouse passes once it moves with no button down, DEC-16), never
cancels a touch's start, and cancels a one-finger move so a pinch still
zooms (FR10). The gesture host asks the hold for each touch (holdsTouch),
so the hold imports nothing from gestures/ and a component in the root
entry may use it statically (architecture:react-component-runtime INV13).
Its first users: Dialog and Drawer hold a finger's tap or drag during
their entrance (holdEntranceInput). MobileNav's drawer takes no finger
input while it slides in (a 'viewport' hold until the slide-in's
transition ends) or out (a 'layer' hold from the close request until the
dialog closes), and AppShell lets the slide-out play to its end.
Every browser proof lands its input at an exact point (an entrance held
where it is, the page's clock, or an exact step of a drag) and plays once.
From meta#8342 and its per-event offer, meta#8630 (Dialog and Drawer) and meta#8374
(MobileNav).
Co-authored-by: Cindy Zhang <cindyxz@meta.com>
…av (spec:AST-094 FR35)
Layer/inputHold holds a layer's pointer input while its presentation
enters or leaves. holdInput(layer, {until, scope}) raises a shield:
'viewport' over the whole viewport while a modal layer enters; 'surface'
over the layer's own box while a non-modal one enters, the page around it
live; 'layer' over the viewport, its content inert, while a layer leaves.
It decides by each event's pointer (a finger's or a pen's press is held to
its end; a mouse passes once it moves with no button down, DEC-16), never
cancels a touch's start, and cancels a one-finger move so a pinch still
zooms (FR10). The gesture host asks the hold for each touch (holdsTouch),
so the hold imports nothing from gestures/ and a component in the root
entry may use it statically (architecture:react-component-runtime INV13).
Its first users hold only under a coarse primary pointer, a touch
presentation (FR13): Dialog and Drawer hold a finger's tap or drag during
their entrance (holdEntranceInput), a non-modal Drawer only on its panel;
MobileNav's drawer takes no finger input while it slides in; AppShell lets
the slide-out play to its end. Under a fine primary pointer nothing is held
and nothing listens (FR24). Where the primary pointer is fine and the
screen also takes touch, a finger is not held yet; AST-094's current-state
impact and Drawer's record name that gap.
Every browser proof lands its input at an exact point (an entrance held
where it is, the page's clock, or an exact step of a drag) and plays once.
From meta#8342 and its per-event offer, meta#8630 (Dialog and Drawer) and meta#8374
(MobileNav).
Co-authored-by: Cindy Zhang <cindyxz@meta.com>
…av (spec:AST-094 FR35)
Layer/inputHold holds a layer's pointer input while its presentation
enters or leaves. holdInput(layer, {until, scope}) raises a shield:
'viewport' over the whole viewport while a modal layer enters; 'surface'
over the layer's own box while a non-modal one enters, the page around it
live; 'layer' over the viewport, its content inert, while a layer leaves.
It decides by each event's pointer (a finger's or a pen's press is held to
its end; a mouse passes once it moves with no button down, DEC-16), never
cancels a touch's start, and cancels a one-finger move so a pinch still
zooms (FR10). The gesture host asks the hold for each touch (holdsTouch),
so the hold imports nothing from gestures/ and a component in the root
entry may use it statically (architecture:react-component-runtime INV13).
Its first users hold only under a coarse primary pointer, a touch
presentation (FR13): Dialog and Drawer hold a finger's tap or drag during
their entrance (holdEntranceInput), a non-modal Drawer only on its panel;
MobileNav's drawer takes no finger input while it slides in; AppShell lets
the slide-out play to its end. Under a fine primary pointer nothing is held
and nothing listens (FR24). Where the primary pointer is fine and the
screen also takes touch, a finger is not held yet; AST-094's current-state
impact and Drawer's record name that gap.
Every browser proof lands its input at an exact point (an entrance held
where it is, the page's clock, or an exact step of a drag) and plays once.
The WebKit interaction lane's scope includes Layer/inputHold.ts: the
gesture host imports it, so the gesture specs' fixture bundles it.
From meta#8342 and its per-event offer, meta#8630 (Dialog and Drawer) and meta#8374
(MobileNav).
Co-authored-by: Cindy Zhang <cindyxz@meta.com>
…av (spec:AST-094 FR35)
Layer/inputHold holds a layer's pointer input while its presentation
enters or leaves. holdInput(layer, {until, scope}) raises a shield:
'viewport' over the whole viewport while a modal layer enters; 'surface'
over the layer's own box while a non-modal one enters, the page around it
live; 'layer' over the viewport, its content inert, while a layer leaves.
It decides by each event's pointer (a finger's or a pen's press is held to
its end; a mouse passes once it moves with no button down, DEC-16), never
cancels a touch's start, and cancels a one-finger move so a pinch still
zooms (FR10). The gesture host asks the hold for each touch (holdsTouch),
so the hold imports nothing from gestures/ and a component in the root
entry may use it statically (architecture:react-component-runtime INV13).
Its first users hold only under a coarse primary pointer, a touch
presentation (FR13): Dialog and Drawer hold a finger's tap or drag during
their entrance (holdEntranceInput), a non-modal Drawer only on its panel;
MobileNav's drawer takes no finger input while it slides in; AppShell lets
the slide-out play to its end. Under a fine primary pointer nothing is held
and nothing listens (FR24). Where the primary pointer is fine and the
screen also takes touch, a finger is not held yet; AST-094's current-state
impact and Drawer's record name that gap.
Every browser proof lands its input at an exact point (an entrance held
where it is, the page's clock, or an exact step of a drag) and plays once.
The WebKit interaction lane's scope includes Layer/inputHold.ts: the
gesture host imports it, so the gesture specs' fixture bundles it.
From meta#8342 and its per-event offer, meta#8630 (Dialog and Drawer) and meta#8374
(MobileNav).
Co-authored-by: Cindy Zhang <cindyxz@meta.com>
…av (spec:AST-094 FR35)
Layer/inputHold holds a layer's pointer input while its presentation
enters or leaves. holdInput(layer, {until, scope}) raises a shield:
'viewport' over the whole viewport while a modal layer enters; 'surface'
over the layer's own box while a non-modal one enters, the page around it
live; 'layer' over the viewport, its content inert, while a layer leaves.
It decides by each event's pointer (a finger's or a pen's press is held to
its end; a mouse passes once it moves with no button down, DEC-16), never
cancels a touch's start, and cancels a one-finger move so a pinch still
zooms (FR10). The gesture host asks the hold for each touch (holdsTouch),
so the hold imports nothing from gestures/ and a component in the root
entry may use it statically (architecture:react-component-runtime INV13).
Its first users hold only under a coarse primary pointer, a touch
presentation (FR13): Dialog and Drawer hold a finger's tap or drag during
their entrance (holdEntranceInput), a non-modal Drawer only on its panel;
MobileNav's drawer takes no finger input while it slides in; AppShell lets
the slide-out play to its end. Under a fine primary pointer nothing is held
and nothing listens (FR24). Where the primary pointer is fine and the
screen also takes touch, a finger is not held yet; AST-094's current-state
impact and Drawer's record name that gap.
Every browser proof lands its input at an exact point (an entrance held
where it is, the page's clock, or an exact step of a drag) and plays once.
The WebKit interaction lane's scope includes Layer/inputHold.ts: the
gesture host imports it, so the gesture specs' fixture bundles it.
MobileNav's record states what the rest of the slide-out after the close
does: it takes no input and is hidden from assistive technology (FR5). A
browser case proves both against the open drawer.
From meta#8342 and its per-event offer, meta#8630 (Dialog and Drawer) and meta#8374
(MobileNav).
Co-authored-by: Cindy Zhang <cindyxz@meta.com>
…av (spec:AST-094 FR35)
Layer/inputHold holds a layer's pointer input while its presentation
enters or leaves. holdInput(layer, {until, scope}) raises a shield:
'viewport' over the whole viewport while a modal layer enters; 'surface'
over the layer's own box while a non-modal one enters, the page around it
live; 'layer' over the viewport, its content inert, while a layer leaves.
It decides by each event's pointer (a finger's or a pen's press is held to
its end; a mouse passes once it moves with no button down, or from the
start when the page last heard a mouse, DEC-16), never cancels a touch's
start, and cancels a one-finger move so a pinch still zooms (FR10). It
hears input through Core's shared input stream before every other
subscriber, and ends the dispatch for a held event, so press feedback and the
gesture host never hear it; the stream gains first subscribers and records
the type of the latest pointer event it delivers (getLastPointerType). The gesture
host asks the hold for each touch (holdsTouch), so the hold imports nothing
from gestures/ and a component in the root entry may use it statically
(architecture:react-component-runtime INV13).
Its first users hold only under a coarse primary pointer, a touch
presentation (FR13): Dialog, Drawer and MobileNav hold a finger's tap or
drag while they enter (holdEntranceInput, which reads the entrance's own
animations; MobileNav's slide-in is capped at 550 ms), a non-modal Drawer
only on its panel; AppShell lets the slide-out play to its end. Under a
fine primary pointer nothing is held and nothing listens (FR24). Where the
primary pointer is fine and the screen also takes touch, a finger is not
held yet; AST-094's current-state impact and Drawer's record name that gap.
Every browser proof lands its input at an exact point (an entrance held
where it is, the page's clock, or an exact step of a drag) and plays once.
The WebKit interaction lane's scope includes Layer/inputHold.ts: the
gesture host imports it, so the gesture specs' fixture bundles it.
MobileNav's record states what the rest of the slide-out after the close
does: it is inert, taking no input and hidden from assistive technology
(FR5). A
browser case proves both against the open drawer.
From meta#8342 and its per-event offer, meta#8630 (Dialog and Drawer) and meta#8374
(MobileNav).
Co-authored-by: Cindy Zhang <cindyxz@meta.com>
…av (spec:AST-094 FR35)
Layer/inputHold holds a layer's pointer input while its presentation
enters or leaves. holdInput(layer, {until, scope}) raises a shield:
'viewport' over the whole viewport while a modal layer enters; 'surface'
over the layer's own box while a non-modal one enters, the page around it
live; 'layer' over the viewport, its content inert, while a layer leaves.
It decides by each event's pointer (a finger's or a pen's press is held to
its end; a mouse passes once it moves with no button down, or from the
start when the page last heard a mouse, DEC-16), never cancels a touch's
start, and cancels a one-finger move so a pinch still zooms (FR10). It
hears input through Core's shared input stream before every other
subscriber, and ends the dispatch for a held event, so press feedback and the
gesture host never hear it; the stream gains first subscribers and records
the type of the latest pointer event it delivers (getLastPointerType). The gesture
host asks the hold for each touch (holdsTouch), so the hold imports nothing
from gestures/ and a component in the root entry may use it statically
(architecture:react-component-runtime INV13).
Its first users hold only under a coarse primary pointer, a touch
presentation (FR13): Dialog, Drawer and MobileNav hold a finger's tap or
drag while they enter (holdEntranceInput, which reads the entrance's own
animations; MobileNav's slide-in is capped at 550 ms), a non-modal Drawer
only on its panel; AppShell lets the slide-out play to its end. Under a
fine primary pointer nothing is held and nothing listens (FR24). Where the
primary pointer is fine and the screen also takes touch, a finger is not
held yet; AST-094's current-state impact and Drawer's record name that gap.
AST-094's current-state impact also names the first press of a still mouse
after a finger, which lands on an entering presentation's shield. AlertDialog
renders Dialog, so its entrance is held too: its record says FR7 ships in
part, the leaving alert's inert content waiting for FR6's dismissal.
Every browser proof lands its input at an exact point (an entrance held
where it is, the page's clock, or an exact step of a drag) and plays once.
The WebKit interaction lane's scope includes Layer/inputHold.ts: the
gesture host imports it, so the gesture specs' fixture bundles it.
MobileNav's record states what the rest of the slide-out after the close
does: it is inert, taking no input and hidden from assistive technology
(FR5). A browser case proves both against the open drawer.
From meta#8342 and its per-event offer, meta#8630 (Dialog and Drawer) and meta#8374
(MobileNav).
Co-authored-by: Cindy Zhang <cindyxz@meta.com>
…av (spec:AST-094 FR35)
Layer/inputHold holds a layer's pointer input while its presentation
enters or leaves. holdInput(layer, {until, scope}) raises a shield:
'viewport' over the whole viewport while a modal layer enters; 'surface'
over the layer's own box while a non-modal one enters, the page around it
live; 'layer' over the viewport, its content inert, while a layer leaves.
It decides by each event's pointer (a finger's or a pen's press is held to
its end; a mouse passes once it moves with no button down, or from the
start when the page last heard a mouse, DEC-16), never cancels a touch's
start, and cancels a one-finger move so a pinch still zooms (FR10). It
hears input through Core's shared input stream before every other
subscriber, and ends the dispatch for a held event, so press feedback and the
gesture host never hear it; the stream gains first subscribers and records
the type of the latest pointer event it delivers (getLastPointerType). The gesture
host asks the hold for each touch (holdsTouch), so the hold imports nothing
from gestures/ and a component in the root entry may use it statically
(architecture:react-component-runtime INV13).
Its first users hold only under a coarse primary pointer, a touch
presentation (FR13): Dialog, Drawer and MobileNav hold a finger's tap or
drag while they enter (holdEntranceInput, which reads the entrance's own
animations; MobileNav's slide-in is capped at 550 ms), a non-modal Drawer
only on its panel; AppShell lets the slide-out play to its end. Under a
fine primary pointer nothing is held and nothing listens (FR24). Where the
primary pointer is fine and the screen also takes touch, a finger is not
held yet; AST-094's current-state impact and Drawer's record name that gap.
AST-094's current-state impact also names the first press of a still mouse
after a finger, which lands on an entering presentation's shield. AlertDialog
renders Dialog, so its entrance is held too: its record says FR7 ships in
part, the leaving alert's inert content waiting for FR6's dismissal.
Every browser proof lands its input at an exact point (an entrance held
where it is, the page's clock, or an exact step of a drag) and plays once.
The WebKit interaction lane's scope includes Layer/inputHold.ts: the
gesture host imports it, so the gesture specs' fixture bundles it.
MobileNav's record states what the rest of the slide-out after the close
does: it is inert, taking no input and hidden from assistive technology
(FR5). A browser case proves both against the open drawer.
From meta#8342 and its per-event offer, meta#8630 (Dialog and Drawer) and meta#8374
(MobileNav).
Co-authored-by: Cindy Zhang <cindyxz@meta.com>
…av (spec:AST-094 FR35)
Layer/inputHold holds a layer's pointer input while its presentation
enters or leaves. holdInput(layer, {until, scope}) raises a shield:
'viewport' over the whole viewport while a modal layer enters; 'surface'
over the layer's own box while a non-modal one enters, the page around it
live; 'layer' over the viewport, its content inert, while a layer leaves.
It decides by each event's pointer (a finger's or a pen's press is held to
its end; a mouse passes once it moves with no button down, or from the
start when the page last heard a mouse, DEC-16), never cancels a touch's
start, and cancels a one-finger move so a pinch still zooms (FR10). It
hears input through Core's shared input stream before every other
subscriber, and ends the dispatch for a held event, so press feedback and the
gesture host never hear it; the stream gains first subscribers and records
the type of the latest pointer event it delivers (getLastPointerType). The gesture
host asks the hold for each touch (holdsTouch), so the hold imports nothing
from gestures/ and a component in the root entry may use it statically
(architecture:react-component-runtime INV13).
Its first users hold only under a coarse primary pointer, a touch
presentation (FR13): Dialog, Drawer and MobileNav hold a finger's tap or
drag while they enter (holdEntranceInput, which reads the entrance's own
animations; MobileNav's slide-in is capped at 550 ms), a non-modal Drawer
only on its panel; AppShell lets the slide-out play to its end. Under a
fine primary pointer nothing is held and nothing listens (FR24). Where the
primary pointer is fine and the screen also takes touch, a finger is not
held yet; AST-094's current-state impact and Drawer's record name that gap.
AST-094's current-state impact also names the first press of a still mouse
after a finger, which lands on an entering presentation's shield. AlertDialog
renders Dialog, so its entrance is held too: its record says FR7 ships in
part, the leaving alert's inert content waiting for FR6's dismissal.
Every browser proof lands its input at an exact point (an entrance held
where it is, the page's clock, or an exact step of a drag) and plays once.
The WebKit interaction lane's scope includes Layer/inputHold.ts: the
gesture host imports it, so the gesture specs' fixture bundles it.
MobileNav's record states what the rest of the slide-out after the close
does: it is inert, taking no input and hidden from assistive technology
(FR5). A browser case proves both against the open drawer.
From meta#8342 and its per-event offer, meta#8630 (Dialog and Drawer) and meta#8374
(MobileNav).
Co-authored-by: Cindy Zhang <cindyxz@meta.com>
…ides - Under a finger, the drawer holds input with the Layer module's input hold: 'viewport' from the open until the slide-in's own transition ends (spec:AST-094 FR35), and 'layer' from a close request until the dialog closes, at most 250 ms in (FR5, ORD3). Keys and assistive technology stay live during the slide-in. Under a mouse nothing changes. - AppShell keeps the drawer for MobileNav's longest slide-out (MAX_EXIT_MS) before Activity hides it, under any pointer, so the slide-out plays to its end. - stubMatchMedia gains a pointer option, fine by default. This is meta#8374's change on the page scroll-style claim meta#8098 gives MobileNav.
Layer/inputHold holds a layer's pointer input while its presentation
enters or leaves: holdInput(layer, {until, scope}) raises a shield (scope
'viewport' while it enters; 'layer' while it leaves, its content inert),
decides by each event's pointer (a finger's or a pen's press is held to
its end; a mouse passes once it moves with no button down, DEC-16), never
cancels a touch's start, and cancels a one-finger move so a pinch still
zooms (FR10). The gesture host asks the hold for each touch (holdsTouch),
so the hold imports nothing from gestures/ and a component in the root
entry may use it statically (architecture:react-component-runtime INV13).
Its first users: Dialog and Drawer hold a finger's tap or drag during
their entrance (holdEntranceInput). MobileNav's drawer takes no finger
input while it slides in (a 'viewport' hold until the slide-in's
transition ends) or out (a 'layer' hold from the close request until the
dialog closes), and AppShell lets the slide-out play to its end.
From meta#8342 and its per-event offer, meta#8630 (Dialog and Drawer) and meta#8374
(MobileNav).
Co-authored-by: Cindy Zhang <cindyxz@meta.com>
- MobileNav: the touch-presentation proofs stop the page's clock and run it on by exact amounts, so each probe and tap lands inside the slide-in or the close, and the close is read exactly (at most 250 ms) (from meta#8374). - Dialog and Drawer: each entrance check plays one drag and proves it arrived (a capture-phase touch probe added before the page's scripts); the page's movement is read from the visual viewport (from meta#8630). - Layer: a hold under a moving touch is released at an exact step of the drag, and the document's log covers the touch from its start to its end.
…av (spec:AST-094 FR35)
Layer/inputHold holds a layer's pointer input while its presentation
enters or leaves. holdInput(layer, {until, scope}) raises a shield:
'viewport' over the whole viewport while a modal layer enters; 'surface'
over the layer's own box while a non-modal one enters, the page around it
live; 'layer' over the viewport, its content inert, while a layer leaves.
It decides by each event's pointer (a finger's or a pen's press is held to
its end; a mouse passes once it moves with no button down, or from the
start when the page last heard a mouse, DEC-16), never cancels a touch's
start, and cancels a one-finger move so a pinch still zooms (FR10). It
hears input through Core's shared input stream before every other
subscriber, and ends the dispatch for a held event, so press feedback and the
gesture host never hear it; the stream gains first subscribers and records
the type of the latest pointer event it delivers (getLastPointerType). The gesture
host asks the hold for each touch (holdsTouch), so the hold imports nothing
from gestures/ and a component in the root entry may use it statically
(architecture:react-component-runtime INV13).
Its first users hold only under a coarse primary pointer, a touch
presentation (FR13): Dialog, Drawer and MobileNav hold a finger's tap or
drag while they enter (holdEntranceInput, which reads the entrance's own
animations; MobileNav's slide-in is capped at 550 ms), a non-modal Drawer
only on its panel; AppShell lets the slide-out play to its end. Under a
fine primary pointer nothing is held and nothing listens (FR24). Where the
primary pointer is fine and the screen also takes touch, a finger is not
held yet; AST-094's current-state impact and Drawer's record name that gap.
AST-094's current-state impact also names the first press of a still mouse
after a finger, which lands on an entering presentation's shield. AlertDialog
renders Dialog, so its entrance is held too: its record says FR7 ships in
part, the leaving alert's inert content waiting for FR6's dismissal.
Every browser proof lands its input at an exact point (an entrance held
where it is, the page's clock, or an exact step of a drag) and plays once.
The WebKit interaction lane's scope includes Layer/inputHold.ts: the
gesture host imports it, so the gesture specs' fixture bundles it.
MobileNav's record states what the rest of the slide-out after the close
does: it is inert, taking no input and hidden from assistive technology
(FR5). A browser case proves both against the open drawer.
From meta#8342 and its per-event offer, meta#8630 (Dialog and Drawer) and meta#8374
(MobileNav).
Co-authored-by: Cindy Zhang <cindyxz@meta.com>
…av (spec:AST-094 FR35) (#8342) * feat(Layer): one input hold, first used by Dialog, Drawer and MobileNav (spec:AST-094 FR35) Layer/inputHold holds a layer's pointer input while its presentation enters or leaves. holdInput(layer, {until, scope}) raises a shield: 'viewport' over the whole viewport while a modal layer enters; 'surface' over the layer's own box while a non-modal one enters, the page around it live; 'layer' over the viewport, its content inert, while a layer leaves. It decides by each event's pointer (a finger's or a pen's press is held to its end; a mouse passes once it moves with no button down, or from the start when the page last heard a mouse, DEC-16), never cancels a touch's start, and cancels a one-finger move so a pinch still zooms (FR10). It hears input through Core's shared input stream before every other subscriber, and ends the dispatch for a held event, so press feedback and the gesture host never hear it; the stream gains first subscribers and records the type of the latest pointer event it delivers (getLastPointerType). The gesture host asks the hold for each touch (holdsTouch), so the hold imports nothing from gestures/ and a component in the root entry may use it statically (architecture:react-component-runtime INV13). Its first users hold only under a coarse primary pointer, a touch presentation (FR13): Dialog, Drawer and MobileNav hold a finger's tap or drag while they enter (holdEntranceInput, which reads the entrance's own animations; MobileNav's slide-in is capped at 550 ms), a non-modal Drawer only on its panel. Under a fine primary pointer nothing is held and nothing listens (FR24). Where the primary pointer is fine and the screen also takes touch, a finger is not held yet; AST-094's current-state impact and Drawer's record name that gap. AST-094's current-state impact also names the first press of a still mouse after a finger, which lands on an entering presentation's shield. AlertDialog renders Dialog, so its entrance is held too: its record says FR7 ships in part, the leaving alert's inert content waiting for FR6's dismissal. Every browser proof lands its input at an exact point (an entrance held where it is, the page's clock, or an exact step of a drag) and plays once. The WebKit interaction lane's scope includes Layer/inputHold.ts: the gesture host imports it, so the gesture specs' fixture bundles it. MobileNav's record states what the rest of the slide-out after the close does: it is inert, taking no input and hidden from assistive technology (FR5). A browser case proves both against the open drawer. From #8342 and its per-event offer, #8630 (Dialog and Drawer) and #8374 (MobileNav). Co-authored-by: Cindy Zhang <cindyxz@meta.com> * Merge branch 'main' into uikit/c18-presentation-hold
…8626) * fix(cli): swizzle finds gh on PATH instead of running gh auth status Every successful swizzle ran `gh auth status` with no timeout, only to decide whether to print a ready `gh issue create` line: about 400 ms locally (it calls GitHub), and on a saturated CI runner one first start of gh blocked write-failure.test.mjs's case for 34 s while the other workers kept finishing files (#8374's test-node). checkGhCli now looks for an executable gh on PATH (PATHEXT on Windows) without running anything, which is what the receipt's type already promises ("when gh is available"). * refactor(cli): the gh lookup reaches the copy leaf through the swizzle adapter The PATH lookup reads the filesystem, which architecture:cli-surface INV21 keeps in a subject's adapter and the helpers only it imports. The copy leaf now takes checkGhCli from _adapter.mjs, so _github.mjs is an adapter-only helper and leaves the INV21 known-gap list, which only shrinks. It runs no process now, so doc-loads.test.mjs no longer lists it. * fix(cli): the gh lookup throws a PATH error it does not expect The PATH search read any error from statting a candidate as "not here". It now reads only ENOENT, ENOTDIR and EACCES that way, as `which` does, and throws any other: a symlink loop named gh, for one, now fails instead of reading as no gh. Red first: that loop case fails before this change and passes after. * fix(cli): the gh lookup reads a looped or over-long PATH entry as no gh, and runs before the swizzle writes Review follow-up. The lookup threw on a gh symlink loop or a PATH entry too long to resolve, and it ran after the copy loop, so such a PATH failed the swizzle with every file written, and a retry stopped at ERR_FILE_EXISTS. It now reads every stat error that means no usable gh at a candidate as execvp and which do (ENOENT, ENOTDIR, EACCES, ELOOP, ENAMETOOLONG) and throws any other, and the swizzle runs it before it writes anything. Red first: a looped gh and an over-long entry read as no gh; a swizzle whose only gh is a loop returns its receipt without the gh line; a lookup that throws fails the swizzle before any file is written. Each fails before this change and passes after. * fix(cli): the gh lookup reads any PATH candidate the system cannot stat as no gh there Review follow-up. A PATH entry on a stale or disconnected mount (ESTALE, ENOTCONN, EIO) still made every swizzle fail, even with a working gh later on PATH. The lookup's contract is now the one which and execvp read PATH by: a candidate the system cannot stat is not a usable gh, and the lookup goes on to the next one. An error that is not the system's answer about a candidate (no error code) is still thrown, and the lookup still runs before the swizzle writes. Red first: a working gh after a stale-mount entry is found now; before, the lookup threw. * Merge branch 'main' into cli/swizzle-gh-on-path * refactor(cli): swizzle finds gh through the shared search-path walk The swizzle adapter's gh lookup repeated the PATH walk that foundation/env/search-path.mjs owns, and the two differed on the execute check, on stat errors and on Windows names. search-path.mjs now exports executablesOnSearchPath, a walk over the names a command may have. The astryx command rows build on it, and checkGhCli in the swizzle adapter calls it with gh's names. The walk keeps the module's own checks: a file this user may run, and any error about a candidate read as no command there. _github.mjs is gone. spec:AST-031 FR8 now says that the offer depends on gh being on PATH, not on its login state, and what each receipt shows. * docs(specs): AST-031 FR8 names the swizzle receipt it governs The lines FR8 gained name the command they describe: astryx swizzle's receipt. FR8's gap-report fallback keeps its own rules. Co-authored-by: Cindy Zhang <cindyxz@meta.com>
#10062) * chore(core): the layer runtime's exit copy, for a touch presentation's close placeLayerExitCopy puts a static, inert copy of a closing layer where the layer was drawn, in the top layer, for a touch presentation's close to play on: the browser hides a popover the moment it closes. The copy keeps the layer's box, transform, presented look, overflow and scroll positions; has no ids, anchor names, form names or form owner; is inert and hidden from assistive technology; and its descendants' keyframe animations and transitions do not start again. A refused show during the closing toggle waits, hidden, until the toggle is over. A layer inside other layers gets its copy after the outermost one, with what it inherited there (its color scheme included), so a close that takes the layers around it too still draws the copy. That copy is shown again above the copy the same close then places for a layer around it. A layer has one copy. The layer-runtime record states it, and that the presentation plays its exit on the copy (AST-094 FR7). Core's shared inertCopy now takes every copied native control and form-associated custom element out of any form with form="", as its documentation says, so the swap's copies join no form either. It also sets anchor-name: none on each copied element that has an anchor name, so no live anchor gets a second element. * feat(Layer): one input hold, first used by Dialog, Drawer and MobileNav (spec:AST-094 FR35) Layer/inputHold holds a layer's pointer input while its presentation enters or leaves. holdInput(layer, {until, scope}) raises a shield: 'viewport' over the whole viewport while a modal layer enters; 'surface' over the layer's own box while a non-modal one enters, the page around it live; 'layer' over the viewport, its content inert, while a layer leaves. It decides by each event's pointer (a finger's or a pen's press is held to its end; a mouse passes once it moves with no button down, or from the start when the page last heard a mouse, DEC-16), never cancels a touch's start, and cancels a one-finger move so a pinch still zooms (FR10). It hears input through Core's shared input stream before every other subscriber, and ends the dispatch for a held event, so press feedback and the gesture host never hear it; the stream gains first subscribers and records the type of the latest pointer event it delivers (getLastPointerType). The gesture host asks the hold for each touch (holdsTouch), so the hold imports nothing from gestures/ and a component in the root entry may use it statically (architecture:react-component-runtime INV13). Its first users hold only under a coarse primary pointer, a touch presentation (FR13): Dialog, Drawer and MobileNav hold a finger's tap or drag while they enter (holdEntranceInput, which reads the entrance's own animations; MobileNav's slide-in is capped at 550 ms), a non-modal Drawer only on its panel. Under a fine primary pointer nothing is held and nothing listens (FR24). Where the primary pointer is fine and the screen also takes touch, a finger is not held yet; AST-094's current-state impact and Drawer's record name that gap. AST-094's current-state impact also names the first press of a still mouse after a finger, which lands on an entering presentation's shield. AlertDialog renders Dialog, so its entrance is held too: its record says FR7 ships in part, the leaving alert's inert content waiting for FR6's dismissal. Every browser proof lands its input at an exact point (an entrance held where it is, the page's clock, or an exact step of a drag) and plays once. The WebKit interaction lane's scope includes Layer/inputHold.ts: the gesture host imports it, so the gesture specs' fixture bundles it. MobileNav's record states what the rest of the slide-out after the close does: it is inert, taking no input and hidden from assistive technology (FR5). A browser case proves both against the open drawer. From #8342 and its per-event offer, #8630 (Dialog and Drawer) and #8374 (MobileNav). Co-authored-by: Cindy Zhang <cindyxz@meta.com> * feat(Popover): under a finger, it grows out of its trigger and shrinks back into it Under a coarse primary pointer, Popover grows out of its trigger on the theme's entrance duration and easing and shrinks back into it on the theme's exit duration and easing, on the layer runtime's exit copy. A fine primary pointer keeps the layer's own entrance. * test(Popover): browser proofs of the touch presentation's grow and shrink Real-browser proofs, in Chromium and WebKit, that under a finger Popover grows out of its trigger on the theme's entrance tokens and shrinks back on its exit tokens, keeps advancing through a blocked main thread, does no Layout or Paint per frame, and cross-fades under Reduce Motion, with storyboards of both. * Merge #8342 fbe71df (the shared input hold) into the Popover touch presentation (#9823), as #8223's base * fix(Popover): under a finger, a tap during the presentation is ignored, as on iOS While the popover grows out of its trigger under a coarse primary pointer, the layer runtime's input hold takes every touch. A tap outside neither dismisses it nor reaches what is under it, a pan scrolls nothing, and a pinch still zooms the page. * perf(Popover): the touch presentation starts in the next frame Opening a popover under a finger ran the touch presentation in the opening task. The animator's style writes and the box reads laid the anchored page out more often than a mouse opening does, and on a loaded machine that task could pass the 50 ms long-task line. The opening task now reads and writes nothing while it runs. As it ends, after its own reads, the layer's CSS entrance goes off, a write that costs it no layout. A style read after that task then starts no entrance. The presentation waits for the next animation frame, which runs before it paints. There it puts the element invisible at its full size, reads the boxes, starts the curves and takes the input hold. A close before that frame cancels it and leaves the element as the component styles it, with no compositing layer. A presentation again during a dismissal still starts at once, since it reads nothing. Without animation frames, the presentation runs at once and a close plays the shrink. Popover's record notes, under Current-state impact, that the input hold starts on the first frame after the open, so a touch landing within that frame reaches the page. * chore(core): the layer runtime's exit copy, for a touch presentation's close placeLayerExitCopy puts a static, inert copy of a closing layer where the layer was drawn, in the top layer, for a touch presentation's close to play on: the browser hides a popover the moment it closes. The copy keeps the layer's box, transform, presented look, overflow and scroll positions; has no ids, anchor names, form names or form owner; is inert and hidden from assistive technology; and its descendants' keyframe animations and transitions do not start again. A refused show during the closing toggle waits, hidden, until the toggle is over. A layer inside other layers gets its copy after the outermost one, with what it inherited there (its color scheme included), so a close that takes the layers around it too still draws the copy. That copy is shown again above the copy the same close then places for a layer around it. A layer has one copy. The layer-runtime record states it, and that the presentation plays its exit on the copy (AST-094 FR7). Core's shared inertCopy now takes every copied native control and form-associated custom element out of any form with form="", as its documentation says, so the swap's copies join no form either. It also sets anchor-name: none on each copied element that has an anchor name, so no live anchor gets a second element. * Merge branch 'main' into uikit/c26-layer-exit-copy * feat(Popover): under a finger, it grows out of its trigger and shrinks back into it Under a coarse primary pointer, Popover grows out of its trigger on the theme duration step nearest iOS's growth (`--duration-medium-min`) and the theme's entrance easing, and shrinks back into it on the theme's exit duration and easing, on the layer runtime's exit copy. A fine primary pointer keeps the layer's own entrance. * test(Popover): browser proofs of the touch presentation's grow and shrink Real-browser proofs, in Chromium and WebKit, that under a finger Popover grows out of its trigger on the theme's entrance tokens and shrinks back on its exit tokens, keeps advancing through a blocked main thread, does no Layout or Paint per frame, and cross-fades under Reduce Motion, with storyboards of both. * Merge the updated #9823 into the Popover presentation hold (tree matches the lane's intended resolution) * Merge the updated #8223 into the Popover next-frame presentation (frame scheduling kept, createMotionEngine) * Merge branch 'main' into uikit/c26-layer-exit-copy * Merge the updated lower stack branch into uikit/c26-popover-present (own diff unchanged) * Merge the updated lower stack branch into uikit/c27-popover-present-proofs (own diff unchanged) * Merge the updated lower stack branch into uikit/c26-popover-presentation-hold (own diff unchanged) * Merge the updated lower stack branch into uikit/c26-popover-present-next-frame (own diff unchanged) * Merge #8187's input hold into the Popover touch proofs * feat(Popover): a touch during the growth is ignored While the popover grows, the layer runtime's input hold takes every touch, as UIKit ignores touches while it presents a popover. A tap outside does not dismiss it and reaches nothing under it, and a pinch still zooms the page. This folds in the hold that #8223 carried, so the growth and its hold land together. * test(Popover): browser proofs of the hold while the popover grows A tap outside, a tap on the trigger and a pan while the popover grows do nothing, a pinch still zooms, and a storyboard shows the growth going on under a tap outside. Folded from #8223. * docs(AST-094): Popover's input hold starts on the frame after the open AST-094's current-state line for Popover now states the window its Popover record already states: the input hold starts on the first frame after the open, so a touch that lands within that frame reaches the page. Starting the hold at the open would lay the page out twice in the opening task. Two comments now say that the layer's CSS entrance goes off in a microtask, once the script that opened the popover returns. * fix(core): the exit copy keeps no closed layer The exit copy found the inner layers to raise through a module-level set of every copied layer. A layer React removed on close stayed reachable there until a later close showed a copy. The inner layers are inside the closing layer, so they are now found there, and nothing keeps a layer once it is gone. Chromium 150 and later refuse a show during another popover's toggle, so the copy can open in the next frame. The browser spec's light-dismiss case now reads the copy after a frame, as its nested-close cases do. The cap check's comment now names only the copy cap. * docs(core): the exit copy's JSDoc states the empty-canvas rule once The empty-canvas rule stays in the first paragraph, and the inert-copy paragraph no longer repeats it or `inertCopy`'s own contract. * Merge the updated lower stack branch into uikit/c26-popover-present (own diff unchanged) * Merge the updated lower stack branch into uikit/c27-popover-present-proofs (own diff unchanged) * Merge the folded #9823 into the Popover next-frame presentation (#8223 absorbed into #8187) * test(Popover): time the rendering proof from each motion's start The growth now starts in a frame callback. Where the compositor starts it in that frame, its animation starts at the frame's time, before the animate() call the logger stamped. The presentation's window then ended less than 20 ms before the growth did, and it could reach the one-off work at the growth's end. The logger now records each call and the animation's own start time. A wait still finds its animation by the call, which always follows the key press, and times its window from the start. * test(Popover): the blocked-main-thread proof blocks from the page and asserts the verdict The page now starts the block once the growth has run a frame, and the proof asserts the harness verdict, which fails a judged part under 4 frames. Here the growth runs 600 ms at a constant speed, so each frame moves several pixels and a block that starts late on a loaded machine still lands inside it. * Merge the updated lower stack branch into uikit/c26-popover-present-next-frame (own diff unchanged) * fix(Selector): the overlay clamps in layout, so the keyboard cap and every reader of the layer's box see it The selected-item overlay realized its viewport clamp as a negative margin on the anchored layer, which anchor positioning's fit check swallowed, so a list opened near the viewport's end lay past it. A translate instead hid the clamp from every layout reader: the software keyboard's cap read the layer's untransformed box, and a same-size move painted a stale frame. The overlay's layer now takes no position fallbacks (an internal layer option, off by default) and clamps in layout: `inset-block-start` places the selected row's center on the anchor's center between the viewport's gutters, and `inset-inline-start` starts the layer at its anchor's own start inside the inline gutters, from three private variables the Selector sets (the row's offset in the list, and the layer's block and inline sizes). A move or a scroll re-places the list in the same layout, so no frame paints a stale place; content and selection re-measure on the layer's resettle watcher and commit synchronously. Tests: every overlay case asserts a usable list (at least two rows in full view, or every row), the move case asserts no stale painted frame, the keyboard case asserts two rows above the keyboard line, and a cross-engine spec checks the clamp in Chromium and WebKit in both directions, a list wider than its trigger and a list taller than the room included. A story places a Selector near the viewport's end beside a text input. * refactor(Selector): drop the overlay layer that never flips The owners ruled that every anchored placement can flip, so the overlay layer's internal no-fallback option, its layer-runtime paragraph and the Selector FR2 rewrite go. This restores every file of this change to its base. On main, the layer's end gutter already keeps the list inside the viewport. * Merge main * fix(Selector): the selected row stays on the trigger as options grow The selected-item overlay measured its margin once, when the list opened. An option that grew above the selection while the list was open left the row off the trigger, and a list near the viewport's end grew past it. The browser then flipped the layer above its anchor, where the margin moved the list the wrong way. The overlay now measures again when the open listbox resizes, through the shared resize observer, and commits before the frame paints. On a layer flipped above its anchor, the margin sets the same clamped top from the anchor's top. * fix(Selector): read the overlay's flip safely, skip the first report An engine with the Popover API but no CSS anchor positioning has no positionArea on its computed style, so the overlay threw on every open there. It now reads getPropertyValue('position-area'), which gives an empty string in such an engine. observeResize reports once at registration, inside the commit that opens the list, where React cannot flush and warns. That report is now skipped, since the measuring Effect already runs in that commit. A list at its height cap does not resize when an option grows, so the changeset now claims the fix only for a list shorter than its cap. * test(Selector): drop a stray comment and an unused helper parameter The growth spec carried a doc comment that documented no declaration, and a prepare parameter on openPreSelected that no case passed. Both go, and no proof changes. * docs(Selector): say plainly why the first resize report is skipped The comment on the open list's resize observation ended in the passive "so it is skipped". It now leads with the action and keeps the reason. * Merge main * refactor(Selector): observe the open list with observeResizeAfterLayout The shared resize observer now has observeResizeAfterLayout (#9810). It observes an element without the report observeResize makes when it registers. The open list's observer skipped that report by hand, so it now uses the helper, as useTruncation does. No other shared-observer subscriber watches the list, so the helper's microtask report never runs, and the list behaves as before. * Merge main * fix(Selector): keep a flipped list above the software keyboard The margin for a list the browser flipped above its trigger had no keyboard term. Beside a field near the viewport's end, the list stayed under a software keyboard. The flipped margin now keeps the list's end above the keyboard, and its top on screen. That margin applies only where it would not also fit below the anchor. Where it would, the browser moves the layer back below, and a flipped margin there would squeeze the list. There the overlay keeps main's margin. Two SelectorKeyboardInset cases fix the field 8 px above the viewport's end, with the keyboard up before the open and rising while the list is open. A story sets a field 300 px above the screen's end for a phone check, and a browser spec pins it beside a 291 px keyboard. * fix(Selector): shrink a tall list above the software keyboard A list taller than the room above a software keyboard, beside a field near the viewport's end, stayed under the keyboard. The flipped margin stopped the list's top at 0, with no room for the layer's gutter. So the browser dropped that position, and the runtime caps no layer above its trigger. At the open, the overlay now always takes the margin below the anchor, as main does. That margin fits below the anchor, so the browser opens the layer there, and the runtime caps it above a keyboard. Only a layer that the browser flips while the list is open gets the flipped margin, because the browser keeps that side. Its top stays below the gutter. Two SelectorKeyboardInset cases open the nine-option story at 844x390 beside a 200 px keyboard, up before the open and rising while the list is open. * fix(Selector): read the layer's gutter from the margin it keeps The overlay read the layer's gutter as the larger of its two block margins. A flip swaps them, so that read could take the overlay's own margin: with a keyboard up, 270 px. A flipped list that grew again then stopped at that floor, past the keyboard's line. The gutter is now the margin that the overlay does not set: the block-end margin below the anchor, and the block-start margin above it. The unit case for a flipped layer's gutter now also names the flip in the layer's position area. A SelectorKeyboardInset case flips the list with a grown option, raises a keyboard, and grows another option. * Merge main * test(Selector): raise the keyboard story's trigger above Safari's bars With the keyboard up, an iPhone tap on a trigger just above Safari's bottom bars closed the keyboard and opened nothing, and the keyboard story's trigger sat there. The story now lays out its Selector as Overlay Beside Keyboard does, so its trigger sits at the same height. The browser spec now fixes the field 300 px above the viewport's end itself, so it still pins the same case. * Merge main * Merge main * Merge main * docs(Selector): record the Android landscape evidence gap FR2's verification row now names the case no emulator scene can set up: Android landscape with the keyboard up leaves 67 px visible and 40 px of scroll, at this head and on main alike.
Depends on #8342 and #8119. Review only this PR's change.
User impact
What led here: we are bringing Astryx's touch components to iOS quality on the mobile web. On a phone, MobileNav's drawer took taps while it moved: a tap beside the opening drawer closed it before it finished sliding in, and a tap on the leaving drawer still followed its links. UIKit takes no touch until a presentation ends. Inside AppShell, under any pointer, the drawer also vanished 300 ms into its 410 ms slide-out.
Problem and solution fit
spec:AST-094FR35 keeps live.Size (gzip JavaScript per import, base → head): MobileNav 54,340 → 67,601 B, AppShell 61,367 → 74,533 B, SideNav 61,496 → 74,910 B, TopNav 55,172 → 68,487 B.
Expected behavior and authority
spec:AST-094FR35 (#8618); MobileNav FR5 and ORD3; AST-017 FR59.Smallest restoration
One touch branch in MobileNav's open/close effect, a
pointeroption for the tests' media-query stub, AppShell's hide delay, two[fix]changesets.Evidence
A finger closing the drawer inside AppShell (iOS 26.2 simulator) slides out to the end; a mouse, before and after, is unchanged.
Scope
Testing
In Chrome's device toolbar (a phone, touch):
What I ran: the MobileNav and AppShell unit tests and the MobileNav browser specs (Chromium and WebKit, twice) passed. On the base, 5 of 8 browser cases fail; the two newest unit tests fail against the previous timer-based release.
scripts/touch-support-bundle.test.mjsfails its root- and hooks-entry cases because MobileNav now reaches the shared scroll lock; #8671 replaces that check.Recorded on the iOS 26.2 simulator and the Android 15 emulator.