UniFi: servers plugged into switches; server page in sections; My work; settings search and undo
UniFi: the controller's client list is matched to servers by IP address, so a server is connected through a switch or access point (and port). That is a dependency made by itself, shown on the server page, the Network devices page and the Connections map. IP Addresses can sync the devices' addresses. A server's page is split into Overview, Health, Network, History, Tasks and Settings, by ?view=; alerts link to the section they are about. My work lists what has your name on it: alerts you have, maintenance you started (extend, end with undo) and update runs you started, with a badge. Settings has a search box (and the command palette lists every setting). Removing a dependency, admin link, runbook, hand-made IP address, port opening or restore test is undone from the message instead of asked about first. Two backup tests used a fixed date and failed as days passed; they follow the real clock now. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
396e074108
commit
5e26e77340
45 files changed
+6224
-194
No files matched your search
+17
-1
@@ -276,7 +276,7 @@ export interface SecretInput {
|
||||
|
||||
export interface MapNode {
|
||||
id: string;
|
||||
kind: "host" | "server" | "dns" | "monitor";
|
||||
kind: "host" | "server" | "dns" | "monitor" | "device";
|
||||
label: string;
|
||||
sub: string | null;
|
||||
status: "ok" | "bad" | "warn" | "unknown";
|
||||
@@ -1156,6 +1156,14 @@ export interface DependenciesResponse {
|
||||
nodes: DependencyNode[];
|
||||
}
|
||||
|
||||
/** What one person has taken on (GET /api/my-work). */
|
||||
export interface MyWork {
|
||||
alerts: { alertId: string; message: string; severity: string; source: string; link: string | null; note: string; role: "handed" | "acked"; ackedBy: string; ackedAt: string; until: string | null; endsSoon: boolean }[];
|
||||
windows: { id: number; targetType: string; targetId: number; targetName: string; targetKind: string; reason: string | null; startedAt: string; endsAt: string; endsSoon: boolean }[];
|
||||
updateRuns: { id: number; serverId: number; serverName: string; templateName: string; status: string; message: string | null; startedAt: string; finishedAt: string | null; running: boolean; updatesBefore: number | null; updatesAfter: number | null; rebootRequired: boolean }[];
|
||||
needsAttention: number;
|
||||
}
|
||||
|
||||
export type NetworkDeviceKind = "gateway" | "switch" | "access_point" | "other";
|
||||
export type NetworkDeviceState = "online" | "offline" | "updating" | "pending" | "other";
|
||||
|
||||
@@ -1183,6 +1191,8 @@ export interface NetworkDevice {
|
||||
dependents: number;
|
||||
needs: number;
|
||||
inMaintenance: boolean;
|
||||
/** The servers plugged into it, as the controller says. */
|
||||
servers: { serverId: number; serverName: string; port: number | null; wired: boolean }[];
|
||||
}
|
||||
|
||||
/** A network (VLAN) or a Wi-Fi name a controller has set up. */
|
||||
@@ -1215,6 +1225,8 @@ export interface UnifiSyncStatus {
|
||||
}
|
||||
|
||||
export interface NetworkOverview {
|
||||
/** Which server is plugged into which device. */
|
||||
serverLinks: { serverId: number; serverName: string; deviceId: number; deviceName: string; port: number | null; wired: boolean }[];
|
||||
integrations: { id: number; name: string; enabled: boolean; status: UnifiSyncStatus | null }[];
|
||||
devices: NetworkDevice[];
|
||||
networks: NetworkSegment[];
|
||||
@@ -2223,6 +2235,9 @@ export const api = {
|
||||
request<{ minSeverity: string | null; categories: AlertCategory[] | null }>(`/api/push/${id}`, { method: "PATCH", body: JSON.stringify(data) }),
|
||||
test: () => request<{ sent: number; removed: number; failed: number }>("/api/push/test", { method: "POST" }),
|
||||
},
|
||||
myWork: {
|
||||
get: () => request<MyWork>("/api/my-work"),
|
||||
},
|
||||
network: {
|
||||
overview: () => request<NetworkOverview>("/api/network"),
|
||||
sync: (integrationId?: number) => request<{ statuses: Record<number, UnifiSyncStatus> }>("/api/network/sync", { method: "POST", body: JSON.stringify(integrationId ? { integrationId } : {}) }),
|
||||
@@ -2360,6 +2375,7 @@ export const api = {
|
||||
syncTailscale: () => request<IpamSyncResult>("/api/ipam/sync-tailscale", { method: "POST" }),
|
||||
syncProxmox: () => request<IpamSyncResult>("/api/ipam/sync-proxmox", { method: "POST" }),
|
||||
syncPhpIpam: () => request<IpamSyncResult>("/api/ipam/sync-phpipam", { method: "POST" }),
|
||||
syncUnifi: () => request<IpamSyncResult>("/api/ipam/sync-unifi", { method: "POST" }),
|
||||
},
|
||||
generator: {
|
||||
themes: () => request<{ themes: NameTheme[]; builtinIds: string[] }>("/api/generator/themes"),
|
||||
|
||||
Reference in new issue
Block a user