Skip to content

architecture(interaction-modality): hover intent is a hover-recognizer setting (INV11) - #8604

Merged
cixzhang merged 12 commits into
mainfrom
spec/internal-hover-intent
Oct 27, 2026
Merged

cixzhang merged 12 commits into
mainfrom
spec/internal-hover-intent

Conversation

@cixzhang

@cixzhang cixzhang commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Decided (Cindy, 2026-10-26: D34, resolved by convergence: "resolve these with the gesture modules… can they converge?").

Summary

This amends the hover recognizer, which lands with #8061 (this PR merges after it). No new module beyond that, and no public API: HoverGestureRecognizer gains intent: {enterMs, exitMs, group}: an entry delay against brush-over (an owner's record may set it to zero, as SideNavHeading, TopNavHeading and Markdown heading links do), an exit guard, and handoff within a group. Keyboard shows at once and a finger is never served. useTooltip, useHoverCard, useMenuHover, and useContainerReveal migrate onto it.

  • First adopters: Tooltip, HoverCard, DropdownMenu sub-menus, Thumbnail, TreeList, Markdown heading links.
  • Status: internal and export-locked (spec:AST-017 FR21).

The record adds INV11 and its verification row.

Writing rubric results

  • R1 present tense: pass. R2 research: none in the record.
  • R3 verification: one row.
  • R4 rejected alternatives: none. R5 change references: none in the record. R6 open questions: none.

@vercel

vercel Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Oct 27, 2026 5:21pm UTC

Request Review

@astracat-bot

astracat-bot Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

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

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

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR

🧪 Sandbox Preview

View Sandbox for this PR

No new or modified components detected.

Bundle Size Summary

No component packages changed.

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 740,072
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

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 26, 2026
@cixzhang
cixzhang force-pushed the spec/internal-hover-intent branch from b4543ea to 372f9d3 Compare October 26, 2026 23:49
@cixzhang cixzhang changed the title architecture(interaction-modality): proposed — one hover-intent module decides when hover shows (INV11) architecture(interaction-modality): hover intent is a hover-recognizer setting (INV11) Oct 26, 2026
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 372f9d3

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

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The INV11 direction is owner-approved for this head, but the record needs three fixes before it lands:

  • Its failure signal "A show without the entry delay" conflicts with SideNavHeading FR5, TopNavHeading FR5 and Markdown headingLinks AR3, which still promise an immediate hover show through useMenuHover and useContainerReveal; either say an owner's entry delay may be zero, or amend those records in this PR.
  • design:motion is a draft with no DEC-1 yet, so drop that citation or add it once the decision is current.
  • HoverGestureRecognizer is not in the repository until #8061 lands, so sequence this change after it, list the recognizer under Owning code, and correct the description's "existing module, no new module".

[Automated review]

it: no Lab component has its own sample buffer, velocity math, or release
filter, so Lab reports the same velocity as Core for the same motion.
- **INV11 — Hover intent is a recognizer setting.** The hover recognizer,
`HoverGestureRecognizer`, takes `intent: {enterMs, exitMs, group}`: a small

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.

There is no HoverGestureRecognizer in the repository yet: packages/core/src/gestures/ has only the Tap, LongPress and Pan recognizers. It arrives with #8061, so this should land after it, with the recognizer listed under Owning code. Otherwise the record names an owner that does not exist, and "adds no module" does not hold.

filter, so Lab reports the same velocity as Core for the same motion.
- **INV11 — Hover intent is a recognizer setting.** The hover recognizer,
`HoverGestureRecognizer`, takes `intent: {enterMs, exitMs, group}`: a small
entry delay against brush-over (`design:motion` DEC-1), an exit guard, and a

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.

design:motion is authority: draft, and it has no DEC-1 (its decision log says no decision has approved it). This current claim cites a decision that does not exist yet. Drop the parenthetical, or cite DEC-1 once it is current.

| INV8 | Owner-defined intent order, pending, close, cancellation, disablement, and unmount mutations | Older work changes current content, selection, status or announcement, visibility, focus, or activation after owner-defined supersession |
| INV9 | Concrete-harm reproduction, representative normal/legacy/no-new-prop paths, and coincident public-delta inventory | Unsupported or aesthetic preference is treated as harm, unaffected behavior changes, or an API, layout, sizing, default, sticky, or exception delta escapes direct authority |
| INV10 | Source boundary check over Core and Lab, a Lab-to-Core comparison on one recorded stream, and release-filter unit tests over recorded iOS pan and scroll-view streams | A Core component with its own sample buffer, velocity math, or release filter; a Lab component with its own sample buffer, velocity math, or release filter; a Lab component reporting a different velocity than Core for the same stream; an export of the tracker; a non-zero release after a still pause |
| INV11 | Unit tests of the hover recognizer's intent and browser tests of its adopters with a mouse, a pen, a finger, and the keyboard | A show without the entry delay, a missed handoff within a group, a delayed keyboard show, a finger served by it, or a second hover-timing implementation fails |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"A show without the entry delay" fails SideNavHeading FR5 and TopNavHeading FR5 (showDelay: 0 through useMenuHover) and Markdown headingLinks AR3 (default hoverDelay 0 through useContainerReveal). All three are current and promise an immediate hover show. Please say whether an owner's entry delay may be zero, and word this signal as a show that skips the owner's configured delay, or amend those records in this PR.

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec d14403a

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The INV11 direction is owner-approved for this head, but one change is needed before it lands. INV11 makes the hover recognizer serve mouse hover, while architecture:react-component-runtime INV13 still says "Where the primary pointer is fine, no recognizer attaches"; please amend INV13 so that sentence covers the touch recognizers only, or state in INV11 that the hover recognizer is its exception. While you are in the record, adding INV11 to its interaction routing list and an exit-guard failure (a surface that closes before the pointer reaches it) to its verification row would let component reviews enforce it.

[Automated review]

against brush-over, which an owner's record may set to zero, an exit guard, and a
group across which a pointer moving from one open trigger to the next shows
the next at once. Keyboard focus shows at once, and a finger is never gated
or served by it: intent answers mouse and pen hover only. `useTooltip`,

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.

To serve mouse and pen hover, this recognizer has to attach on mouse-driven pages, but architecture:react-component-runtime INV13 still says "Where the primary pointer is fine, no recognizer attaches and no touch listener is registered", and the hover recognizer joins those gesture modules. Please amend INV13's fine-pointer sentence to cover the touch recognizers only, or state here that the hover recognizer attaches for hover-capable pointers, registers no touch listener, and is INV13's exception.

threshold compares the tracker's release velocity. Lab keeps no copy of
it: no Lab component has its own sample buffer, velocity math, or release
filter, so Lab reports the same velocity as Core for the same motion.
- **INV11 — Hover intent is a recognizer setting.** The hover recognizer,

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.

INV11 is cross-cutting (its row fails a second hover-timing implementation anywhere in Core), but the review-applicability:v1 block at the top of this record still maps interaction to INV1–INV4, INV7 and INV8 only, so component reviews are not routed to it. Adding INV11 to that list closes the gap.

| INV8 | Owner-defined intent order, pending, close, cancellation, disablement, and unmount mutations | Older work changes current content, selection, status or announcement, visibility, focus, or activation after owner-defined supersession |
| INV9 | Concrete-harm reproduction, representative normal/legacy/no-new-prop paths, and coincident public-delta inventory | Unsupported or aesthetic preference is treated as harm, unaffected behavior changes, or an API, layout, sizing, default, sticky, or exception delta escapes direct authority |
| INV10 | Source boundary check over Core and Lab, a Lab-to-Core comparison on one recorded stream, and release-filter unit tests over recorded iOS pan and scroll-view streams | A Core component with its own sample buffer, velocity math, or release filter; a Lab component with its own sample buffer, velocity math, or release filter; a Lab component reporting a different velocity than Core for the same stream; an export of the tracker; a non-zero release after a still pause |
| INV11 | Unit tests of the hover recognizer's intent and browser tests of its adopters with a mouse, a pen, a finger, and the keyboard | A show without the owner's entry delay, a missed handoff within a group, a delayed keyboard show, a finger served by it, or a second hover-timing implementation fails |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding an exit-guard failure to this row, such as a hover-shown surface that closes before the pointer reaches it (WCAG 2.2 SC 1.4.13); useTooltip's 100 ms hover bridge exists for that case today.

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 7f926f8

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 121dbf6

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec eff317e

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The INV11 direction is owner-approved for this head, but one change is needed before it lands: INV11 now says the hover recognizer attaches for hover-capable pointers, while architecture:react-component-runtime INV13 still says "Where the primary pointer is fine, no recognizer attaches", and the knowledge contracts settle a disagreement between current records only in the owning record. Please amend INV13 in this pull request so its fine-pointer sentence covers the touch recognizers only, or records the hover recognizer as its exception, and link INV11 to it. While you are there, the INV11 failure list in the verification table has the exit-guard failure appended after its closing "or", with a stray comma.

[Automated review]

Comment on lines +173 to +174
or served by it: intent answers mouse and pen hover only. The hover recognizer attaches only for hover-capable
pointers, since a finger cannot hover, and registers no touch listener. `useTooltip`,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This lets the hover recognizer attach for every hover-capable pointer, a mouse included, but architecture:react-component-runtime INV13 still says "Where the primary pointer is fine, no recognizer attaches and no touch listener is registered". The knowledge contracts put a deliberate exception in the owning record ("A deliberate exception is recorded by that owner; affected records link to it instead of restating it"), so please amend INV13 here: scope its fine-pointer sentence to the touch recognizers, or record the hover recognizer as its exception, and link to it from INV11.

| INV8 | Owner-defined intent order, pending, close, cancellation, disablement, and unmount mutations | Older work changes current content, selection, status or announcement, visibility, focus, or activation after owner-defined supersession |
| INV9 | Concrete-harm reproduction, representative normal/legacy/no-new-prop paths, and coincident public-delta inventory | Unsupported or aesthetic preference is treated as harm, unaffected behavior changes, or an API, layout, sizing, default, sticky, or exception delta escapes direct authority |
| INV10 | Source boundary check over Core and Lab, a Lab-to-Core comparison on one recorded stream, and release-filter unit tests over recorded iOS pan and scroll-view streams | A Core component with its own sample buffer, velocity math, or release filter; a Lab component with its own sample buffer, velocity math, or release filter; a Lab component reporting a different velocity than Core for the same stream; an export of the tracker; a non-zero release after a still pause |
| INV11 | Unit tests of the hover recognizer's intent and browser tests of its adopters with a mouse, a pen, a finger, and the keyboard | A show without the owner's entry delay, a missed handoff within a group, a delayed keyboard show, a finger served by it, or a second hover-timing implementation , a hover-shown surface that closes before the pointer reaches it, fails |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The exit-guard failure landed after the list's closing "or", with a stray space before the comma. Reordered, the failure signal reads: "A show without the owner's entry delay, a missed handoff within a group, a delayed keyboard show, a hover-shown surface that closes before the pointer reaches it, a finger served by it, or a second hover-timing implementation fails".

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec c6544d4

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The INV11 direction is owner-approved for this head, but one change is still needed before it lands: INV11 says the hover recognizer attaches for hover-capable pointers, while architecture:react-component-runtime INV13 still says "Where the primary pointer is fine, no recognizer attaches", and the knowledge contracts record a deliberate exception only in the owning record. Please amend INV13 in this pull request so its fine-pointer sentence covers the touch recognizers only, or records the hover recognizer as its exception, and link INV11 to it. While you are there, consider saying how container reveals, which component:Thumbnail PR1 keeps CSS-only, take their timing from the recognizer.

[Automated review]

the next at once. Keyboard focus shows at once, and a finger is never gated
or served by it: intent answers mouse and pen hover only. The hover recognizer attaches only for hover-capable
pointers, since a finger cannot hover, and registers no touch listener. `useTooltip`,
`useHoverCard`, `useMenuHover`, and `useContainerReveal` take their hover

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.

Today useContainerReveal reveals "entirely in CSS (no hover state in JS, no re-render on hover)", and current component:Thumbnail PR1 says "The hover reveal is CSS-only." If container reveals keep their CSS dwell and take only their delay values from the recognizer, saying so here keeps INV11 and PR1 consistent; otherwise PR1 needs amending when the hook migrates.

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 2dfe28a

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The INV11 direction is owner-approved for this head, and the earlier conflict with architecture:react-component-runtime INV13 is resolved now that INV13 lets the gesture host attach for every pointer. One change is still needed before this lands: INV11 has useContainerReveal take its hover timing from the hover recognizer and fails any second hover-timing implementation, while component:Thumbnail PR1 still says "The hover reveal is CSS-only" for the remove button that reveals through that hook. Please either state in INV11 that a container reveal keeps its CSS dwell and takes only its delay value from the owner's intent, or amend Thumbnail PR1 in this pull request and link INV11 to it.

[Automated review]

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec c074721

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This record change is ready: INV11's direction is owner-approved for this head, and it now agrees with the records it touches, including component:Thumbnail PR1 through the sentence that keeps useContainerReveal on its CSS-only dwell. Please land it after #8061 adds HoverGestureRecognizer, as the description says, and consider updating the description, which still says useContainerReveal migrates onto the recognizer.

[Automated review]

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec c074721

@cixzhang
cixzhang merged commit dcdb356 into main Oct 27, 2026
74 checks passed
vjeux added a commit to vjeux/astryx that referenced this pull request Oct 27, 2026
Main brings meta#8752, meta#8568 (useAnimatedLayout) and meta#8604 (INV11). The only
conflict, internal/shadcn-registry/routes.lock.json, is regenerated with
UPDATE_SHADCN_ROUTE_LOCK=1 node apps/docsite/scripts/generate-data.mjs:
main's lock plus this pull request's four routes.
@github-actions
github-actions Bot deleted the spec/internal-hover-intent branch October 28, 2026 06:17

This branch was successfully deployed

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

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant