diff --git a/cannaiq/src/pages/OrchestratorDashboard.tsx b/cannaiq/src/pages/OrchestratorDashboard.tsx index 1cc197ce..0f1b4fe3 100644 --- a/cannaiq/src/pages/OrchestratorDashboard.tsx +++ b/cannaiq/src/pages/OrchestratorDashboard.tsx @@ -23,7 +23,6 @@ import { ArrowUpCircle, } from 'lucide-react'; import { StoreOrchestratorPanel } from '../components/StoreOrchestratorPanel'; -import { DeployStatus } from '../components/DeployStatus'; interface CrawlHealth { status: 'ok' | 'degraded' | 'stale' | 'error'; @@ -99,26 +98,16 @@ export function OrchestratorDashboard() { const [stores, setStores] = useState([]); const [totalStores, setTotalStores] = useState(0); const [loading, setLoading] = useState(true); - const [autoRefresh, setAutoRefresh] = useState(true); const [selectedStore, setSelectedStore] = useState(null); const [panelTab, setPanelTab] = useState<'control' | 'trace' | 'profile' | 'module' | 'debug'>('control'); const [crawlHealth, setCrawlHealth] = useState(null); const [analyticsHealth, setAnalyticsHealth] = useState(null); - const [refreshing, setRefreshing] = useState(false); useEffect(() => { loadData(); + }, [selectedState]); - if (autoRefresh) { - const interval = setInterval(() => loadData(false), 30000); - return () => clearInterval(interval); - } - }, [autoRefresh, selectedState]); - - const loadData = async (isManualRefresh = false) => { - if (isManualRefresh) { - setRefreshing(true); - } + const loadData = async () => { try { // stateParam is undefined for "All States", or the state code for specific state const [metricsData, statesData, storesData, crawlHealthData, analyticsHealthData] = await Promise.all([ @@ -139,7 +128,6 @@ export function OrchestratorDashboard() { console.error('Failed to load orchestrator data:', error); } finally { setLoading(false); - setRefreshing(false); } }; @@ -259,37 +247,13 @@ export function OrchestratorDashboard() {
{/* Header */} -
-
-

Orchestrator Dashboard

-

- Crawler observability and per-store monitoring -

-
-
- - -
+
+

Orchestrator Dashboard

+

+ Crawler observability and per-store monitoring +

- {/* Deploy Status Panel */} - - {/* Metrics Cards - Clickable - Responsive: 2→3→4→7 columns */} {metrics && (