🪢 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
fix(ui): remove borders from IO in table (#10942)
Nimar98b4b0865309
diff --git a/web/src/components/table/data-table-row-height-switch.tsx b/web/src/components/table/data-table-row-height-switch.tsxindex 7dc1c852bc..43ea66429e 100644--- a/web/src/components/table/data-table-row-height-switch.tsx+++ b/web/src/components/table/data-table-row-height-switch.tsx@@ -19,7 +19,7 @@ const heightOptions = [] as const;const defaultHeights: Record<RowHeight, string> = {- s: "h-6",+ s: "h-7", // after removing the container around IO, we want the row height a bit more than 6m: "h-24",l: "h-64",};diff --git a/web/src/components/table/data-table.tsx b/web/src/components/table/data-table.tsxindex 6cfc3dfafa..74c5168ee2 100644--- a/web/src/components/table/data-table.tsx+++ b/web/src/components/table/data-table.tsx@@ -555,7 +555,7 @@ function TableBodyComponent<TData>({<TableCellkey={cell.id}className={cn(- "overflow-hidden border-b p-1 text-xs first:pl-2",+ "overflow-hidden border-b px-1 text-xs first:pl-2",isSmallRowHeight && "whitespace-nowrap",getPinningClasses(cell.column),)}diff --git a/web/src/components/table/use-cases/observations.tsx b/web/src/components/table/use-cases/observations.tsxindex eca3cfb581..800cdd14be 100644--- a/web/src/components/table/use-cases/observations.tsx+++ b/web/src/components/table/use-cases/observations.tsx@@ -1332,7 +1332,10 @@ const GenerationsDynamicCell = ({<MemoizedIOTableCellisLoading={observation.isPending}data={data}- className={cn(col === "output" && "bg-accent-light-green")}+ className={cn(+ col === "output" && "bg-accent-light-green",+ col === "input" && "bg-muted/50",+ )}singleLine={singleLine}/>);diff --git a/web/src/components/table/use-cases/traces.tsx b/web/src/components/table/use-cases/traces.tsxindex 282ee3abe3..1251a4cad1 100644--- a/web/src/components/table/use-cases/traces.tsx+++ b/web/src/components/table/use-cases/traces.tsx@@ -1314,7 +1314,10 @@ const TracesDynamicCell = ({<MemoizedIOTableCellisLoading={trace.isPending}data={data}- className={cn(col === "output" && "bg-accent-light-green")}+ className={cn(+ col === "output" && "bg-accent-light-green",+ col === "input" && "bg-muted/50",+ )}singleLine={singleLine}/>);diff --git a/web/src/components/ui/CodeJsonViewer.tsx b/web/src/components/ui/CodeJsonViewer.tsxindex e57fd16f2c..f05d7e6516 100644--- a/web/src/components/ui/CodeJsonViewer.tsx+++ b/web/src/components/ui/CodeJsonViewer.tsx@@ -35,6 +35,7 @@ export function JSONView(props: {collapseStringsAfterLength?: number | null;media?: MediaReturnType[];scrollable?: boolean;+ borderless?: boolean;projectIdForPromptButtons?: string;controlButtons?: React.ReactNode;externalJsonCollapsed?: boolean;@@ -86,14 +87,15 @@ export function JSONView(props: {<><divclassName={cn(- "io-message-content flex gap-2 whitespace-pre-wrap break-words p-2 text-xs",+ "io-message-content flex gap-2 whitespace-pre-wrap break-words text-xs",+ props.borderless ? "" : "p-2",props.title === "assistant" || props.title === "Output"? "bg-accent-light-green dark:border-accent-dark-green": "",props.title === "system" || props.title === "Input"? "bg-primary-foreground": "",- props.scrollable ? "" : "rounded-sm border",+ props.scrollable || props.borderless ? "" : "rounded-sm border",props.codeClassName,)}>diff --git a/web/src/components/ui/IOTableCell.tsx b/web/src/components/ui/IOTableCell.tsxindex b69f1a8bfa..6b64d6ca9a 100644--- a/web/src/components/ui/IOTableCell.tsx+++ b/web/src/components/ui/IOTableCell.tsx@@ -32,7 +32,7 @@ const IOTableCellContent = ({return singleLine ? (<divclassName={cn(- "h-full w-full self-stretch overflow-hidden overflow-y-auto truncate rounded-sm border px-2 py-0.5",+ "h-full w-full self-stretch overflow-hidden overflow-y-auto truncate px-2 py-1",className,)}>@@ -48,9 +48,10 @@ const IOTableCellContent = ({`...[truncated ${stringifiedJson.length - IO_TABLE_CHAR_LIMIT} characters]`,true, // greedy mode for double-escaped Unicode (e.g., \\uXXXX))}- className={cn("h-full w-full self-stretch rounded-sm", className)}+ className={cn("h-full w-full self-stretch", className)}codeClassName="py-1 px-2 min-h-0 h-full overflow-y-auto"collapseStringsAfterLength={null} // in table, show full strings as row height is fixed+ borderless/><div className="text-xs text-muted-foreground">Content was truncated.@@ -61,9 +62,10 @@ const IOTableCellContent = ({json={stringifiedJson ? decodeUnicodeEscapesOnly(stringifiedJson, true) : data}- className={cn("h-full w-full self-stretch rounded-sm", className)}+ className={cn("h-full w-full self-stretch", className)}codeClassName="py-1 px-2 min-h-0 h-full overflow-y-auto"collapseStringsAfterLength={null} // in table, show full strings as row height is fixed+ borderless/>);};diff --git a/web/src/components/ui/table.tsx b/web/src/components/ui/table.tsxindex cc24c61504..4d84a1ae2e 100644--- a/web/src/components/ui/table.tsx+++ b/web/src/components/ui/table.tsx@@ -89,7 +89,7 @@ const TableCell = React.forwardRef<<tdref={ref}className={cn(- "p-4 align-middle [&:has([role=checkbox])]:pr-0",+ "h-full px-2 py-0 align-top [&:has([role=checkbox])]:pr-0","border-b [:last-child_>_&]:border-b-0",className,)}