From 38b71883ce2267a74371df142a61d24017fff0ca Mon Sep 17 00:00:00 2001 From: Mark McKeen Date: Sun, 29 Mar 2026 08:59:06 -0600 Subject: [PATCH] feat: flesh out overview and settings views - wire settings and overview sidebar buttons to real views - render policy editor for existing sandboxes below telemetry - add overview summary panel and preset ladder - reuse preset-driven config panel in global settings view --- app/components/SandboxList.tsx | 71 ++++++++++++++++++---------------- app/components/Sidebar.tsx | 22 ++++++++++- app/page.tsx | 67 +++++++++++++++++++++++++++++++- 3 files changed, 124 insertions(+), 36 deletions(-) diff --git a/app/components/SandboxList.tsx b/app/components/SandboxList.tsx index cd5cd39..5c3d104 100644 --- a/app/components/SandboxList.tsx +++ b/app/components/SandboxList.tsx @@ -1,5 +1,6 @@ "use client" import { useState, useEffect } from 'react' +import ConfigurationPanel from './ConfigurationPanel' interface Sandbox { id: string @@ -165,45 +166,49 @@ export default function SandboxList({ {/* Selected Sandbox Details - Technical Data Panel */} {!isDestroyMode && selectedSandbox && ( -
-
-

- {sandboxes.find(s => s.id === selectedSandbox)?.name} — TELEMETRY -

- - LIVE - -
- -
-
-

CPU

-

- {telemetry.cpu.toFixed(1)}% -

+ <> +
+
+

+ {sandboxes.find(s => s.id === selectedSandbox)?.name} — TELEMETRY +

+ + LIVE +
-
-

MEMORY

-

- {telemetry.memory.toFixed(1)}% -

-
-
-

DISK

-

- {telemetry.disk.toFixed(1)}% -

-
- {telemetry.gpuTemperature && ( + +
-

GPU TEMP

+

CPU

- {telemetry.gpuTemperature.toFixed(1)}°C + {telemetry.cpu.toFixed(1)}%

- )} +
+

MEMORY

+

+ {telemetry.memory.toFixed(1)}% +

+
+
+

DISK

+

+ {telemetry.disk.toFixed(1)}% +

+
+ {telemetry.gpuTemperature && ( +
+

GPU TEMP

+

+ {telemetry.gpuTemperature.toFixed(1)}°C +

+
+ )} +
-
+ + + )} )} diff --git a/app/components/Sidebar.tsx b/app/components/Sidebar.tsx index e369384..c194ff5 100644 --- a/app/components/Sidebar.tsx +++ b/app/components/Sidebar.tsx @@ -16,8 +16,11 @@ interface SidebarProps { onToggleSubmenu: () => void isCreateMode: boolean isDestroyMode: boolean + activeView: 'overview' | 'settings' | 'sandboxes' onCreateClick: () => void onDestroyClick: () => void + onOverviewClick: () => void + onSettingsClick: () => void onExitMode: () => void } @@ -29,8 +32,11 @@ export default function Sidebar({ onToggleSubmenu, isCreateMode, isDestroyMode, + activeView, onCreateClick, onDestroyClick, + onOverviewClick, + onSettingsClick, onExitMode }: SidebarProps) { const [sandboxes, setSandboxes] = useState([]) @@ -158,14 +164,26 @@ export default function Sidebar({ )} - -