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
@@ -11,6 +11,8 @@ import IntegrationPageTitle from "../components/IntegrationPageTitle";
|
||||
import { ErrorNotice } from "../components/Notice";
|
||||
import { SearchBox } from "../components/TableToolbar";
|
||||
import { useTableSearch } from "../hooks/useTableSearch";
|
||||
import DetailDrawer, { ObjectDetails } from "../components/DetailDrawer";
|
||||
import { useRowDetail } from "../hooks/useRowDetail";
|
||||
|
||||
function statusBadge(monitor: UptimeKumaMonitor) {
|
||||
switch (monitor.status) {
|
||||
@@ -80,6 +82,7 @@ export default function UptimeKuma({ user: _user }: { user: CurrentUser }) {
|
||||
const tableSearch = useTableSearch(data?.monitors);
|
||||
const { sorted, sortKey, sortDir, requestSort } = useSortable(tableSearch.filtered, "name");
|
||||
const { pageItems, page, setPage, pageCount, totalCount } = usePagination(sorted);
|
||||
const detail = useRowDetail<NonNullable<typeof pageItems>[number]>();
|
||||
|
||||
function exportCsv() {
|
||||
if (!sorted) return;
|
||||
@@ -173,7 +176,7 @@ export default function UptimeKuma({ user: _user }: { user: CurrentUser }) {
|
||||
</thead>
|
||||
<tbody>
|
||||
{pageItems?.map((m) => (
|
||||
<tr key={m.id}>
|
||||
<tr key={m.id} {...detail.rowProps(m)}>
|
||||
<td>
|
||||
{m.name}
|
||||
<div className="text-secondary small">{m.type}</div>
|
||||
@@ -219,6 +222,11 @@ export default function UptimeKuma({ user: _user }: { user: CurrentUser }) {
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
{detail.selected && (
|
||||
<DetailDrawer title={((m) => m.name)(detail.selected)} subtitle={((m) => m.type)(detail.selected)} onClose={detail.close}>
|
||||
<ObjectDetails data={detail.selected} />
|
||||
</DetailDrawer>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user