ADFA-3530 | Fix tooltip focus stealing and extract hover delay constant#1160
ADFA-3530 | Fix tooltip focus stealing and extract hover delay constant#1160
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughRelease Notes - ADFA-3530Changes
Potential Risks & Considerations
WalkthroughAdds a Changes
Sequence Diagram(s)sequenceDiagram
participant Toolbar as ProjectActionsToolbar / EditorHandlerActivity
participant Manager as TooltipManager
participant Popup as TooltipPopupWindow
participant User as User
Toolbar->>Manager: onHover -> showIdeCategoryTooltip(tag, requestFocus=false)
Manager->>Popup: create popup (isFocusable = requestFocus)
Popup-->>Manager: popup shown
User->>Popup: interacts (e.g., "See more")
Popup->>Manager: request deeper tooltip (propagate requestFocus)
Manager->>Popup: replace/show deeper tooltip (focus per requestFocus)
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Extracts hover delay constant and disables focus request for editor action tooltips.
4cea006 to
dfb066e
Compare
Description
Added a
requestFocusparameter toToolTipManagerfunctions (defaulting to true) to control whether tooltip popups steal window focus. Disabled this focus request for tooltips triggered inEditorHandlerActivity. Additionally, extracted the hardcoded 600ms hover delay into aTOOLTIP_HOVER_SHOW_DELAY_MSconstant withinProjectActionsToolbarfor better readability and maintenance.Details
document_5093693164217173759.mp4
Ticket
ADFA-3530