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

+6 -1
View File
@@ -8,6 +8,7 @@
<div class="actions">
<a class="btn" id="export-link" href="/">Export zone file</a>
<a class="btn" id="import-link" href="/">Import zone file</a>
<a class="btn" id="audit-link" href="/audit">Audit history</a>
</div>
</div>
@@ -51,7 +52,11 @@
<thead>
<tr>
<th scope="col" class="check"><input type="checkbox" id="select-all" aria-label="Select all records on this page"></th>
<th scope="col">Name</th><th scope="col">Type</th><th scope="col">TTL</th><th scope="col">Value</th><th scope="col">Actions</th>
<th scope="col" data-sort="name"><button type="button" class="th-sort">Name</button></th>
<th scope="col" data-sort="type"><button type="button" class="th-sort">Type</button></th>
<th scope="col" data-sort="ttl"><button type="button" class="th-sort">TTL</button></th>
<th scope="col" data-sort="value"><button type="button" class="th-sort">Value</button></th>
<th scope="col">Actions</th>
</tr>
</thead>
<tbody id="records-body"></tbody>
@@ -29,7 +29,9 @@
<div id="rec-fields"></div>
</div>
<div class="dialog-actions">
<p class="hint dialog-status" id="rec-status" role="status"></p>
<button type="button" class="btn" data-close>Cancel</button>
<button type="button" class="btn" id="rec-submit-another" hidden>Save and add another</button>
<button type="submit" class="btn btn-primary" id="rec-submit">Save record</button>
</div>
</form>