refactor(centralui): AuditResultsGrid adopts KeysetPager + AuditFilterBar adopts DateTimeRangeFilter (T35g)

This commit is contained in:
Joseph Doherty
2026-06-18 20:03:40 -04:00
parent a3ac77dd41
commit 1d82e6bc8c
3 changed files with 26 additions and 31 deletions
@@ -72,24 +72,20 @@
</table>
</div>
<div class="d-flex justify-content-between align-items-center">
<span class="text-muted small">Page @_pageNumber · @_rows.Count rows</span>
@* CentralUI-032: keyset paging is naturally forward-only, but the
in-component _cursorStack lets the user step back through previous
pages by replaying the prior cursor. The Previous button is gated
on the stack having at least one prior cursor — i.e. we are not on
the first page. *@
<div class="btn-group">
<button class="btn btn-outline-secondary btn-sm"
data-test="grid-prev-page"
disabled="@(_loading || !CanGoBack)"
@onclick="PrevPage">Previous page</button>
<button class="btn btn-outline-secondary btn-sm"
data-test="grid-next-page"
disabled="@(_loading || _rows.Count < _pageSize)"
@onclick="NextPage">Next page</button>
</div>
</div>
@* CentralUI-032: keyset paging is naturally forward-only, but the
in-component _cursorStack lets the user step back through previous
pages by replaying the prior cursor. The Previous button is gated
on CanGoBack (the stack having at least one prior cursor — i.e. we
are not on the first page); HasNextPage mirrors the prior "short
page = end" signal (a full page suggests more rows may follow). All
cursor logic stays page-side; KeysetPager is purely presentational. *@
<KeysetPager PageNumber="_pageNumber"
RowCount="_rows.Count"
CanGoBack="CanGoBack"
HasNextPage="@(!_loading && _rows.Count >= _pageSize)"
Disabled="_loading"
OnPrevious="PrevPage"
OnNext="NextPage" />
</div>
@code {