From b915e6cb4c85a3ca8b2335251145d8f7bd66e503 Mon Sep 17 00:00:00 2001 From: Matt Lavin Date: Tue, 10 Dec 2024 10:33:25 -0500 Subject: [PATCH] Show edge names in editor --- .changeset/orange-coins-speak.md | 5 +++++ packages/workflow/src/ui/layout.tsx | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/orange-coins-speak.md diff --git a/.changeset/orange-coins-speak.md b/.changeset/orange-coins-speak.md new file mode 100644 index 0000000..0ce8ed6 --- /dev/null +++ b/.changeset/orange-coins-speak.md @@ -0,0 +1,5 @@ +--- +"@inngest/workflow-kit": minor +--- + +Show edge names in editor diff --git a/packages/workflow/src/ui/layout.tsx b/packages/workflow/src/ui/layout.tsx index f5e248a..c84ae6b 100644 --- a/packages/workflow/src/ui/layout.tsx +++ b/packages/workflow/src/ui/layout.tsx @@ -162,6 +162,7 @@ export const parseWorkflow = ({ workflow, trigger, blankNodeParent }: parseWorkf id: `${edge.from}-${edge.to}`, source: edge.from, target: edge.to, + label: edge.name, type: 'smoothstep', }); });