Repository navigation
architecture(interaction-modality): hover intent is a hover-recognizer setting (INV11) - #8604
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report📚 Storybook Preview🧪 Sandbox PreviewNo new or modified components detected. Bundle Size SummaryNo component packages changed. Accessibility AuditStatus: No accessibility violations detected. Visual Regression55 of 502 shot(s) changed. A change here is a question, not a failure: check whether the after is the
and 35 more. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
…r setting (INV11)
b4543ea to
372f9d3
Compare
|
/approve-spec 372f9d3 |
There was a problem hiding this comment.
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
SideNavHeadingFR5,TopNavHeadingFR5 and MarkdownheadingLinksAR3, which still promise an immediate hover show throughuseMenuHoveranduseContainerReveal; either say an owner's entry delay may be zero, or amend those records in this PR. design:motionis a draft with no DEC-1 yet, so drop that citation or add it once the decision is current.HoverGestureRecognizeris 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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 | |
There was a problem hiding this comment.
"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.
…try delay; owning code and scope name the hover recognizer
|
/approve-spec d14403a |
There was a problem hiding this comment.
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`, |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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 | |
There was a problem hiding this comment.
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.
…ine-pointer exception; INV11 routed; exit-guard failure
|
/approve-spec 7f926f8 |
…'s attachment as a plain fact
|
/approve-spec 121dbf6 |
|
/approve-spec eff317e |
There was a problem hiding this comment.
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]
| 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`, |
There was a problem hiding this comment.
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 | |
There was a problem hiding this comment.
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".
|
/approve-spec c6544d4 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
|
/approve-spec 2dfe28a |
There was a problem hiding this comment.
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]
|
/approve-spec c074721 |
There was a problem hiding this comment.
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]
|
/approve-spec c074721 |
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:
HoverGestureRecognizergainsintent: {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, anduseContainerRevealmigrate onto it.spec:AST-017FR21).The record adds INV11 and its verification row.
Writing rubric results