Accessibility pass, command palette actions, row detail panel, server activity, map, wall display and setup guide
Accessibility: skip link, labelled landmarks, visible focus, page-change announcements, sortable headings as real buttons, every label tied to its field, named row checkboxes, and text contrast raised to 4.5:1 in both themes. Command palette: also runs actions (silence/end maintenance, theme, density, wall display, sign out) and is a proper dialog; g-then-letter shortcuts, "/" and "?". Row detail panel for six tables. Server Activity card, with the health check now recording offline/back-online and disk events in the audit log. Map page of hosts, servers, DNS names and monitors. Full-screen wall display. A getting-started checklist on the admin dashboard. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f7f5e1cd41
commit
57fd4f8c52
36 files changed
+2790
-210
No files matched your search
@@ -126,6 +126,33 @@ export interface SecretInput {
|
||||
checkPort?: number | null;
|
||||
}
|
||||
|
||||
export interface MapNode {
|
||||
id: string;
|
||||
kind: "host" | "server" | "dns" | "monitor";
|
||||
label: string;
|
||||
sub: string | null;
|
||||
status: "ok" | "bad" | "warn" | "unknown";
|
||||
href: string | null;
|
||||
}
|
||||
|
||||
export interface MapData {
|
||||
nodes: MapNode[];
|
||||
edges: { from: string; to: string }[];
|
||||
/** Things that couldn't be read, so the picture is incomplete. */
|
||||
notes: string[];
|
||||
}
|
||||
|
||||
export interface ServerActivityEvent {
|
||||
/** ISO. */
|
||||
at: string;
|
||||
kind: "change" | "health" | "maintenance";
|
||||
tone: "good" | "bad" | "neutral" | "info";
|
||||
title: string;
|
||||
detail: string | null;
|
||||
/** Who did it; "system" for the app's own checks. */
|
||||
actor: string | null;
|
||||
}
|
||||
|
||||
export interface ServerMetricSeries {
|
||||
metric: string;
|
||||
kind: "cpu" | "mem" | "disk";
|
||||
@@ -1154,6 +1181,9 @@ export const api = {
|
||||
importNames: (sex: "girls" | "boys", years: number, count: number) =>
|
||||
request<NameImportPreview>("/api/generator/themes/import", { method: "POST", body: JSON.stringify({ sex, years, count }) }),
|
||||
},
|
||||
map: {
|
||||
get: () => request<MapData>("/api/map"),
|
||||
},
|
||||
alerts: {
|
||||
list: (refresh = false) => request<AlertsReport>(`/api/alerts${refresh ? "?refresh=1" : ""}`),
|
||||
},
|
||||
@@ -1251,6 +1281,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`),
|
||||
activity: (id: number) => request<{ events: ServerActivityEvent[] }>(`/api/servers/${id}/activity`),
|
||||
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[]) =>
|
||||
|
||||
Reference in new issue
Block a user