diff --git a/frontend/src/pages/Automation/AutomationPage.tsx b/frontend/src/pages/Automation/AutomationPage.tsx index 3082a207..265b8c87 100644 --- a/frontend/src/pages/Automation/AutomationPage.tsx +++ b/frontend/src/pages/Automation/AutomationPage.tsx @@ -410,38 +410,19 @@ const AutomationPage: React.FC = () => { , color: 'teal' }} parent="Automation" />
{/* Compact Ready-to-Run card (header) - absolutely centered in header */} -
-
0 ? 'border-success-500 bg-success-50' : 'border-gray-300 bg-gray-50'}`}> -
0 ? 'bg-gradient-to-br from-success-500 to-success-600' : 'bg-gradient-to-br from-gray-400 to-gray-500'}`}> - {!currentRun && totalPending > 0 ? : currentRun?.status === 'running' ? : currentRun?.status === 'paused' ? : } -
-
-
- {currentRun?.status === 'running' && `Running - Stage ${currentRun.current_stage}/7`} - {currentRun?.status === 'paused' && 'Paused'} - {!currentRun && totalPending > 0 && 'Ready to Run'} - {!currentRun && totalPending === 0 && 'No Items Pending'} -
-
- {currentRun ? `Started: ${new Date(currentRun.started_at).toLocaleTimeString()}` : (totalPending > 0 ? `${totalPending} items in pipeline` : 'All stages clear')} -
-
-
-
+ {/* Compact Schedule & Controls Panel */} {config && ( -
+
{config.is_enabled ? ( @@ -473,6 +454,24 @@ const AutomationPage: React.FC = () => { )}
+
0 ? 'border-success-500 bg-success-50' : 'border-gray-300 bg-gray-50'}`}> +
0 ? 'bg-gradient-to-br from-success-500 to-success-600' : 'bg-gradient-to-br from-gray-400 to-gray-500'}`}> + {!currentRun && totalPending > 0 ? : currentRun?.status === 'running' ? : currentRun?.status === 'paused' ? : } +
+
+
+ {currentRun?.status === 'running' && `Running - Stage ${currentRun.current_stage}/7`} + {currentRun?.status === 'paused' && 'Paused'} + {!currentRun && totalPending > 0 && 'Ready to Run'} + {!currentRun && totalPending === 0 && 'No Items Pending'} +
+
+ {currentRun ? `Started: ${new Date(currentRun.started_at).toLocaleTimeString()}` : (totalPending > 0 ? `${totalPending} items in pipeline` : 'All stages clear')} +
+
+