Paginate measures 500 by 500 instead of 100 by 100

Increase MaxCursorSize from 100 to 500 to allow larger page sizes, and set the measures list frontend query to fetch 500 items per page by default.

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-03-19 23:55:50 +01:00
parent baf8cf0837
commit a7319e54a1
2 changed files with 2 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ const measuresPageFragment = graphql`
fragment MeasuresPageFragment on Organization
@refetchable(queryName: "MeasuresPageRefetchQuery")
@argumentDefinitions(
first: { type: "Int", defaultValue: 20 }
first: { type: "Int", defaultValue: 500 }
after: { type: "CursorKey" }
query: { type: "String", defaultValue: null }
state: { type: "MeasureState", defaultValue: null }

View File

@@ -36,7 +36,7 @@ type (
const (
DefaultCursorSize = 25
MaxCursorSize = 100
MaxCursorSize = 500
Tail Position = "TAIL"
Head Position = "HEAD"