Phone card layout, status symbols, breadcrumbs, integration cards and server trends
Tables stack into labelled cards on a phone. Green, red and amber badges carry a check, cross or triangle as well as their colour. Pages inside a menu group show a breadcrumb, with the thing's name on a server's page. Integrations are cards with an Open button and a live status (working, failing, not checked yet, disabled). Agent-reported servers keep a short history of load, memory and disk use (migration 0019, one sample per ten minutes for 35 days) and show it as a Trends card with a days-until-full forecast for a filling disk. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
617dc1ea2f
commit
9965d94036
22 files changed
+3000
-84
No files matched your search
@@ -126,6 +126,16 @@ export interface SecretInput {
|
||||
checkPort?: number | null;
|
||||
}
|
||||
|
||||
export interface ServerMetricSeries {
|
||||
metric: string;
|
||||
kind: "cpu" | "mem" | "disk";
|
||||
label: string;
|
||||
points: { t: string; v: number }[];
|
||||
latest: number | null;
|
||||
/** Disks only: the rate of change in points a day, and the days until full when it is rising. */
|
||||
trend: { perDay: number; daysToFull: number | null } | null;
|
||||
}
|
||||
|
||||
export interface IpamEntry {
|
||||
id: number;
|
||||
ipAddress: string;
|
||||
@@ -580,6 +590,8 @@ export interface IntegrationSummary {
|
||||
baseUrl: string;
|
||||
enabled: boolean;
|
||||
createdAt: string;
|
||||
/** How its latest calls have gone since the app started. Only present on the integrations list. */
|
||||
health?: { status: "ok" | "failing" | "unknown" | "disabled"; consecutiveFailures: number };
|
||||
}
|
||||
|
||||
export interface TailscaleDevice {
|
||||
@@ -1235,6 +1247,7 @@ export const api = {
|
||||
request<{ server: ServerRecord }>(`/api/servers/${id}`, { method: "PATCH", body: JSON.stringify(data) }),
|
||||
summary: () => request<ServerSummary>("/api/servers/summary"),
|
||||
detail: (id: number) => request<ServerDetail>(`/api/servers/${id}/detail`),
|
||||
metrics: (id: number, days: number) => request<{ days: number; series: ServerMetricSeries[] }>(`/api/servers/${id}/metrics?days=${days}`),
|
||||
remove: (id: number) => request<void>(`/api/servers/${id}`, { method: "DELETE" }),
|
||||
setTags: (id: number, tags: string[]) =>
|
||||
request<{ tags: string[] }>(`/api/servers/${id}/tags`, { method: "PUT", body: JSON.stringify({ tags }) }),
|
||||
|
||||
Reference in new issue
Block a user