diff --git a/web/src/pages/StatusPage.tsx b/web/src/pages/StatusPage.tsx index ab5e8f011..3c213b5cb 100644 --- a/web/src/pages/StatusPage.tsx +++ b/web/src/pages/StatusPage.tsx @@ -12,6 +12,7 @@ import { RotateCw, Wifi, WifiOff, + Wrench, X, } from "lucide-react"; import { Cell, Grid } from "@nous-research/ui"; @@ -265,7 +266,7 @@ export default function StatusPage() { )} - + {items.map(({ icon: Icon, label, value, badgeText, badgeVariant }) => ( ))} - - - - {t.status.actions} - + +
+ + {t.status.actions} + + +
- -
+
+ + - {activeAction && ( -
-
-
- {actionStatus?.running ? ( - - ) : actionStatus?.exit_code === 0 ? ( - - ) : actionStatus !== null ? ( - - ) : ( - - )} + {activeAction && ( +
+
+
+ {actionStatus?.running ? ( + + ) : actionStatus?.exit_code === 0 ? ( + + ) : actionStatus !== null ? ( + + ) : ( + + )} - - {activeAction === "restart" - ? t.status.restartGateway - : t.status.updateHermes} - + + {activeAction === "restart" + ? t.status.restartGateway + : t.status.updateHermes} + - - {actionStatus?.running - ? t.status.running - : actionStatus?.exit_code === 0 - ? t.status.actionFinished - : actionStatus - ? `${t.status.actionFailed} (${actionStatus.exit_code ?? "?"})` - : t.common.loading} - -
- - -
- -
-                {actionStatus?.lines && actionStatus.lines.length > 0
-                  ? actionStatus.lines.join("\n")
-                  : t.status.waitingForOutput}
-              
+ {actionStatus?.running + ? t.status.running + : actionStatus?.exit_code === 0 + ? t.status.actionFinished + : actionStatus + ? `${t.status.actionFailed} (${actionStatus.exit_code ?? "?"})` + : t.common.loading} +
- )} - - + + +
+ +
+            {actionStatus?.lines && actionStatus.lines.length > 0
+              ? actionStatus.lines.join("\n")
+              : t.status.waitingForOutput}
+          
+
+ )} {platforms.length > 0 && (