diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 6be222b..16c704d 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -3,8 +3,12 @@ import { Sidebar } from '@/components/layout/Sidebar' import { Dashboard } from '@/pages/Dashboard' import { CommandPalette } from '@/components/CommandPalette' import { accWS } from '@/lib/websocket' +import { useAppStore } from '@/store/useAppStore' export default function App() { + const { agents } = useAppStore() + const online = agents.filter(a => a.healthy).length + useEffect(() => { accWS.connect('ws://localhost:8100/ws') }, []) @@ -12,9 +16,20 @@ export default function App() { return (
-
- -
+ +
+
+
+

Agent Control Center

+
{online} online · v0.2.0
+
+
+ +
+ +
+
+
) diff --git a/frontend/src/pages/Dashboard.tsx b/frontend/src/pages/Dashboard.tsx index 4715d59..416f6a1 100644 --- a/frontend/src/pages/Dashboard.tsx +++ b/frontend/src/pages/Dashboard.tsx @@ -9,31 +9,22 @@ export function Dashboard() { const online = agents.filter(a => a.healthy).length return ( -
-
-
-

Agent Control Center

-

Управление агентами, задачами и проектами

-
-
-
{online} online
-
v0.2.0
-
+
+
+

Доброе утро, Operator

+

Вот что происходит с вашими агентами

-
- {/* Live Agents — 7 колонок */} +
- {/* Sidebar widgets */} -
+
- {/* Kanban на всю ширину */}