From 2fc3972ddd7f80556c2971b5a154f30ac78fdeac Mon Sep 17 00:00:00 2001 From: Lyon <88232613+pikasTech@users.noreply.github.com> Date: Thu, 4 Jun 2026 17:47:56 +0800 Subject: [PATCH] fix(v02): compact workbench status panels (#838) Co-authored-by: Codex Agent --- web/hwlab-cloud-web/src/App.tsx | 10 +- .../device-pod/DevicePodSidebar.tsx | 4 - .../src/components/shared/StateTag.tsx | 10 +- .../src/components/shared/WorkbenchDialog.tsx | 29 ++ .../workbench/WorkbenchBuildSummary.tsx | 252 ++++++++++++++---- .../components/workbench/WorkbenchProbe.tsx | 56 ++-- .../src/services/api/client.ts | 2 + web/hwlab-cloud-web/src/state/workbench.ts | 8 +- web/hwlab-cloud-web/src/styles/workbench.css | 37 ++- web/hwlab-cloud-web/src/types/domain.ts | 4 + web/hwlab-cloud-web/src/types/live-builds.ts | 48 ++++ 11 files changed, 377 insertions(+), 83 deletions(-) create mode 100644 web/hwlab-cloud-web/src/components/shared/WorkbenchDialog.tsx create mode 100644 web/hwlab-cloud-web/src/types/live-builds.ts diff --git a/web/hwlab-cloud-web/src/App.tsx b/web/hwlab-cloud-web/src/App.tsx index d864670b..b718d56f 100644 --- a/web/hwlab-cloud-web/src/App.tsx +++ b/web/hwlab-cloud-web/src/App.tsx @@ -16,6 +16,8 @@ import { SessionSidebar } from "./components/sessions/SessionSidebar"; import { SettingsView } from "./components/settings/SettingsView"; import { SkillsView } from "./components/skills/SkillsView"; import { GateView } from "./components/gate/GateView"; +import { WorkbenchBuildSummary } from "./components/workbench/WorkbenchBuildSummary"; +import { WorkbenchProbe } from "./components/workbench/WorkbenchProbe"; import { fetchText } from "./services/api/client"; import { firstNonEmptyString } from "./utils"; @@ -127,8 +129,14 @@ export function App(): ReactElement {
- {routeLabels[route]} + {routeLabels[route]} {store.state.chatPending ? "处理中" : modelLabel} + {workspaceRoute ? ( +
+ + +
+ ) : null}
diff --git a/web/hwlab-cloud-web/src/components/device-pod/DevicePodSidebar.tsx b/web/hwlab-cloud-web/src/components/device-pod/DevicePodSidebar.tsx index c788ce49..cd98cbd3 100644 --- a/web/hwlab-cloud-web/src/components/device-pod/DevicePodSidebar.tsx +++ b/web/hwlab-cloud-web/src/components/device-pod/DevicePodSidebar.tsx @@ -5,8 +5,6 @@ import { devicePodsFromLive } from "../../state/workbench"; import type { DevicePodEvent, DevicePodInterface, DevicePodItem, DevicePodStatusResponse, LiveSurface } from "../../types/domain"; import { formatTimestamp, jsonPreview, shortToken, toneClass } from "../../utils"; import { StateTag } from "../shared/StateTag"; -import { WorkbenchBuildSummary } from "../workbench/WorkbenchBuildSummary"; -import { WorkbenchProbe } from "../workbench/WorkbenchProbe"; interface DevicePodSidebarProps { live: LiveSurface | null; @@ -26,8 +24,6 @@ export function DevicePodSidebar({ live, selectedDevicePodId, onSelect, collapse return (