Repository navigation
Require pointer rest before opening activity hover cards - #25931
Conversation
|
Important Review skippedWe couldn't safely recover the incremental review. No full review was started, and the last reviewed checkpoint was preserved. Retry later, or explicitly request a full review by commenting You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The hover-rest behavior has no identified merge-blocking defect. Run the normal checks before merging; manual testing was not reported as complete. 🚥 Pre-merge checks | ✅ 4 | ❌ 1
✨ Finishing Touches 💡 2
Comment |
de0952c to
75c80bc
Compare
Defer hover card open until pointer stops moving, preventing accidental popover display on rapid mouse movement. Add progress indicator showing rest duration. Keyboard focus still opens the card immediately.
75c80bc to
84c670b
Compare
Problem
Activity hover cards open too eagerly on simple pointer hover passes, causing distracting popup windows and accidental card triggers when users are just moving through the activity list.
Solution
Hover cards now only open after the pointer rests (stops moving) for 550ms on an activity item. A progress indicator fills during the 150ms–550ms window to show the card is loading. When a card was recently visible, the rest requirement drops to 120ms to allow quick row-switching. Scrolling cancels pending opens and closes open cards. Keyboard focus still opens cards immediately.
What Changed
useActivityThreadHoverCardIntentcaptures pointer and scroll intent, replacing Radix's open-on-enter with open-on-rest.ActivityThreadRowanimates while the pointer rests.Why
Pointer hover is noisy—users pass through rows on their way to another target. Requiring rest before opening keeps the UI quiet without disabling hover entirely. Warm-opening after recent cards preserves quick re-checking. Scroll cancellation prevents cards from staying open mid-scroll. The progress indicator sets expectations and provides visual feedback that hovering is intentional.
Visual Proof
N/A – Behavior change: hover cards now require pointer rest; visual indicator added for progress. Not user-facing during normal interaction, only when intentionally hovering.
Testing
activity-thread-hover-card-intent.test.tsxcovering rest timing, warm rest, scroll cancellation, keyboard focus, and edge casesAgent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdNotes
No cross-platform, SSH, mobile, or performance impact. Pointer event behavior is uniform; keyboard focus is platform-independent.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)