🪢 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: add skeleton for events table (#11250)
Max Deichmann080d73c7a583
diff --git a/web/src/features/events/components/EventsTable.tsx b/web/src/features/events/components/EventsTable.tsxindex 54ef2d6a4e..bfa9b9f195 100644--- a/web/src/features/events/components/EventsTable.tsx+++ b/web/src/features/events/components/EventsTable.tsx@@ -61,6 +61,7 @@ import useColumnVisibility from "@/src/features/column-visibility/hooks/useColumimport { MemoizedIOTableCell } from "@/src/components/ui/IOTableCell";import { useEventsTableData } from "@/src/features/events/hooks/useEventsTableData";import { useEventsFilterOptions } from "@/src/features/events/hooks/useEventsFilterOptions";+import { JsonSkeleton } from "@/src/components/ui/CodeJsonViewer";export type EventsTableRow = {// Identity fields@@ -244,6 +245,7 @@ export default function ObservationsEventsTable({totalCount,handleAddToAnnotationQueue,dataUpdatedAt,+ ioLoading,} = useEventsTableData({projectId,filterState,@@ -349,6 +351,14 @@ export default function ObservationsEventsTable({size: 300,cell: ({ row }) => {const value: string | undefined = row.getValue("input");+ if (ioLoading) {+ return (+ <JsonSkeleton+ borderless+ className="h-full w-full overflow-hidden px-2 py-1"+ />+ );+ }return value ? (<MemoizedIOTableCellisLoading={false}@@ -366,6 +376,14 @@ export default function ObservationsEventsTable({size: 300,cell: ({ row }) => {const value: string | undefined = row.getValue("output");+ if (ioLoading) {+ return (+ <JsonSkeleton+ borderless+ className="h-full w-full overflow-hidden px-2 py-1"+ />+ );+ }return value ? (<MemoizedIOTableCellisLoading={false}@@ -377,6 +395,34 @@ export default function ObservationsEventsTable({},enableHiding: true,},+ {+ accessorKey: "metadata",+ header: "Metadata",+ size: 300,+ headerTooltip: {+ description: "Add metadata to traces to track additional information.",+ href: "https://langfuse.com/docs/observability/features/metadata",+ },+ cell: ({ row }) => {+ const value: string | undefined = row.getValue("metadata");+ if (ioLoading) {+ return (+ <JsonSkeleton+ borderless+ className="h-full w-full overflow-hidden px-2 py-1"+ />+ );+ }+ return value ? (+ <MemoizedIOTableCell+ isLoading={false}+ data={value}+ singleLine={rowHeight === "s"}+ />+ ) : null;+ },+ enableHiding: true,+ },{accessorKey: "level",id: "level",diff --git a/web/src/features/events/hooks/useEventsTableData.ts b/web/src/features/events/hooks/useEventsTableData.tsindex 0770d3f55b..20c8bc5ef2 100644--- a/web/src/features/events/hooks/useEventsTableData.ts+++ b/web/src/features/events/hooks/useEventsTableData.ts@@ -175,5 +175,6 @@ export function useEventsTableData({totalCount,addToQueueMutation,handleAddToAnnotationQueue,+ ioLoading: ioDataQuery.isLoading,};}