Add extended graph and dummy auto-layout #59#77
Add extended graph and dummy auto-layout #59#77handreyrc wants to merge 1 commit intoserverlessworkflow:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Adds SDK graph generation support to the diagram editor core by introducing extended graph types (node size/position, edge types/waypoints), exposing a buildGraph wrapper, and providing a dummy auto-layout implementation with accompanying tests/snapshots.
Changes:
- Added extended graph type definitions and edge-type enrichment (
solveEdgeTypes). - Exposed
buildGraphvia the core SDK wrapper and re-exported core modules. - Added a dummy
applyAutoLayoutimplementation plus integration/unit tests and snapshots.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/serverless-workflow-diagram-editor/tests/fixtures/workflows.ts | Added new JSON/YAML workflow fixtures used by graph + auto-layout tests. |
| packages/serverless-workflow-diagram-editor/tests/core/workflowSdk.integration.test.ts | Added integration coverage for buildGraph and extended graph typing/snapshot. |
| packages/serverless-workflow-diagram-editor/tests/core/graph.test.ts | New unit tests for edge type enrichment across default/error/condition/nested cases. |
| packages/serverless-workflow-diagram-editor/tests/core/autoLayout.integration.test.ts | New integration test verifying dummy auto-layout positions/sizes and snapshot. |
| packages/serverless-workflow-diagram-editor/tests/core/snapshots/workflowSdk.integration.test.ts.snap | Snapshot for buildGraph result. |
| packages/serverless-workflow-diagram-editor/tests/core/snapshots/autoLayout.integration.test.ts.snap | Snapshot for applyAutoLayout result. |
| packages/serverless-workflow-diagram-editor/src/core/workflowSdk.ts | Switched to SDK namespace import; added buildGraph wrapper returning extended graph. |
| packages/serverless-workflow-diagram-editor/src/core/index.ts | Re-exported graph and autoLayout modules. |
| packages/serverless-workflow-diagram-editor/src/core/graph.ts | Added extended graph types and solveEdgeTypes. |
| packages/serverless-workflow-diagram-editor/src/core/autoLayout.ts | Added dummy applyAutoLayout implementation to set size/position. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
lornakelly
left a comment
There was a problem hiding this comment.
Thanks for PR Handrey, nice work. Just a few comments
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: handreyrc <handrey.cunha@gmail.com>
|
Could you review this PR, please? |
Closes #59
Summary
This PR adds dummy auto-layout and extended graph types.
Changes