fix(sidebar): right-click replaces selection, reset popover hover state#3123
Merged
waleedlatif1 merged 2 commits intostagingfrom Feb 3, 2026
Merged
fix(sidebar): right-click replaces selection, reset popover hover state#3123waleedlatif1 merged 2 commits intostagingfrom
waleedlatif1 merged 2 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile OverviewGreptile SummaryThis PR fixes sidebar interaction bugs and refactors settings modal state management:
All changes follow established patterns and improve code quality. Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant WorkflowItem
participant FolderItem
participant FolderStore
participant Popover
participant SettingsModal
participant UserProfileQuery
Note over User,UserProfileQuery: Right-Click Selection Behavior
User->>WorkflowItem: Right-click on unselected workflow
WorkflowItem->>FolderStore: captureSelectionState()
FolderStore->>FolderStore: Check if workflow is selected
alt Workflow not selected
FolderStore->>FolderStore: clearAllSelection() - clear workflows & folders
FolderStore->>FolderStore: selectWorkflow(workflowId)
end
WorkflowItem->>User: Show context menu
User->>FolderItem: Right-click on unselected folder
FolderItem->>FolderStore: captureSelectionState()
FolderStore->>FolderStore: Check if folder is selected
alt Folder not selected
FolderStore->>FolderStore: clearAllSelection() - clear workflows & folders
FolderStore->>FolderStore: selectFolder(folderId)
end
FolderItem->>User: Show context menu
Note over User,UserProfileQuery: Popover Hover State Reset
User->>Popover: Open popover
Popover->>Popover: useEffect detects open=true
Popover->>Popover: setLastHoveredItem(null) - reset hover state
Popover->>User: Display menu without stale submenu
Note over User,UserProfileQuery: Settings Modal - React Query Refactor
User->>SettingsModal: Open settings modal
SettingsModal->>UserProfileQuery: useSuperUserStatus(enabled)
UserProfileQuery->>UserProfileQuery: Fetch from /api/user/super-user
UserProfileQuery-->>SettingsModal: { isSuperUser: boolean }
SettingsModal->>SettingsModal: Compute effectiveActiveSection
SettingsModal->>User: Render active section
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Type of Change
Testing
Tested manually
Checklist