-
Notifications
You must be signed in to change notification settings - Fork 3.2k
improvement: workflow, blocks, preview, avatars, output-select #2840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryThis PR delivers UI/UX improvements and performance optimizations across workflow, block, preview, avatar, and output-select components. Major changes include refactoring the workflow canvas drag-and-drop logic with consolidated helper functions ( Key improvements:
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant WorkflowControls
participant Workflow
participant Container
participant Preview
participant Sidebar
Note over User,Sidebar: UI Improvements & Refactoring
User->>WorkflowControls: Click canvas mode selector
WorkflowControls->>WorkflowControls: Show Mover option first (reordered)
User->>WorkflowControls: Select mode
WorkflowControls->>Workflow: Update canvas mode
User->>Workflow: Drag node over container
Workflow->>Workflow: highlightContainerNode(containerId, kind)
Workflow->>Container: Add drag-over styling
User->>Workflow: Drop node
Workflow->>Workflow: executeBatchParentUpdate(nodes, parentId)
Workflow->>Workflow: shiftUpdatesToContainerBounds(updates)
Workflow->>Container: Update node positions and parent
User->>Workflow: Shift+Drag on canvas
Workflow->>Workflow: handleCanvasMouseDown(event)
Workflow->>Workflow: Prevent text selection
User->>Workflow: Paste/Duplicate blocks
Workflow->>Workflow: executePasteOperation(operation, offset)
Workflow->>Workflow: Validate and add blocks
User->>Preview: View workflow
Preview->>Preview: FitViewOnChange checks nodeIds
Preview->>Preview: Re-fit when nodeIds change (fixed)
User->>Sidebar: View workflow item
Sidebar->>Sidebar: Render avatars inline with name
Sidebar->>Sidebar: Apply flex layout improvements
|
Summary
Improvement: workflow, blocks, preview, avatars, output-select
Type of Change
Testing
Solo.
Checklist