ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
feat(automations): retire React-Flow Workflow Builder UI (Phase 4 frontend)
Juan Denise62d969a8b4e
diff --git a/builtin-extensions/serverkit-workflows/frontend/index.jsx b/builtin-extensions/serverkit-workflows/frontend/index.jsxdeleted file mode 100644index 375441be..00000000--- a/builtin-extensions/serverkit-workflows/frontend/index.jsx+++ /dev/null@@ -1,12 +0,0 @@-// Workflow Builder, contributed through the extension system. The page component-// and its /api/v1/workflows backend stay in core for now (two-speed extraction,-// D2); this extension owns the /workflow route + sidebar/palette entries via its-// manifest. The route uses the "full" layout (no padding) to match the canvas.-//-// After sync this file lives at frontend/src/plugins/serverkit-workflows/ so the-// relative import resolves against the host's pages directory.-import WorkflowBuilder from '../../pages/WorkflowBuilder';--export function WorkflowBuilderPage() {- return <WorkflowBuilder />;-}diff --git a/builtin-extensions/serverkit-workflows/plugin.json b/builtin-extensions/serverkit-workflows/plugin.jsondeleted file mode 100644index db9d2ec3..00000000--- a/builtin-extensions/serverkit-workflows/plugin.json+++ /dev/null@@ -1,37 +0,0 @@-{- "name": "serverkit-workflows",- "display_name": "Workflow Builder",- "version": "1.0.0",- "description": "Visual automation builder. Chain deploy, build, and notification steps into pipelines on a drag-and-drop canvas.",- "author": "ServerKit",- "license": "MIT",- "category": "deployment",- "homepage": "https://github.com/jhd3197/ServerKit",- "permissions": ["docker", "shell"],- "icon": "<circle cx=\"18\" cy=\"5\" r=\"3\"/><circle cx=\"6\" cy=\"12\" r=\"3\"/><circle cx=\"18\" cy=\"19\" r=\"3\"/><path d=\"M8.59 13.51l6.83 3.98\"/><path d=\"M15.41 6.51l-6.82 3.98\"/>",- "contributions": {- "nav": [- {- "id": "workflow",- "label": "Workflow Builder",- "route": "/workflow",- "category": "infrastructure",- "icon": "<circle cx=\"18\" cy=\"5\" r=\"3\"/><circle cx=\"6\" cy=\"12\" r=\"3\"/><circle cx=\"18\" cy=\"19\" r=\"3\"/><path d=\"M8.59 13.51l6.83 3.98\"/><path d=\"M15.41 6.51l-6.82 3.98\"/>"- }- ],- "routes": [- { "path": "workflow", "component": "WorkflowBuilderPage", "layout": "full" }- ],- "page_titles": {- "/workflow": "Workflow Builder"- },- "command_palette": [- {- "label": "Workflow Builder",- "path": "/workflow",- "category": "Pages",- "keywords": "automation pipeline workflow"- }- ]- }-}diff --git a/frontend/src/App.jsx b/frontend/src/App.jsxindex 67bef455..c66a02de 100644--- a/frontend/src/App.jsx+++ b/frontend/src/App.jsx@@ -331,8 +331,10 @@ function AppRoutes() {via its manifest and self-renders the whole sub-router (tabgroup + full-bleed detail + legacy /projects redirects), so allthe WordPress routing now lives in the extension. */}- {/* /workflow is now the serverkit-workflows builtin extension- (contributes the route via its manifest, full layout). */}+ {/* The React-Flow Workflow Builder (serverkit-workflows) was+ retired in plan 45; the Automations extension (tramo) replaces+ it. Keep the old /workflow path working by redirecting. */}+ <Route path="workflow" element={<Navigate to="/automations" replace />} /><Route element={<TabGroupLayout tabs={DOMAIN_TABS} />}><Route path="domains" element={<Domains />} /><Route path="ssl" element={<SSLCertificates />} />diff --git a/frontend/src/components/sidebarItems.js b/frontend/src/components/sidebarItems.jsindex 23873308..35973ec4 100644--- a/frontend/src/components/sidebarItems.js+++ b/frontend/src/components/sidebarItems.js@@ -89,8 +89,8 @@ export const SIDEBAR_ITEMS = [// WordPress is now the serverkit-wordpress builtin extension (Phase 5 #38);// its sidebar item is contributed by the extension manifest (nav), so it// disappears cleanly when the extension is uninstalled.- // Workflow Builder is now the serverkit-workflows builtin extension; its- // sidebar item is contributed by the extension manifest.+ // Automations (tramo) is a builtin extension (serverkit-tramo) that replaced+ // the old Workflow Builder; its sidebar item comes from the extension manifest.{id: 'databases',label: 'Databases',diff --git a/frontend/src/components/workflow/ConfigPanel.jsx b/frontend/src/components/workflow/ConfigPanel.jsxdeleted file mode 100644index cd050e52..00000000--- a/frontend/src/components/workflow/ConfigPanel.jsx+++ /dev/null@@ -1,60 +0,0 @@-import React, { useEffect, useCallback } from 'react';-import { X } from 'lucide-react';-import { Button } from '@/components/ui/button';--const ConfigPanel = ({- isOpen,- title,- icon,- color,- headerColor,- onClose,- children,- footer-}) => {- const borderColor = color || headerColor || '#6d7cff';-- const handleKeyDown = useCallback((e) => {- if (e.key === 'Escape') {- onClose();- }- }, [onClose]);-- useEffect(() => {- document.addEventListener('keydown', handleKeyDown);- return () => document.removeEventListener('keydown', handleKeyDown);- }, [handleKeyDown]);-- // Always show when rendered (panels are conditionally rendered by parent)- const panelOpen = isOpen !== undefined ? isOpen : true;-- return (- <div className={`config-panel ${panelOpen ? 'open' : ''}`}>- <div className="config-panel-header" style={{ borderColor }}>- <div className="config-panel-title">- {icon && (- <div className="config-panel-icon" style={{ backgroundColor: borderColor }}>- {typeof icon === 'function' ? React.createElement(icon, { size: 18 }) : icon}- </div>- )}- <h3>{title}</h3>- </div>- <Button variant="ghost" size="icon" className="config-panel-close" onClick={onClose}>- <X size={18} />- </Button>- </div>-- <div className="config-panel-body">- {children}- </div>-- {footer && (- <div className="config-panel-footer">- {footer}- </div>- )}- </div>- );-};--export default ConfigPanel;diff --git a/frontend/src/components/workflow/ConnectionEdge.jsx b/frontend/src/components/workflow/ConnectionEdge.jsxdeleted file mode 100644index df0fdd95..00000000--- a/frontend/src/components/workflow/ConnectionEdge.jsx+++ /dev/null@@ -1,93 +0,0 @@-import { memo } from 'react';-import { BaseEdge, EdgeLabelRenderer, getSmoothStepPath } from '@xyflow/react';-import { X } from 'lucide-react';-import { connectionLabels, getConnectionType } from '../../utils/connectionRules';--// Categorical edge tints aligned to the redesign palette. Literal hex by-// design: SVG stroke is set via ReactFlow inline style props where var()-// does not resolve (docker brand blue kept).-const edgeColors = {- 'domain-dockerApp': '#3ddc97',- 'domain-service': '#3ddc97',- 'dockerApp-dockerApp': '#2496ed',- 'dockerApp-database': '#f5b945',- 'service-dockerApp': '#6d7cff',- 'service-database': '#f5b945',- 'service-service': '#6d7cff'-};--const ConnectionEdge = ({- id,- sourceX,- sourceY,- targetX,- targetY,- sourcePosition,- targetPosition,- source,- target,- sourceHandleId,- selected,- data,- markerEnd-}) => {- const [edgePath, labelX, labelY] = getSmoothStepPath({- sourceX,- sourceY,- sourcePosition,- targetX,- targetY,- targetPosition,- borderRadius: 8- });-- // Get connection type from data or derive from source/target- const connectionType = data?.connectionType || getConnectionType(- data?.sourceType || 'dockerApp',- data?.targetType || 'dockerApp'- );-- const label = connectionLabels[connectionType] || 'Connected';- const color = edgeColors[connectionType] || '#6d7cff';-- return (- <>- <BaseEdge- id={id}- path={edgePath}- markerEnd={markerEnd}- style={{- stroke: selected ? '#8b93ff' : color,- strokeWidth: selected ? 2 : 1.5,- filter: selected ? 'drop-shadow(0 0 4px rgba(109, 124, 255, 0.55))' : 'none'- }}- />- <EdgeLabelRenderer>- <div- className={`edge-label ${selected ? 'edge-label-selected' : ''}`}- style={{- position: 'absolute',- transform: `translate(-50%, -50%) translate(${labelX}px,${labelY}px)`,- pointerEvents: 'all',- '--edge-c': color- }}- >- <span className="edge-label-text">{label}</span>- {selected && data?.onDelete && (- <button type="button"- className="edge-delete-btn"- onClick={(e) => {- e.stopPropagation();- data.onDelete(id);- }}- >- <X size={12} />- </button>- )}- </div>- </EdgeLabelRenderer>- </>- );-};--export default memo(ConnectionEdge);diff --git a/frontend/src/components/workflow/DeploymentProgressModal.jsx b/frontend/src/components/workflow/DeploymentProgressModal.jsxdeleted file mode 100644index fda6fe85..00000000--- a/frontend/src/components/workflow/DeploymentProgressModal.jsx+++ /dev/null@@ -1,140 +0,0 @@-import { Loader, CheckCircle, XCircle, Server, Database, Globe, Box, ExternalLink } from 'lucide-react';-import Modal from '../Modal';-import { Button } from '@/components/ui/button';--// Categorical node tints (redesign palette; docker brand blue kept).-const nodeTypeConfig = {- dockerApp: { icon: Server, label: 'Docker App', color: '#2496ed' },- database: { icon: Database, label: 'Database', color: '#f5b945' },- domain: { icon: Globe, label: 'Domain', color: '#3ddc97' },- service: { icon: Box, label: 'Service', color: '#6d7cff' }-};--const DeploymentProgressModal = ({ isDeploying, results, nodes, onClose }) => {- // Build node status map from results- const nodeStatusMap = {};- if (results?.results) {- results.results.forEach((result) => {- nodeStatusMap[result.nodeId] = result;- });- }-- const hasErrors = results?.errors?.length > 0;- const isComplete = !isDeploying && results;-- return (- <Modal open={true} onClose={onClose} title={isDeploying ? 'Deploying...' : hasErrors ? 'Deployment Completed with Errors' : 'Deployment Complete'} className="deployment-modal">- <div className="deployment-modal-content">- {isDeploying && !results && (- <div className="deployment-loading">- <Loader size={32} className="spin" />- <p>Deploying infrastructure...</p>- <span>This may take a moment</span>- </div>- )}-- {results && (- <>- {/* Summary */}- <div className={`deployment-summary ${hasErrors ? 'has-errors' : 'success'}`}>- {hasErrors ? (- <>- <XCircle size={24} />- <span>- {results.results?.filter(r => r.success).length || 0} of {results.results?.length || 0} nodes deployed- </span>- </>- ) : (- <>- <CheckCircle size={24} />- <span>All {results.results?.length || 0} nodes deployed successfully</span>- </>- )}- </div>-- {/* Node Results */}- <div className="deployment-results">- {nodes.map((node) => {- const result = nodeStatusMap[node.id];- const config = nodeTypeConfig[node.type] || nodeTypeConfig.service;- const Icon = config.icon;-- return (- <div- key={node.id}- className={`deployment-result-item ${result?.success ? 'success' : result ? 'error' : 'pending'}`}- >- <div className="result-icon" style={{ backgroundColor: config.color }}>- <Icon size={16} />- </div>- <div className="result-info">- <div className="result-name">{node.data?.name || node.id}</div>- <div className="result-type">{config.label}</div>- </div>- <div className="result-status">- {isDeploying && !result ? (- <Loader size={18} className="spin" />- ) : result?.success ? (- <CheckCircle size={18} className="status-success" />- ) : result ? (- <XCircle size={18} className="status-error" />- ) : (- <span className="status-pending">Pending</span>- )}- </div>- {result?.resourceId && (- <a- href={getResourceLink(node.type, result.resourceId)}- className="result-link"- target="_blank"- rel="noopener noreferrer"- onClick={(e) => e.stopPropagation()}- >- <ExternalLink size={14} />- </a>- )}- </div>- );- })}- </div>-- {/* Errors */}- {hasErrors && (- <div className="deployment-errors">- <h4>Errors</h4>- {results.errors.map((error, index) => (- <div key={index} className="error-item">- <XCircle size={14} />- <span>{error.error || 'Unknown error'}</span>- </div>- ))}- </div>- )}- </>- )}- </div>-- <div className="deployment-modal-footer">- {isComplete && (- <Button variant="default" onClick={onClose}>- {hasErrors ? 'Close' : 'Done'}- </Button>- )}- </div>- </Modal>- );-};--function getResourceLink(nodeType, resourceId) {- switch (nodeType) {- case 'dockerApp':- case 'service':- return `/apps/${resourceId}`;- case 'domain':- return `/domains/${resourceId}`;- default:- return '#';- }-}--export default DeploymentProgressModal;diff --git a/frontend/src/components/workflow/WorkflowExecutionHistory.jsx b/frontend/src/components/workflow/WorkflowExecutionHistory.jsxdeleted file mode 100644index fa1b5483..00000000--- a/frontend/src/components/workflow/WorkflowExecutionHistory.jsx+++ /dev/null@@ -1,142 +0,0 @@-import { useState, useEffect, useCallback } from 'react';-import { Clock, Loader2, FileText, Activity } from 'lucide-react';-import api from '../../services/api';-import Modal from '../Modal';-import { Pill } from '../ds';--const statusKind = {- success: 'green',- failed: 'red',- running: 'amber'-};--const WorkflowExecutionHistory = ({ workflowId, onClose }) => {- const [executions, setExecutions] = useState([]);- const [selectedExecution, setSelectedExecution] = useState(null);- const [logs, setLogs] = useState([]);- const [isLoading, setIsLoading] = useState(true);- const [isLogsLoading, setIsLogsLoading] = useState(false);-- const fetchExecutions = useCallback(async () => {- setIsLoading(true);- try {- const response = await api.getWorkflowExecutions(workflowId);- setExecutions(response.executions || []);- } catch (error) {- console.error('Failed to fetch executions:', error);- } finally {- setIsLoading(false);- }- }, [workflowId]);-- const fetchLogs = useCallback(async (executionId) => {- setIsLogsLoading(true);- try {- const response = await api.getWorkflowExecutionLogs(executionId);- setLogs(response.logs || []);- } catch (error) {- console.error('Failed to fetch logs:', error);- } finally {- setIsLogsLoading(false);- }- }, []);-- useEffect(() => {- fetchExecutions();- }, [fetchExecutions]);-- useEffect(() => {- if (selectedExecution) {- fetchLogs(selectedExecution.id);- }- }, [selectedExecution, fetchLogs]);-- return (- <Modal open={true} onClose={onClose} title="Execution History" size="lg">- <div className="wf-history">- {/* Executions List */}- <div className="wf-history__list">- {isLoading ? (- <div className="wf-history__loading"><Loader2 size={18} className="animate-spin" /></div>- ) : executions.length === 0 ? (- <div className="wf-history__empty">No executions found</div>- ) : (- executions.map((exec) => (- <div- key={exec.id}- className={`wf-history__item ${selectedExecution?.id === exec.id ? 'is-on' : ''}`}- onClick={() => setSelectedExecution(exec)}- >- <div className="wf-history__item-top">- <span className="wf-history__id">#{exec.id}</span>- <Pill kind={statusKind[exec.status] || 'gray'}>{exec.status}</Pill>- </div>- <div className="wf-history__trigger">{exec.trigger_type} trigger</div>- <div className="wf-history__time">- <Clock size={10} />- {new Date(exec.started_at).toLocaleString()}- </div>- </div>- ))- )}- </div>-- {/* Execution Details & Logs */}- <div className="wf-history__detail">- {selectedExecution ? (- <>- <div className="wf-history__head">- <div>- <h3 className="wf-history__title">- Execution Details #{selectedExecution.id}- <Pill kind={statusKind[selectedExecution.status] || 'gray'}>- {selectedExecution.status}- </Pill>- </h3>- <div className="wf-history__dur">- Duration: {selectedExecution.duration ? `${selectedExecution.duration.toFixed(2)}s` : 'N/A'}- </div>- </div>- </div>-- <div className="wf-history__logs">- <div className="wf-history__logs-label">- <FileText size={13} />- <span>Execution Logs</span>- </div>-- {isLogsLoading ? (- <div className="wf-history__loading"><Loader2 size={18} className="animate-spin" /></div>- ) : logs.length === 0 ? (- <div className="wf-history__nolog">No logs available for this execution.</div>- ) : (- <div className="wf-history__lines">- {logs.map((log) => (- <div key={log.id} className="wf-log">- <span className="wf-log__ts">[{new Date(log.timestamp).toLocaleTimeString([], { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit' })}]</span>- <span className={`wf-log__lvl wf-log__lvl--${(log.level || 'info').toLowerCase()}`}>- {log.level}- </span>- {log.node_id && (- <span className="wf-log__node">[{log.node_id}]</span>- )}- <span className="wf-log__msg">{log.message}</span>- </div>- ))}- </div>- )}- </div>- </>- ) : (- <div className="wf-history__placeholder">- <Activity size={44} />- <p>Select an execution to view details and logs</p>- </div>- )}- </div>- </div>- </Modal>- );-};--export default WorkflowExecutionHistory;diff --git a/frontend/src/components/workflow/WorkflowListModal.jsx b/frontend/src/components/workflow/WorkflowListModal.jsxdeleted file mode 100644index 3c25197f..00000000--- a/frontend/src/components/workflow/WorkflowListModal.jsx+++ /dev/null@@ -1,147 +0,0 @@-import { useState, useEffect } from 'react';-import { Trash2, Clock, Layers, GitBranch, Loader } from 'lucide-react';-import api from '../../services/api';-import Modal from '../Modal';-import { Button } from '@/components/ui/button';-import { Pill } from '../ds';--const WorkflowListModal = ({ onLoad, onClose }) => {- const [workflows, setWorkflows] = useState([]);- const [loading, setLoading] = useState(true);- const [error, setError] = useState(null);- const [deletingId, setDeletingId] = useState(null);-- useEffect(() => {- loadWorkflows();- }, []);-- const loadWorkflows = async () => {- setLoading(true);- setError(null);- try {- const response = await api.getWorkflows();- setWorkflows(response.workflows || []);- } catch (err) {- console.error('Failed to load workflows:', err);- setError('Failed to load workflows');- } finally {- setLoading(false);- }- };-- const handleDelete = async (e, workflow) => {- e.stopPropagation();- if (!confirm(`Delete workflow "${workflow.name}"?`)) return;-- setDeletingId(workflow.id);- try {- await api.deleteWorkflow(workflow.id);- setWorkflows((prev) => prev.filter((w) => w.id !== workflow.id));- } catch (err) {- console.error('Failed to delete workflow:', err);- setError('Failed to delete workflow');- } finally {- setDeletingId(null);- }- };-- const handleLoad = async (workflow) => {- setError(null);- try {- const response = await api.getWorkflow(workflow.id);- if (response && response.nodes !== undefined) {- onLoad(response);- } else {- console.error('Invalid workflow response:', response);- setError('Invalid workflow data received');- }- } catch (err) {- console.error('Failed to load workflow:', err);- setError(err.message || 'Failed to load workflow');- }- };-- const formatDate = (dateStr) => {- if (!dateStr) return 'Unknown';- const date = new Date(dateStr);- return date.toLocaleDateString() + ' ' + date.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });- };-- return (- <Modal open={true} onClose={onClose} title="Load Workflow" className="workflow-modal">- <div className="workflow-modal-content">- {loading ? (- <div className="workflow-list-loading">- <Loader size={24} className="spin" />- <span>Loading workflows...</span>- </div>- ) : error ? (- <div className="workflow-list-error">- <span>{error}</span>- <Button variant="outline" size="sm" onClick={loadWorkflows}>Retry</Button>- </div>- ) : workflows.length === 0 ? (- <div className="workflow-list-empty">- <Layers size={48} />- <p>No saved workflows</p>- <span>Create and save a workflow to see it here</span>- </div>- ) : (- <div className="workflow-list">- {workflows.map((workflow) => (- <div- key={workflow.id}- className="workflow-list-item"- onClick={() => handleLoad(workflow)}- >- <div className="workflow-item-main">- <div className="workflow-item-name">- <span>{workflow.name}</span>- <Pill kind={workflow.is_active ? 'green' : 'gray'}>- {workflow.is_active ? 'active' : 'paused'}- </Pill>- </div>- {workflow.description && (- <div className="workflow-item-desc">{workflow.description}</div>- )}- </div>- <div className="workflow-item-meta">- <div className="workflow-item-stats">- <span className="stat">- <Layers size={14} />- {workflow.node_count || 0} nodes- </span>- <span className="stat">- <GitBranch size={14} />- {workflow.edge_count || 0} connections- </span>- </div>- <div className="workflow-item-date">- <Clock size={14} />- {formatDate(workflow.updated_at)}- </div>- </div>- <Button- variant="ghost"- size="icon"- className="workflow-item-delete"- onClick={(e) => handleDelete(e, workflow)}- disabled={deletingId === workflow.id}- title="Delete workflow"- >- {deletingId === workflow.id ? (- <Loader size={16} className="spin" />- ) : (- <Trash2 size={16} />- )}- </Button>- </div>- ))}- </div>- )}- </div>- </Modal>- );-};--export default WorkflowListModal;diff --git a/frontend/src/components/workflow/nodes/DatabaseNode.jsx b/frontend/src/components/workflow/nodes/DatabaseNode.jsxdeleted file mode 100644index 4b6f6f0d..00000000--- a/frontend/src/components/workflow/nodes/DatabaseNode.jsx+++ /dev/null@@ -1,72 +0,0 @@-import { memo } from 'react';-import { Handle, Position } from '@xyflow/react';-import { Database, HardDrive } from 'lucide-react';--// Engine brand colors stay literal (brand palette); fallback is the-// redesign's categorical database amber.-const dbTypeColors = {- mysql: '#00758f',- postgresql: '#336791',- mongodb: '#4db33d',- redis: '#dc382d',- default: '#f5b945'-};--const dbTypeLabels = {- mysql: 'MySQL',- postgresql: 'PostgreSQL',- mongodb: 'MongoDB',- redis: 'Redis'-};--const DatabaseNode = ({ data, selected }) => {- const statusClass = data.status || 'stopped';- const dbType = data.type || 'default';- const typeColor = dbTypeColors[dbType] || dbTypeColors.default;- const typeLabel = dbTypeLabels[dbType] || dbType.toUpperCase();-- return (- <div className={`workflow-node workflow-node-database ${selected ? 'selected' : ''}`}>- <Handle- type="target"- position={Position.Left}- id="input"- className="workflow-handle workflow-handle-target"- />-- <div className="workflow-node-header node-header-database">- <div className="workflow-node-icon node-icon-database">- <Database size={16} />- </div>- <span className="workflow-node-type">Database</span>- <div className={`node-status-dot status-${statusClass}`} />- </div>-- <div className="workflow-node-body">- <div className="workflow-node-label">{data.name || 'Untitled Database'}</div>-- <div className="node-type-badge" style={{ backgroundColor: typeColor }}>- {typeLabel}- </div>-- {(data.host || data.port) && (- <div className="node-detail node-detail-connection">- <span className="node-detail-label">Connection</span>- <span className="node-detail-value">- {data.host || 'localhost'}:{data.port || '3306'}- </span>- </div>- )}-- {data.size && (- <div className="node-detail node-detail-size">- <HardDrive size={12} />- <span>{data.size}</span>- </div>- )}- </div>- </div>- );-};--export default memo(DatabaseNode);diff --git a/frontend/src/components/workflow/nodes/DockerAppNode.jsx b/frontend/src/components/workflow/nodes/DockerAppNode.jsxdeleted file mode 100644index 6c7d921a..00000000--- a/frontend/src/components/workflow/nodes/DockerAppNode.jsx+++ /dev/null@@ -1,101 +0,0 @@-import { memo } from 'react';-import { Handle, Position } from '@xyflow/react';-import { Server, Globe, Link, ExternalLink } from 'lucide-react';--const DockerAppNode = ({ data, selected }) => {- const statusClass = data.status || 'stopped';- const isReal = data.isReal || data.appId;-- return (- <div className={`workflow-node workflow-node-docker ${selected ? 'selected' : ''} ${isReal ? 'is-real' : ''}`}>- <Handle- type="target"- position={Position.Left}- id="input"- className="workflow-handle workflow-handle-target"- />-- <div className="workflow-node-header node-header-docker">- <div className="workflow-node-icon node-icon-docker">- <Server size={16} />- </div>- <span className="workflow-node-type">- {data.appType === 'docker' ? 'App' : data.appType || 'App'}- </span>- <div className={`node-status-dot status-${statusClass}`} title={statusClass} />- </div>-- <div className="workflow-node-body">- <div className="workflow-node-label">{data.name || 'Untitled App'}</div>-- {data.template && (- <div className="node-detail node-detail-template">- <span className="node-detail-label">Template</span>- <span className="node-detail-value">{data.template}</span>- </div>- )}-- {data.port && (- <div className="node-detail node-detail-port">- <span className="node-detail-label">Port</span>- <span className="node-detail-value node-port-pill">{data.port}</span>- </div>- )}-- {data.privateUrl && (- <div className="node-detail node-detail-private-url">- <Link size={12} />- <span className="node-detail-value">{data.privateUrl}</span>- </div>- )}-- {data.domains && data.domains.length > 0 && (- <div className="node-domains">- {data.domains.slice(0, 2).map((domain, idx) => (- <span key={idx} className="node-domain-pill">- <Globe size={10} />- {domain.name || domain}- </span>- ))}- {data.domains.length > 2 && (- <span className="node-domain-more">+{data.domains.length - 2}</span>- )}- </div>- )}-- {/* Legacy support for old image field */}- {!data.template && data.image && (- <div className="node-detail node-detail-image">- <span className="node-detail-label">Image</span>- <span className="node-detail-value">{data.image}</span>- </div>- )}-- {/* Legacy support for old ports array */}- {!data.port && data.ports && data.ports.length > 0 && (- <div className="node-ports">- {data.ports.map((port, idx) => (- <span key={idx} className="node-port-pill">{port}</span>- ))}- </div>- )}- </div>-- <Handle- type="source"- position={Position.Right}- id="output"- className="workflow-handle workflow-handle-source"- />-- <Handle- type="source"- position={Position.Bottom}- id="database"- className="workflow-handle workflow-handle-database"- />- </div>- );-};--export default memo(DockerAppNode);diff --git a/frontend/src/components/workflow/nodes/DomainNode.jsx b/frontend/src/components/workflow/nodes/DomainNode.jsxdeleted file mode 100644index 7b37e3b7..00000000--- a/frontend/src/components/workflow/nodes/DomainNode.jsx+++ /dev/null@@ -1,65 +0,0 @@-import { memo } from 'react';-import { Handle, Position } from '@xyflow/react';-import { Globe, Shield, ShieldCheck, ShieldX, Radio } from 'lucide-react';--// Semantic SSL tints (redesign palette literals — inline style props).-const sslStatusConfig = {- valid: { icon: ShieldCheck, color: '#3ddc97', label: 'SSL Valid' },- expired: { icon: ShieldX, color: '#fb6f6f', label: 'SSL Expired' },- none: { icon: Shield, color: '#646b7a', label: 'No SSL' }-};--const DomainNode = ({ data, selected }) => {- const sslStatus = data.ssl || 'none';- const sslConfig = sslStatusConfig[sslStatus] || sslStatusConfig.none;- const SslIcon = sslConfig.icon;- const dnsStatus = data.dnsStatus || 'pending';-- return (- <div className={`workflow-node workflow-node-domain ${selected ? 'selected' : ''}`}>- <div className="workflow-node-header node-header-domain">- <div className="workflow-node-icon node-icon-domain">- <Globe size={16} />- </div>- <span className="workflow-node-type">Domain</span>- </div>-- <div className="workflow-node-body">- <div className="workflow-node-label node-label-domain">- {data.name || 'example.com'}- </div>-- <div className="node-badges">- <div- className="node-ssl-badge"- style={{ color: sslConfig.color, borderColor: sslConfig.color }}- >- <SslIcon size={12} />- <span>{sslConfig.label}</span>- </div>-- <div className={`node-dns-badge dns-${dnsStatus}`}>- <Radio size={12} />- <span>{dnsStatus === 'propagated' ? 'DNS OK' : 'DNS Pending'}</span>- </div>- </div>-- {data.sslExpiry && sslStatus === 'valid' && (- <div className="node-detail node-detail-expiry">- <span className="node-detail-label">Expires</span>- <span className="node-detail-value">{data.sslExpiry}</span>- </div>- )}- </div>-- <Handle- type="source"- position={Position.Right}- id="output"- className="workflow-handle workflow-handle-source"- />- </div>- );-};--export default memo(DomainNode);diff --git a/frontend/src/components/workflow/nodes/LogicIfNode.jsx b/frontend/src/components/workflow/nodes/LogicIfNode.jsxdeleted file mode 100644index 962570dd..00000000--- a/frontend/src/components/workflow/nodes/LogicIfNode.jsx+++ /dev/null@@ -1,56 +0,0 @@-import { memo } from 'react';-import { Handle, Position } from '@xyflow/react';-import { GitBranch } from 'lucide-react';--const LogicIfNode = ({ data, selected }) => {- const {- condition = '',- label = 'If/Else'- } = data;-- return (- <div className={`workflow-node node-logic ${selected ? 'node-selected' : ''}`}>- <Handle- type="target"- position={Position.Top}- id="input"- className="handle-input"- />-- <div className="node-icon node-icon-logic">- <GitBranch size={16} />- </div>- <div className="node-content">- <div className="node-label">{label}</div>- <div className="node-sublabel">- {condition || 'No condition'}- </div>- </div>-- <div className="node-outputs">- <div className="node-output-branch">- <span className="node-branch-label node-branch-true">TRUE</span>- <Handle- type="source"- position={Position.Bottom}- id="true"- className="handle-output handle-true"- style={{ left: '25%' }}- />- </div>- <div className="node-output-branch">- <span className="node-branch-label node-branch-false">FALSE</span>- <Handle- type="source"- position={Position.Bottom}- id="false"- className="handle-output handle-false"- style={{ left: '75%' }}- />- </div>- </div>- </div>- );-};--export default memo(LogicIfNode);diff --git a/frontend/src/components/workflow/nodes/NotificationNode.jsx b/frontend/src/components/workflow/nodes/NotificationNode.jsxdeleted file mode 100644index 353513a6..00000000--- a/frontend/src/components/workflow/nodes/NotificationNode.jsx+++ /dev/null@@ -1,50 +0,0 @@-import { memo } from 'react';-import { Handle, Position } from '@xyflow/react';-import { Bell, MessageSquare, Mail, Slack } from 'lucide-react';--const NotificationNode = ({ data, selected }) => {- const {- channel = 'discord',- label = 'Notify',- message = ''- } = data;-- const getIcon = () => {- switch (channel) {- case 'discord': return <MessageSquare size={16} />;- case 'slack': return <Slack size={16} />;- case 'email': return <Mail size={16} />;- default: return <Bell size={16} />;- }- };-- return (- <div className={`workflow-node node-notification ${selected ? 'node-selected' : ''}`}>- <Handle- type="target"- position={Position.Top}- id="input"- className="handle-input"- />-- <div className={`node-icon node-icon-${channel}`}>- {getIcon()}- </div>- <div className="node-content">- <div className="node-label">{label}</div>- <div className="node-sublabel">- {channel.charAt(0).toUpperCase() + channel.slice(1)}- </div>- </div>-- <Handle- type="source"- position={Position.Bottom}- id="output"- className="handle-output"- />- </div>- );-};--export default memo(NotificationNode);diff --git a/frontend/src/components/workflow/nodes/ScriptNode.jsx b/frontend/src/components/workflow/nodes/ScriptNode.jsxdeleted file mode 100644index 462685dd..00000000--- a/frontend/src/components/workflow/nodes/ScriptNode.jsx+++ /dev/null@@ -1,49 +0,0 @@-import { memo } from 'react';-import { Handle, Position } from '@xyflow/react';-import { Terminal, Code, Cpu } from 'lucide-react';--const ScriptNode = ({ data, selected }) => {- const {- language = 'bash',- label = 'Run Script',- content = ''- } = data;-- const getIcon = () => {- switch (language) {- case 'bash': return <Terminal size={16} />;- case 'python': return <Code size={16} />;- default: return <Cpu size={16} />;- }- };-- return (- <div className={`workflow-node node-script ${selected ? 'node-selected' : ''}`}>- <Handle- type="target"- position={Position.Top}- id="input"- className="handle-input"- />-- <div className={`node-icon node-icon-${language}`}>- {getIcon()}- </div>- <div className="node-content">- <div className="node-label">{label}</div>- <div className="node-sublabel">- {language.charAt(0).toUpperCase() + language.slice(1)}- </div>- </div>-- <Handle- type="source"- position={Position.Bottom}- id="output"- className="handle-output"- />- </div>- );-};--export default memo(ScriptNode);diff --git a/frontend/src/components/workflow/nodes/ServiceNode.jsx b/frontend/src/components/workflow/nodes/ServiceNode.jsxdeleted file mode 100644index 8d1787e5..00000000--- a/frontend/src/components/workflow/nodes/ServiceNode.jsx+++ /dev/null@@ -1,69 +0,0 @@-import { memo } from 'react';-import { Handle, Position } from '@xyflow/react';-import { Box, Zap, MemoryStick, MessageSquare, Layers } from 'lucide-react';--// Service brand colors stay literal (brand palette); queue/default use the-// redesign's violet/accent.-const serviceTypeConfig = {- redis: { icon: Zap, color: '#dc382d', label: 'Redis' },- memcached: { icon: MemoryStick, color: '#00a65a', label: 'Memcached' },- rabbitmq: { icon: MessageSquare, color: '#ff6600', label: 'RabbitMQ' },- queue: { icon: Layers, color: '#b07bf5', label: 'Queue' },- default: { icon: Box, color: '#6d7cff', label: 'Service' }-};--const ServiceNode = ({ data, selected }) => {- const statusClass = data.status || 'stopped';- const serviceType = data.serviceType || 'default';- const config = serviceTypeConfig[serviceType] || serviceTypeConfig.default;- const ServiceIcon = config.icon;-- return (- <div className={`workflow-node workflow-node-service ${selected ? 'selected' : ''}`}>- <Handle- type="target"- position={Position.Left}- id="input"- className="workflow-handle workflow-handle-target"- />-- <div- className="workflow-node-header node-header-service"- style={{ borderColor: config.color }}- >- <div- className="workflow-node-icon node-icon-service"- style={{ backgroundColor: config.color }}- >- <ServiceIcon size={16} />- </div>- <span className="workflow-node-type">{config.label}</span>- <div className={`node-status-dot status-${statusClass}`} />- </div>-- <div className="workflow-node-body">- <div className="workflow-node-label">{data.name || 'Untitled Service'}</div>-- {data.description && (- <div className="node-description">{data.description}</div>- )}-- {data.port && (- <div className="node-detail node-detail-port">- <span className="node-detail-label">Port</span>- <span className="node-detail-value">{data.port}</span>- </div>- )}- </div>-- <Handle- type="source"- position={Position.Right}- id="output"- className="workflow-handle workflow-handle-source"- />- </div>- );-};--export default memo(ServiceNode);diff --git a/frontend/src/components/workflow/nodes/TriggerNode.jsx b/frontend/src/components/workflow/nodes/TriggerNode.jsxdeleted file mode 100644index 3605b4ee..00000000--- a/frontend/src/components/workflow/nodes/TriggerNode.jsx+++ /dev/null@@ -1,73 +0,0 @@-import { memo } from 'react';-import { Handle, Position } from '@xyflow/react';-import { Zap, Clock, Webhook, Activity, Play } from 'lucide-react';--const TriggerNode = ({ data, selected }) => {- const {- triggerType = 'manual',- label = 'Trigger',- isActive = false,- lastStatus = null,- triggerConfig = {}- } = data;-- const getIcon = () => {- switch (triggerType) {- case 'manual': return <Play size={16} />;- case 'cron': return <Clock size={16} />;- case 'webhook': return <Webhook size={16} />;- case 'event': return <Zap size={16} />;- default: return <Activity size={16} />;- }- };-- const statusClass = !isActive ? 'inactive'- : lastStatus === 'success' ? 'success'- : lastStatus === 'failed' ? 'error'- : 'active';-- const getSublabel = () => {- const typeName = triggerType.charAt(0).toUpperCase() + triggerType.slice(1);- const status = isActive ? 'Active' : 'Disabled';-- if (triggerType === 'cron' && triggerConfig.cron) {- return `${triggerConfig.cron} \u2022 ${status}`;- }- if (triggerType === 'webhook' && triggerConfig.webhook_id) {- return `...${triggerConfig.webhook_id.slice(-8)} \u2022 ${status}`;- }- if (triggerType === 'event' && triggerConfig.eventType) {- const eventLabels = {- health_check_failed: 'Health Fail',- high_cpu: 'High CPU',- high_memory: 'High Memory',- git_push: 'Git Push',- app_stopped: 'App Stopped'- };- return `${eventLabels[triggerConfig.eventType] || triggerConfig.eventType} \u2022 ${status}`;- }-- return `${typeName} \u2022 ${status}`;- };-- return (- <div className={`workflow-node node-trigger node-status-${statusClass} ${selected ? 'node-selected' : ''}`}>- <div className={`node-icon node-icon-${triggerType}`}>- {getIcon()}- </div>- <div className="node-content">- <div className="node-label">{label}</div>- <div className="node-sublabel">{getSublabel()}</div>- </div>-- <Handle- type="source"- position={Position.Bottom}- id="output"- className="handle-output"- />- </div>- );-};--export default memo(TriggerNode);diff --git a/frontend/src/components/workflow/panels/DatabaseConfigPanel.jsx b/frontend/src/components/workflow/panels/DatabaseConfigPanel.jsxdeleted file mode 100644index 36bbb3a6..00000000--- a/frontend/src/components/workflow/panels/DatabaseConfigPanel.jsx+++ /dev/null@@ -1,121 +0,0 @@-import { Database } from 'lucide-react';-import ConfigPanel from '../ConfigPanel';-import { Input } from '@/components/ui/input';-import { Label } from '@/components/ui/label';-import { Select, SelectTrigger, SelectContent, SelectItem, SelectValue } from '@/components/ui/select';--// Engine brand colors stay literal; fallback is the redesign's database amber.-const dbTypeConfig = {- mysql: { color: '#00758f', defaultPort: 3306 },- postgresql: { color: '#336791', defaultPort: 5432 },- mongodb: { color: '#4db33d', defaultPort: 27017 },- redis: { color: '#dc382d', defaultPort: 6379 }-};--const DatabaseConfigPanel = ({ node, onChange, onClose }) => {- const data = node?.data || {};- const dbType = data.type || 'mysql';- const headerColor = dbTypeConfig[dbType]?.color || '#f5b945';-- const handleChange = (field, value) => {- const updates = { ...data, [field]: value };-- // Auto-update port when type changes- if (field === 'type' && dbTypeConfig[value]) {- updates.port = dbTypeConfig[value].defaultPort;- }-- onChange(updates);- };-- return (- <ConfigPanel- isOpen={!!node}- title="Database"- icon={Database}- headerColor={headerColor}- onClose={onClose}- >- <div className="form-group">- <Label>Name</Label>- <Input- type="text"- value={data.name || ''}- onChange={(e) => handleChange('name', e.target.value)}- placeholder="my-database"- />- </div>-- <div className="form-group">- <Label>Type</Label>- <Select- value={data.type || 'mysql'}- onValueChange={(value) => handleChange('type', value)}- >- <SelectTrigger>- <SelectValue />- </SelectTrigger>- <SelectContent>- <SelectItem value="mysql">MySQL</SelectItem>- <SelectItem value="postgresql">PostgreSQL</SelectItem>- <SelectItem value="mongodb">MongoDB</SelectItem>- <SelectItem value="redis">Redis</SelectItem>- </SelectContent>- </Select>- </div>-- <div className="form-group">- <Label>Status</Label>- <Select- value={data.status || 'stopped'}- onValueChange={(value) => handleChange('status', value)}- >- <SelectTrigger>- <SelectValue />- </SelectTrigger>- <SelectContent>- <SelectItem value="stopped">Stopped</SelectItem>- <SelectItem value="running">Running</SelectItem>- <SelectItem value="error">Error</SelectItem>- </SelectContent>- </Select>- </div>-- <div className="form-row">- <div className="form-group">- <Label>Host</Label>- <Input- type="text"- value={data.host || ''}- onChange={(e) => handleChange('host', e.target.value)}- placeholder="localhost"- />- </div>-- <div className="form-group">- <Label>Port</Label>- <Input- type="number"- value={data.port || dbTypeConfig[dbType]?.defaultPort || 3306}- onChange={(e) => handleChange('port', parseInt(e.target.value) || '')}- />- </div>- </div>-- {data.size && (- <div className="form-group">- <Label>Size</Label>- <Input- type="text"- value={data.size}- disabled- className="input-readonly"- />- <span className="form-hint">Database size (read-only)</span>- </div>- )}- </ConfigPanel>- );-};--export default DatabaseConfigPanel;diff --git a/frontend/src/components/workflow/panels/DockerAppConfigPanel.jsx b/frontend/src/components/workflow/panels/DockerAppConfigPanel.jsxdeleted file mode 100644index e5a385fb..00000000--- a/frontend/src/components/workflow/panels/DockerAppConfigPanel.jsx+++ /dev/null@@ -1,294 +0,0 @@-import { useState } from 'react';-import { Server, Globe, Link, ExternalLink, Play, Square, RotateCw } from 'lucide-react';-import ConfigPanel from '../ConfigPanel';-import api from '../../../services/api';-import { Button } from '@/components/ui/button';-import { Input } from '@/components/ui/input';-import { Label } from '@/components/ui/label';-import { Select, SelectTrigger, SelectContent, SelectItem, SelectValue } from '@/components/ui/select';--const DockerAppConfigPanel = ({ node, onChange, onClose }) => {- const data = node?.data || {};- const isReal = data.isReal || data.appId;-- const [isActioning, setIsActioning] = useState(false);- const [actionMessage, setActionMessage] = useState(null);- const [ports, setPorts] = useState(data.ports || []);-- const handleChange = (field, value) => {- onChange({ ...data, [field]: value });- };-- // Actions for real apps- const handleAction = async (action) => {- if (!data.appId) return;-- setIsActioning(true);- setActionMessage(null);-- try {- switch (action) {- case 'start':- await api.startApp(data.appId);- handleChange('status', 'running');- break;- case 'stop':- await api.stopApp(data.appId);- handleChange('status', 'stopped');- break;- case 'restart':- await api.restartApp(data.appId);- handleChange('status', 'running');- break;- default:- return;- }- setActionMessage(`${action} successful`);- } catch (error) {- setActionMessage(`Failed to ${action}`);- } finally {- setIsActioning(false);- setTimeout(() => setActionMessage(null), 3000);- }- };-- const openPrivateUrl = () => {- if (data.privateUrl) {- window.open(data.privateUrl, '_blank');- }- };-- const openAppDetails = () => {- if (data.appId) {- window.location.href = `/applications/${data.appId}`;- }- };-- const handleAddPort = () => {- const newPorts = [...ports, ''];- setPorts(newPorts);- handleChange('ports', newPorts);- };-- const handlePortChange = (index, value) => {- const newPorts = [...ports];- newPorts[index] = value;- setPorts(newPorts);- handleChange('ports', newPorts);- };-- const handleRemovePort = (index) => {- const newPorts = ports.filter((_, i) => i !== index);- setPorts(newPorts);- handleChange('ports', newPorts);- };-- // Real app panel - shows info and actions- if (isReal) {- return (- <ConfigPanel- isOpen={!!node}- title="Application"- icon={Server}- headerColor="#2496ed"- onClose={onClose}- >- <div className="form-group">- <Label>Name</Label>- <div className="form-value">{data.name || 'Unknown'}</div>- </div>-- <div className="form-group">- <Label>Status</Label>- <div className={`form-value status-badge status-${data.status}`}>- {data.status || 'unknown'}- </div>- </div>-- {data.template && (- <div className="form-group">- <Label>Template</Label>- <div className="form-value">{data.template}</div>- </div>- )}-- {data.port && (- <div className="form-group">- <Label>Port</Label>- <div className="form-value">{data.port}</div>- </div>- )}-- {data.privateUrl && (- <div className="form-group">- <Label>Private URL</Label>- <div className="form-value form-value-link" onClick={openPrivateUrl}>- <Link size={14} />- {data.privateUrl}- <ExternalLink size={12} />- </div>- </div>- )}-- {data.domains && data.domains.length > 0 && (- <div className="form-group">- <Label>Connected Domains</Label>- <div className="form-domains">- {data.domains.map((domain, idx) => (- <div key={idx} className="form-domain-item">- <Globe size={14} />- <span>{domain.name || domain}</span>- {domain.ssl_enabled && (- <span className="ssl-badge">SSL</span>- )}- </div>- ))}- </div>- </div>- )}-- <div className="form-group">- <Label>Actions</Label>- <div className="action-buttons">- <Button- variant="default"- size="sm"- onClick={() => handleAction('start')}- disabled={isActioning || data.status === 'running'}- >- <Play size={14} />- Start- </Button>- <Button- variant="outline"- size="sm"- onClick={() => handleAction('stop')}- disabled={isActioning || data.status === 'stopped'}- >- <Square size={14} />- Stop- </Button>- <Button- variant="secondary"- size="sm"- onClick={() => handleAction('restart')}- disabled={isActioning}- >- <RotateCw size={14} />- Restart- </Button>- </div>- {actionMessage && (- <div className="action-message">{actionMessage}</div>- )}- </div>-- <div className="form-group">- <Button- variant="default"- className="btn-block"- onClick={openAppDetails}- >- <ExternalLink size={14} />- Open App Details- </Button>- </div>- </ConfigPanel>- );- }-- // Legacy panel for non-real apps (manual creation)- return (- <ConfigPanel- isOpen={!!node}- title="Docker App"- icon={Server}- headerColor="#2496ed"- onClose={onClose}- >- <div className="form-group">- <Label>Name</Label>- <Input- type="text"- value={data.name || ''}- onChange={(e) => handleChange('name', e.target.value)}- placeholder="my-app"- />- </div>-- <div className="form-group">- <Label>Image</Label>- <Input- type="text"- value={data.image || ''}- onChange={(e) => handleChange('image', e.target.value)}- placeholder="nginx:latest"- />- <span className="form-hint">Docker image name and tag</span>- </div>-- <div className="form-group">- <Label>Status</Label>- <Select- value={data.status || 'stopped'}- onValueChange={(value) => handleChange('status', value)}- >- <SelectTrigger>- <SelectValue />- </SelectTrigger>- <SelectContent>- <SelectItem value="stopped">Stopped</SelectItem>- <SelectItem value="running">Running</SelectItem>- <SelectItem value="error">Error</SelectItem>- </SelectContent>- </Select>- </div>-- <div className="form-group">- <Label>Port Mappings</Label>- <div className="port-list">- {ports.map((port, index) => (- <div key={index} className="port-item">- <Input- type="text"- value={port}- onChange={(e) => handlePortChange(index, e.target.value)}- placeholder="8080:80"- />- <Button- type="button"- variant="ghost"- size="icon"- onClick={() => handleRemovePort(index)}- >- ×- </Button>- </div>- ))}- <Button- type="button"- variant="outline"- size="sm"- onClick={handleAddPort}- >- + Add Port- </Button>- </div>- <span className="form-hint">Format: host_port:container_port</span>- </div>-- <div className="form-group">- <Label>Memory Limit</Label>- <Input- type="text"- value={data.memory || ''}- onChange={(e) => handleChange('memory', e.target.value)}- placeholder="512MB"- />- <span className="form-hint">e.g., 256MB, 1GB</span>- </div>- </ConfigPanel>- );-};--export default DockerAppConfigPanel;diff --git a/frontend/src/components/workflow/panels/DomainConfigPanel.jsx b/frontend/src/components/workflow/panels/DomainConfigPanel.jsxdeleted file mode 100644index 89e33ad6..00000000--- a/frontend/src/components/workflow/panels/DomainConfigPanel.jsx+++ /dev/null@@ -1,89 +0,0 @@-import { Globe } from 'lucide-react';-import ConfigPanel from '../ConfigPanel';-import { Input } from '@/components/ui/input';-import { Label } from '@/components/ui/label';-import { Select, SelectTrigger, SelectContent, SelectItem, SelectValue } from '@/components/ui/select';--const DomainConfigPanel = ({ node, onChange, onClose }) => {- const data = node?.data || {};-- const handleChange = (field, value) => {- const updates = { ...data, [field]: value };-- // Clear expiry date if SSL is not valid- if (field === 'ssl' && value !== 'valid') {- updates.sslExpiry = '';- }-- onChange(updates);- };-- return (- <ConfigPanel- isOpen={!!node}- title="Domain"- icon={Globe}- headerColor="#3ddc97"- onClose={onClose}- >- <div className="form-group">- <Label>Domain Name</Label>- <Input- type="text"- value={data.name || ''}- onChange={(e) => handleChange('name', e.target.value)}- placeholder="example.com"- />- <span className="form-hint">Enter domain without http:// or https://</span>- </div>-- <div className="form-group">- <Label>SSL Status</Label>- <Select- value={data.ssl || 'none'}- onValueChange={(value) => handleChange('ssl', value)}- >- <SelectTrigger>- <SelectValue />- </SelectTrigger>- <SelectContent>- <SelectItem value="none">No SSL</SelectItem>- <SelectItem value="valid">Valid Certificate</SelectItem>- <SelectItem value="expired">Expired Certificate</SelectItem>- </SelectContent>- </Select>- </div>-- {data.ssl === 'valid' && (- <div className="form-group">- <Label>SSL Expiry Date</Label>- <Input- type="date"- value={data.sslExpiry || ''}- onChange={(e) => handleChange('sslExpiry', e.target.value)}- />- <span className="form-hint">Certificate expiration date</span>- </div>- )}-- <div className="form-group">- <Label>DNS Status</Label>- <Select- value={data.dnsStatus || 'pending'}- onValueChange={(value) => handleChange('dnsStatus', value)}- >- <SelectTrigger>- <SelectValue />- </SelectTrigger>- <SelectContent>- <SelectItem value="pending">Pending Propagation</SelectItem>- <SelectItem value="propagated">Propagated</SelectItem>- </SelectContent>- </Select>- <span className="form-hint">DNS record propagation status</span>- </div>- </ConfigPanel>- );-};--export default DomainConfigPanel;diff --git a/frontend/src/components/workflow/panels/LogicIfConfigPanel.jsx b/frontend/src/components/workflow/panels/LogicIfConfigPanel.jsxdeleted file mode 100644index 0a138237..00000000--- a/frontend/src/components/workflow/panels/LogicIfConfigPanel.jsx+++ /dev/null@@ -1,67 +0,0 @@-import ConfigPanel from '../ConfigPanel';-import { GitBranch } from 'lucide-react';-import { Button } from '@/components/ui/button';-import { Input } from '@/components/ui/input';-import { Label } from '@/components/ui/label';--const LogicIfConfigPanel = ({ node, onChange, onClose, onDelete }) => {- const { data } = node;- const { condition = '', label = 'If/Else' } = data;-- return (- <ConfigPanel- title="Logic (If/Else)"- icon={<GitBranch size={16} />}- color="#f97316"- onClose={onClose}- footer={onDelete && (- <Button variant="destructive" size="sm" className="btn-delete-node" onClick={onDelete}>- Remove Node- </Button>- )}- >- <div className="form-group">- <Label>Label</Label>- <Input- type="text"- value={label}- onChange={(e) => onChange({ ...data, label: e.target.value })}- />- </div>-- <div className="form-group">- <Label>Condition (Python expression)</Label>- <Input- type="text"- className="font-mono"- value={condition}- onChange={(e) => onChange({ ...data, condition: e.target.value })}- placeholder="e.g. results['node_1']['returncode'] == 0"- />- <span className="form-hint">Must evaluate to truthy or falsy. Errors follow the false branch.</span>- </div>-- <div className="panel-info-box">- <strong>Available Variables</strong><br />- <code>results</code> — dict of previous node outputs, keyed by node ID<br />- <code>context</code> — trigger execution context<br /><br />- <strong>Examples</strong><br />- <code>{"results['abc123']['returncode'] == 0"}</code><br />- <code>{"context.get('event_type') == 'high_cpu'"}</code>- </div>-- <div className="branch-legend">- <div className="branch-legend-item">- <span className="branch-dot branch-dot-true" />- <span>True branch — condition is truthy</span>- </div>- <div className="branch-legend-item">- <span className="branch-dot branch-dot-false" />- <span>False branch — condition is falsy or errors</span>- </div>- </div>- </ConfigPanel>- );-};--export default LogicIfConfigPanel;diff --git a/frontend/src/components/workflow/panels/NotificationConfigPanel.jsx b/frontend/src/components/workflow/panels/NotificationConfigPanel.jsxdeleted file mode 100644index 696a36d7..00000000--- a/frontend/src/components/workflow/panels/NotificationConfigPanel.jsx+++ /dev/null@@ -1,82 +0,0 @@-import ConfigPanel from '../ConfigPanel';-import { Bell, MessageSquare, Mail, Slack, Send, Globe } from 'lucide-react';-import { Button } from '@/components/ui/button';-import { Input } from '@/components/ui/input';-import { Label } from '@/components/ui/label';-import { Textarea } from '@/components/ui/textarea';--const NotificationConfigPanel = ({ node, onChange, onClose, onDelete }) => {- const { data } = node;- const { channel = 'discord', label = 'Notify', message = '' } = data;-- const channels = [- { id: 'discord', icon: MessageSquare, label: 'Discord' },- { id: 'slack', icon: Slack, label: 'Slack' },- { id: 'email', icon: Mail, label: 'Email' },- { id: 'telegram', icon: Send, label: 'Telegram' },- { id: 'webhook', icon: Globe, label: 'Webhook' },- { id: 'system', icon: Bell, label: 'All Channels' },- ];-- return (- <ConfigPanel- title="Notification"- icon={<Bell size={16} />}- color="#b07bf5"- onClose={onClose}- footer={onDelete && (- <Button variant="destructive" size="sm" className="btn-delete-node" onClick={onDelete}>- Remove Node- </Button>- )}- >- <div className="form-group">- <Label>Label</Label>- <Input- type="text"- value={label}- onChange={(e) => onChange({ ...data, label: e.target.value })}- />- </div>-- <div className="form-group">- <Label>Channel</Label>- <div className="channel-grid">- {channels.map(({ id, icon: Icon, label: chLabel }) => (- <button type="button"- key={id}- className={`channel-btn ${channel === id ? 'active' : ''}`}- onClick={() => onChange({ ...data, channel: id })}- >- <Icon size={14} />- <span>{chLabel}</span>- </button>- ))}- </div>- </div>-- <div className="form-group">- <Label>Message Template</Label>- <Textarea- value={message}- onChange={(e) => onChange({ ...data, message: e.target.value })}- placeholder={'Build finished for {{workflow_name}}\\nExit code: ${build.returncode}'}- rows={8}- />- </div>-- <div className="panel-info-box">- <strong>Variables</strong><br />- <code>{'{{workflow_name}}'}</code>, <code>{'{{execution_id}}'}</code>, <code>{'{{started_at}}'}</code><br />- <code>{'${node_id.stdout}'}</code> — output from a node<br />- <code>{'{{context.field}}'}</code> — trigger context value- </div>-- <div className="panel-info-box panel-info-warning">- Channels must be configured in <strong>Settings → Notifications</strong> before they can send messages.- </div>- </ConfigPanel>- );-};--export default NotificationConfigPanel;diff --git a/frontend/src/components/workflow/panels/ScriptConfigPanel.jsx b/frontend/src/components/workflow/panels/ScriptConfigPanel.jsxdeleted file mode 100644index 91660cc9..00000000--- a/frontend/src/components/workflow/panels/ScriptConfigPanel.jsx+++ /dev/null@@ -1,117 +0,0 @@-import ConfigPanel from '../ConfigPanel';-import { Terminal, Code } from 'lucide-react';-import { Button } from '@/components/ui/button';-import { Input } from '@/components/ui/input';-import { Label } from '@/components/ui/label';-import { Textarea } from '@/components/ui/textarea';--const ScriptConfigPanel = ({ node, onChange, onClose, onDelete }) => {- const { data } = node;- const {- language = 'bash',- label = 'Run Script',- content = '',- timeout = 300,- retryCount = 0,- retryDelay = 5- } = data;-- return (- <ConfigPanel- title="Script"- icon={<Terminal size={16} />}- color="#646b7a"- onClose={onClose}- footer={onDelete && (- <Button variant="destructive" size="sm" className="btn-delete-node" onClick={onDelete}>- Remove Node- </Button>- )}- >- <div className="form-group">- <Label>Label</Label>- <Input- type="text"- value={label}- onChange={(e) => onChange({ ...data, label: e.target.value })}- />- </div>-- <div className="form-group">- <Label>Language</Label>- <div className="lang-toggle">- <button type="button"- className={`lang-btn ${language === 'bash' ? 'active' : ''}`}- onClick={() => onChange({ ...data, language: 'bash' })}- >- <Terminal size={14} />- Bash- </button>- <button type="button"- className={`lang-btn ${language === 'python' ? 'active' : ''}`}- onClick={() => onChange({ ...data, language: 'python' })}- >- <Code size={14} />- Python- </button>- </div>- </div>-- <div className="form-group">- <Label>Script Content</Label>- <Textarea- className="script-editor font-mono"- value={content}- onChange={(e) => onChange({ ...data, content: e.target.value })}- placeholder={language === 'bash'- ? "#!/bin/bash\necho 'Hello World'"- : "print('Hello World')"- }- rows={12}- />- </div>-- <div className="form-row form-row-3">- <div className="form-group">- <Label>Timeout (s)</Label>- <Input- type="number"- min="1"- max="3600"- value={timeout}- onChange={(e) => onChange({ ...data, timeout: parseInt(e.target.value) || 300 })}- />- </div>- <div className="form-group">- <Label>Retries</Label>- <Input- type="number"- min="0"- max="5"- value={retryCount}- onChange={(e) => onChange({ ...data, retryCount: parseInt(e.target.value) || 0 })}- />- </div>- <div className="form-group">- <Label>Delay (s)</Label>- <Input- type="number"- min="1"- max="300"- value={retryDelay}- onChange={(e) => onChange({ ...data, retryDelay: parseInt(e.target.value) || 5 })}- />- </div>- </div>-- <div className="panel-info-box">- <strong>Variables</strong><br />- <code>{'${node_id.stdout}'}</code> — output from a previous node<br />- <code>$WORKFLOW_ID</code>, <code>$EXECUTION_ID</code> — workflow metadata<br />- <code>$NODE_ID_OUTPUT</code> — node output as env var- </div>- </ConfigPanel>- );-};--export default ScriptConfigPanel;diff --git a/frontend/src/components/workflow/panels/ServiceConfigPanel.jsx b/frontend/src/components/workflow/panels/ServiceConfigPanel.jsxdeleted file mode 100644index 19cd10ea..00000000--- a/frontend/src/components/workflow/panels/ServiceConfigPanel.jsx+++ /dev/null@@ -1,108 +0,0 @@-import { Box } from 'lucide-react';-import ConfigPanel from '../ConfigPanel';-import { Input } from '@/components/ui/input';-import { Label } from '@/components/ui/label';-import { Textarea } from '@/components/ui/textarea';-import { Select, SelectTrigger, SelectContent, SelectItem, SelectValue } from '@/components/ui/select';--// Service brand colors stay literal; queue/fallback use the redesign's-// violet/accent.-const serviceTypeConfig = {- redis: { color: '#dc382d', defaultPort: 6379 },- memcached: { color: '#00a65a', defaultPort: 11211 },- rabbitmq: { color: '#ff6600', defaultPort: 5672 },- queue: { color: '#b07bf5', defaultPort: 5555 }-};--const ServiceConfigPanel = ({ node, onChange, onClose }) => {- const data = node?.data || {};- const serviceType = data.serviceType || 'redis';- const headerColor = serviceTypeConfig[serviceType]?.color || '#6d7cff';-- const handleChange = (field, value) => {- const updates = { ...data, [field]: value };-- // Auto-update port when service type changes- if (field === 'serviceType' && serviceTypeConfig[value]) {- updates.port = serviceTypeConfig[value].defaultPort;- }-- onChange(updates);- };-- return (- <ConfigPanel- isOpen={!!node}- title="Service"- icon={Box}- headerColor={headerColor}- onClose={onClose}- >- <div className="form-group">- <Label>Name</Label>- <Input- type="text"- value={data.name || ''}- onChange={(e) => handleChange('name', e.target.value)}- placeholder="my-service"- />- </div>-- <div className="form-group">- <Label>Service Type</Label>- <Select- value={data.serviceType || 'redis'}- onValueChange={(value) => handleChange('serviceType', value)}- >- <SelectTrigger>- <SelectValue />- </SelectTrigger>- <SelectContent>- <SelectItem value="redis">Redis</SelectItem>- <SelectItem value="memcached">Memcached</SelectItem>- <SelectItem value="rabbitmq">RabbitMQ</SelectItem>- <SelectItem value="queue">Queue</SelectItem>- </SelectContent>- </Select>- </div>-- <div className="form-group">- <Label>Status</Label>- <Select- value={data.status || 'stopped'}- onValueChange={(value) => handleChange('status', value)}- >- <SelectTrigger>- <SelectValue />- </SelectTrigger>- <SelectContent>- <SelectItem value="stopped">Stopped</SelectItem>- <SelectItem value="running">Running</SelectItem>- <SelectItem value="error">Error</SelectItem>- </SelectContent>- </Select>- </div>-- <div className="form-group">- <Label>Port</Label>- <Input- type="number"- value={data.port || serviceTypeConfig[serviceType]?.defaultPort || 6379}- onChange={(e) => handleChange('port', parseInt(e.target.value) || '')}- />- </div>-- <div className="form-group">- <Label>Description</Label>- <Textarea- value={data.description || ''}- onChange={(e) => handleChange('description', e.target.value)}- placeholder="Service description..."- rows={3}- />- </div>- </ConfigPanel>- );-};--export default ServiceConfigPanel;diff --git a/frontend/src/components/workflow/panels/TriggerConfigPanel.jsx b/frontend/src/components/workflow/panels/TriggerConfigPanel.jsxdeleted file mode 100644index 443140b6..00000000--- a/frontend/src/components/workflow/panels/TriggerConfigPanel.jsx+++ /dev/null@@ -1,181 +0,0 @@-import { useState } from 'react';-import ConfigPanel from '../ConfigPanel';-import { Play, Clock, Webhook, Zap, Copy, Check } from 'lucide-react';-import { Button } from '@/components/ui/button';-import { Input } from '@/components/ui/input';-import { Label } from '@/components/ui/label';-import { Switch } from '@/components/ui/switch';-import { Select, SelectTrigger, SelectContent, SelectItem, SelectValue } from '@/components/ui/select';--const TriggerConfigPanel = ({ node, onChange, onClose, onDelete }) => {- const { data } = node;- const { triggerType = 'manual', label = 'Trigger', isActive = true, triggerConfig = {} } = data;- const [copied, setCopied] = useState(false);-- const handleTypeChange = (type) => {- const typeLabels = {- manual: 'Manual Trigger',- cron: 'Scheduled Task',- webhook: 'Webhook Trigger',- event: 'Event Listener'- };- onChange({- ...data,- triggerType: type,- label: typeLabels[type] || `${type} Trigger`- });- };-- const handleConfigChange = (key, value) => {- onChange({- ...data,- triggerConfig: { ...triggerConfig, [key]: value }- });- };-- const toggleActive = () => {- onChange({ ...data, isActive: !isActive });- };-- const webhookUrl = triggerConfig.webhook_id- ? `${window.location.origin}/api/v1/workflows/hooks/${triggerConfig.webhook_id}`- : null;-- const copyWebhookUrl = () => {- if (webhookUrl) {- navigator.clipboard.writeText(webhookUrl);- setCopied(true);- setTimeout(() => setCopied(false), 2000);- }- };-- const triggerTypes = [- { id: 'manual', icon: Play, label: 'Manual', desc: 'Run on demand via button or API' },- { id: 'cron', icon: Clock, label: 'Schedule', desc: 'Run on a cron schedule' },- { id: 'webhook', icon: Webhook, label: 'Webhook', desc: 'Triggered by HTTP POST' },- { id: 'event', icon: Zap, label: 'Event', desc: 'React to system events' },- ];-- return (- <ConfigPanel- title="Trigger"- icon={<Play size={16} />}- color="#49c7f0"- onClose={onClose}- footer={onDelete && (- <Button variant="destructive" size="sm" className="btn-delete-node" onClick={onDelete}>- Remove Node- </Button>- )}- >- <div className="form-group">- <Label>Label</Label>- <Input- type="text"- value={label}- onChange={(e) => onChange({ ...data, label: e.target.value })}- />- </div>-- <div className="form-group">- <Label>Trigger Type</Label>- <div className="trigger-type-grid">- {triggerTypes.map(({ id, icon: Icon, label: typeLabel, desc }) => (- <button type="button"- key={id}- className={`trigger-type-btn ${triggerType === id ? 'active' : ''}`}- onClick={() => handleTypeChange(id)}- >- <Icon size={18} />- <span className="trigger-type-name">{typeLabel}</span>- <span className="trigger-type-desc">{desc}</span>- </button>- ))}- </div>- </div>-- <div className="form-group">- <label className="toggle-label">- <span>Enabled</span>- <Switch checked={isActive} onCheckedChange={toggleActive} />- </label>- </div>-- {triggerType === 'cron' && (- <div className="form-group">- <Label>Cron Expression</Label>- <Input- type="text"- className="font-mono"- value={triggerConfig.cron || '0 * * * *'}- onChange={(e) => handleConfigChange('cron', e.target.value)}- placeholder="e.g. 0 0 * * *"- />- <span className="form-hint">- Format: minute hour day month weekday. Examples: <code>*/5 * * * *</code> (every 5 min), <code>0 0 * * *</code> (daily midnight)- </span>- </div>- )}-- {triggerType === 'webhook' && (- <div className="form-group">- <Label>Webhook URL</Label>- {webhookUrl ? (- <>- <div className="input-with-action">- <Input- type="text"- value={webhookUrl}- readOnly- className="input-readonly font-mono"- />- <Button variant="ghost" size="icon" className="input-action-btn" onClick={copyWebhookUrl} title="Copy URL">- {copied ? <Check size={14} /> : <Copy size={14} />}- </Button>- </div>- <span className="form-hint">- Send a POST request to this URL to trigger the workflow. Request body is available as <code>context.body</code>.- </span>- </>- ) : (- <div className="panel-info-box panel-info-warning">- Save the workflow first to generate the webhook URL.- </div>- )}- </div>- )}-- {triggerType === 'event' && (- <div className="form-group">- <Label>System Event</Label>- <Select- value={triggerConfig.eventType || 'health_check_failed'}- onValueChange={(value) => handleConfigChange('eventType', value)}- >- <SelectTrigger>- <SelectValue />- </SelectTrigger>- <SelectContent>- <SelectItem value="health_check_failed">Health Check Failed</SelectItem>- <SelectItem value="high_cpu">High CPU Usage (>80%)</SelectItem>- <SelectItem value="high_memory">High Memory Usage (>80%)</SelectItem>- <SelectItem value="git_push">Git Push Received</SelectItem>- <SelectItem value="app_stopped">Application Stopped</SelectItem>- </SelectContent>- </Select>- <span className="form-hint">- Event data is available as <code>context.event_data</code> in scripts and conditions.- </span>- </div>- )}-- {triggerType === 'manual' && (- <div className="panel-info-box">- Click <strong>Execute</strong> in the toolbar or call the workflow API to run manually.- </div>- )}- </ConfigPanel>- );-};--export default TriggerConfigPanel;diff --git a/frontend/src/layouts/DashboardLayout.jsx b/frontend/src/layouts/DashboardLayout.jsxindex f7230fd0..867b7fce 100644--- a/frontend/src/layouts/DashboardLayout.jsx+++ b/frontend/src/layouts/DashboardLayout.jsx@@ -16,7 +16,7 @@ import api from '../services/api';import SystemNotices from '../components/SystemNotices';import StagingBanner from '../components/StagingBanner';-// /workflow is contributed by the serverkit-workflows extension with+// The Automations extension (tramo) contributes /automations/edit/:slug with// layout:'full', so it's picked up dynamically via fullPagePaths below.const FULL_PAGE_ROUTES = ['/files', '/docker'];diff --git a/frontend/src/pages/WorkflowBuilder.jsx b/frontend/src/pages/WorkflowBuilder.jsxdeleted file mode 100644index 1cbd6fff..00000000--- a/frontend/src/pages/WorkflowBuilder.jsx+++ /dev/null@@ -1,1092 +0,0 @@-import React, { useCallback, useMemo, useRef, useState, useEffect } from 'react';-import {- ReactFlow,- ReactFlowProvider,- useNodesState,- useEdgesState,- useReactFlow,- addEdge,- Background,- Controls,- MiniMap-} from '@xyflow/react';-import '@xyflow/react/dist/style.css';-import { Server, Database, Globe, Box, Save, FolderOpen, Plus, RefreshCw, Play, Layout, Eye, Bell, Terminal, Activity } from 'lucide-react';-import api from '../services/api';-import WorkflowListModal from '../components/workflow/WorkflowListModal';-import DeploymentProgressModal from '../components/workflow/DeploymentProgressModal';-import WorkflowExecutionHistory from '../components/workflow/WorkflowExecutionHistory';-import DockerAppNode from '../components/workflow/nodes/DockerAppNode';-import DatabaseNode from '../components/workflow/nodes/DatabaseNode';-import DomainNode from '../components/workflow/nodes/DomainNode';-import ServiceNode from '../components/workflow/nodes/ServiceNode';-import TriggerNode from '../components/workflow/nodes/TriggerNode';-import ScriptNode from '../components/workflow/nodes/ScriptNode';-import NotificationNode from '../components/workflow/nodes/NotificationNode';-import LogicIfNode from '../components/workflow/nodes/LogicIfNode';-import DockerAppConfigPanel from '../components/workflow/panels/DockerAppConfigPanel';-import DatabaseConfigPanel from '../components/workflow/panels/DatabaseConfigPanel';-import DomainConfigPanel from '../components/workflow/panels/DomainConfigPanel';-import ServiceConfigPanel from '../components/workflow/panels/ServiceConfigPanel';-import TriggerConfigPanel from '../components/workflow/panels/TriggerConfigPanel';-import ScriptConfigPanel from '../components/workflow/panels/ScriptConfigPanel';-import NotificationConfigPanel from '../components/workflow/panels/NotificationConfigPanel';-import LogicIfConfigPanel from '../components/workflow/panels/LogicIfConfigPanel';-import { isValidConnection as checkValidConnection, getConnectionError, getConnectionType } from '../utils/connectionRules';-import ConnectionEdge from '../components/workflow/ConnectionEdge';-import { Button } from '@/components/ui/button';-import { Input } from '@/components/ui/input';-import { Switch } from '@/components/ui/switch';-import { Pill } from '../components/ds';--const initialNodes = [];-const initialEdges = [];--const nodeTypes = {- dockerApp: DockerAppNode,- database: DatabaseNode,- domain: DomainNode,- service: ServiceNode,- trigger: TriggerNode,- script: ScriptNode,- notification: NotificationNode,- logic_if: LogicIfNode-};--// Categorical node palette (minimap tints). Literal hex by design: these feed-// ReactFlow inline color props, where var() does not resolve — values are-// aligned to the redesign palette (docker brand blue kept).-const nodeColorMap = {- dockerApp: '#2496ed',- database: '#f5b945',- domain: '#3ddc97',- service: '#6d7cff',- trigger: '#49c7f0',- script: '#646b7a',- notification: '#b07bf5',- logic_if: '#f97316'-};--const edgeTypes = {- connection: ConnectionEdge-};--let nodeId = 0;-const getId = () => `node_${nodeId++}`;--// Compact relative timestamp for the header meta (backend stores naive UTC,-// so clamp negatives to "just now" rather than showing future times).-const timeAgo = (dateStr) => {- if (!dateStr) return null;- const diff = Date.now() - new Date(dateStr).getTime();- if (Number.isNaN(diff)) return null;- const mins = Math.floor(diff / 60000);- if (mins < 1) return 'just now';- if (mins < 60) return `${mins}m ago`;- const hours = Math.floor(mins / 60);- if (hours < 24) return `${hours}h ago`;- return `${Math.floor(hours / 24)}d ago`;-};--const NodePalette = ({ onAddNode }) => {- return (- <aside className="wf-rail">- <div className="wf-rail__grp">Triggers</div>- <button- type="button"- className="wf-rail__node"- onClick={() => onAddNode('trigger', { label: 'Manual Trigger', triggerType: 'manual', isActive: true })}- >- <span className="wf-rail__pi wf-rail__pi--trigger"><Play size={13} /></span>- <span>Manual</span>- </button>- <button- type="button"- className="wf-rail__node"- onClick={() => onAddNode('trigger', { label: 'Scheduled Task', triggerType: 'cron', isActive: true, triggerConfig: { cron: '0 * * * *' } })}- >- <span className="wf-rail__pi wf-rail__pi--trigger"><Activity size={13} /></span>- <span>Schedule (Cron)</span>- </button>- <button- type="button"- className="wf-rail__node"- onClick={() => onAddNode('trigger', { label: 'Webhook Trigger', triggerType: 'webhook', isActive: true, triggerConfig: {} })}- >- <span className="wf-rail__pi wf-rail__pi--trigger"><Globe size={13} /></span>- <span>Webhook</span>- </button>- <button- type="button"- className="wf-rail__node"- onClick={() => onAddNode('trigger', { label: 'Event Listener', triggerType: 'event', isActive: true, triggerConfig: { eventType: 'health_check_failed' } })}- >- <span className="wf-rail__pi wf-rail__pi--trigger"><Eye size={13} /></span>- <span>System Event</span>- </button>-- <div className="wf-rail__grp">Actions</div>- <button- type="button"- className="wf-rail__node"- onClick={() => onAddNode('script', { label: 'Run Script', language: 'bash', content: '' })}- >- <span className="wf-rail__pi wf-rail__pi--action"><Terminal size={13} /></span>- <span>Run Script</span>- </button>- <button- type="button"- className="wf-rail__node"- onClick={() => onAddNode('notification', { label: 'Send Notification', channel: 'system', message: '' })}- >- <span className="wf-rail__pi wf-rail__pi--action"><Bell size={13} /></span>- <span>Notification</span>- </button>-- <div className="wf-rail__grp">Flow Control</div>- <button- type="button"- className="wf-rail__node"- onClick={() => onAddNode('logic_if', { label: 'If/Else', condition: '' })}- >- <span className="wf-rail__pi wf-rail__pi--logic"><Layout size={13} /></span>- <span>Condition (If/Else)</span>- </button>-- <div className="wf-rail__hint">- Add a trigger, connect actions, then save and execute. Press Delete to remove selected nodes.- </div>- </aside>- );-};--const WorkflowCanvas = () => {- const reactFlowWrapper = useRef(null);- const [nodes, setNodes, onNodesChange] = useNodesState(initialNodes);- const [edges, setEdges, onEdgesChange] = useEdgesState(initialEdges);- const [selectedNode, setSelectedNode] = useState(null);- const [selectedEdge, setSelectedEdge] = useState(null);- const [connectionError, setConnectionError] = useState(null);- const { screenToFlowPosition, getViewport, setViewport, fitView } = useReactFlow();-- // Workflow state- const [currentWorkflow, setCurrentWorkflow] = useState(null);- const [workflowName, setWorkflowName] = useState('Untitled Workflow');- const [isSaving, setIsSaving] = useState(false);- const [isLoading, setIsLoading] = useState(false);- const [showLoadModal, setShowLoadModal] = useState(false);- const [saveMessage, setSaveMessage] = useState(null);- const [isTogglingActive, setIsTogglingActive] = useState(false);-- // Server data state- const [templates, setTemplates] = useState([]);- const [allApps, setAllApps] = useState([]);- const [appsInView, setAppsInView] = useState(new Set());-- // Deployment state- const [isDeploying, setIsDeploying] = useState(false);- const [showDeployModal, setShowDeployModal] = useState(false);- const [deploymentResults, setDeploymentResults] = useState(null);-- // Automation state- const [isExecuting, setIsExecuting] = useState(false);- const [showHistory, setShowHistory] = useState(false);- const [executionId, setExecutionId] = useState(null);-- const memoizedNodeTypes = useMemo(() => nodeTypes, []);- const memoizedEdgeTypes = useMemo(() => edgeTypes, []);-- // Delete edge by ID- const deleteEdge = useCallback((edgeId) => {- setEdges((eds) => eds.filter((e) => e.id !== edgeId));- setSelectedEdge(null);- }, [setEdges]);-- // Fetch templates on mount- useEffect(() => {- const fetchTemplates = async () => {- try {- const response = await api.getTemplates();- setTemplates(response.templates || []);- } catch (error) {- console.error('Failed to fetch templates:', error);- }- };- fetchTemplates();- }, []);-- // Fetch all apps for the existing apps list- useEffect(() => {- const fetchApps = async () => {- try {- const response = await api.getApps();- setAllApps(response.apps || []);- } catch (error) {- console.error('Failed to fetch apps:', error);- }- };- fetchApps();- }, []);-- // Get apps not currently in the view- const existingAppsNotInView = useMemo(() => {- return allApps.filter(app => !appsInView.has(app.id));- }, [allApps, appsInView]);-- // Load server overview - all infrastructure with connections- const loadServerOverview = useCallback(async () => {- setIsLoading(true);- setSaveMessage(null);-- try {- const [appsResponse, domainsResponse] = await Promise.all([- api.getApps().catch(() => ({ apps: [] })),- api.getDomains().catch(() => ({ domains: [] }))- ]);-- const apps = appsResponse.apps || [];- const domains = domainsResponse.domains || [];-- // Fetch databases for each Docker app in parallel- const appDatabasePromises = apps- .filter(app => app.app_type === 'docker')- .map(app => api.getAppDatabases(app.id).catch(() => ({ databases: [] })));- const appDatabaseResults = await Promise.all(appDatabasePromises);-- // Create a map of app_id to databases- const appDatabasesMap = {};- apps.filter(app => app.app_type === 'docker').forEach((app, index) => {- appDatabasesMap[app.id] = appDatabaseResults[index]?.databases || [];- });-- if (apps.length === 0 && domains.length === 0) {- setSaveMessage('No infrastructure found - create an app first!');- setTimeout(() => setSaveMessage(null), 4000);- setIsLoading(false);- return;- }-- const importedNodes = [];- const importedEdges = [];- const appNodeIds = {};- const domainNodeIds = {};-- // Layout configuration- const GRID_SPACING_X = 320;- const GRID_SPACING_Y = 180;- const COLS = 3;- const DOMAIN_OFFSET_Y = 150;-- // Reset node ID counter- nodeId = 0;-- // Create app nodes- apps.forEach((app, index) => {- const col = index % COLS;- const row = Math.floor(index / COLS);- const nodeIdStr = getId();- appNodeIds[app.id] = nodeIdStr;-- importedNodes.push({- id: nodeIdStr,- type: 'dockerApp',- position: {- x: 150 + col * GRID_SPACING_X,- y: 200 + row * GRID_SPACING_Y- },- data: {- name: app.name,- appId: app.id,- status: app.status || 'stopped',- port: app.port,- appType: app.app_type,- template: app.docker_image || app.app_type,- privateUrl: app.private_url_enabled ? `/p/${app.private_slug}` : null,- domains: app.domains || [],- isReal: true- }- });- });-- // Create domain nodes positioned above their connected apps- const processedDomains = new Set();- apps.forEach((app) => {- if (app.domains && app.domains.length > 0) {- app.domains.forEach((domain, domIdx) => {- if (processedDomains.has(domain.id)) return;- processedDomains.add(domain.id);-- const appNodeId = appNodeIds[app.id];- const appNode = importedNodes.find(n => n.id === appNodeId);- const domainNodeId = getId();- domainNodeIds[domain.id] = domainNodeId;-- // Position domain above its app- importedNodes.push({- id: domainNodeId,- type: 'domain',- position: {- x: appNode.position.x + (domIdx * 80),- y: appNode.position.y - DOMAIN_OFFSET_Y- },- data: {- name: domain.name,- domainId: domain.id,- ssl: domain.ssl_enabled ? 'active' : 'none',- dnsStatus: 'propagated',- connectedAppId: app.id,- isReal: true- }- });-- // Create edge from domain to app- importedEdges.push({- id: `edge_${domainNodeId}_${appNodeId}`,- source: domainNodeId,- target: appNodeId,- sourceHandle: 'output',- targetHandle: 'input',- type: 'connection',- animated: true,- data: {- sourceType: 'domain',- targetType: 'dockerApp',- connectionType: 'routes',- onDelete: deleteEdge- }- });- });- }- });-- // Add orphan domains (not connected to any app)- const orphanDomains = domains.filter(d => !processedDomains.has(d.id));- const appsRows = Math.ceil(apps.length / COLS);- orphanDomains.forEach((domain, index) => {- const col = index % COLS;- const row = appsRows + 1 + Math.floor(index / COLS);- const domainNodeId = getId();-- importedNodes.push({- id: domainNodeId,- type: 'domain',- position: {- x: 150 + col * GRID_SPACING_X,- y: 200 + row * GRID_SPACING_Y- },- data: {- name: domain.name,- domainId: domain.id,- ssl: domain.ssl_enabled ? 'active' : 'none',- dnsStatus: 'pending',- isOrphan: true,- isReal: true- }- });- });-- // Create database nodes below apps that have databases- const DATABASE_OFFSET_Y = 180;- let databaseCount = 0;- apps.forEach((app) => {- const databases = appDatabasesMap[app.id] || [];- if (databases.length > 0) {- const appNodeId = appNodeIds[app.id];- const appNode = importedNodes.find(n => n.id === appNodeId);-- databases.forEach((db, dbIdx) => {- const dbNodeId = getId();- databaseCount++;-- // Position database below its app- importedNodes.push({- id: dbNodeId,- type: 'database',- position: {- x: appNode.position.x + (dbIdx * 200),- y: appNode.position.y + DATABASE_OFFSET_Y- },- data: {- name: db.database || db.name || 'Database',- type: db.type || 'mysql',- host: db.container || db.host || 'localhost',- port: db.port || '3306',- status: 'running',- connectedAppId: app.id,- containerName: db.container,- isReal: true- }- });-- // Create edge from app's database handle to database node- importedEdges.push({- id: `edge_${appNodeId}_${dbNodeId}`,- source: appNodeId,- target: dbNodeId,- sourceHandle: 'database',- targetHandle: 'input',- type: 'connection',- animated: true,- data: {- sourceType: 'dockerApp',- targetType: 'database',- connectionType: 'uses',- onDelete: deleteEdge- }- });- });- }- });-- // Update state- setNodes(importedNodes);- setEdges(importedEdges);- setAppsInView(new Set(apps.map(a => a.id)));- setCurrentWorkflow(null);- setWorkflowName('Server Overview');-- // Fit view after a short delay- setTimeout(() => fitView({ padding: 0.2 }), 100);-- const dbMessage = databaseCount > 0 ? `, ${databaseCount} databases` : '';- setSaveMessage(`Loaded ${apps.length} apps, ${domains.length} domains${dbMessage}`);- setTimeout(() => setSaveMessage(null), 3000);-- } catch (error) {- console.error('Failed to load server overview:', error);- setSaveMessage('Failed to load infrastructure');- setTimeout(() => setSaveMessage(null), 3000);- } finally {- setIsLoading(false);- }- }, [setNodes, setEdges, deleteEdge, fitView]);-- // Auto-load server overview on mount- useEffect(() => {- loadServerOverview();- }, []);-- // Validate connections before allowing them- const isValidConnection = useCallback((connection) => {- return checkValidConnection(connection, nodes);- }, [nodes]);-- // Save workflow- const saveWorkflow = useCallback(async () => {- setIsSaving(true);- setSaveMessage(null);-- try {- const viewport = getViewport();- const serializableNodes = nodes.map(({ id, type, position, data }) => ({- id, type, position,- data: { ...data }- }));- const serializableEdges = edges.map(({ id, source, target, sourceHandle, targetHandle, type, animated, data }) => ({- id, source, target, sourceHandle, targetHandle, type, animated,- data: data ? { sourceType: data.sourceType, targetType: data.targetType, connectionType: data.connectionType } : undefined- }));-- const workflowData = {- name: workflowName,- nodes: serializableNodes,- edges: serializableEdges,- viewport- };-- if (currentWorkflow) {- await api.updateWorkflow(currentWorkflow.id, workflowData);- setSaveMessage('View saved');- } else {- const response = await api.createWorkflow(workflowData);- setCurrentWorkflow(response.workflow);- setSaveMessage('View created');- }-- setTimeout(() => setSaveMessage(null), 3000);- } catch (error) {- console.error('Failed to save workflow:', error);- setSaveMessage('Failed to save');- setTimeout(() => setSaveMessage(null), 3000);- } finally {- setIsSaving(false);- }- }, [nodes, edges, workflowName, currentWorkflow, getViewport]);-- // Load workflow- const loadWorkflow = useCallback((workflow) => {- if (!workflow) return;-- setIsLoading(true);- setShowLoadModal(false);-- try {- const loadedNodes = (workflow.nodes || []).map((node) => ({- ...node,- data: { ...node.data }- }));-- const loadedEdges = (workflow.edges || []).map((edge) => ({- ...edge,- data: {- ...(edge.data || {}),- onDelete: deleteEdge- }- }));-- const maxNodeId = loadedNodes.reduce((max, node) => {- const numId = parseInt(node.id.replace('node_', ''), 10);- return isNaN(numId) ? max : Math.max(max, numId);- }, 0);- nodeId = maxNodeId + 1;-- // Track which apps are in view- const appIds = new Set();- loadedNodes.forEach(node => {- if (node.data?.appId) appIds.add(node.data.appId);- });- setAppsInView(appIds);-- setNodes(loadedNodes);- setEdges(loadedEdges);- setWorkflowName(workflow.name || 'Untitled Workflow');- setCurrentWorkflow(workflow);-- if (workflow.viewport) {- setTimeout(() => setViewport(workflow.viewport), 50);- }-- setSaveMessage(`Loaded: ${workflow.name}`);- setTimeout(() => setSaveMessage(null), 3000);- } catch (error) {- console.error('Failed to load workflow:', error);- setSaveMessage('Failed to load');- setTimeout(() => setSaveMessage(null), 3000);- } finally {- setIsLoading(false);- }- }, [setNodes, setEdges, setViewport, deleteEdge]);-- // Create new workflow- const newWorkflow = useCallback(() => {- setNodes([]);- setEdges([]);- setCurrentWorkflow(null);- setWorkflowName('Custom View');- setAppsInView(new Set());- nodeId = 0;- }, [setNodes, setEdges]);-- // Add node from template (placeholder - would create app via API)- const addFromTemplate = useCallback((template) => {- setSaveMessage(`To create from "${template.name}", use the Applications page`);- setTimeout(() => setSaveMessage(null), 4000);- }, []);-- // Add existing app to view- const addExistingApp = useCallback((app) => {- const newNode = {- id: getId(),- type: 'dockerApp',- position: screenToFlowPosition({- x: window.innerWidth / 2 - 90,- y: window.innerHeight / 2 - 50- }),- data: {- name: app.name,- appId: app.id,- status: app.status || 'stopped',- port: app.port,- appType: app.app_type,- template: app.docker_image || app.app_type,- privateUrl: app.private_url_enabled ? `/p/${app.private_slug}` : null,- domains: app.domains || [],- isReal: true- }- };-- setNodes((nds) => [...nds, newNode]);- setAppsInView((prev) => new Set([...prev, app.id]));-- // Add edges for connected domains if they're in view- if (app.domains && app.domains.length > 0) {- app.domains.forEach(domain => {- // Find if domain node exists- const domainNode = nodes.find(n => n.data?.domainId === domain.id);- if (domainNode) {- const newEdge = {- id: `edge_${domainNode.id}_${newNode.id}`,- source: domainNode.id,- target: newNode.id,- sourceHandle: 'output',- targetHandle: 'input',- type: 'connection',- animated: true,- data: {- sourceType: 'domain',- targetType: 'dockerApp',- connectionType: 'routes',- onDelete: deleteEdge- }- };- setEdges((eds) => [...eds, newEdge]);- }- });- }- }, [screenToFlowPosition, setNodes, setEdges, nodes, deleteEdge]);-- // Deploy workflow- const deployWorkflow = useCallback(async () => {- if (!currentWorkflow) {- setSaveMessage('Save as custom view first');- setTimeout(() => setSaveMessage(null), 3000);- return;- }-- if (nodes.length === 0) {- setSaveMessage('No nodes to deploy');- setTimeout(() => setSaveMessage(null), 3000);- return;- }-- setIsDeploying(true);- setShowDeployModal(true);- setDeploymentResults(null);-- try {- const viewport = getViewport();- const serializableNodes = nodes.map(({ id, type, position, data }) => ({- id, type, position,- data: { ...data }- }));- const serializableEdges = edges.map(({ id, source, target, sourceHandle, targetHandle, type, animated, data }) => ({- id, source, target, sourceHandle, targetHandle, type, animated,- data: data ? { sourceType: data.sourceType, targetType: data.targetType, connectionType: data.connectionType } : undefined- }));-- await api.updateWorkflow(currentWorkflow.id, {- name: workflowName,- nodes: serializableNodes,- edges: serializableEdges,- viewport- });-- const result = await api.deployWorkflow(currentWorkflow.id);- setDeploymentResults(result);-- if (result.workflow && result.workflow.nodes) {- const updatedNodes = result.workflow.nodes.map((node) => ({- ...node,- data: { ...node.data }- }));-- const maxNodeId = updatedNodes.reduce((max, node) => {- const numId = parseInt(node.id.replace('node_', ''), 10);- return isNaN(numId) ? max : Math.max(max, numId);- }, 0);- nodeId = maxNodeId + 1;-- setNodes(updatedNodes);- setCurrentWorkflow(result.workflow);- }-- } catch (error) {- console.error('Failed to deploy workflow:', error);- setDeploymentResults({- success: false,- error: error.message || 'Deployment failed',- results: [],- errors: [{ error: error.message || 'Deployment failed' }]- });- } finally {- setIsDeploying(false);- }- }, [currentWorkflow, nodes, edges, workflowName, getViewport, setNodes]);-- // Execute workflow- const executeWorkflow = useCallback(async () => {- if (!currentWorkflow) {- setSaveMessage('Save workflow first');- setTimeout(() => setSaveMessage(null), 3000);- return;- }-- setIsExecuting(true);- setSaveMessage('Executing...');-- try {- const response = await api.executeWorkflow(currentWorkflow.id);- setExecutionId(response.execution_id);- setSaveMessage('Execution started');- setShowHistory(true);- setTimeout(() => setSaveMessage(null), 3000);- } catch (error) {- console.error('Failed to execute workflow:', error);- setSaveMessage('Execution failed');- setTimeout(() => setSaveMessage(null), 3000);- } finally {- setIsExecuting(false);- }- }, [currentWorkflow]);-- // Toggle the workflow-level active/paused flag (persisted by the backend:- // Workflow.is_active gates scheduled/webhook/event trigger runs).- const toggleWorkflowActive = useCallback(async () => {- if (!currentWorkflow || isTogglingActive) return;-- const next = !currentWorkflow.is_active;- setIsTogglingActive(true);-- try {- const response = await api.updateWorkflow(currentWorkflow.id, { is_active: next });- setCurrentWorkflow(response.workflow || { ...currentWorkflow, is_active: next });- setSaveMessage(next ? 'Workflow activated' : 'Workflow paused');- } catch (error) {- console.error('Failed to toggle workflow active state:', error);- setSaveMessage('Failed to update workflow');- } finally {- setIsTogglingActive(false);- setTimeout(() => setSaveMessage(null), 3000);- }- }, [currentWorkflow, isTogglingActive]);-- // Mono meta line under the workflow name (real payload fields only).- const headMeta = useMemo(() => {- const parts = [];- if (currentWorkflow) parts.push(currentWorkflow.trigger_type || 'manual');- parts.push(`${nodes.length} nodes`);- parts.push(`${edges.length} edges`);- if (currentWorkflow) {- const ran = timeAgo(currentWorkflow.last_run_at);- parts.push(ran ? `last run ${ran}` : 'never run');- if (currentWorkflow.last_status) parts.push(currentWorkflow.last_status);- } else {- parts.push('unsaved view');- }- return parts.join(' · ');- }, [currentWorkflow, nodes.length, edges.length]);-- const onConnect = useCallback(- (params) => {- if (checkValidConnection(params, nodes)) {- const sourceNode = nodes.find(n => n.id === params.source);- const targetNode = nodes.find(n => n.id === params.target);- const connectionType = getConnectionType(sourceNode?.type, targetNode?.type);-- const newEdge = {- ...params,- type: 'connection',- animated: true,- data: {- sourceType: sourceNode?.type,- targetType: targetNode?.type,- connectionType,- onDelete: deleteEdge- }- };- setEdges((eds) => addEdge(newEdge, eds));- setConnectionError(null);- }- },- [setEdges, nodes, deleteEdge]- );-- const onConnectStart = useCallback(() => {- setConnectionError(null);- }, []);-- const onConnectEnd = useCallback((event, connectionState) => {- if (connectionState.isValid === false && connectionState.toNode) {- const error = getConnectionError({- source: connectionState.fromNode?.id,- target: connectionState.toNode?.id,- sourceHandle: connectionState.fromHandle?.id,- targetHandle: connectionState.toHandle?.id- }, nodes);- if (error) {- setConnectionError(error);- setTimeout(() => setConnectionError(null), 3000);- }- }- }, [nodes]);-- const addNode = useCallback((nodeType, defaultData = {}) => {- const newNode = {- id: getId(),- type: nodeType,- position: screenToFlowPosition({- x: window.innerWidth / 2 - 90,- y: window.innerHeight / 2 - 50- }),- data: defaultData- };- setNodes((nds) => [...nds, newNode]);- }, [screenToFlowPosition, setNodes]);-- const getNodeColor = useCallback((node) => {- return nodeColorMap[node.type] || '#6d7cff';- }, []);-- const handleNodeClick = useCallback((event, node) => {- setSelectedNode(node);- setSelectedEdge(null);- }, []);-- const handleEdgeClick = useCallback((event, edge) => {- setSelectedEdge(edge);- setSelectedNode(null);- }, []);-- const handlePaneClick = useCallback(() => {- setSelectedNode(null);- setSelectedEdge(null);- }, []);-- const handleDeleteNode = useCallback(() => {- if (!selectedNode) return;- setNodes((nds) => nds.filter((n) => n.id !== selectedNode.id));- setEdges((eds) => eds.filter((e) => e.source !== selectedNode.id && e.target !== selectedNode.id));- setSelectedNode(null);- }, [selectedNode, setNodes, setEdges]);-- const handleKeyDown = useCallback((event) => {- // Don't delete when typing in an input/textarea- if (event.target.tagName === 'INPUT' || event.target.tagName === 'TEXTAREA' || event.target.tagName === 'SELECT') return;-- if (event.key === 'Delete' || event.key === 'Backspace') {- if (selectedEdge) {- deleteEdge(selectedEdge.id);- } else if (selectedNode) {- handleDeleteNode();- }- }- }, [selectedEdge, selectedNode, deleteEdge, handleDeleteNode]);-- React.useEffect(() => {- document.addEventListener('keydown', handleKeyDown);- return () => document.removeEventListener('keydown', handleKeyDown);- }, [handleKeyDown]);-- const handlePanelClose = useCallback(() => {- setSelectedNode(null);- }, []);-- const handleNodeDataChange = useCallback((newData) => {- if (!selectedNode) return;-- setNodes((nds) =>- nds.map((node) =>- node.id === selectedNode.id- ? { ...node, data: newData }- : node- )- );-- setSelectedNode((prev) => prev ? { ...prev, data: newData } : null);- }, [selectedNode, setNodes]);-- const renderConfigPanel = () => {- if (!selectedNode) return null;-- const panelProps = {- node: selectedNode,- onChange: handleNodeDataChange,- onClose: handlePanelClose,- onDelete: handleDeleteNode- };-- switch (selectedNode.type) {- case 'dockerApp':- return <DockerAppConfigPanel {...panelProps} />;- case 'database':- return <DatabaseConfigPanel {...panelProps} />;- case 'domain':- return <DomainConfigPanel {...panelProps} />;- case 'service':- return <ServiceConfigPanel {...panelProps} />;- case 'trigger':- return <TriggerConfigPanel {...panelProps} />;- case 'script':- return <ScriptConfigPanel {...panelProps} />;- case 'notification':- return <NotificationConfigPanel {...panelProps} />;- case 'logic_if':- return <LogicIfConfigPanel {...panelProps} />;- default:- return null;- }- };-- return (- <div className="workflow-canvas" ref={reactFlowWrapper}>- <div className="wf-head">- <div className="wf-head__main">- <div className="wf-head__titlerow">- <Input- type="text"- className="workflow-name-input"- value={workflowName}- onChange={(e) => setWorkflowName(e.target.value)}- placeholder="View name..."- />- {currentWorkflow && (- <Pill kind={currentWorkflow.is_active ? 'green' : 'gray'}>- {currentWorkflow.is_active ? 'active' : 'paused'}- </Pill>- )}- </div>- <div className="wf-head__meta">{headMeta}</div>- </div>- <div className="wf-head__actions">- {currentWorkflow && (- <label className="wf-active-toggle" title="Enable automated trigger runs for this workflow">- <span>Active</span>- <Switch- checked={!!currentWorkflow.is_active}- onCheckedChange={toggleWorkflowActive}- disabled={isTogglingActive}- />- </label>- )}- <Button- variant="ghost"- size="sm"- className="toolbar-btn"- onClick={newWorkflow}- title="New workflow"- >- <Plus size={15} />- <span>New</span>- </Button>- <Button- variant="ghost"- size="sm"- className="toolbar-btn"- onClick={() => setShowLoadModal(true)}- title="Load saved workflow"- >- <FolderOpen size={15} />- <span>Load</span>- </Button>- <div className="toolbar-divider" />- <Button- variant="ghost"- size="sm"- className="toolbar-btn toolbar-btn-execute"- onClick={executeWorkflow}- disabled={isExecuting || !currentWorkflow}- title="Execute workflow"- >- <Play size={15} />- <span>{isExecuting ? 'Running...' : 'Execute'}</span>- </Button>- <Button- variant="ghost"- size="sm"- className="toolbar-btn"- onClick={() => setShowHistory(true)}- disabled={!currentWorkflow}- title="Execution history"- >- <Activity size={15} />- <span>History</span>- </Button>- <div className="toolbar-divider" />- <Button- size="sm"- className="toolbar-btn toolbar-btn-primary"- onClick={saveWorkflow}- disabled={isSaving}- title="Save workflow"- >- <Save size={15} />- <span>{isSaving ? 'Saving...' : 'Save'}</span>- </Button>- </div>- {saveMessage && (- <div className="toolbar-message">{saveMessage}</div>- )}- </div>- <div className="wf-body">- <NodePalette onAddNode={addNode} />- <div className="wf-stage">- {connectionError && (- <div className="connection-error-toast">- {connectionError}- </div>- )}- <ReactFlow- nodes={nodes}- edges={edges}- nodeTypes={memoizedNodeTypes}- edgeTypes={memoizedEdgeTypes}- onNodesChange={onNodesChange}- onEdgesChange={onEdgesChange}- onConnect={onConnect}- onConnectStart={onConnectStart}- onConnectEnd={onConnectEnd}- isValidConnection={isValidConnection}- onNodeClick={handleNodeClick}- onEdgeClick={handleEdgeClick}- onPaneClick={handlePaneClick}- fitView- panOnScroll- selectionOnDrag- panOnDrag={[1, 2]}- selectNodesOnDrag={false}- defaultEdgeOptions={{- type: 'connection',- animated: true- }}- >- <Background- variant="dots"- gap={22}- size={1}- color="var(--border)"- />- <Controls- showZoom={true}- showFitView={true}- showInteractive={false}- />- <MiniMap nodeColor={getNodeColor} />- </ReactFlow>- {renderConfigPanel()}- </div>- </div>- {showLoadModal && (- <WorkflowListModal- onLoad={loadWorkflow}- onClose={() => setShowLoadModal(false)}- />- )}- {showDeployModal && (- <DeploymentProgressModal- isDeploying={isDeploying}- results={deploymentResults}- nodes={nodes}- onClose={() => setShowDeployModal(false)}- />- )}- {showHistory && (- <WorkflowExecutionHistory- workflowId={currentWorkflow?.id}- onClose={() => setShowHistory(false)}- />- )}- </div>- );-};--const WorkflowBuilder = () => {- return (- <div className="workflow-page fullscreen">- <ReactFlowProvider>- <WorkflowCanvas />- </ReactFlowProvider>- </div>- );-};--export default WorkflowBuilder;diff --git a/frontend/src/plugins/serverkit-workflows/index.jsx b/frontend/src/plugins/serverkit-workflows/index.jsxdeleted file mode 100644index 375441be..00000000--- a/frontend/src/plugins/serverkit-workflows/index.jsx+++ /dev/null@@ -1,12 +0,0 @@-// Workflow Builder, contributed through the extension system. The page component-// and its /api/v1/workflows backend stay in core for now (two-speed extraction,-// D2); this extension owns the /workflow route + sidebar/palette entries via its-// manifest. The route uses the "full" layout (no padding) to match the canvas.-//-// After sync this file lives at frontend/src/plugins/serverkit-workflows/ so the-// relative import resolves against the host's pages directory.-import WorkflowBuilder from '../../pages/WorkflowBuilder';--export function WorkflowBuilderPage() {- return <WorkflowBuilder />;-}diff --git a/frontend/src/plugins/serverkit-workflows/plugin.json b/frontend/src/plugins/serverkit-workflows/plugin.jsondeleted file mode 100644index e0d3ef56..00000000--- a/frontend/src/plugins/serverkit-workflows/plugin.json+++ /dev/null@@ -1,44 +0,0 @@-{- "name": "serverkit-workflows",- "display_name": "Workflow Builder",- "version": "1.0.0",- "description": "Visual automation builder. Chain deploy, build, and notification steps into pipelines on a drag-and-drop canvas.",- "author": "ServerKit",- "license": "MIT",- "category": "deployment",- "homepage": "https://github.com/jhd3197/ServerKit",- "permissions": [- "docker",- "shell"- ],- "icon": "<circle cx=\"18\" cy=\"5\" r=\"3\"/><circle cx=\"6\" cy=\"12\" r=\"3\"/><circle cx=\"18\" cy=\"19\" r=\"3\"/><path d=\"M8.59 13.51l6.83 3.98\"/><path d=\"M15.41 6.51l-6.82 3.98\"/>",- "contributions": {- "nav": [- {- "id": "workflow",- "label": "Workflow Builder",- "route": "/workflow",- "category": "infrastructure",- "icon": "<circle cx=\"18\" cy=\"5\" r=\"3\"/><circle cx=\"6\" cy=\"12\" r=\"3\"/><circle cx=\"18\" cy=\"19\" r=\"3\"/><path d=\"M8.59 13.51l6.83 3.98\"/><path d=\"M15.41 6.51l-6.82 3.98\"/>"- }- ],- "routes": [- {- "path": "workflow",- "component": "WorkflowBuilderPage",- "layout": "full"- }- ],- "page_titles": {- "/workflow": "Workflow Builder"- },- "command_palette": [- {- "label": "Workflow Builder",- "path": "/workflow",- "category": "Pages",- "keywords": "automation pipeline workflow"- }- ]- }-}diff --git a/frontend/src/styles/main.scss b/frontend/src/styles/main.scssindex 3a410616..26771954 100644--- a/frontend/src/styles/main.scss+++ b/frontend/src/styles/main.scss@@ -109,7 +109,6 @@@import 'pages/_cron';@import 'pages/_security';@import 'pages/_templates';-@import 'pages/_workflow';@import 'pages/_git';@import 'pages/_servers';@import 'pages/_server-survey';diff --git a/frontend/src/styles/pages/_workflow.scss b/frontend/src/styles/pages/_workflow.scssdeleted file mode 100644index b51db76c..00000000--- a/frontend/src/styles/pages/_workflow.scss+++ /dev/null@@ -1,2314 +0,0 @@-// ============================================-// WORKFLOW BUILDER — redesign "infra console" look (demo wf-head / wf-rail):-// flush header bar + left node-palette rail + ReactFlow canvas, joined by-// 1px borders instead of floating cards. ReactFlow geometry (node paddings,-// min-widths, handle sizes/offsets) is intentionally unchanged.-// ============================================--.workflow-page {- display: flex;- flex-direction: column;- height: calc(100vh - $space-6);- padding: $space-4;-- &.fullscreen {- height: 100vh;- padding: 0;-- .workflow-canvas {- border-radius: 0;- border: none;- }- }-}--// ============================================-// CANVAS CONTAINER (page shell: head + body)-// ============================================--.workflow-canvas {- flex: 1;- min-height: 0;- display: flex;- flex-direction: column;- background: $bg-body;- border: 1px solid var(--border-soft);- border-radius: $radius-lg;- overflow: hidden;- position: relative;-- .react-flow {- background: $bg-body;- }-- // React Flow Controls- .react-flow__controls {- background: var(--surface);- border: 1px solid var(--border);- border-radius: $radius-md;- box-shadow: var(--shadow-md);- overflow: hidden;-- button {- background: var(--surface);- border: none;- border-bottom: 1px solid var(--border-soft);- color: $text-secondary;- width: 28px;- height: 28px;-- &:hover {- background: var(--surface-hover);- color: $text-primary;- }-- &:last-child {- border-bottom: none;- }-- svg {- fill: currentColor;- }- }- }-- // React Flow MiniMap- .react-flow__minimap {- background: var(--surface);- border: 1px solid var(--border);- border-radius: $radius-md;- box-shadow: var(--shadow-md);- overflow: hidden;- }-- .react-flow__minimap-mask {- fill: var(--bg-body);- fill-opacity: 0.85;- }-- .react-flow__minimap-node {- stroke: none;- }-- // React Flow Background- .react-flow__background {- background: $bg-body;- }-- // In-progress connection line- .react-flow__connection-path {- stroke: var(--accent);- stroke-width: 2;- }-- // Drag-selection rectangle- .react-flow__selection {- background: var(--accent-bg-soft);- border: 1px dashed var(--accent-dim);- }-- .react-flow__attribution {- background: transparent;-- a {- color: var(--text-ghost);- }- }-}--// ============================================-// HEAD BAR (demo wf-head: title + mono meta + actions)-// ============================================--.wf-head {- position: relative;- z-index: 25;- display: flex;- align-items: center;- gap: 14px;- flex-wrap: wrap;- flex-shrink: 0;- padding: 9px 16px 9px 10px;- border-bottom: 1px solid var(--border-soft);-}--.wf-head__main {- flex: 1;- min-width: 200px;-}--.wf-head__titlerow {- display: flex;- align-items: center;- gap: 10px;-}--.wf-head__meta {- font-family: var(--mono);- font-size: 11px;- color: var(--text-faint);- margin-top: 1px;- padding-left: 11px;- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;-}--.wf-head__actions {- display: flex;- align-items: center;- gap: $space-2;- flex-wrap: wrap;-}--// Workflow name renders as the page title (ghost input).-.workflow-name-input {- width: 220px;- height: auto;- padding: 5px 10px;- background: transparent;- border: 1px solid transparent;- border-radius: $radius-lg;- color: $text-primary;- font-size: 15px;- font-weight: $font-weight-semibold;- letter-spacing: -0.01em;- transition: border-color $transition-fast, background $transition-fast;-- &:hover {- border-color: var(--border);- }-- &:focus,- &:focus-visible {- outline: none;- border-color: var(--accent);- background: var(--surface-2);- box-shadow: none;- }-- &::placeholder {- color: var(--text-ghost);- }-}--// Active/paused switch (persists Workflow.is_active)-.wf-active-toggle {- display: inline-flex;- align-items: center;- gap: $space-2;- margin-right: $space-1;- cursor: pointer;-- span {- font-size: 12px;- color: var(--text-faint);- }-}--.toolbar-btn {- display: inline-flex;- align-items: center;- gap: 7px;- height: 30px;- padding: 0 11px;- background: transparent;- border: 1px solid var(--border);- border-radius: $radius-lg;- color: $text-secondary;- font-size: 12.5px;- font-weight: $font-weight-medium;- cursor: pointer;- transition: all $transition-fast;- white-space: nowrap;-- svg {- flex-shrink: 0;- }-- &:hover {- background: var(--surface-2);- border-color: var(--border-strong);- color: $text-primary;- }-- &:disabled {- opacity: 0.5;- cursor: not-allowed;- }-}--.toolbar-btn-execute {- color: var(--green);-- &:hover:not(:disabled) {- background: var(--green-bg);- border-color: rgba($success, 0.35);- color: var(--green);- }-}--.toolbar-btn-primary {- background: linear-gradient(180deg, var(--accent), var(--accent-dim));- border-color: var(--accent-dim);- color: #fff;-- &:hover:not(:disabled) {- background: linear-gradient(180deg, var(--accent-bright), var(--accent));- border-color: var(--accent-dim);- color: #fff;- }-}--.toolbar-divider {- width: 1px;- height: 22px;- background: var(--border);- margin: 0 $space-1;-}--.toolbar-message {- position: absolute;- top: 100%;- right: $space-4;- margin-top: 6px;- padding: 5px 10px;- background: $success-bg;- border: 1px solid $success-border;- border-radius: $radius-md;- color: var(--green);- font-family: var(--mono);- font-size: 11px;- white-space: nowrap;- z-index: 30;- animation: slideDown 0.2s ease-out;-}--// ============================================-// BODY (rail + stage)-// ============================================--.wf-body {- flex: 1;- display: flex;- min-height: 0;- position: relative;-}--// Node palette rail (demo wf-rail / pal-node)-.wf-rail {- width: 248px;- flex-shrink: 0;- display: flex;- flex-direction: column;- padding: 6px 10px 14px;- border-right: 1px solid var(--border-soft);- background: $bg-sidebar;- overflow-y: auto;- scrollbar-width: thin;-- &::-webkit-scrollbar {- width: 4px;- }-- &::-webkit-scrollbar-thumb {- background: $border-default;- border-radius: $radius-sm;- }-- @media (max-width: $breakpoint-md) {- width: 160px;- padding: 4px 7px 10px;- }-}--.wf-rail__grp {- font-family: var(--mono);- font-size: 10px;- font-weight: $font-weight-semibold;- letter-spacing: 0.12em;- text-transform: uppercase;- color: var(--text-ghost);- padding: 11px 8px 6px;-}--.wf-rail__node {- display: flex;- align-items: center;- gap: 9px;- width: 100%;- padding: 7px 9px;- margin-bottom: 6px;- background: var(--surface-2);- border: 1px solid var(--border);- border-radius: $radius-lg;- color: $text-secondary;- font-size: 12.5px;- font-weight: $font-weight-medium;- text-align: left;- cursor: pointer;- transition: all $transition-fast;-- span:last-child {- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;- }-- &:hover {- background: var(--surface-3);- border-color: rgba($accent-primary-raw, 0.45);- color: $text-primary;- }-}--.wf-rail__pi {- width: 24px;- height: 24px;- border-radius: 6px;- display: grid;- place-items: center;- flex-shrink: 0;- background: var(--surface-3);- color: $text-secondary;-- &--trigger {- color: var(--green);- }-- &--action {- color: var(--accent-bright);- }-- &--logic {- color: var(--amber);- }-}--.wf-rail__hint {- margin-top: auto;- padding: $space-3 $space-2 0;- border-top: 1px solid var(--border-soft);- font-size: 11px;- line-height: 1.5;- color: var(--text-faint);-}--// Canvas stage (hosts ReactFlow + config panel + error toast)-.wf-stage {- flex: 1;- min-width: 0;- position: relative;- overflow: hidden;-}--// ============================================-// NODE STYLES (geometry unchanged: min-width/padding/handles)-// ============================================--.workflow-node {- min-width: 180px;- background: var(--surface);- border: 1px solid var(--border);- border-radius: 12px;- box-shadow: var(--shadow-md);- transition: border-color $transition-fast, box-shadow $transition-fast;-- &:hover {- border-color: var(--border-strong);- box-shadow: var(--shadow-lg);- }-- &.selected {- border-color: var(--accent);- box-shadow: 0 0 0 2px $accent-glow, var(--shadow-lg);- }-}--.workflow-node-header {- display: flex;- align-items: center;- gap: $space-2;- padding: $space-2 $space-3;- border-bottom: 1px solid var(--border-soft);- border-top-left-radius: 12px;- border-top-right-radius: 12px;-}--.workflow-node-icon {- display: flex;- align-items: center;- justify-content: center;- width: 28px;- height: 28px;- background: linear-gradient(140deg, var(--accent), var(--accent-dim));- border-radius: $radius-lg;- color: #fff;- flex-shrink: 0;-}--.workflow-node-type {- font-family: var(--mono);- font-size: 10px;- font-weight: $font-weight-semibold;- text-transform: uppercase;- letter-spacing: 0.08em;- color: var(--text-faint);-}--.workflow-node-body {- padding: $space-3;-}--.workflow-node-label {- font-size: 13px;- font-weight: $font-weight-semibold;- color: $text-primary;- margin-bottom: $space-1;-}--.workflow-node-status {- display: inline-flex;- align-items: center;- gap: $space-1;- padding: $space-1 $space-2;- border-radius: $radius-md;- font-family: var(--mono);- font-size: $font-size-xs;- font-weight: $font-weight-medium;-- &.status-running {- background: $success-bg;- color: var(--green);- }-- &.status-stopped {- background: var(--surface-3);- color: var(--text-faint);- }-- &.status-error {- background: $danger-bg;- color: var(--red);- }-}--// ============================================-// COMPACT NODE VARIANTS (Trigger, Script, Logic, Notification)-// ============================================--// Shared compact node layout-.node-trigger,-.node-script,-.node-logic,-.node-notification {- display: flex;- align-items: center;- gap: $space-3;- padding: $space-3;- min-width: 180px;- position: relative;-- &.node-selected {- border-color: var(--accent);- box-shadow: 0 0 0 2px $accent-glow, var(--shadow-lg);- }-}--.node-icon {- display: flex;- align-items: center;- justify-content: center;- width: 32px;- height: 32px;- min-width: 32px;- background: var(--surface-2);- border-radius: $radius-lg;- color: $text-secondary;-}--.node-content {- flex: 1;- min-width: 0;-}--.node-label {- font-size: 13px;- font-weight: $font-weight-semibold;- color: $text-primary;- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;-}--.node-sublabel {- font-family: var(--mono);- font-size: 10.5px;- color: var(--text-faint);- margin-top: 2px;- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;-}--// Node icon color variants (categorical tints; pink stays literal — it has-// no semantic token, matching the file-type palette convention)-.node-icon-manual { color: var(--cyan); }-.node-icon-cron { color: var(--violet); }-.node-icon-webhook { color: var(--green); }-.node-icon-event { color: var(--amber); }-.node-icon-bash { color: $text-secondary; }-.node-icon-python { color: var(--cyan); }-.node-icon-logic { color: #f97316; }-.node-icon-discord { color: var(--violet); }-.node-icon-slack { color: #ec4899; }-.node-icon-email { color: var(--cyan); }--// Node status glow variants-.node-status-active { border-color: var(--cyan); box-shadow: 0 0 10px fade($info, 30%); }-.node-status-success { border-color: var(--green); box-shadow: 0 0 10px fade($success, 30%); }-.node-status-error { border-color: var(--red); box-shadow: 0 0 10px fade($danger, 30%); }-.node-status-inactive { border-color: var(--border-soft); }--// Logic If/Else branching outputs-.node-outputs {- display: flex;- justify-content: space-around;- width: 100%;- margin-top: $space-2;- padding-top: $space-2;- border-top: 1px solid var(--border-soft);-}--.node-output-branch {- display: flex;- flex-direction: column;- align-items: center;-}--.node-branch-label {- font-family: var(--mono);- font-size: 10px;- font-weight: 700;- letter-spacing: 0.05em;- margin-bottom: $space-1;-- &.node-branch-true { color: var(--green); }- &.node-branch-false { color: var(--red); }-}--// Compact handle styles (sizes unchanged)-.handle-input,-.handle-output {- width: 10px !important;- height: 10px !important;- background: var(--surface-3) !important;- border: 2px solid var(--border-strong) !important;- transition: all $transition-fast;-- &:hover {- background: var(--accent) !important;- border-color: var(--accent) !important;- transform: scale(1.2);- }-}--.handle-true {- border-color: var(--green) !important;- &:hover { background: var(--green) !important; }-}--.handle-false {- border-color: var(--red) !important;- &:hover { background: var(--red) !important; }-}--// ============================================-// HANDLE STYLES (sizes/offsets unchanged)-// ============================================--.workflow-handle {- width: 12px !important;- height: 12px !important;- background: var(--surface-3) !important;- border: 2px solid var(--border-strong) !important;- transition: all $transition-fast;-- &:hover {- background: var(--accent) !important;- border-color: var(--accent) !important;- transform: scale(1.2);- }-}--.workflow-handle-target {- left: -6px !important;-}--.workflow-handle-source {- right: -6px !important;-}---// ============================================-// EDGE STYLES-// ============================================--.react-flow__edge-path {- stroke: $border-active;- stroke-width: 2;-}--.react-flow__edge.selected .react-flow__edge-path {- stroke: var(--accent-bright);-}--.react-flow__edge:hover .react-flow__edge-path {- stroke: var(--accent);-}--// Animated edges-.react-flow__edge.animated path {- stroke-dasharray: 5;- animation: flowAnimation 0.5s linear infinite;-}--@keyframes flowAnimation {- from {- stroke-dashoffset: 10;- }- to {- stroke-dashoffset: 0;- }-}--// ============================================-// NODE TYPE-SPECIFIC STYLES (categorical gradients; docker brand kept)-// ============================================--// Docker App Node-.workflow-node-docker {- .node-icon-docker {- background: linear-gradient(140deg, #2496ed, #1d77c4);- }-}--// Database Node-.workflow-node-database {- .node-icon-database {- background: linear-gradient(140deg, #f5b945, #cf9430);- }-}--// Domain Node-.workflow-node-domain {- .node-icon-domain {- background: linear-gradient(140deg, #3ddc97, #2aa873);- }-- .node-label-domain {- font-family: $font-mono;- font-size: 13.5px;- font-weight: $font-weight-semibold;- }-}--// Service Node (icon bg comes inline from the brand color; gradient fallback)-.workflow-node-service {- .node-icon-service {- background: linear-gradient(140deg, #6d7cff, #4a5cd0);- }-}--// ============================================-// NODE DETAIL STYLES-// ============================================--.node-detail {- display: flex;- align-items: center;- gap: $space-2;- margin-top: $space-2;- font-size: $font-size-xs;-- .node-detail-label {- color: var(--text-ghost);- font-family: var(--mono);- font-size: 10px;- text-transform: uppercase;- letter-spacing: 0.06em;- }-- .node-detail-value {- color: $text-secondary;- font-family: $font-mono;- font-size: 11px;- }-}--.node-detail-image .node-detail-value {- max-width: 120px;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;-}--.node-detail-memory,-.node-detail-size {- color: $text-tertiary;-- svg {- opacity: 0.7;- }-}--.node-description {- font-size: $font-size-xs;- color: $text-tertiary;- margin-top: $space-1;-}--// ============================================-// PORT PILLS-// ============================================--.node-ports {- display: flex;- flex-wrap: wrap;- gap: $space-1;- margin-top: $space-2;-}--.node-port-pill {- display: inline-flex;- align-items: center;- padding: 2px $space-2;- background: var(--accent-bg);- border: 1px solid fade($accent-primary-raw, 30%);- border-radius: 5px;- font-size: $font-size-xs;- font-family: $font-mono;- color: var(--accent-bright);-}--// ============================================-// TYPE BADGES (db engine chip — solid brand bg set inline)-// ============================================--.node-type-badge {- display: inline-flex;- align-items: center;- padding: 2px $space-2;- border-radius: 5px;- font-family: var(--mono);- font-size: $font-size-xs;- font-weight: $font-weight-semibold;- letter-spacing: 0.04em;- color: #fff;- margin-top: $space-1;-}--// ============================================-// SSL & DNS BADGES-// ============================================--.node-badges {- display: flex;- flex-wrap: wrap;- gap: $space-2;- margin-top: $space-2;-}--.node-ssl-badge {- display: inline-flex;- align-items: center;- gap: $space-1;- padding: 2px $space-2;- border: 1px solid;- border-radius: 5px;- background: var(--surface-2);- font-family: var(--mono);- font-size: $font-size-xs;- font-weight: $font-weight-medium;-}--.node-dns-badge {- display: inline-flex;- align-items: center;- gap: $space-1;- padding: 2px $space-2;- border-radius: 5px;- font-family: var(--mono);- font-size: $font-size-xs;- font-weight: $font-weight-medium;-- &.dns-propagated {- background: $success-bg;- color: var(--green);- }-- &.dns-pending {- background: $warning-bg;- color: var(--amber);- }-}--// ============================================-// STATUS DOT (ANIMATED)-// ============================================--.node-status-dot {- width: 8px;- height: 8px;- border-radius: 50%;- margin-left: auto;-- &.status-running {- background: var(--green);- box-shadow: 0 0 0 2px fade($success, 30%);- animation: pulseRunning 2s ease-in-out infinite;- }-- &.status-stopped {- background: var(--text-ghost);- }-- &.status-error {- background: var(--red);- box-shadow: 0 0 0 2px fade($danger, 30%);- animation: pulseError 1s ease-in-out infinite;- }-}--@keyframes pulseRunning {- 0%, 100% {- box-shadow: 0 0 0 2px fade($success, 30%);- }- 50% {- box-shadow: 0 0 0 4px fade($success, 15%);- }-}--@keyframes pulseError {- 0%, 100% {- box-shadow: 0 0 0 2px fade($danger, 30%);- }- 50% {- box-shadow: 0 0 0 4px fade($danger, 15%);- }-}--// ============================================-// DATABASE HANDLE (BOTTOM)-// ============================================--.workflow-handle-database {- bottom: -6px !important;- left: 50% !important;- transform: translateX(-50%);-}--// ============================================-// CONFIGURATION PANEL-// ============================================--.config-panel {- position: absolute;- top: 0;- right: 0;- width: 320px;- height: 100%;- background: var(--surface);- border-left: 1px solid var(--border);- box-shadow: var(--shadow-lg);- z-index: 20;- display: flex;- flex-direction: column;- transform: translateX(100%);- opacity: 0;- transition: transform 0.25s ease-out, opacity 0.2s ease-out;- pointer-events: none;-- &.open {- transform: translateX(0);- opacity: 1;- pointer-events: auto;- }-}--// Per-type tint arrives inline via borderColor on the header.-.config-panel-header {- display: flex;- align-items: center;- justify-content: space-between;- padding: 14px 16px;- border-bottom: 1px solid var(--border-soft);- flex-shrink: 0;-}--.config-panel-title {- display: flex;- align-items: center;- gap: $space-3;-- h3 {- margin: 0;- font-size: 14px;- font-weight: $font-weight-semibold;- color: $text-primary;- }-}--.config-panel-icon {- display: flex;- align-items: center;- justify-content: center;- width: 32px;- height: 32px;- border-radius: 9px;- color: #fff;-}--.config-panel-close {- display: flex;- align-items: center;- justify-content: center;- width: 28px;- height: 28px;- background: transparent;- border: none;- border-radius: $radius-sm;- color: $text-tertiary;- cursor: pointer;- transition: all $transition-fast;-- &:hover {- background: $bg-hover;- color: $text-primary;- }-}--.config-panel-body {- flex: 1;- overflow-y: auto;- padding: $space-4;- @include custom-scrollbar();-- .form-group {- margin-bottom: $space-4;-- label {- display: block;- font-family: var(--mono);- font-size: 10.5px;- font-weight: $font-weight-semibold;- text-transform: uppercase;- letter-spacing: 0.07em;- color: var(--text-faint);- margin-bottom: $space-2;- }-- input,- select,- textarea {- width: 100%;- padding: $space-2 $space-3;- background: $bg-body;- border: 1px solid var(--border);- border-radius: $radius-md;- color: $text-primary;- font-size: $font-size-sm;- transition: border-color $transition-fast;-- &:focus {- outline: none;- border-color: $accent-primary;- }-- &::placeholder {- color: $text-tertiary;- }- }-- select {- cursor: pointer;- appearance: none;- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23646b7a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");- background-repeat: no-repeat;- background-position: right $space-3 center;- padding-right: $space-8;- }-- textarea {- resize: vertical;- min-height: 80px;- font-family: inherit;- }-- .input-readonly {- background: $bg-hover;- cursor: not-allowed;- color: $text-tertiary;- }- }-- .form-row {- display: grid;- grid-template-columns: 1fr 1fr;- gap: $space-3;- }-- .form-hint {- display: block;- font-size: $font-size-xs;- color: $text-tertiary;- margin-top: $space-1;- text-transform: none;- letter-spacing: normal;- }-}--.config-panel-footer {- padding: $space-4;- border-top: 1px solid var(--border-soft);- flex-shrink: 0;-}--// ============================================-// CONFIG PANEL ELEMENTS-// ============================================--// Trigger type selector grid-.trigger-type-grid {- display: grid;- grid-template-columns: 1fr 1fr;- gap: $space-2;-}--.trigger-type-btn {- display: flex;- flex-direction: column;- align-items: center;- gap: $space-1;- padding: $space-3;- background: $bg-body;- border: 1px solid var(--border);- border-radius: $radius-lg;- color: $text-tertiary;- cursor: pointer;- transition: all $transition-fast;-- &:hover {- border-color: var(--border-strong);- color: $text-secondary;- }-- &.active {- background: var(--accent-bg);- border-color: var(--accent);- color: var(--accent-bright);- }-- .trigger-type-name {- font-size: $font-size-sm;- font-weight: $font-weight-medium;- }-- .trigger-type-desc {- font-size: $font-size-xs;- color: $text-tertiary;- text-align: center;- line-height: $line-height-tight;- }-}--// Notification channel selector-.channel-grid {- display: grid;- grid-template-columns: 1fr 1fr 1fr;- gap: $space-2;-}--.channel-btn {- display: flex;- flex-direction: column;- align-items: center;- gap: $space-1;- padding: $space-2;- background: $bg-body;- border: 1px solid var(--border);- border-radius: $radius-md;- color: $text-tertiary;- font-size: $font-size-xs;- cursor: pointer;- transition: all $transition-fast;-- &:hover {- border-color: var(--border-strong);- color: $text-secondary;- }-- &.active {- background: var(--accent-bg);- border-color: var(--accent);- color: var(--accent-bright);- }-}--// Language toggle-.lang-toggle {- display: flex;- gap: $space-2;-}--.lang-btn {- flex: 1;- display: inline-flex;- align-items: center;- justify-content: center;- gap: $space-2;- padding: $space-2;- background: $bg-body;- border: 1px solid var(--border);- border-radius: $radius-md;- color: $text-tertiary;- font-size: $font-size-sm;- cursor: pointer;- transition: all $transition-fast;-- &:hover { border-color: var(--border-strong); color: $text-secondary; }- &.active { background: var(--accent-bg); border-color: var(--accent); color: var(--accent-bright); }-}--// Script editor textarea-.script-editor {- min-height: 240px;- background: var(--bg-code) !important;- color: var(--text-code) !important;- font-size: $font-size-xs;- line-height: 1.6;- tab-size: 4;-}--// Toggle switch label row-.toggle-label {- display: flex !important;- align-items: center;- justify-content: space-between;-}--// Input with action button (e.g. copy)-.input-with-action {- display: flex;- gap: $space-2;-- input { flex: 1; }-}--.input-action-btn {- display: flex;- align-items: center;- justify-content: center;- padding: $space-2 $space-3;- background: $bg-body;- border: 1px solid var(--border);- border-radius: $radius-md;- color: $text-secondary;- cursor: pointer;- transition: all $transition-fast;-- &:hover { background: $bg-hover; color: $text-primary; }-}--// Info boxes in panels-.panel-info-box {- padding: $space-3;- background: var(--accent-bg-soft);- border: 1px solid fade($accent-primary-raw, 20%);- border-radius: $radius-md;- font-size: $font-size-xs;- color: $text-secondary;- line-height: 1.6;- margin-top: $space-3;-- code {- background: var(--surface-3);- padding: 1px 4px;- border-radius: 3px;- font-family: var(--mono);- font-size: $font-size-xs;- color: var(--accent-bright);- }-- &.panel-info-warning {- background: $warning-bg;- border-color: $warning-border;-- code { color: var(--amber); }- }-}--// Delete node button-.btn-delete-node {- width: 100%;- padding: $space-2 $space-4;- background: transparent;- border: 1px solid $danger;- border-radius: $radius-md;- color: $danger;- font-size: $font-size-sm;- font-weight: $font-weight-medium;- cursor: pointer;- transition: all $transition-fast;-- &:hover {- background: $danger;- color: white;- }-}--// Branch legend (If/Else panel)-.branch-legend {- display: flex;- flex-direction: column;- gap: $space-2;- margin-top: $space-4;-}--.branch-legend-item {- display: flex;- align-items: center;- gap: $space-2;- font-size: $font-size-xs;- color: $text-secondary;-}--.branch-dot {- width: 8px;- height: 8px;- border-radius: 50%;-- &.branch-dot-true { background: var(--green); }- &.branch-dot-false { background: var(--red); }-}--// 3-col form row-.form-row-3 {- display: grid;- grid-template-columns: 1fr 1fr 1fr;- gap: $space-3;-}--// Font mono utility-.font-mono {- font-family: $font-mono !important;-}--// ============================================-// PORT LIST (Docker Config Panel)-// ============================================--.port-list {- display: flex;- flex-direction: column;- gap: $space-2;-}--.port-item {- display: flex;- gap: $space-2;-- input {- flex: 1;- }-}--.btn-icon {- display: flex;- align-items: center;- justify-content: center;- width: 32px;- height: 32px;- padding: 0;- border-radius: $radius-md;- flex-shrink: 0;-}--.btn-danger-ghost {- background: transparent;- border: 1px solid transparent;- color: $text-tertiary;- cursor: pointer;- transition: all $transition-fast;-- &:hover {- background: $danger-bg;- border-color: $danger-border;- color: $danger;- }-}--// ============================================-// CONNECTION ERROR TOAST-// ============================================--.connection-error-toast {- position: absolute;- top: $space-4;- left: 50%;- transform: translateX(-50%);- z-index: 30;- padding: $space-2 $space-4;- background: $danger-bg;- border: 1px solid $danger-border;- border-radius: $radius-md;- color: $danger;- font-size: $font-size-sm;- font-weight: $font-weight-medium;- box-shadow: var(--shadow-lg);- animation: slideDown 0.2s ease-out;-}--@keyframes slideDown {- from {- opacity: 0;- transform: translateX(-50%) translateY(-10px);- }- to {- opacity: 1;- transform: translateX(-50%) translateY(0);- }-}--// ============================================-// EDGE LABEL STYLES (mono chip tinted by --edge-c, set inline per edge)-// ============================================--.edge-label {- display: flex;- align-items: center;- gap: 5px;- padding: 2px 8px;- background: var(--surface-2);- border: 1px solid var(--edge-c, var(--accent));- border-radius: 6px;- font-family: var(--mono);- font-size: 10px;- font-weight: $font-weight-medium;- color: var(--edge-c, var(--accent));- white-space: nowrap;- transition: opacity $transition-fast;- opacity: 0;-- .react-flow__edge:hover &,- &.edge-label-selected {- opacity: 1;- }-- &.edge-label-selected {- background: var(--accent-bg);- border-color: var(--accent);- color: var(--accent-bright);- }-}--.edge-label-text {- line-height: 1.5;-}--.edge-delete-btn {- display: flex;- align-items: center;- justify-content: center;- width: 16px;- height: 16px;- padding: 0;- margin-left: 2px;- background: $danger;- border: none;- border-radius: 4px;- color: white;- cursor: pointer;- transition: all $transition-fast;-- &:hover {- background: darken($danger, 10%);- }-}--// ============================================-// HANDLE HOVER STATES-// ============================================--.workflow-handle {- transition: all $transition-fast;-- &:hover {- transform: scale(1.3);- }-}--// Connecting state - show valid handles-.react-flow__handle-connecting {- &.react-flow__handle-valid {- background: $success !important;- box-shadow: 0 0 6px fade($success, 60%);- }-- &:not(.react-flow__handle-valid) {- background: $danger !important;- box-shadow: 0 0 6px fade($danger, 60%);- }-}--// ============================================-// EDGE SELECTION STATES-// ============================================--.react-flow__edge {- cursor: pointer;-- &.selected .react-flow__edge-path {- stroke: var(--accent-bright) !important;- stroke-width: 2 !important;- }-}--// ============================================-// WORKFLOW LIST MODAL (shadcn Dialog internals)-// ============================================--.workflow-modal {- width: 500px;- max-width: 90vw;-}--@keyframes fadeIn {- from {- opacity: 0;- }- to {- opacity: 1;- }-}--@keyframes scaleIn {- from {- opacity: 0;- transform: scale(0.95);- }- to {- opacity: 1;- transform: scale(1);- }-}--.workflow-modal-content {- flex: 1;- overflow-y: auto;- @include custom-scrollbar();-}--.workflow-list-loading {- display: flex;- flex-direction: column;- align-items: center;- gap: $space-3;- padding: $space-8;- color: $text-tertiary;-- .spin {- animation: spin 1s linear infinite;- }-}--@keyframes spin {- from {- transform: rotate(0deg);- }- to {- transform: rotate(360deg);- }-}--.workflow-list-error {- display: flex;- flex-direction: column;- align-items: center;- gap: $space-3;- padding: $space-8;- color: $danger;-}--.workflow-list-empty {- display: flex;- flex-direction: column;- align-items: center;- gap: $space-2;- padding: $space-8;- color: var(--text-ghost);-- p {- margin: 0;- font-size: $font-size-base;- font-weight: $font-weight-medium;- color: $text-secondary;- }-- span {- font-size: $font-size-sm;- color: $text-tertiary;- }-}--.workflow-list {- display: flex;- flex-direction: column;- gap: $space-2;-}--.workflow-list-item {- display: flex;- align-items: center;- gap: $space-3;- padding: $space-3 $space-4;- background: var(--surface-2);- border: 1px solid var(--border-soft);- border-radius: $radius-lg;- cursor: pointer;- transition: all $transition-fast;-- &:hover {- border-color: var(--accent);- background: var(--accent-bg-soft);- }-}--.workflow-item-main {- flex: 1;- min-width: 0;-}--.workflow-item-name {- display: flex;- align-items: center;- gap: $space-2;- font-size: 13px;- font-weight: $font-weight-semibold;- color: $text-primary;- overflow: hidden;-- > span:first-child {- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;- }-}--.workflow-item-desc {- font-size: $font-size-xs;- color: $text-tertiary;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;- margin-top: 2px;-}--.workflow-item-meta {- display: flex;- flex-direction: column;- gap: $space-1;- flex-shrink: 0;-}--.workflow-item-stats {- display: flex;- gap: $space-3;-- .stat {- display: flex;- align-items: center;- gap: $space-1;- font-family: var(--mono);- font-size: $font-size-xs;- color: $text-tertiary;- }-}--.workflow-item-date {- display: flex;- align-items: center;- gap: $space-1;- font-family: var(--mono);- font-size: $font-size-xs;- color: var(--text-ghost);-}--.workflow-item-delete {- display: flex;- align-items: center;- justify-content: center;- width: 32px;- height: 32px;- background: transparent;- border: 1px solid transparent;- border-radius: $radius-md;- color: $text-tertiary;- cursor: pointer;- transition: all $transition-fast;- flex-shrink: 0;-- &:hover {- background: $danger-bg;- border-color: $danger-border;- color: $danger;- }-- &:disabled {- opacity: 0.5;- cursor: not-allowed;- }-- .spin {- animation: spin 1s linear infinite;- }-}--// ============================================-// DEPLOYMENT PROGRESS MODAL-// ============================================--.deployment-modal {- width: 520px;- max-width: 90vw;-}--.deployment-modal-content {- flex: 1;- overflow-y: auto;- @include custom-scrollbar();-}--.deployment-modal-footer {- padding: $space-4 0 0;- display: flex;- justify-content: flex-end;-}--.deployment-loading {- display: flex;- flex-direction: column;- align-items: center;- gap: $space-3;- padding: $space-8;- color: $text-tertiary;-- .spin {- animation: spin 1s linear infinite;- }-- p {- margin: 0;- font-size: $font-size-base;- font-weight: $font-weight-medium;- color: $text-secondary;- }-- span {- font-size: $font-size-sm;- }-}--.deployment-summary {- display: flex;- align-items: center;- gap: $space-3;- padding: $space-3 $space-4;- border-radius: $radius-md;- margin-bottom: $space-4;- font-size: $font-size-sm;- font-weight: $font-weight-medium;-- &.success {- background: $success-bg;- border: 1px solid $success-border;- color: var(--green);- }-- &.has-errors {- background: $danger-bg;- border: 1px solid $danger-border;- color: var(--red);- }-}--.deployment-results {- display: flex;- flex-direction: column;- gap: $space-2;-}--.deployment-result-item {- display: flex;- align-items: center;- gap: $space-3;- padding: $space-3 $space-4;- background: var(--surface-2);- border: 1px solid var(--border-soft);- border-radius: $radius-md;- transition: all $transition-fast;-- &.success {- border-color: $success-border;- }-- &.error {- border-color: $danger-border;- background: $danger-bg;- }-- &.pending {- opacity: 0.6;- }-}--.result-icon {- display: flex;- align-items: center;- justify-content: center;- width: 32px;- height: 32px;- border-radius: $radius-lg;- color: #fff;- flex-shrink: 0;-}--.result-info {- flex: 1;- min-width: 0;-}--.result-name {- font-size: $font-size-sm;- font-weight: $font-weight-medium;- color: $text-primary;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;-}--.result-type {- font-family: var(--mono);- font-size: $font-size-xs;- color: $text-tertiary;-}--.result-status {- display: flex;- align-items: center;- flex-shrink: 0;-- .spin {- animation: spin 1s linear infinite;- color: $text-tertiary;- }-- .status-success {- color: var(--green);- }-- .status-error {- color: var(--red);- }-- .status-pending {- font-family: var(--mono);- font-size: $font-size-xs;- color: $text-tertiary;- }-}--.result-link {- display: flex;- align-items: center;- justify-content: center;- width: 28px;- height: 28px;- background: transparent;- border: 1px solid var(--border);- border-radius: $radius-sm;- color: $text-tertiary;- text-decoration: none;- transition: all $transition-fast;- flex-shrink: 0;-- &:hover {- background: $bg-hover;- border-color: $accent-primary;- color: $accent-primary;- }-}--.deployment-errors {- margin-top: $space-4;- padding: $space-3;- background: $danger-bg;- border: 1px solid $danger-border;- border-radius: $radius-md;-- h4 {- margin: 0 0 $space-2;- font-size: $font-size-sm;- font-weight: $font-weight-semibold;- color: $danger;- }-}--.error-item {- display: flex;- align-items: flex-start;- gap: $space-2;- padding: $space-2 0;- font-size: $font-size-xs;- color: $danger;-- svg {- flex-shrink: 0;- margin-top: 2px;- }-- &:not(:last-child) {- border-bottom: 1px solid fade($danger, 20%);- }-}--// ============================================-// EXECUTION HISTORY (framed two-pane console in the modal)-// ============================================--.wf-history {- display: flex;- height: min(62vh, 600px);- border: 1px solid var(--border-soft);- border-radius: $radius-lg;- background: var(--surface);- overflow: hidden;-}--.wf-history__list {- width: 230px;- flex-shrink: 0;- border-right: 1px solid var(--border-soft);- background: $bg-sidebar;- overflow-y: auto;- @include custom-scrollbar();-- @media (max-width: $breakpoint-sm) {- width: 150px;- }-}--.wf-history__item {- padding: 11px 14px;- border-bottom: 1px solid var(--border-soft);- cursor: pointer;- transition: background $transition-fast;-- &:hover {- background: var(--surface-2);- }-- &.is-on {- background: var(--accent-bg);- box-shadow: inset 2px 0 0 var(--accent);- }-}--.wf-history__item-top {- display: flex;- align-items: center;- justify-content: space-between;- gap: $space-2;- margin-bottom: 4px;-}--.wf-history__id {- font-family: var(--mono);- font-size: 11px;- color: var(--text-faint);-}--.wf-history__trigger {- font-size: 12.5px;- font-weight: $font-weight-medium;- color: $text-primary;-}--.wf-history__time {- display: flex;- align-items: center;- gap: 5px;- margin-top: 4px;- font-family: var(--mono);- font-size: 10px;- color: var(--text-faint);-- svg {- flex-shrink: 0;- }-}--.wf-history__detail {- flex: 1;- min-width: 0;- display: flex;- flex-direction: column;- overflow: hidden;-}--.wf-history__head {- padding: 13px 16px;- border-bottom: 1px solid var(--border-soft);- flex-shrink: 0;-}--.wf-history__title {- display: flex;- align-items: center;- gap: 9px;- margin: 0;- font-size: 13.5px;- font-weight: $font-weight-semibold;- color: $text-primary;-}--.wf-history__dur {- margin-top: 4px;- font-family: var(--mono);- font-size: 10.5px;- color: var(--text-faint);-}--.wf-history__logs {- flex: 1;- overflow-y: auto;- padding: $space-3 $space-4;- background: var(--bg-code);- font-family: var(--mono);- font-size: 11.5px;- @include custom-scrollbar();-}--.wf-history__logs-label {- display: flex;- align-items: center;- gap: 7px;- padding-bottom: $space-2;- margin-bottom: $space-2;- border-bottom: 1px solid var(--border-soft);- font-size: 10px;- font-weight: $font-weight-semibold;- letter-spacing: 0.08em;- text-transform: uppercase;- color: var(--text-faint);-}--.wf-history__lines {- display: flex;- flex-direction: column;- gap: 2px;-}--.wf-log {- display: flex;- gap: 10px;- padding: 1px 4px;- border-radius: 4px;- transition: background $transition-fast;-- &:hover {- background: var(--surface-2);- }-}--.wf-log__ts {- color: var(--text-ghost);- flex-shrink: 0;-}--.wf-log__lvl {- flex-shrink: 0;- width: 56px;- font-weight: $font-weight-bold;-- &--error { color: var(--red); }- &--warning { color: var(--amber); }- &--debug { color: var(--text-faint); }- &--info { color: var(--cyan); }-}--.wf-log__node {- color: var(--accent-bright);- flex-shrink: 0;-}--.wf-log__msg {- color: var(--text-code);- overflow-wrap: anywhere;-}--.wf-history__nolog {- color: var(--text-faint);- font-style: italic;-}--.wf-history__loading {- display: flex;- justify-content: center;- padding: $space-8;- color: var(--text-faint);-}--.wf-history__empty {- padding: $space-6 $space-4;- text-align: center;- font-size: 12.5px;- color: var(--text-faint);-}--.wf-history__placeholder {- flex: 1;- display: flex;- flex-direction: column;- align-items: center;- justify-content: center;- gap: $space-3;- color: var(--text-ghost);-- svg {- opacity: 0.35;- }-- p {- margin: 0;- font-size: 13px;- color: var(--text-faint);- }-}--// ============================================-// DEPLOYED NODE INDICATOR-// ============================================--.workflow-node.deployed {- border-color: var(--green);-- &::after {- content: '';- position: absolute;- top: -4px;- right: -4px;- width: 12px;- height: 12px;- background: var(--green);- border: 2px solid var(--surface);- border-radius: 50%;- }-}--// ============================================-// REAL APP NODE INDICATOR-// ============================================--.workflow-node.is-real {- border-color: fade($accent-primary-raw, 40%);-- &.selected {- border-color: var(--accent);- }-- .workflow-node-header {- background: var(--accent-bg-soft);- }-}--// ============================================-// DOMAIN PILLS IN NODE-// ============================================--.node-domains {- display: flex;- flex-wrap: wrap;- gap: $space-1;- margin-top: $space-2;-}--.node-domain-pill {- display: inline-flex;- align-items: center;- gap: 4px;- padding: 2px $space-2;- background: $success-bg;- border: 1px solid fade($success, 30%);- border-radius: 5px;- font-family: var(--mono);- font-size: 10px;- color: var(--green);-- svg {- opacity: 0.7;- }-}--.node-domain-more {- font-family: var(--mono);- font-size: 10px;- color: $text-tertiary;- padding: 2px $space-1;-}--// ============================================-// PRIVATE URL IN NODE-// ============================================--.node-detail-private-url {- display: flex;- align-items: center;- gap: $space-1;- margin-top: $space-2;- padding: $space-1 $space-2;- background: $info-bg;- border-radius: 5px;-- svg {- color: var(--cyan);- flex-shrink: 0;- }-- .node-detail-value {- font-family: var(--mono);- font-size: 10px;- color: var(--cyan);- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;- }-}--// ============================================-// CONFIG PANEL ENHANCEMENTS-// ============================================--.form-value {- padding: $space-2 $space-3;- background: $bg-body;- border: 1px solid var(--border);- border-radius: $radius-md;- font-size: $font-size-sm;- color: $text-primary;-- &.status-badge {- display: inline-flex;- padding: $space-1 $space-2;- border-radius: 6px;- font-family: var(--mono);- font-size: $font-size-xs;- font-weight: $font-weight-medium;- text-transform: capitalize;- }-- &.status-running {- background: $success-bg;- border-color: $success-border;- color: var(--green);- }-- &.status-stopped {- background: var(--surface-3);- border-color: var(--border);- color: var(--text-faint);- }-- &.status-error {- background: $danger-bg;- border-color: $danger-border;- color: var(--red);- }-}--.form-value-link {- display: flex;- align-items: center;- gap: $space-2;- cursor: pointer;- color: $accent-primary;-- &:hover {- text-decoration: underline;- }-- svg:last-child {- opacity: 0.5;- margin-left: auto;- }-}--.form-domains {- display: flex;- flex-direction: column;- gap: $space-2;-}--.form-domain-item {- display: flex;- align-items: center;- gap: $space-2;- padding: $space-2;- background: $bg-body;- border: 1px solid var(--border);- border-radius: $radius-md;- font-size: $font-size-sm;-- svg {- color: var(--green);- }-- .ssl-badge {- margin-left: auto;- padding: 2px 6px;- background: $success-bg;- border-radius: 5px;- font-family: var(--mono);- font-size: 10px;- font-weight: $font-weight-medium;- color: var(--green);- }-}--.action-buttons {- display: flex;- gap: $space-2;- flex-wrap: wrap;-- .btn {- flex: 1;- min-width: 70px;- }-}--.action-message {- margin-top: $space-2;- padding: $space-2;- background: $success-bg;- border: 1px solid $success-border;- border-radius: $radius-sm;- font-family: var(--mono);- font-size: $font-size-xs;- color: var(--green);- text-align: center;-}--.btn-block {- width: 100%;- justify-content: center;-}