refactor(centralui): SiteCallsReport adopts KeysetPager + DateTimeRangeFilter + tokenized backdrop (T35f)

This commit is contained in:
Joseph Doherty
2026-06-18 19:58:55 -04:00
parent ef2791ffd8
commit e773915e26
2 changed files with 22 additions and 32 deletions
@@ -307,9 +307,9 @@ public class SiteCallsReportPageTests : BunitContext
var cut = Render<SiteCallsReportPage>();
cut.WaitForState(() => cut.Markup.Contains("ERP.GetOrder"));
var next = cut.Find("[data-test='site-calls-next']");
var next = cut.Find("[data-test='keyset-next']");
Assert.True(next.HasAttribute("disabled"));
var prev = cut.Find("[data-test='site-calls-prev']");
var prev = cut.Find("[data-test='keyset-prev']");
Assert.True(prev.HasAttribute("disabled"));
}
@@ -338,7 +338,7 @@ public class SiteCallsReportPageTests : BunitContext
var cut = Render<SiteCallsReportPage>();
cut.WaitForState(() => cut.Markup.Contains("ERP.Op0"));
var next = cut.Find("[data-test='site-calls-next']");
var next = cut.Find("[data-test='keyset-next']");
Assert.False(next.HasAttribute("disabled"));
next.Click();
@@ -381,7 +381,7 @@ public class SiteCallsReportPageTests : BunitContext
cut.WaitForState(() => cut.Markup.Contains("ERP.Op0"));
// Step forward — query 2 carries the keyset cursor.
var next = cut.Find("[data-test='site-calls-next']");
var next = cut.Find("[data-test='keyset-next']");
next.Click();
cut.WaitForAssertion(() =>
{
@@ -390,7 +390,7 @@ public class SiteCallsReportPageTests : BunitContext
});
// Previous is now live (the back-stack has one entry); click it.
var prev = cut.Find("[data-test='site-calls-prev']");
var prev = cut.Find("[data-test='keyset-prev']");
Assert.False(prev.HasAttribute("disabled"));
prev.Click();
@@ -402,7 +402,7 @@ public class SiteCallsReportPageTests : BunitContext
Assert.Null(_queryRequests[2].AfterCreatedAtUtc);
Assert.Null(_queryRequests[2].AfterId);
// Back on page 1, the back-stack is empty again so Previous re-disables.
Assert.True(cut.Find("[data-test='site-calls-prev']").HasAttribute("disabled"));
Assert.True(cut.Find("[data-test='keyset-prev']").HasAttribute("disabled"));
});
}