feat(kunden): Kundenverwaltung, Hostzuweisung und Token-Verwaltung (#006)

Kunden und Standorte pflegen, nicht zugeordnete Hosts in einem Schritt zuweisen,
Enrollment- und Host-Tokens verwalten, Audit-Log. Dashboard, Kundenseiten und
globale Suche laufen jetzt auf der Datenbank. 45 Tests.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-09-17 21:02:44 +02:00
co-authored by Claude Opus 5
parent f591b45aac
commit f9a5ad2daa
40 changed files with 2060 additions and 415 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import { APP_VERSION } from "@/lib/version";
export function Footer() {
return (
<footer className="app-footer bg-body">
<div className="float-end d-none d-sm-inline">Prototyp mit Beispieldaten (#002)</div>
<div className="float-end d-none d-sm-inline">Proxmox Subscription Dashboard</div>
<strong>ProxLedger</strong> · Version {APP_VERSION}
</footer>
);
+14 -8
View File
@@ -2,14 +2,20 @@
import Link from "next/link";
import { useCallback, useEffect, useState, useSyncExternalStore } from "react";
import type { SuchEintrag } from "@/mock/suchindex";
import type { Alert } from "@/mock/types";
import { SearchDialog } from "./SearchDialog";
import { SearchDialog, type SuchEintrag } from "./SearchDialog";
const SCHWERE_ICON: Record<Alert["schwere"], string> = {
gefahr: "bi-exclamation-octagon-fill pl-text-danger",
warnung: "bi-exclamation-triangle-fill pl-text-warning",
info: "bi-info-circle-fill text-body-secondary",
export interface KopfleistenAlert {
id: string;
titel: string;
beschreibung: string;
schwere: "INFO" | "WARNUNG" | "GEFAHR";
hostId: string | null;
}
const SCHWERE_ICON: Record<KopfleistenAlert["schwere"], string> = {
GEFAHR: "bi-exclamation-octagon-fill pl-text-danger",
WARNUNG: "bi-exclamation-triangle-fill pl-text-warning",
INFO: "bi-info-circle-fill text-body-secondary",
};
/** Farbschema aus dem <html>-Attribut lesen, damit Server und Client übereinstimmen. */
@@ -28,7 +34,7 @@ export function Header({
suchEintraege,
benutzer,
}: {
alerts: Alert[];
alerts: KopfleistenAlert[];
suchEintraege: SuchEintrag[];
benutzer: string;
}) {
+9 -1
View File
@@ -2,7 +2,15 @@
import { useRouter } from "next/navigation";
import { useMemo, useState } from "react";
import type { SuchEintrag } from "@/mock/suchindex";
export interface SuchEintrag {
typ: "Host" | "Kunde" | "Rechnung";
titel: string;
untertitel: string;
href: string;
/** Alle durchsuchbaren Werte in Kleinschreibung. */
begriffe: string[];
}
const TYP_FARBE: Record<SuchEintrag["typ"], string> = {
Host: "pl-bg-info",