feat(context-menu): added context menu to dead sidebar space and usage indicator#2841
Merged
waleedlatif1 merged 1 commit intostagingfrom Jan 16, 2026
Merged
feat(context-menu): added context menu to dead sidebar space and usage indicator#2841waleedlatif1 merged 1 commit intostagingfrom
waleedlatif1 merged 1 commit intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile SummaryAdded context menu functionality to sidebar's dead space and usage indicator, enabling right-click access to workflow/folder creation and plan management options. Major Changes:
Implementation Quality:
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant Sidebar
participant WorkflowList
participant EmptyAreaMenu
participant UsageIndicator
participant UsageMenu
participant ContextMenuHook
participant SettingsModal
User->>UsageIndicator: Right-click usage indicator
UsageIndicator->>ContextMenuHook: handleContextMenu(e)
ContextMenuHook->>ContextMenuHook: setPosition({x, y})
ContextMenuHook->>ContextMenuHook: setIsOpen(true)
UsageIndicator->>UsageMenu: Render menu at position
User->>UsageMenu: Click "Set usage limit"
UsageMenu->>UsageIndicator: onSetLimit()
UsageIndicator->>Window: dispatch('open-settings', {tab: 'subscription'})
Window->>SettingsModal: Handle event
SettingsModal->>SettingsModal: Open subscription tab
User->>UsageMenu: Click "Upgrade to Pro"
UsageMenu->>UsageIndicator: onUpgradeToPro()
UsageIndicator->>UsageIndicator: handleUpgrade('pro')
User->>WorkflowList: Right-click empty area
WorkflowList->>ContextMenuHook: handleContextMenu(e)
ContextMenuHook->>ContextMenuHook: setPosition({x, y})
ContextMenuHook->>ContextMenuHook: setIsOpen(true)
WorkflowList->>EmptyAreaMenu: Render menu at position
User->>EmptyAreaMenu: Click "Create workflow"
EmptyAreaMenu->>WorkflowList: onCreateWorkflow()
WorkflowList->>Sidebar: handleCreateWorkflow()
Sidebar->>Sidebar: Create new workflow
|
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
Screenshots/Videos