diff --git a/apps/web/src/pages/workflows/[id].tsx b/apps/web/src/pages/workflows/[id].tsx index 74159f3..19f563b 100644 --- a/apps/web/src/pages/workflows/[id].tsx +++ b/apps/web/src/pages/workflows/[id].tsx @@ -32,6 +32,7 @@ import type {Template, Workflow, WorkflowExecution, WorkflowStep, WorkflowTransi import {DashboardLayout} from '../../components/DashboardLayout'; import {network} from '../../lib/network'; import { + AlertTriangle, ArrowLeft, ChevronDown, Clock, @@ -446,41 +447,29 @@ export default function WorkflowEditorPage() { {/* Active Executions Warning Banner */} {activeExecutionsCount > 0 && ( -
-
-
- - - -
-
-

- {workflow.enabled ? 'Workflow is active with running executions' : 'Workflow has active executions'} -

-
-

- This workflow has {activeExecutionsCount} active execution - {activeExecutionsCount !== 1 ? 's' : ''}.{' '} - {!workflow.enabled && 'Even though the workflow is disabled, existing executions will continue. '} - To protect running workflows, you cannot: -

-
    -
  • Delete steps or transitions
  • -
  • Modify step configurations (email templates, conditions, etc.)
  • -
  • Change the workflow trigger
  • -
-

- You can still rename steps and adjust their position. To make configuration changes, wait for - executions to complete or cancel them from the Executions tab. -

-
-
-
-
+ + + + {workflow.enabled ? 'Workflow is active with running executions' : 'Workflow has active executions'} + + +

+ This workflow has {activeExecutionsCount} active execution + {activeExecutionsCount !== 1 ? 's' : ''}.{' '} + {!workflow.enabled && 'Even though the workflow is disabled, existing executions will continue. '} + To protect running workflows, you cannot: +

+
    +
  • Delete steps or transitions
  • +
  • Modify step configurations (email templates, conditions, etc.)
  • +
  • Change the workflow trigger
  • +
+

+ You can still rename steps and adjust their position. To make configuration changes, wait for executions + to complete or cancel them from the Executions tab. +

+
+
)} {/* Validation Warning Banner */} @@ -489,30 +478,18 @@ export default function WorkflowEditorPage() { const validation = validateWorkflow(workflow); if (!validation.valid) { return ( -
-
-
- - - -
-
-

Workflow has validation errors

-
-

Fix the following issues before enabling this workflow:

-
    - {validation.errors.map((error, i) => ( -
  • {error}
  • - ))} -
-
-
-
-
+ + + Workflow has validation errors + +

Fix the following issues before enabling this workflow:

+
    + {validation.errors.map((error, i) => ( +
  • {error}
  • + ))} +
+
+
); } return null;