diff --git a/webui/src/index.css b/webui/src/index.css index 8c912ea..1659476 100644 --- a/webui/src/index.css +++ b/webui/src/index.css @@ -332,25 +332,6 @@ html.theme-dark .brand-button { border-radius: var(--radius-panel); } -.topology-stream-panel { - left: 1rem; - right: 1rem; - bottom: 1rem; - height: 48vh; -} - -@media (min-width: 768px) { - .topology-stream-panel { - left: auto; - right: 1rem; - top: 1rem; - bottom: 1rem; - width: 360px; - max-width: calc(100% - 2rem); - height: auto; - } -} - .rounded-xl { border-radius: var(--radius-button) !important; } diff --git a/webui/src/pages/Dashboard.tsx b/webui/src/pages/Dashboard.tsx index 6a776b9..fcc4a8c 100644 --- a/webui/src/pages/Dashboard.tsx +++ b/webui/src/pages/Dashboard.tsx @@ -1,5 +1,5 @@ import React, { useMemo } from 'react'; -import { RefreshCw, Activity, MessageSquare, Clock, Server, Wrench, Sparkles, AlertTriangle, Workflow } from 'lucide-react'; +import { RefreshCw, Activity, MessageSquare, Wrench, Sparkles, AlertTriangle, Workflow } from 'lucide-react'; import { useTranslation } from 'react-i18next'; import { useAppContext } from '../context/AppContext'; import StatCard from '../components/StatCard'; @@ -9,8 +9,6 @@ const Dashboard: React.FC = () => { const { isGatewayOnline, sessions, - cron, - nodes, refreshAll, gatewayVersion, webuiVersion, @@ -20,30 +18,6 @@ const Dashboard: React.FC = () => { ekgSummary, } = useAppContext(); - const parsedNodes = useMemo(() => { - try { - const arr = JSON.parse(nodes); - return Array.isArray(arr) ? arr : []; - } catch { - return []; - } - }, [nodes]); - - const onlineNodes = useMemo( - () => parsedNodes.filter((n: any) => n?.online).length, - [parsedNodes], - ); - - const pausedCron = useMemo( - () => cron.filter((job) => !job.enabled).length, - [cron], - ); - - const enabledCron = useMemo( - () => cron.filter((job) => job.enabled).length, - [cron], - ); - const subagentCount = useMemo(() => { const subagents = (cfg as any)?.agents?.subagents || {}; return Object.keys(subagents).length; @@ -79,13 +53,12 @@ const Dashboard: React.FC = () => { -