From bf0f977d9d24fad6431c4fad7f0eac77474bf65d Mon Sep 17 00:00:00 2001 From: ochenstarik-ui Date: Mon, 20 Jul 2026 22:29:15 +0700 Subject: [PATCH] =?UTF-8?q?Phase=206.1:=20layout=20fixes=20=E2=80=94=20hea?= =?UTF-8?q?der,=20=D0=BE=D1=82=D1=81=D1=82=D1=83=D0=BF=D1=8B,=20max-width?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/App.tsx | 21 ++++++++++++++++++--- frontend/src/pages/Dashboard.tsx | 21 ++++++--------------- 2 files changed, 24 insertions(+), 18 deletions(-) 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 на всю ширину */}