feat: Add and style leaf nodes#136
feat: Add and style leaf nodes#136lornakelly wants to merge 1 commit intoserverlessworkflow:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Adds the agreed UX styling for “leaf” task nodes in the React Flow diagram editor by introducing a shared TaskNodeContent component backed by a per-node-type config map, plus corresponding CSS and tests. This moves several leaf nodes off placeholders and updates sizing to better fit the new visual design.
Changes:
- Introduces
taskNodeConfigMap(color/icon/type label) for leaf task nodes and adds unit tests to ensure completeness/shape. - Implements
TaskNodeContentand wires leaf nodes (Call/Emit/Listen/Raise/Run/Set/Switch/Wait) to render with the new styled content. - Updates diagram CSS for light/dark themes and increases default node dimensions.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/serverless-workflow-diagram-editor/tests/react-flow/nodes/taskNodeConfig.test.ts | Adds coverage ensuring all leaf node types have config entries with expected fields. |
| packages/serverless-workflow-diagram-editor/tests/react-flow/nodes/Nodes.test.tsx | Expands node rendering tests and validates leaf node DOM/config integration. |
| packages/serverless-workflow-diagram-editor/src/react-flow/nodes/taskNodeConfig.ts | Defines leaf node visual config (colors/icons/type labels). |
| packages/serverless-workflow-diagram-editor/src/react-flow/nodes/Nodes.tsx | Adds TaskNodeContent and switches leaf nodes to styled rendering using config. |
| packages/serverless-workflow-diagram-editor/src/react-flow/diagram/Diagram.tsx | Updates sample diagram node labels/positions to better demonstrate new nodes. |
| packages/serverless-workflow-diagram-editor/src/react-flow/diagram/Diagram.css | Adds styling for task leaf nodes and tweaks dark mode/custom node styling. |
| packages/serverless-workflow-diagram-editor/src/core/autoLayout.ts | Adjusts default node size to match the new node design. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
e0b6903 to
83e4f3e
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
83e4f3e to
35f5cee
Compare
35f5cee to
65182ca
Compare
Signed-off-by: lornakelly <lornakelly88@gmail.com>
65182ca to
b6c1020
Compare

Closes: #85
Summary
Add styled component for custom react flow leaf nodes (Call, Emit, Listen, raise, Run, Set, Switch, Wait)
Changes
TaskNodeContentcomponentScreen.Recording.2026-05-05.at.12.28.17.mov