Skip to content

Commit 37affdd

Browse files
Copilothotlong
andcommitted
fix: update PaginatedResult.count→total, update roadmap docs for spec v3.0.0
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 1dc54b1 commit 37affdd

File tree

5 files changed

+287
-123
lines changed

5 files changed

+287
-123
lines changed

__tests__/hooks/useDashboardData.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe("useWidgetQuery", () => {
3232

3333
it("computes count for metric widget (default aggregate)", () => {
3434
mockUseQuery.mockReturnValue({
35-
data: { records: [{ id: "1" }, { id: "2" }, { id: "3" }], count: 3 },
35+
data: { records: [{ id: "1" }, { id: "2" }, { id: "3" }], total: 3 },
3636
isLoading: false,
3737
});
3838
const widget: DashboardWidgetMeta = {
@@ -53,7 +53,7 @@ describe("useWidgetQuery", () => {
5353
{ id: "2", amount: 20 },
5454
{ id: "3", amount: 30 },
5555
],
56-
count: 3,
56+
total: 3,
5757
},
5858
isLoading: false,
5959
});

0 commit comments

Comments
 (0)