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

+73
View File
@@ -283,6 +283,16 @@ pre.code {
opacity: 0.5;
}
.btn[aria-busy="true"] {
cursor: progress;
}
.btn-link {
border-color: transparent;
color: var(--accent);
text-decoration: underline;
}
.btn-primary {
background: var(--accent);
border-color: var(--accent);
@@ -488,6 +498,41 @@ input[type="radio"] {
width: 2rem;
}
.th-sort {
background: none;
border: 0;
color: inherit;
cursor: pointer;
font: inherit;
font-weight: 600;
padding: 0;
}
.th-sort::after {
color: var(--muted);
content: "\2195";
content: "\2195" / "";
display: inline-block;
margin-left: 0.25rem;
width: 1ch;
}
[aria-sort="ascending"] .th-sort::after {
color: var(--text);
content: "\2191";
content: "\2191" / "";
}
[aria-sort="descending"] .th-sort::after {
color: var(--text);
content: "\2193";
content: "\2193" / "";
}
.th-sort:hover {
color: var(--accent);
}
.table .value code {
overflow-wrap: anywhere;
}
@@ -508,6 +553,16 @@ input[type="radio"] {
color: var(--muted);
}
.table tbody tr.row-flash {
animation: row-flash 2s ease-out;
}
@keyframes row-flash {
from {
background: var(--info-bg);
}
}
.detail-row > td {
background: var(--stripe);
}
@@ -660,6 +715,24 @@ input[type="radio"] {
padding: 1rem;
}
.dialog-status {
align-self: center;
flex: 1 1 100%;
margin: 0;
}
.dialog-status:empty {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
white-space: nowrap;
width: 1px;
}
.dialog-actions {
border-top: 1px solid var(--border);
display: flex;