🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore(dataset-runs): improve loading animations on runs table (#8719)
marliessophie2d82ae6e86c5
diff --git a/web/src/features/datasets/components/DatasetRunsTable.tsx b/web/src/features/datasets/components/DatasetRunsTable.tsxindex 53f2fbc9ec..c79fcc14a1 100644--- a/web/src/features/datasets/components/DatasetRunsTable.tsx+++ b/web/src/features/datasets/components/DatasetRunsTable.tsx@@ -381,6 +381,13 @@ export function DatasetRunsTable(props: {id: "countRunItems",size: 90,enableHiding: true,+ cell: ({ row }) => {+ const countRunItems: DatasetRunRowData["countRunItems"] =+ row.getValue("countRunItems");+ if (countRunItems === undefined || runsMetrics.isPending)+ return <Skeleton className="h-3 w-1/2" />;+ return <>{countRunItems}</>;+ },},{accessorKey: "avgLatency",@@ -391,7 +398,8 @@ export function DatasetRunsTable(props: {cell: ({ row }) => {const avgLatency: DatasetRunRowData["avgLatency"] =row.getValue("avgLatency");- if (avgLatency === undefined) return <Skeleton className="h-3 w-1/2" />;+ if (avgLatency === undefined || runsMetrics.isPending)+ return <Skeleton className="h-3 w-1/2" />;return <>{formatIntervalSeconds(avgLatency)}</>;},},@@ -404,7 +412,8 @@ export function DatasetRunsTable(props: {cell: ({ row }) => {const avgTotalCost: DatasetRunRowData["avgTotalCost"] =row.getValue("avgTotalCost");- if (!avgTotalCost) return <Skeleton className="h-3 w-1/2" />;+ if (!avgTotalCost || runsMetrics.isPending)+ return <Skeleton className="h-3 w-1/2" />;return <>{avgTotalCost}</>;},},