Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

feat(web): add 100-row page size option to tracing tables (#17919)

Nikita Kabardin420f9ee5e130
diff --git a/web/src/components/table/data-table-pagination.tsx b/web/src/components/table/data-table-pagination.tsx
index ca99477639..57f103146c 100644
--- a/web/src/components/table/data-table-pagination.tsx
+++ b/web/src/components/table/data-table-pagination.tsx
@@ -27,6 +27,9 @@ import {
import { compactNumberFormatter } from "@/src/utils/numbers";
import { useEffect, useState } from "react";
+/** Tracing lists accept a limit of 100. Other tables keep the 50 default. */
+export const TRACING_PAGE_SIZE_OPTIONS = [10, 20, 30, 40, 50, 100];
+
interface DataTablePaginationProps<TData> {
table: Table<TData>;
isLoading: boolean;
diff --git a/web/src/features/events/components/EventsTable.tsx b/web/src/features/events/components/EventsTable.tsx
index e773dfe3de..4695210d9f 100644
--- a/web/src/features/events/components/EventsTable.tsx
+++ b/web/src/features/events/components/EventsTable.tsx
@@ -14,6 +14,7 @@ import {
import { EmptyValue } from "@/src/components/design-system/table/components/EmptyValue/EmptyValue";
import { DataTable } from "@/src/components/table/data-table";
+import { TRACING_PAGE_SIZE_OPTIONS } from "@/src/components/table/data-table-pagination";
import { DataTableToolbar } from "@/src/components/table/data-table-toolbar";
import {
DataTableControlsProvider,
@@ -2314,6 +2315,7 @@ export default function ObservationsEventsTable({
pageIndex: paginationState.page - 1,
pageSize: paginationState.limit,
},
+ options: TRACING_PAGE_SIZE_OPTIONS,
}
}
rowSelection={selectedRows}
diff --git a/web/src/features/sessions/SessionsTable.tsx b/web/src/features/sessions/SessionsTable.tsx
index d6b1dcb7db..f64a62ba5e 100644
--- a/web/src/features/sessions/SessionsTable.tsx
+++ b/web/src/features/sessions/SessionsTable.tsx
@@ -1,5 +1,6 @@
/* eslint-disable no-nested-ternary */
import { DataTable } from "@/src/components/table/data-table";
+import { TRACING_PAGE_SIZE_OPTIONS } from "@/src/components/table/data-table-pagination";
import { DataTableToolbar } from "@/src/components/table/data-table-toolbar";
import {
DataTableControlsProvider,
@@ -938,6 +939,7 @@ export default function SessionsTable({
totalCount,
onChange: setPaginationState,
state: paginationState,
+ options: TRACING_PAGE_SIZE_OPTIONS,
}}
setOrderBy={handleOrderByChange}
orderBy={orderByState}
diff --git a/web/src/features/traces/TracesTable.tsx b/web/src/features/traces/TracesTable.tsx
index 275d052b27..e588510097 100644
--- a/web/src/features/traces/TracesTable.tsx
+++ b/web/src/features/traces/TracesTable.tsx
@@ -1,5 +1,6 @@
/* eslint-disable no-nested-ternary */
import { DataTable } from "@/src/components/table/data-table";
+import { TRACING_PAGE_SIZE_OPTIONS } from "@/src/components/table/data-table-pagination";
import { DataTableToolbar } from "@/src/components/table/data-table-toolbar";
import {
DataTableControlsProvider,
@@ -1583,6 +1584,7 @@ function TracesTableInternal({
setPaginationState(next);
},
state: paginationState,
+ options: TRACING_PAGE_SIZE_OPTIONS,
}
}
setOrderBy={handleOrderByChange}
diff --git a/web/src/features/tracing-tables/observations/ObservationsTable.tsx b/web/src/features/tracing-tables/observations/ObservationsTable.tsx
index 9d3dd8751d..cf549c470f 100644
--- a/web/src/features/tracing-tables/observations/ObservationsTable.tsx
+++ b/web/src/features/tracing-tables/observations/ObservationsTable.tsx
@@ -1,6 +1,7 @@
/* eslint-disable no-nested-ternary */
import { api } from "@/src/utils/api";
import { DataTable } from "@/src/components/table/data-table";
+import { TRACING_PAGE_SIZE_OPTIONS } from "@/src/components/table/data-table-pagination";
import { DataTableToolbar } from "@/src/components/table/data-table-toolbar";
import {
DataTableControlsProvider,
@@ -1482,6 +1483,7 @@ export default function ObservationsTable({
totalCount,
onChange: setPaginationState,
state: paginationState,
+ options: TRACING_PAGE_SIZE_OPTIONS,
}
}
setOrderBy={handleOrderByChange}