fix(sidebar): keep the right-click context menu open over the collapsed chat flyout - #6665
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview The shared For workflow rows in the same flyout, right-click opens the three-dots actions submenu with the cursor still on the row; Radix row New Reviewed by Cursor Bugbot for commit 0494383. Configure here. |
Greptile SummaryThe PR keeps sidebar context actions usable when nested Radix menus move focus and adds regression coverage for the intended dismissal behavior.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains, and the previously reported relative-import issue is fixed at the current head.
|
| Filename | Overview |
|---|---|
| apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/collapsed-sidebar-menu/collapsed-sidebar-menu.tsx | Suppresses Radix row focus movement while the row’s actions submenu is open. |
| apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/workflow-list/components/context-menu/context-menu.tsx | Keeps the context menu open when focus returns to a surrounding menu while preserving other dismissal paths. |
| apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/workflow-list/components/context-menu/context-menu.test.tsx | Adds regression coverage and correctly fixes the previously reported relative component import. |
Reviews (4): Last reviewed commit: "fix(sidebar): keep the collapsed workflo..." | Re-trigger Greptile
|
@cursor review |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 83c641d. Configure here.
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 0494383. Configure here.
Summary
focus()onpointermove, and a menu refocuses its own content when the pointer leaves a row — so the first mouse movement after the right-click pulled focus back into the flyout. A non-modal Radix menu dismisses on focus-outside, so the context menu closed before the cursor reached it. The three-dots path escapes this because the action button is rendered as a sibling of the menu row, not inside it, so no row ever takes focus.onFocusOutsidenow ignores focus that lands in a surrounding menu. Every other dismissal path is unchanged — pointer-down outside, Escape, tabbing away to a non-menu element, and selecting an item all still close it.Type of Change
Testing
bun run type-checkandbun run lintclean.Checklist