diff --git a/NOTIFICATIONS.md b/NOTIFICATIONS.md index 3f8b8a8..94e47b3 100644 --- a/NOTIFICATIONS.md +++ b/NOTIFICATIONS.md @@ -229,7 +229,7 @@ the app alerts on something: test") send a one-off message through that one channel only, to confirm it's wired up correctly — not a real event and not affected by quiet hours. -- **Consistency reports**, **Diagnostic Log**, and **Audit Log** are all +- **Consistency reports**, the **Diagnostic Log** (Integrations → Call log), and the **Audit Log** (Change log → Raw audit log) are all read-only views you check yourself; none of them push a notification on their own (the Diagnostic Log's failures are what feed the integration-down alert above, but reading the log itself never diff --git a/README.md b/README.md index b927548..d76c47b 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Authentik (OIDC), with local admin/operator/viewer roles. All modules from the original plan are built: -- Monorepo scaffold, Tabler-themed app shell with a grouped sidebar (Infrastructure, Network, Monitoring, Automation, Operations, Administration; groups open on demand, the one holding the current page is always open, and what you leave open is remembered) +- Monorepo scaffold, Tabler-themed app shell with a grouped sidebar (Infrastructure, Backups, Network, Monitoring, Automation, Operations, Administration; groups open on demand, the one holding the current page is always open, and what you leave open is remembered) - Authentik OIDC login, roles (first user to sign in becomes admin), audit log (changes made in the app, sign-ins and sign-outs with the IP they came from, new accounts, and the log's own automatic trimming — attributed to "system"; settings changes show what changed, but never credentials) @@ -47,7 +47,7 @@ All modules from the original plan are built: stored snapshots have failed verification or were never verified. The osTicket widget shows how many tickets are open, overdue, and awaiting a staff reply. -- **Diagnostic Log** (admin-only) — every call this app makes to a DNS +- **Diagnostic Log** (admin-only; Administration → Integrations → *Call log*) — every call this app makes to a DNS provider or integration (Tailscale, Proxmox, Synology, Semaphore, Gitea, Dockhand, Uptime Kuma, Proxmox Backup Server, osTicket), success or failure, with latency and the error message if it failed — the last 500 calls, filterable by source/result, for @@ -254,7 +254,7 @@ audit log (as `session` / `login_failed`, with the address and a short reason), Every response carries `frame-ancestors 'none'`, `X-Frame-Options`, `nosniff` and a no-referrer-to-other-sites policy. In production the app refuses to start without a `SESSION_SECRET`, and warns if it is still the placeholder from `.env.example`. Things to know: the first account to sign in becomes admin, so sign in yourself first on a new install. A session lasts up to 7 days after last use, -and disabling someone in Authentik does not end it — delete them on the Users page (or revoke the session on the Sessions page) and it ends at once. +and disabling someone in Authentik does not end it — delete them on the Users page (or end the session under Users → *Signed in now*) and it ends at once. If Authentik uses a certificate from an internal CA, point Node at the CA with `NODE_EXTRA_CA_CERTS=/path/to/ca.pem` rather than turning verification off with `NODE_TLS_REJECT_UNAUTHORIZED=0`. @@ -402,7 +402,7 @@ devices, Uptime Kuma monitors, Gitea repositories or Semaphore templates, a click (or Enter) on a row opens a panel with everything known about it, without leaving the table. -**Map** (Infrastructure → Map) draws how things connect: which Proxmox host each +**Map** (Infrastructure → Map) has two views, *Connections* and *Dependencies* (see below). *Connections* draws how things connect: which Proxmox host each linked server runs on, which DNS names point at it (an A or AAAA record holding one of the server's own addresses — nothing is guessed from names), and which Uptime Kuma monitors watch it. Hover or tab to a box to light up its @@ -445,9 +445,9 @@ kept, `/metrics` has each subject's age and result, and everything is in the cha **The change log** (Operations → Change log, operators and administrators) is one list of what has changed, newest first and grouped by day: agents updated, settings changed (with what to what), maintenance started and ended, dependencies edited, hardware added, endpoint checks and restore tests, alerts raised and cleared — each as a sentence. Narrow it by kind of change, by server, by how far back (a day to everything kept), or by a word; "Show older" goes on from where it stopped; CSV -export. A server's Activity card links to its slice of it. Sign-ins and people's own data exports aren't changes and are left out. The Audit Log remains the raw table. +export. A server's Activity card links to its slice of it. Sign-ins and people's own data exports aren't changes and are left out. The raw audit log is the other tab of the same page (Change log → *Raw audit log*). -**Dependencies beyond servers** (Infrastructure → Dependencies). Say that Gitea needs the server it is installed on, or that a server +**Dependencies beyond servers** (Infrastructure → Map → *Dependencies*, which draws the graph with the editor under it). Say that Gitea needs the server it is installed on, or that a server needs Proxmox to answer. When what is needed is down, the alert of what needs it is folded under the first one exactly like a guest under its host — shown, labelled "caused by …", left out of notifications and tickets — and the root cause says what else it takes down. It follows chains and the "runs on" links of servers; something needing two things is explained by whichever is down; @@ -597,7 +597,7 @@ every few hours, with each day as an all-day event and maintenance with its star calendar; *with names* also gives the name and a link back. Like any share link the address is shown once and can be removed. Tailscale keys are asked for at most every ten minutes, and only those the integration reports as expiring soon are listed. -**Backup coverage** (Infrastructure → Backup coverage) answers "what isn't backed +**Backup coverage** (Backups → Backup coverage) answers "what isn't backed up?" for every Proxmox guest: is a backup job covering it, when was it last backed up (from the newest snapshot on a Proxmox Backup Server, or the last successful Proxmox backup task that names the guest), and did that go well — Recent backup, Stale (older diff --git a/ROLES.md b/ROLES.md index 85af711..317a615 100644 --- a/ROLES.md +++ b/ROLES.md @@ -26,7 +26,7 @@ page's own top-level link. | Proxmox Backup | `/pbs` | ✅ | ✅ | ✅ | | Backup coverage | `/backups` | ✅ | ✅ | ✅ | | Inventory | `/inventory` | ✅ | ✅ | ✅ | -| Dependencies | `/dependencies` | ✅ | ✅ | ✅ | +| Dependencies (Map → Dependencies) | `/map?view=dependencies` | ✅ | ✅ | ✅ | | Endpoints | `/endpoints` | ✅ | ✅ | ✅ | | Change log | `/changes` | — | ✅ | ✅ | | Docker | `/docker` | ✅ | ✅ | ✅ | @@ -52,15 +52,16 @@ page's own top-level link. | **Administration** | | | | | | Integrations | `/integrations` | ✅ | ✅ | ✅ | | Users | `/users` | ❌ | ❌ | ✅ | -| Sessions | `/sessions` | ❌ | ❌ | ✅ | -| Audit Log | `/audit-log` | ❌ | ✅ | ✅ | -| Diagnostic Log | `/diag-log` | ❌ | ❌ | ✅ | +| Sessions (Users → Signed in now) | `/users?view=sessions` | ❌ | ❌ | ✅ | +| Audit Log (Change log → Raw audit log) | `/changes?view=audit` | ❌ | ✅ | ✅ | +| Diagnostic Log (Integrations → Call log) | `/integrations?view=calls` | ❌ | ❌ | ✅ | | Settings | `/settings` | ❌ | ❌ | ✅ | | Privacy (footer link, not in a group) | `/privacy` | ✅ | ✅ | ✅ | So in practice: **every page is visible to every role except the five -under Administration** — Users, Sessions, and Diagnostic Log need admin; -Audit Log needs operator or admin; Settings needs admin. +under Administration** — Users (with Signed in now) and Settings need admin; the +Call log tab of Integrations needs admin (operators and viewers see Integrations without it); the raw audit log, a tab of the Change log, needs operator or admin. +Sessions, the Audit Log, the Diagnostic Log and Dependencies were pages of their own once; their old addresses redirect to the sections above. ## Being able to see a page isn't the same as being able to change things diff --git a/server/src/services/changeLog.ts b/server/src/services/changeLog.ts index 27d4f15..1d061ac 100644 --- a/server/src/services/changeLog.ts +++ b/server/src/services/changeLog.ts @@ -262,7 +262,7 @@ export async function getChangeLog(query: ChangeQuery = {}): Promise<{ entries: } else if (a.targetType === "heartbeat") link = "/heartbeats"; else if (a.targetType === "asset" && idNum !== null) link = `/inventory?asset=${idNum}`; else if (a.targetType === "restore_test") link = "/backups"; - else if (a.targetType === "dependency") link = "/dependencies"; + else if (a.targetType === "dependency") link = "/map?view=dependencies"; else if (a.targetType === "settings") link = "/settings/notifications"; entries.push({ detail, diff --git a/web/src/App.tsx b/web/src/App.tsx index 7788329..b89fd91 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -4,9 +4,6 @@ import { api, type CurrentUser, type UserRole, UnauthorizedError } from "./api/c import Login from "./pages/Login"; import Dashboard from "./pages/Dashboard"; import Users from "./pages/Users"; -import Sessions from "./pages/Sessions"; -import AuditLog from "./pages/AuditLog"; -import DiagLog from "./pages/DiagLog"; import Secrets from "./pages/Secrets"; import Ipam from "./pages/Ipam"; import Ports from "./pages/Ports"; @@ -33,7 +30,6 @@ import IncidentDetail from "./pages/IncidentDetail"; import Inventory from "./pages/Inventory"; import InventoryLabels from "./pages/InventoryLabels"; import InventoryLifecycle from "./pages/InventoryLifecycle"; -import Dependencies from "./pages/Dependencies"; import Endpoints from "./pages/Endpoints"; import Heartbeats from "./pages/Heartbeats"; import ComingUp from "./pages/ComingUp"; @@ -143,7 +139,7 @@ function Shelled({ user }: { user: CurrentUser }) { } /> - } /> + } /> } /> } /> } /> @@ -161,7 +157,11 @@ function Shelled({ user }: { user: CurrentUser }) { } /> } /> } /> - } /> + {/* These were pages of their own; they are sections of other pages now, and old links, bookmarks and notifications still arrive. */} + } /> + } /> + } /> + } /> } /> } /> } /> @@ -190,30 +190,6 @@ function Shelled({ user }: { user: CurrentUser }) { } /> - - - - } - /> - - - - } - /> - - - - } - />
- Nothing depends on anything yet. Say what needs what on the Dependencies page, or set which server another runs on, and it is drawn here. + Nothing depends on anything yet. Say what needs what below, or set which server another runs on, and it is drawn here.
); diff --git a/web/src/components/ViewTabs.tsx b/web/src/components/ViewTabs.tsx new file mode 100644 index 0000000..df62cae --- /dev/null +++ b/web/src/components/ViewTabs.tsx @@ -0,0 +1,19 @@ +import { Link } from "react-router-dom"; + +/** + * Tabs that switch what one page shows (Alerts: Now / History, Users: People / Signed in now …). Each is a link to the same page with a `?view=`, + * so the view can be linked to and the back button works. + */ +export default function ViewTabs({ label, tabs }: { label: string; tabs: { to: string; label: string; active: boolean }[] }) { + return ( +
    + {tabs.map((t) => ( +
  • + + {t.label} + +
  • + ))} +
+ ); +} diff --git a/web/src/components/WhatChanged.tsx b/web/src/components/WhatChanged.tsx index d37251c..0ca8575 100644 --- a/web/src/components/WhatChanged.tsx +++ b/web/src/components/WhatChanged.tsx @@ -90,7 +90,7 @@ export default function WhatChanged({ role }: { role: UserRole }) { {summary.moreEvents > 0 && <>and {summary.moreEvents} more. } {others > 0 && ( <> - {others} change{others === 1 ? "" : "s"} made by other people — see the audit log. + {others} change{others === 1 ? "" : "s"} made by other people — see the audit log. )} diff --git a/web/src/layout/nav.tsx b/web/src/layout/nav.tsx index 1fcdb77..9bec775 100644 --- a/web/src/layout/nav.tsx +++ b/web/src/layout/nav.tsx @@ -13,9 +13,6 @@ import { IconServerCog, IconDatabase, IconUsers, - IconDevices, - IconHistory, - IconStethoscope, IconSettings, IconWand, IconTool, @@ -24,7 +21,6 @@ import { IconRefresh, IconDownload, IconBox, - IconHierarchy2, IconHeartbeat, IconGitCommit, IconShieldCheck, @@ -74,16 +70,22 @@ export const NAV: NavEntry[] = [ { to: "/servers", label: "Servers", icon: }, { to: "/proxmox", label: "Proxmox", icon: }, { to: "/synology", label: "Synology", icon: }, - { to: "/pbs", label: "Proxmox Backup", icon: }, { to: "/docker", label: "Docker", icon: }, { to: "/tailscale", label: "Tailscale", icon: }, - { to: "/backups", label: "Backup coverage", icon: }, { to: "/map", label: "Map", icon: }, { to: "/inventory", label: "Inventory", icon: }, - { to: "/dependencies", label: "Dependencies", icon: }, { to: "/admin-links", label: "Admin Links", icon: }, ], }, + { + id: "backups", + label: "Backups", + icon: , + items: [ + { to: "/backups", label: "Backup coverage", icon: }, + { to: "/pbs", label: "Proxmox Backup", icon: }, + ], + }, { id: "network", label: "Network", @@ -137,9 +139,6 @@ export const NAV: NavEntry[] = [ { to: "/integrations", label: "Integrations", icon: }, { to: "/generator", label: "Generator", icon: }, { to: "/users", label: "Users", icon: , minRole: "admin" }, - { to: "/sessions", label: "Sessions", icon: , minRole: "admin" }, - { to: "/audit-log", label: "Audit Log", icon: , minRole: "operator" }, - { to: "/diag-log", label: "Diagnostic Log", icon: , minRole: "admin" }, { to: "/settings", label: "Settings", icon: , minRole: "admin" }, ], }, diff --git a/web/src/pages/Alerts.tsx b/web/src/pages/Alerts.tsx index cd371e1..b33234a 100644 --- a/web/src/pages/Alerts.tsx +++ b/web/src/pages/Alerts.tsx @@ -19,6 +19,7 @@ import { useAlertsReport } from "../hooks/useAlertsReport"; import { summariseAlerts } from "../utils/alertSummary"; import { EmptyRow } from "../components/EmptyState"; import IncidentHistory, { incidentPath } from "../components/IncidentHistory"; +import ViewTabs from "../components/ViewTabs"; const SEVERITY: Record = { critical: { label: "Critical", badge: "bg-red-lt text-red", rank: 0 }, @@ -42,22 +43,15 @@ const CATEGORY_LABELS: Record = { type Row = AlertItem & { rank: number }; /** Now and History: what is wrong right now, and every time something was raised and went away. The same page, switched by `?view=history`. */ -function ViewTabs({ view }: { view: "now" | "history" }) { - return ( -
    -
  • - - Now - -
  • -
  • - - History - -
  • -
- ); -} +const alertTabs = (view: "now" | "history") => ( + +); export default function Alerts({ user }: { user: CurrentUser }) { const [params] = useSearchParams(); @@ -67,12 +61,12 @@ export default function Alerts({ user }: { user: CurrentUser }) {

Alerts

- + {alertTabs("history")} ); } - return } />; + return ; } function AlertsNow({ user, tabs }: { user: CurrentUser; tabs: React.ReactNode }) { diff --git a/web/src/pages/ChangeLog.tsx b/web/src/pages/ChangeLog.tsx index 15d8ae5..6de32ca 100644 --- a/web/src/pages/ChangeLog.tsx +++ b/web/src/pages/ChangeLog.tsx @@ -1,7 +1,9 @@ -import { useEffect, useState } from "react"; +import { useEffect, useState, type ReactNode } from "react"; import { Link, useSearchParams } from "react-router-dom"; import { api, type ChangeEntry, type ChangeKind } from "../api/client"; import { ErrorNotice } from "../components/Notice"; +import ViewTabs from "../components/ViewTabs"; +import AuditLogView from "../views/AuditLogView"; import { BlockSkeleton } from "../components/Skeleton"; import EmptyState from "../components/EmptyState"; import { downloadCsv } from "../utils/csv"; @@ -24,7 +26,33 @@ const PAGE = 100; * What has changed, in one list: agents updated, settings changed, maintenance started, dependencies edited, alerts raised and cleared — each as a * sentence, newest first, grouped by day. Narrow it to a kind of change, a server, a stretch of time or a word. The Audit Log is the raw table behind it. */ +const changeTabs = (view: "changes" | "audit") => ( + +); + export default function ChangeLog() { + const [params] = useSearchParams(); + if (params.get("view") === "audit") { + return ( + <> +
+

Change log

+
+ {changeTabs("audit")} + + + ); + } + return ; +} + +function ReadableChanges({ tabs }: { tabs: ReactNode }) { const [params, setParams] = useSearchParams(); const days = RANGES.some((r) => r.days === Number(params.get("days"))) ? Number(params.get("days")) : 7; const kind = params.get("kind") ?? ""; @@ -121,8 +149,9 @@ export default function ChangeLog() { Export CSV + {tabs}

- What changed and when: agents updated, settings changed, maintenance started and ended, dependencies edited, alerts raised and cleared. The Audit Log is the raw table behind it. + What changed and when: agents updated, settings changed, maintenance started and ended, dependencies edited, alerts raised and cleared. The raw table behind it is the other tab.

diff --git a/web/src/pages/Integrations.tsx b/web/src/pages/Integrations.tsx index 4ae5b6a..e69f591 100644 --- a/web/src/pages/Integrations.tsx +++ b/web/src/pages/Integrations.tsx @@ -1,7 +1,9 @@ -import { useEffect, useState, type CSSProperties } from "react"; +import { useEffect, useState, type CSSProperties, type ReactNode } from "react"; import { Link, useSearchParams } from "react-router-dom"; import { api, type CurrentUser, type IntegrationSummary, type IntegrationType } from "../api/client"; import IntegrationForm from "../components/IntegrationForm"; +import ViewTabs from "../components/ViewTabs"; +import DiagLogView from "../views/DiagLogView"; import IntegrationEditForm from "../components/IntegrationEditForm"; import TableToolbar from "../components/TableToolbar"; import { useTableSearch } from "../hooks/useTableSearch"; @@ -73,7 +75,35 @@ function typeBadgeStyle(colors: Record, type: IntegrationType): return { backgroundColor: `${color}22`, color, border: `1px solid ${color}55` }; } +const integrationTabs = (view: "list" | "calls") => ( + +); + +/** The integrations, and — for administrators — the log of every call made to them (`?view=calls`), where a connection is troubleshot. */ export default function Integrations({ user }: { user: CurrentUser }) { + const [params] = useSearchParams(); + const isAdmin = user.role === "admin"; + if (isAdmin && params.get("view") === "calls") { + return ( + <> +
+

Integrations

+
+ {integrationTabs("calls")} + + + ); + } + return ; +} + +function IntegrationsList({ user, tabs }: { user: CurrentUser; tabs: ReactNode }) { const isAdmin = user.role === "admin"; const isOperator = user.role === "admin" || user.role === "operator"; const [searchParams, setSearchParams] = useSearchParams(); @@ -171,6 +201,7 @@ export default function Integrations({ user }: { user: CurrentUser }) { )} + {tabs} {editingIntegration ? ( diff --git a/web/src/pages/Map.tsx b/web/src/pages/Map.tsx index 8f7a5fc..9459069 100644 --- a/web/src/pages/Map.tsx +++ b/web/src/pages/Map.tsx @@ -1,6 +1,8 @@ import { useEffect, useMemo, useState } from "react"; import { Link, useSearchParams } from "react-router-dom"; import DependencyMap from "../components/DependencyMap"; +import DependencyEditor from "../views/DependencyEditor"; +import type { CurrentUser } from "../api/client"; import { api, type MapData, type MapNode } from "../api/client"; import { ErrorNotice } from "../components/Notice"; import { PageSkeleton } from "../components/Skeleton"; @@ -75,7 +77,7 @@ function layout(data: MapData): { placed: Map; width: number; he } /** The picture: how the servers, their Proxmox hosts, DNS names and monitors connect. Hover or tab to a box to light up its connections. */ -export default function MapPage() { +export default function MapPage({ user }: { user: CurrentUser }) { const [params, setParams] = useSearchParams(); const view = params.get("view") === "dependencies" ? "dependencies" : "connections"; const choose = (v: "connections" | "dependencies") => @@ -107,10 +109,11 @@ export default function MapPage() { ) : ( <>

- What needs what: a server that runs on another, a service that needs the server it is installed on. Pick a box to see what would go down with it before you reboot it.{" "} - Edit dependencies + A server that runs on another, a service that needs the server it is installed on. Pick a box to see what would go down with it before you reboot it.

+

Say what needs what

+ )} diff --git a/web/src/pages/Privacy.tsx b/web/src/pages/Privacy.tsx index ec49e51..719529c 100644 --- a/web/src/pages/Privacy.tsx +++ b/web/src/pages/Privacy.tsx @@ -334,7 +334,7 @@ export default function Privacy() {
  • - Sign out to end your session now. Administrators can also end anyone's on the Sessions page. + Sign out to end your session now. Administrators can also end anyone's on the Users → Signed in now page.
  • Audit and diagnostic logs can be deleted automatically after a set number of days under Settings → Logs diff --git a/web/src/pages/Users.tsx b/web/src/pages/Users.tsx index 527079d..b9e5d03 100644 --- a/web/src/pages/Users.tsx +++ b/web/src/pages/Users.tsx @@ -1,5 +1,7 @@ -import { useEffect, useState } from "react"; -import { Link } from "react-router-dom"; +import { useEffect, useState, type ReactNode } from "react"; +import { Link, useSearchParams } from "react-router-dom"; +import ViewTabs from "../components/ViewTabs"; +import SessionsView from "../views/SessionsView"; import { api, type UserRecord, type UserRole } from "../api/client"; import { formatDateTime } from "../utils/date"; import { useSortable } from "../hooks/useSortable"; @@ -13,7 +15,34 @@ import Avatar from "../components/Avatar"; const ROLES: UserRole[] = ["viewer", "operator", "admin"]; +/** People and Signed in now: who has an account and what they may do, and who is signed in at this moment. Switched by `?view=sessions`. */ +const userTabs = (view: "people" | "sessions") => ( + +); + export default function Users() { + const [params] = useSearchParams(); + if (params.get("view") === "sessions") { + return ( + <> +
    +

    Users

    +
    + {userTabs("sessions")} + + + ); + } + return ; +} + +function People({ tabs }: { tabs: ReactNode }) { const [users, setUsers] = useState(null); const [error, setError] = useState(null); const [savingId, setSavingId] = useState(null); @@ -65,6 +94,7 @@ export default function Users() { Export CSV
+ {tabs} {followGroups && (
diff --git a/web/src/pages/AuditLog.tsx b/web/src/views/AuditLogView.tsx similarity index 94% rename from web/src/pages/AuditLog.tsx rename to web/src/views/AuditLogView.tsx index 84e40ad..9f28b3e 100644 --- a/web/src/pages/AuditLog.tsx +++ b/web/src/views/AuditLogView.tsx @@ -43,7 +43,8 @@ function detailSummary(e: AuditLogEntry): string { .join(" · "); } -export default function AuditLog() { +/** The raw audit table — the "Raw audit log" side of the Change log page. */ +export default function AuditLogView() { const [entries, setEntries] = useState(null); const [error, setError] = useState(null); @@ -70,7 +71,7 @@ export default function AuditLog() { return ( <>
-

Audit Log

+
The table behind the change log: every change made in the app, every sign-in and sign-out, with who did it and from where.
diff --git a/web/src/pages/Dependencies.tsx b/web/src/views/DependencyEditor.tsx similarity index 97% rename from web/src/pages/Dependencies.tsx rename to web/src/views/DependencyEditor.tsx index e4c4432..b3bf40a 100644 --- a/web/src/pages/Dependencies.tsx +++ b/web/src/views/DependencyEditor.tsx @@ -41,7 +41,7 @@ function NodeSelect({ id, label, nodes, value, onChange }: { id: string; label: * What needs what. When something is down, whatever depends on it is down too, and only the one that matters should raise the alarm — so the * alerts of the things that need it are folded under it, like a guest under its host. */ -export default function Dependencies({ user }: { user: CurrentUser }) { +export default function DependencyEditor({ user }: { user: CurrentUser }) { const canEdit = user.role === "admin" || user.role === "operator"; const [data, setData] = useState(null); const [error, setError] = useState(null); @@ -94,9 +94,6 @@ export default function Dependencies({ user }: { user: CurrentUser }) { return ( <> -
-

Dependencies

-

Say what needs what: Gitea needs the server it is installed on; a Proxmox guest needs the Proxmox it runs on. When the thing that is needed is down, what needs it is down too — and its alert is held back under the first one on the Alerts page instead of adding to the noise. A service that was down for its own reasons still alerts once what it needs is back. diff --git a/web/src/pages/DiagLog.tsx b/web/src/views/DiagLogView.tsx similarity index 96% rename from web/src/pages/DiagLog.tsx rename to web/src/views/DiagLogView.tsx index 4259e20..33ae813 100644 --- a/web/src/pages/DiagLog.tsx +++ b/web/src/views/DiagLogView.tsx @@ -25,7 +25,8 @@ const SOURCE_LABELS: Record = { const PAGE_SIZE = 100; -export default function DiagLog() { +/** Every call made to an integration or DNS provider — the "Call log" side of the Integrations page. */ +export default function DiagLogView() { const [entries, setEntries] = useState(null); const [total, setTotal] = useState(0); const [page, setPage] = useState(0); @@ -94,12 +95,8 @@ export default function DiagLog() { return ( <>

-
-

Diagnostic Log

-
- Every call this app makes to a DNS provider or integration — the last 500 calls are kept. Use this to - troubleshoot connectivity issues. -
+
+ Every call this app makes to a DNS provider or integration — the last 500 calls are kept. Use this to troubleshoot connectivity issues.