improvement(ui): modal style standardization, select drop improvement, duplication selection fixes#2871
Merged
waleedlatif1 merged 3 commits intostagingfrom Jan 17, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile SummaryThis PR makes three distinct improvements to the workflow canvas and modal components:
The refactoring follows the codebase patterns by separating hooks (stateful logic) from utilities (pure functions) and improving import organization. Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant Workflow as workflow.tsx
participant ShiftHook as useShiftSelectionLock
participant Store as Registry Store
participant ActionBar as action-bar.tsx
Note over User,ActionBar: Shift-Selection Fix Flow
User->>Workflow: Press Shift + MouseDown on canvas
Workflow->>ShiftHook: handleCanvasMouseDown(event)
ShiftHook->>ShiftHook: Check isPaneTarget & isHandMode
ShiftHook->>ShiftHook: setIsShiftSelecting(true)
ShiftHook->>ShiftHook: Prevent text selection
ShiftHook-->>Workflow: Return selectionProps
Note over Workflow: selectionOnDrag: true<br/>panOnDrag: false<br/>selectionKeyCode: null
User->>User: Release Shift (still dragging)
Note over ShiftHook: Selection stays locked!
User->>Workflow: MouseUp
ShiftHook->>ShiftHook: handleMouseUp()
ShiftHook->>ShiftHook: setIsShiftSelecting(false)
Note over User,ActionBar: Pending Selection Fix Flow
User->>ActionBar: Duplicate block
ActionBar->>Store: setPendingSelection([newId])
Store->>Store: Append to pendingSelection array
ActionBar->>Store: collaborativeBatchAddBlocks()
Note over Workflow: derivedNodes updates
Workflow->>Store: Read pendingSelection
Store-->>Workflow: [newId]
Workflow->>Store: clearPendingSelection()
Workflow->>Workflow: Apply selection to nodes
Workflow->>Workflow: resolveParentChildSelectionConflicts()
Workflow->>Workflow: setDisplayNodes(selected nodes)
Note over User,ActionBar: Modal Standardization
User->>User: Open BYOK modal
Note over User: Save button uses variant='tertiary'<br/>Delete button uses variant='destructive'
User->>User: Open A2A Deploy modal
Note over User: Auth selection uses ButtonGroup<br/>instead of Combobox
|
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