Accessibility pass, command palette actions, row detail panel, server activity, map, wall display and setup guide
Accessibility: skip link, labelled landmarks, visible focus, page-change announcements, sortable headings as real buttons, every label tied to its field, named row checkboxes, and text contrast raised to 4.5:1 in both themes. Command palette: also runs actions (silence/end maintenance, theme, density, wall display, sign out) and is a proper dialog; g-then-letter shortcuts, "/" and "?". Row detail panel for six tables. Server Activity card, with the health check now recording offline/back-online and disk events in the audit log. Map page of hosts, servers, DNS names and monitors. Full-screen wall display. A getting-started checklist on the admin dashboard. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f7f5e1cd41
commit
57fd4f8c52
36 files changed
+2790
-210
No files matched your search
@@ -0,0 +1,35 @@
|
||||
// The keyboard shortcuts: "g" then a letter goes to a page (like GitHub's), "/" jumps to the search box, "?" lists them all.
|
||||
// One list, so the handler, the help dialog and the command palette's hints can't drift apart.
|
||||
|
||||
export interface GoShortcut {
|
||||
/** The letter after "g". */
|
||||
key: string;
|
||||
to: string;
|
||||
label: string;
|
||||
}
|
||||
|
||||
export const GO_SHORTCUTS: GoShortcut[] = [
|
||||
{ key: "d", to: "/", label: "Dashboard" },
|
||||
{ key: "a", to: "/alerts", label: "Alerts" },
|
||||
{ key: "s", to: "/servers", label: "Servers" },
|
||||
{ key: "m", to: "/maintenance", label: "Maintenance" },
|
||||
{ key: "i", to: "/integrations", label: "Integrations" },
|
||||
{ key: "k", to: "/secrets", label: "Secrets" },
|
||||
{ key: "p", to: "/map", label: "Map" },
|
||||
{ key: "w", to: "/wall", label: "Wall display" },
|
||||
];
|
||||
|
||||
export const OTHER_SHORTCUTS: { keys: string; label: string }[] = [
|
||||
{ keys: "Ctrl K", label: "Search, and run actions (silence a server, switch theme…)" },
|
||||
{ keys: "/", label: "Jump to the search box of the table on this page" },
|
||||
{ keys: "?", label: "Show this list" },
|
||||
{ keys: "Esc", label: "Close a dialog, the search or this list" },
|
||||
];
|
||||
|
||||
/** The "g x" hint for a page, if it has one — shown beside it in the command palette. */
|
||||
export function shortcutHintFor(to: string): string | null {
|
||||
const found = GO_SHORTCUTS.find((s) => s.to === to);
|
||||
return found ? `g ${found.key}` : null;
|
||||
}
|
||||
|
||||
export const SHOW_SHORTCUTS_EVENT = "show-shortcuts";
|
||||
Reference in new issue
Block a user