Toasts, logo icons, shared table toolbar with search, and a density toggle

Feedback: toasts confirm common actions, and a page's error or success message
that appears out of view is also shown as a toast. Icons: the tab, app and
home-screen icons are the house from the logo; a dev instance gets a coloured dot
on its tab icon. Tables: Secrets, Admin Links, IP Addresses and Alerts share one
toolbar (search, filters, row count, actions, Export CSV); twelve more tables get
a multi-word search box; long tables keep their column headings in view on wide
screens. Density: Compact / Normal / Roomy in the user menu, remembered per
browser.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-10-14 23:39:19 +02:00
1 parent 7d56ad18b7
commit 617dc1ea2f
56 files changed
+757 -158

No files matched your search

+9 -2
View File
@@ -4,6 +4,9 @@ import { formatDateTime } from "../utils/date";
import { useSortable } from "../hooks/useSortable";
import SortableTh from "../components/SortableTh";
import { downloadCsv } from "../utils/csv";
import { ErrorNotice } from "../components/Notice";
import { SearchBox } from "../components/TableToolbar";
import { useTableSearch } from "../hooks/useTableSearch";
const ROLES: UserRole[] = ["viewer", "operator", "admin"];
@@ -34,7 +37,8 @@ export default function Users() {
}
}
const { sorted, sortKey, sortDir, requestSort } = useSortable(users);
const tableSearch = useTableSearch(users);
const { sorted, sortKey, sortDir, requestSort } = useSortable(tableSearch.filtered);
function exportCsv() {
if (!sorted) return;
@@ -53,8 +57,11 @@ export default function Users() {
Export CSV
</button>
</div>
{error && <div className="alert alert-danger">{error}</div>}
<ErrorNotice error={error} />
<div className="card">
<div className="card-header">
<SearchBox value={tableSearch.query} onChange={tableSearch.setQuery} />
</div>
<div className="table-responsive">
<table className="table table-vcenter card-table">
<thead>