Add cluster overview landing page

Add an Overview page at / (top of the sidebar, filling the previously
blank root route) summarising the cluster: hosts connected, instances
running, users online, aggregate CPU/memory/disk usage, controller
uptime, a recent-errors panel (LogConsole), and a link to Grafana when
configured. Each card is gated by the relevant permission.

Adds a controller.grafana_url config field, read on the page via
ControllerConfigGetRequest, for the Grafana link.

Closes #928.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
bbassieandClaude Opus 4.8 committed 2026-06-25 01:21:17 +00:00
1 parent 9e727f9a13
commit 79c6bd1ac4
3 files changed
+146

No files matched your search

+6
View File
@@ -2,6 +2,7 @@ import React, { ReactElement } from "react";
import { PluginPage, UserAccount } from "./BaseWebPlugin";
import OverviewPage from "./components/OverviewPage";
import ControllerPage from "./components/ControllerPage";
import HostsPage from "./components/HostsPage";
import HostViewPage from "./components/HostViewPage";
@@ -21,6 +22,11 @@ import IconReferencePage from "./components/IconReferencePage";
// When adding or editing page paths here the corresponding webRoutes entry
// in packages/controller/src/routes.ts also needs to be updated.
export const pages: PluginPage[] = [
{
path: "/",
sidebarName: "Overview",
content: <OverviewPage />,
},
{
path: "/controller",
sidebarName: "Controller",