diff --git a/atomizer-dashboard/frontend/src/components/canvas/AtomizerCanvas.tsx b/atomizer-dashboard/frontend/src/components/canvas/AtomizerCanvas.tsx index 8c280a5c..f8eb2487 100644 --- a/atomizer-dashboard/frontend/src/components/canvas/AtomizerCanvas.tsx +++ b/atomizer-dashboard/frontend/src/components/canvas/AtomizerCanvas.tsx @@ -7,6 +7,7 @@ import ReactFlow, { ReactFlowInstance, } from 'reactflow'; import 'reactflow/dist/style.css'; +import { MessageCircle, Plug, X } from 'lucide-react'; import { nodeTypes } from './nodes'; import { NodePalette } from './palette/NodePalette'; @@ -159,7 +160,7 @@ function CanvasFlow() { }`} title="Toggle Chat" > - {isConnected ? '💬' : '🔌'} + {isConnected ? : } setShowChat(false)} className="text-dark-400 hover:text-white transition-colors" > - ✕ + + {/* Header with actions */} - + - + Optimization Canvas - + Drag components from the palette to build your optimization workflow @@ -49,23 +50,23 @@ export function CanvasView() { setShowTemplates(true)} - className="px-4 py-2 bg-gradient-to-r from-blue-500 to-purple-500 text-white rounded-lg hover:from-blue-600 hover:to-purple-600 transition-all shadow-sm flex items-center gap-2" + className="px-4 py-2 bg-gradient-to-r from-primary-600 to-purple-600 text-white rounded-lg hover:from-primary-500 hover:to-purple-500 transition-all shadow-sm flex items-center gap-2" > - 📋 + Templates setShowImporter(true)} - className="px-4 py-2 bg-gray-100 text-gray-700 rounded-lg hover:bg-gray-200 transition-colors flex items-center gap-2" + className="px-4 py-2 bg-dark-700 text-dark-200 rounded-lg hover:bg-dark-600 hover:text-white transition-colors flex items-center gap-2 border border-dark-600" > - 📥 + Import - 🗑️ + Clear @@ -93,7 +94,7 @@ export function CanvasView() { {/* Notification Toast */} {notification && ( {notification} diff --git a/atomizer-dashboard/frontend/src/pages/Setup.tsx b/atomizer-dashboard/frontend/src/pages/Setup.tsx index 663c162d..604c34ed 100644 --- a/atomizer-dashboard/frontend/src/pages/Setup.tsx +++ b/atomizer-dashboard/frontend/src/pages/Setup.tsx @@ -254,12 +254,12 @@ export default function Setup() { return acc * 1000; // Approximate for continuous }, 1) || 0; - // Canvas tab - full height + // Canvas tab - full height and full width if (activeTab === 'canvas') { return ( - + {/* Tab Bar */} - + setActiveTab('config')} className="flex items-center gap-2 px-4 py-2 rounded-lg transition-colors bg-dark-800 text-dark-300 hover:text-white hover:bg-dark-700"
+
Drag components from the palette to build your optimization workflow