From d3d89648c543426bea7bb04f39c6c20bacd59e7f Mon Sep 17 00:00:00 2001 From: Bobban Rydh Date: Sun, 25 Oct 2026 23:32:17 +0100 Subject: [PATCH] Menu: osTicket into Operations, new Reference group Reference holds Map, Inventory, Admin Links and Generator, leaving Infrastructure with live systems only. Docs and UI text name the new locations. Co-Authored-By: Claude Sonnet 5.5 --- DATABASE.md | 2 +- README.md | 10 +++++----- server/src/routes/servers.ts | 2 +- server/src/services/nameThemes.ts | 2 +- web/src/layout/nav.tsx | 18 +++++++++++++----- web/src/pages/settings/NameSettings.tsx | 2 +- 6 files changed, 22 insertions(+), 14 deletions(-) diff --git a/DATABASE.md b/DATABASE.md index 57cd16d..f88000e 100644 --- a/DATABASE.md +++ b/DATABASE.md @@ -291,7 +291,7 @@ tasks added by hand. #### `server_links` Admin-page bookmarks for a server (Dockge, Webmin, Cockpit, …). Shown on the -server's page and summarised under Infrastructure → Admin Links. +server's page and summarised under Reference → Admin Links. | Column | Type | Notes | |---|---|---| diff --git a/README.md b/README.md index f13a913..ea3ca60 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,7 @@ All modules from the original plan are built: start/stop/restart buttons right on the detail page. The detail page also has an **Admin Links** section (operator/admin to add/edit/remove) for bookmarking that server's own admin UIs — Dockge, Webmin, Cockpit, Portainer, or anything else reachable - by URL. **Infrastructure → Admin Links** summarizes every server's admin links + by URL. **Reference → Admin Links** summarizes every server's admin links in one sortable, searchable table (server, label, URL, an "Open" link, and the same add/edit/delete as the per-server section — adding one here just asks which server it belongs to), so finding or managing one doesn't mean @@ -222,7 +222,7 @@ offered as one-click suggestions when tagging), give any tag a colour of your ch that already exists merges the two, and both rename and delete rewrite every server that carries the tag. -**Name generator** — Administration → Generator suggests server names (and usernames and +**Name generator** — Reference → Generator suggests server names (and usernames and passwords, which are made in your browser and never stored). Server names are picked from name lists: Swedish girl and boy names, Disney and Pixar characters, Norse mythology and Astrid Lindgren to start with, or "Mixed" for all of them together. A name already used @@ -405,7 +405,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) has two views, *Connections* and *Dependencies* (see below). *Connections* draws how things connect: which Proxmox host each +**Map** (Reference → 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 @@ -450,7 +450,7 @@ settings changed (with what to what), maintenance started and ended, dependencie 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 raw audit log is the other tab of the same page (Change log → *Raw audit log*). -**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 +**Dependencies beyond servers** (Reference → 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; @@ -675,7 +675,7 @@ digest and `/metrics`. The same place keeps the **services to ignore** on that s Host health card; and a card, **What the agent couldn't collect**, tells you why a figure is missing (no `smartctl`, an update check that didn't answer …) and what to do. See AGENT_UPDATE.md. -**Inventory** (Infrastructure → Inventory) keeps the hardware behind it all: name and +**Inventory** (Reference → Inventory) keeps the hardware behind it all: name and kind, maker, model, serial, where it sits (and rack unit), when it was bought and for how much, when its warranty ends, its typical power draw, and which server it is. Summary cards show how much is under warranty (and what ends within 90 days), the total diff --git a/server/src/routes/servers.ts b/server/src/routes/servers.ts index 817ac9f..ce06d48 100644 --- a/server/src/routes/servers.ts +++ b/server/src/routes/servers.ts @@ -249,7 +249,7 @@ serversRouter.get("/updates", asyncHandler(async (_req, res) => { }); })); -// For the Operations > Admin Links page — every server's admin bookmarks in one place, instead of visiting +// For the Reference > Admin Links page — every server's admin bookmarks in one place, instead of visiting // each server's own detail page to find them. serversRouter.get("/links", asyncHandler(async (_req, res) => { const rows = await db diff --git a/server/src/services/nameThemes.ts b/server/src/services/nameThemes.ts index 0bda819..78d9524 100644 --- a/server/src/services/nameThemes.ts +++ b/server/src/services/nameThemes.ts @@ -1,5 +1,5 @@ /** - * The name lists behind Administration → Generator's server-name picker. + * The name lists behind Reference → Generator's server-name picker. * * The built-in lists below are hand-picked, not taken from any official source — they're a starting point. Admins can * edit every list under Settings → Names, and can replace a Swedish list with real statistics from Skatteverket. diff --git a/web/src/layout/nav.tsx b/web/src/layout/nav.tsx index dc7b82e..fde7e40 100644 --- a/web/src/layout/nav.tsx +++ b/web/src/layout/nav.tsx @@ -37,6 +37,7 @@ import { IconListCheck, IconRefresh, IconApps, + IconBooks, IconDownload, IconBox, IconHeartbeat, @@ -93,9 +94,6 @@ export const NAV: NavEntry[] = [ { to: "/docker", label: "Docker", icon: }, { to: "/hetzner", label: "Hetzner Cloud", icon: }, { to: "/tailscale", label: "Tailscale", icon: }, - { to: "/map", label: "Map", icon: }, - { to: "/inventory", label: "Inventory", icon: }, - { to: "/admin-links", label: "Admin Links", icon: }, ], }, { @@ -156,7 +154,6 @@ export const NAV: NavEntry[] = [ items: [ { to: "/semaphore", label: "Semaphore", icon: }, { to: "/gitea", label: "Gitea", icon: }, - { to: "/osticket", label: "osTicket", icon: }, { to: "/n8n", label: "n8n", icon: }, ], }, @@ -173,6 +170,18 @@ export const NAV: NavEntry[] = [ { to: "/todo", label: "To do", icon: }, { to: "/reports", label: "Monthly report", icon: }, { to: "/changes", label: "Change log", icon: , minRole: "operator" }, + { to: "/osticket", label: "osTicket", icon: }, + ], + }, + { + id: "reference", + label: "Reference", + icon: , + items: [ + { to: "/map", label: "Map", icon: }, + { to: "/inventory", label: "Inventory", icon: }, + { to: "/admin-links", label: "Admin Links", icon: }, + { to: "/generator", label: "Generator", icon: }, ], }, { @@ -181,7 +190,6 @@ export const NAV: NavEntry[] = [ icon: , items: [ { to: "/integrations", label: "Integrations", icon: }, - { to: "/generator", label: "Generator", icon: }, { to: "/users", label: "Users", icon: , minRole: "admin" }, { to: "/settings", label: "Settings", icon: , minRole: "admin" }, ], diff --git a/web/src/pages/settings/NameSettings.tsx b/web/src/pages/settings/NameSettings.tsx index ccfd483..12078f3 100644 --- a/web/src/pages/settings/NameSettings.tsx +++ b/web/src/pages/settings/NameSettings.tsx @@ -242,7 +242,7 @@ export default function NameSettings() {
- Administration → Generator picks server names from these lists. A name is letters, digits and hyphens (å, ä and ö become a, a and o), so + Reference → Generator picks server names from these lists. A name is letters, digits and hyphens (å, ä and ö become a, a and o), so it works as a hostname. Changes apply when you save.
{drafts.length === 0 ? (