Fold four pages into the pages they belong to; add a Backups menu group

Dependencies become a view of the Map (graph with the editor under it), Sessions the
'Signed in now' tab of Users, the Audit Log the 'Raw audit log' tab of the Change log, and the
Diagnostic Log the 'Call log' tab of Integrations (admins). Backup coverage and Proxmox Backup
move to a new Backups group. Old addresses redirect; a shared ViewTabs component does the tabs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-10-19 22:21:21 +02:00
1 parent 4e0c6927b2
commit 1432b148e9
19 files changed
+177 -102

No files matched your search

+31 -2
View File
@@ -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") => (
<ViewTabs
label="Change log view"
tabs={[
{ to: "/changes", label: "Readable", active: view === "changes" },
{ to: "/changes?view=audit", label: "Raw audit log", active: view === "audit" },
]}
/>
);
export default function ChangeLog() {
const [params] = useSearchParams();
if (params.get("view") === "audit") {
return (
<>
<div className="d-flex align-items-center mb-2">
<h2 className="page-title mb-0">Change log</h2>
</div>
{changeTabs("audit")}
<AuditLogView />
</>
);
}
return <ReadableChanges tabs={changeTabs("changes")} />;
}
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
</button>
</div>
{tabs}
<p className="text-secondary">
What changed and when: agents updated, settings changed, maintenance started and ended, dependencies edited, alerts raised and cleared. The <Link to="/audit-log">Audit Log</Link> 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.
</p>
<ErrorNotice error={error} />