Server lines: add the fullest disk over a week, and lines in the admin table

Each server card shows its fullest disk over the last week under the load and
memory lines (a disk moves too slowly to show in a day), and the Manage
servers table has a Load and disk column with all three side by side.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-11-12 23:27:40 +01:00
1 parent 4f077d4f4a
commit 168d01dc7b
7 files changed
+103 -25

No files matched your search

+2 -2
View File
@@ -4355,8 +4355,8 @@ export const api = {
},
servers: {
list: () => request<{ servers: ServerRecord[]; agentLatest: AgentLatest; agentAutoUpdate: boolean }>("/api/servers"),
/** The last day's load and memory of each server that reports them, for the lines in the list. */
sparklines: () => request<{ hours: number; servers: Record<number, { cpu?: SparkSeries; mem?: SparkSeries }> }>("/api/servers/sparklines"),
/** The last day's load and memory of each server that reports them, and its fullest disk over the last week, for the lines in the list. */
sparklines: () => request<{ hours: number; servers: Record<number, { cpu?: SparkSeries; mem?: SparkSeries; disk?: SparkSeries & { mount: string; days: number } }> }>("/api/servers/sparklines"),
setAgentAutoUpdate: (autoUpdate: boolean) => request<{ autoUpdate: boolean }>("/api/servers/agent-update", { method: "PUT", body: JSON.stringify({ autoUpdate }) }),
create: (data: { name: string; hostname?: string; description?: string; osType?: "linux" | "windows" }) =>
request<{ server: ServerRecord; token: string }>("/api/servers", {