import React from 'react'; import { Box, Text, useInput, useApp } from 'ink'; import { useMonitorLogic } from './monitor/use-monitor-logic.js'; import { SystemStatus } from './monitor/system-status.js'; import { ActiveMission } from './monitor/active-mission.js'; import { DaemonFeed } from './monitor/daemon-feed.js'; import { CommandBar } from './monitor/command-bar.js'; import { NexusAlerts } from './monitor/nexus-alerts.js'; import { PredictiveInsights } from './monitor/predictive-insights.js'; interface DashboardProps { projectId: string; } export const Dashboard: React.FC = ({ projectId }) => { const { exit } = useApp(); const { state, command, setCommand, handleCommandSubmit, pendingDestructive } = useMonitorLogic(projectId); const secureMode = pendingDestructive !== null; useInput((input, key) => { if (input === 'q' || (key.ctrl && input === 'c')) exit(); }); return ( {/* ── Header ─────────────────────────────────────────────── */} 🚀 RIGSTATE MONITOR v2.0 {state.projectId.substring(0, 8)}… {state.time} q to quit {/* ── Nexus Alerts (Global Hive Signals) ─────────────────── */} {/* ── Predictive Insights (Entropy tracking) ─────────────── */} {/* ── Quadrant Row: System Status + Active Mission ────────── */} {/* ── Daemon Feed ─────────────────────────────────────────── */} {/* ── Command Bar ─────────────────────────────────────────── */} ); };