feat(ui): improve the records table, view state and record dialog
Test / test (push) Successful in 26m44s
Build and publish image / image (push) Successful in 27m27s

Sortable record columns, filters and sort kept in the URL on the zones,
zone and audit pages, a Show action that filters the records table to a
problem's owner, Save and add another, a highlight of the saved row, an
Audit history link on the zone page, and dialogs that keep typed input
on a backdrop click.
This commit is contained in:
bryanpedini committed 2026-11-22 17:36:46 +01:00
1 parent a67183b646
commit 440f78ce9e
9 files changed
+419 -36

No files matched your search

+2 -2
View File
@@ -76,8 +76,8 @@ export function displayName(record) {
export function matchesFilter(record, type, text) {
if (type && record.type !== type) return false;
if (!text) return true;
const needle = text.toLowerCase();
const needle = text.trim().toLowerCase();
if (!needle) return true;
const haystack = [displayName(record), record.fqdn || "", record.type, presentValue(record)].join(" ").toLowerCase();
return haystack.includes(needle);
}