From ec201a23a2ce2f8cb156b5e919aece9515c37334 Mon Sep 17 00:00:00 2001 From: mrhid6 Date: Tue, 21 Jul 2026 12:09:19 +0100 Subject: [PATCH] fix: Fixed draft workflow status --- web/app/workflows/[id]/page.tsx | 112 +++++++------------------------- 1 file changed, 23 insertions(+), 89 deletions(-) diff --git a/web/app/workflows/[id]/page.tsx b/web/app/workflows/[id]/page.tsx index e3231c7..b9a61a3 100644 --- a/web/app/workflows/[id]/page.tsx +++ b/web/app/workflows/[id]/page.tsx @@ -16,23 +16,11 @@ type DragPayload = { kind: "lib"; stepId: string } | { kind: "move"; from: numbe function ShellBadge({ interpreter }: { interpreter: "bash" | "powershell" }) { const isBash = interpreter === "bash"; - return ( - - {isBash ? "bash" : "pwsh"} - - ); + return {isBash ? "bash" : "pwsh"}; } function AdhocBadge() { - return ( - - ad-hoc - - ); + return ad-hoc; } // Stable snapshot of only the fields the editor controls. Excludes volatile @@ -298,14 +286,7 @@ export default function WorkflowBuilder() { updateRef(selectedIdxInWf, { overrides: { ...selectedRef.overrides, secret_refs: next } }); }; - const upstreamOutputsFor = (i: number) => - Array.from( - new Set( - sortedSteps - .slice(0, i) - .flatMap((r) => r.inline?.declared_outputs ?? libById(r.step_id)?.declared_outputs ?? []), - ), - ); + const upstreamOutputsFor = (i: number) => Array.from(new Set(sortedSteps.slice(0, i).flatMap((r) => r.inline?.declared_outputs ?? libById(r.step_id)?.declared_outputs ?? []))); const DropZone = ({ pos }: { pos: number }) => (
Workflows / {wf.name} - - · {saving ? "Saving…" : lastSaved ? `Saved ${timeAgo(lastSaved)}` : "draft"} - + · {saving ? "Saving…" : lastSaved ? `Saved ${timeAgo(lastSaved)}` : ""}
- - {wf.target_server_ids.length} servers - - + {wf.target_server_ids.length} servers + Runs -
- {error && ( -
{error}
- )} - {notice && ( -
{notice}
- )} + {error &&
{error}
} + {notice &&
{notice}
}
{/* CENTER: canvas */} -
+