From 168ddde0ddfc8ba4c8b445b895963e28dadbb4b2 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sun, 18 Oct 2026 23:44:34 +1100 Subject: [PATCH] fix(ui): align branch lane ends and route the unmatched switch path down its own lane --- ui/src/workflows/AddNode.vue | 6 ++-- ui/src/workflows/InsertEdge.vue | 5 +-- ui/src/workflows/WorkflowCanvas.vue | 2 +- ui/src/workflows/workflow-graph.ts | 47 +++++++++++++++++------------ 4 files changed, 32 insertions(+), 28 deletions(-) diff --git a/ui/src/workflows/AddNode.vue b/ui/src/workflows/AddNode.vue index aec12afa2..958dbef32 100644 --- a/ui/src/workflows/AddNode.vue +++ b/ui/src/workflows/AddNode.vue @@ -3,14 +3,14 @@ import { Handle, Position } from "@vue-flow/core"; import AddStepMenu from "./AddStepMenu.vue"; -defineProps<{ data: { branch?: string; types: string[]; editable: boolean; onInsert: (type: string) => void } }>(); +defineProps<{ data: { branch?: string; lane?: string; insertAfter?: unknown; types: string[]; editable: boolean; onInsert: (type: string) => void } }>(); diff --git a/ui/src/workflows/InsertEdge.vue b/ui/src/workflows/InsertEdge.vue index 9deab52f2..a30eb58e5 100644 --- a/ui/src/workflows/InsertEdge.vue +++ b/ui/src/workflows/InsertEdge.vue @@ -5,7 +5,7 @@ import { BaseEdge, EdgeLabelRenderer, getSmoothStepPath, type EdgeProps } from " import AddStepMenu from "./AddStepMenu.vue"; import type { StepPath } from "./workflow-edit"; -const props = defineProps void }>>(); +const props = defineProps void }>>(); const path = computed(() => getSmoothStepPath({ @@ -22,9 +22,6 @@ const path = computed(() =>