From 30cd1c281598711993a94f4fbe8ad704de304cbd Mon Sep 17 00:00:00 2001 From: kenneth Date: Fri, 31 Oct 2025 01:45:32 +0000 Subject: [PATCH] feat(dashboard): reflect system up/down status Co-authored-by: Ona --- apps/dashboard/src/App.tsx | 30 ++++++++++++++++++++++++++---- apps/dashboard/src/beszel.ts | 1 + 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/apps/dashboard/src/App.tsx b/apps/dashboard/src/App.tsx index e12b8bc..4cda49b 100644 --- a/apps/dashboard/src/App.tsx +++ b/apps/dashboard/src/App.tsx @@ -597,12 +597,36 @@ function SystemTile({ ) } + let systemStatusContent: React.ReactNode + switch (beszelSystemsData.status) { + case "up": + systemStatusContent = ( +
+ +
+ ) + break + + case "down": + systemStatusContent = ( +
+

System offline

+
+ ) + break + } + return (

{displayName}

-
+

CPU

@@ -617,9 +641,7 @@ function SystemTile({

{beszelSystemsData.info.disk.toFixed(0).padStart(3, "0")}

-
- -
+ {systemStatusContent} ) } diff --git a/apps/dashboard/src/beszel.ts b/apps/dashboard/src/beszel.ts index a3fdc41..7e75d9b 100644 --- a/apps/dashboard/src/beszel.ts +++ b/apps/dashboard/src/beszel.ts @@ -16,6 +16,7 @@ const API_BASE_URL = getApiBaseUrl() // System Info export interface BeszelSystemInfo { name: string + status: "up" | "down" info: { cpu: number ram: number