Phone card layout, status symbols, breadcrumbs, integration cards and server trends

Tables stack into labelled cards on a phone. Green, red and amber badges carry
a check, cross or triangle as well as their colour. Pages inside a menu group
show a breadcrumb, with the thing's name on a server's page. Integrations are
cards with an Open button and a live status (working, failing, not checked yet,
disabled). Agent-reported servers keep a short history of load, memory and disk
use (migration 0019, one sample per ten minutes for 35 days) and show it as a
Trends card with a days-until-full forecast for a filling disk.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-10-14 23:56:05 +02:00
1 parent 617dc1ea2f
commit 9965d94036
22 files changed
+3000 -84

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
import { useEffect, useSyncExternalStore } from "react";
// The last step of the breadcrumb on a page about one particular thing ("Infrastructure › Servers › elsa"). The pages that know
// the name — a server's detail page — set it with useBreadcrumbTail(); the shell draws the rest from the menu.
let tail: string | null = null;
const listeners = new Set<() => void>();
function set(next: string | null) {
if (next === tail) return;
tail = next;
for (const l of listeners) l();
}
function subscribe(listener: () => void): () => void {
listeners.add(listener);
return () => {
listeners.delete(listener);
};
}
export function useBreadcrumbTailValue(): string | null {
return useSyncExternalStore(subscribe, () => tail);
}
/** Names the thing this page is about, for the breadcrumb. Pass nothing (or undefined) until it is known. */
export function useBreadcrumbTail(name: string | null | undefined): void {
useEffect(() => {
set(name ?? null);
return () => set(null);
}, [name]);
}