feat(ux): added auto-layout for workflows#443
Merged
waleedlatif1 merged 4 commits intomainfrom May 31, 2025
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Contributor
There was a problem hiding this comment.
PR Summary
Added auto-layout functionality for workflows with both horizontal and vertical orientations, accessible via Shift+L shortcut or UI button.
- Added
renderAutoLayoutButtonincontrol-bar.tsxwith tooltip and keyboard shortcut display - Simplified edge rendering in
workflow-edge.tsxby replacing dynamic offset calculations with fixed 10px offset - Implemented auto-layout detection for predominant handle orientation (vertical/horizontal) in
workflow.tsx - Added utility functions in
utils.tsfor calculating block dimensions and managing layout spacing with smooth animations
4 file(s) reviewed, 7 comment(s)
Edit PR Review Bot Settings | Greptile
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.
Description
Added auto-layout for workflows (shift+L)
Type of change
How Has This Been Tested?
Tested many variations manually, both with horizontal workflows and vertical workflows
Checklist:
bun run test)Security Considerations: