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

+6 -3
View File
@@ -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<string, Placed>; 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() {
) : (
<>
<p className="text-secondary">
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.{" "}
<Link to="/dependencies">Edit dependencies</Link>
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.
</p>
<DependencyMap />
<h3 className="mt-4 mb-2">Say what needs what</h3>
<DependencyEditor user={user} />
</>
)}
</>