From a4db4b5247fd4113eef1ab9aaef8d12a48d27bb6 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sun, 18 Oct 2026 23:41:21 +1100 Subject: [PATCH] fix(ui): mark the step failing validation on its canvas node --- ui/src/workflows/WorkflowEditor.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ui/src/workflows/WorkflowEditor.vue b/ui/src/workflows/WorkflowEditor.vue index 1197b5618..df30bb707 100644 --- a/ui/src/workflows/WorkflowEditor.vue +++ b/ui/src/workflows/WorkflowEditor.vue @@ -309,6 +309,13 @@ const problems = computed(() => }), ), ); +// The parse stops at the first failing step; its node carries that failure too. +const nodeProblems = computed(() => { + const result = parsed.value; + const failed = result.ok ? null : /^workflow \S+ step (\d+)\b/.exec(result.message); + if (result.ok || !failed) return problems.value; + return { [JSON.stringify(["steps", Number(failed[1]) - 1])]: result.message, ...problems.value }; +}); const WORKS_ON: Record = { optional: "Repository if given", none: "No repository" }; const REQUIRED = "Works on a repository"; const workflowSummary = computed(() => @@ -425,7 +432,7 @@ function syncScroll(event: Event): void { :triggers="triggers" :types="stepTypeNames" :restartable="restartable" - :problems="problems" + :problems="nodeProblems" :title="parsed.ok ? parsed.id : id" :summary="workflowSummary" @toggle="toggle"