feat(sidebar): add lock/unlock to workflow registry context menu#3350
feat(sidebar): add lock/unlock to workflow registry context menu#3350waleedlatif1 merged 6 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
7465902 to
c1dea0e
Compare
Greptile SummaryThis PR adds lock/unlock functionality to the workflow right-click menu in the sidebar. The implementation correctly routes through the
Note: This PR includes documentation changes for Google BigQuery, Google Books, Google Tasks, and Table tools that appear unrelated to the workflow lock/unlock feature. Verify these were intentionally included. Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant WorkflowItem as Sidebar (workflow-item)
participant ContextMenu as Context Menu
participant Window as Custom Event
participant Workflow as Workflow Component
participant Hook as collaborativeBatchToggleLocked
participant Store as Workflow Store
participant Socket as Socket Queue
participant UndoRedo as Undo/Redo
User->>WorkflowItem: Right-click active workflow
WorkflowItem->>ContextMenu: Open menu (showLock=true)
ContextMenu->>User: Display Lock/Unlock option
User->>ContextMenu: Click Lock/Unlock
ContextMenu->>WorkflowItem: Trigger handleToggleLock()
WorkflowItem->>WorkflowItem: Get blocks, call getWorkflowLockToggleIds()
WorkflowItem->>Window: Dispatch 'toggle-workflow-lock' event
Window->>Workflow: Event listener receives event
Workflow->>Hook: Call collaborativeBatchToggleLocked(blockIds)
Hook->>Socket: Add operation to sync queue
Hook->>Store: Call batchToggleLocked(blockIds)
Hook->>UndoRedo: Record operation
Store->>WorkflowItem: Update triggers re-render
WorkflowItem->>ContextMenu: Update isLocked state
Last reviewed commit: 7db6f64 |
|
@greptile |
|
@cursor review |
...Id]/w/components/sidebar/components/workflow-list/components/workflow-item/workflow-item.tsx
Outdated
Show resolved
Hide resolved
...Id]/w/components/sidebar/components/workflow-list/components/workflow-item/workflow-item.tsx
Show resolved
Hide resolved
|
@cursor review |
|
@greptile |
...Id]/w/components/sidebar/components/workflow-list/components/workflow-item/workflow-item.tsx
Show resolved
Hide resolved
...Id]/w/components/sidebar/components/workflow-list/components/workflow-item/workflow-item.tsx
Show resolved
Hide resolved
Replaces manual pivot-sorting logic with the existing utility function, which handles block ordering and no-op guards consistently.
|
@cursor review |
|
@greptile |
Summary
Type of Change
Testing
Tested manually
Checklist