From e773915e26c9d5a06ce92a2ebe4853fbd10c2fdc Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Thu, 18 Jun 2026 19:58:55 -0400 Subject: [PATCH] refactor(centralui): SiteCallsReport adopts KeysetPager + DateTimeRangeFilter + tokenized backdrop (T35f) --- .../Pages/SiteCalls/SiteCallsReport.razor | 42 +++++++------------ .../Pages/SiteCallsReportPageTests.cs | 12 +++--- 2 files changed, 22 insertions(+), 32 deletions(-) diff --git a/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/SiteCalls/SiteCallsReport.razor b/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/SiteCalls/SiteCallsReport.razor index 046d3d4e..5e811128 100644 --- a/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/SiteCalls/SiteCallsReport.razor +++ b/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/SiteCalls/SiteCallsReport.razor @@ -74,14 +74,9 @@ @bind="_nodeFilter" />
- - -
-
- - +
@@ -215,23 +210,18 @@ @* Keyset paging — the Task 4 query response carries a (CreatedAtUtc, Id) cursor rather than page numbers, so we keep a stack of cursors to step - backwards and the response's NextAfter* cursor to step forwards. *@ -
- - @* No "of N" total: keyset paging has no cheap total-count, so - the label is intentionally page-number-only. Do not "fix" - this by adding a total — that would require a COUNT(*). *@ - Page @(_cursorStack.Count + 1) · @_siteCalls.Count rows - -
- - -
-
+ backwards and the response's NextAfter* cursor to step forwards. All + cursor logic stays in this code-behind; KeysetPager is presentational. + No "of N" total: keyset paging has no cheap total-count, so the label is + intentionally page-number-only. Do not "fix" this by adding a total — + that would require a COUNT(*). *@ + } @* ── Trends (K14: collapsible KPI-history charts) ── @@ -292,7 +282,7 @@ @if (_detailSiteCall != null) { var d = _detailSiteCall; -