From ab3edd7dc9030eeb770ffd64087476adf10d2d06 Mon Sep 17 00:00:00 2001 From: Dries Augustyns Date: Fri, 24 Apr 2026 12:09:54 +0200 Subject: [PATCH] fix: improve layout and accessibility of workflow header and buttons --- apps/web/src/pages/workflows/[id].tsx | 100 +++++++++++++++----------- 1 file changed, 58 insertions(+), 42 deletions(-) diff --git a/apps/web/src/pages/workflows/[id].tsx b/apps/web/src/pages/workflows/[id].tsx index 8fed6e9..10411b2 100644 --- a/apps/web/src/pages/workflows/[id].tsx +++ b/apps/web/src/pages/workflows/[id].tsx @@ -441,60 +441,61 @@ export default function WorkflowEditorPage() {
{/* Header */} -
-
- - - -
-
-

{workflow.name}

- - {workflow.enabled ? ( - <> - - Active - - ) : ( - <> - - Disabled - - )} - -
- {workflow.description && ( -

{workflow.description}

- )} +
+ + + +
+
+

{workflow.name}

+ + {workflow.enabled ? ( + <> + + Active + + ) : ( + <> + + Disabled + + )} +
+ {workflow.description && ( +

{workflow.description}

+ )}
-
- - - @@ -528,7 +529,7 @@ export default function WorkflowEditorPage() { )} - {/* Validation Warning Banner */} + {/* Validation Warning Banner / Ready-to-enable Banner */} {!workflow.enabled && (() => { const validation = validateWorkflow(workflow); @@ -548,6 +549,21 @@ export default function WorkflowEditorPage() { ); } + if (workflow.steps.length > 0) { + return ( + + + Workflow is disabled + + Contacts won't be processed until this workflow is enabled. + + + + ); + } return null; })()}