Skip to content

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

fix(datasets): restore dataset item IO scrolling (#15999)

marliessophieae95dc963c35
diff --git a/web/src/components/table/DataTable.stories.tsx b/web/src/components/table/DataTable.stories.tsx
index f8b8e61648..091adbf3fe 100644
--- a/web/src/components/table/DataTable.stories.tsx
+++ b/web/src/components/table/DataTable.stories.tsx
@@ -985,6 +985,59 @@ export const Comfortable = meta.story({
),
});
+const LONG_IO_TRACE_ROW: TraceRow = {
+ ...makeTraceRow(0),
+ id: "trace-long-io-content",
+ input: {
+ request: "dataset-item-input",
+ messages: Array.from({ length: 24 }, (_, index) => ({
+ role: index % 2 === 0 ? "user" : "assistant",
+ content: `Message ${index + 1}: ${"This is deliberately long JSON content to verify that the fixed-height IO cell retains its vertical scrollbar. ".repeat(3)}`,
+ })),
+ },
+ output: {
+ result: "dataset-item-output",
+ details: Object.fromEntries(
+ Array.from({ length: 24 }, (_, index) => [
+ `field-${index + 1}`,
+ `Value ${index + 1}: ${"long output content ".repeat(8)}`,
+ ]),
+ ),
+ },
+ metadata: Object.fromEntries(
+ Array.from({ length: 24 }, (_, index) => [
+ `metadata-${index + 1}`,
+ `value-${index + 1}`,
+ ]),
+ ),
+};
+
+function LongIOContentStory() {
+ const columns = useMemo(() => buildTraceColumns("l"), []);
+ return (
+ <DataTable<TraceRow, unknown>
+ tableName="story-long-io-content"
+ columns={columns}
+ data={{
+ isLoading: false,
+ isError: false,
+ data: [LONG_IO_TRACE_ROW],
+ }}
+ pagination={{
+ totalCount: 1,
+ onChange: fn(),
+ state: { pageIndex: 0, pageSize: 1 },
+ }}
+ rowHeight="l"
+ cellPadding="comfortable"
+ />
+ );
+}
+
+export const LongIOContent = meta.story({
+ render: () => <LongIOContentStory />,
+});
+
// -----------------------------------------------------------------------------
// 6. Density matrix (design showcase)
// -----------------------------------------------------------------------------
diff --git a/web/src/components/ui/CodeJsonViewer.tsx b/web/src/components/ui/CodeJsonViewer.tsx
index c47f44f81e..a07b246e47 100644
--- a/web/src/components/ui/CodeJsonViewer.tsx
+++ b/web/src/components/ui/CodeJsonViewer.tsx
@@ -123,7 +123,7 @@ export function JSONView(props: {
</code>
) : (
<div
- className="max-w-full min-w-0 flex-1 overflow-hidden"
+ className="max-w-full min-w-0 flex-1"
onClick={() => {
// If externally collapsed and user clicks to expand, sync the state
if (props.externalJsonCollapsed && props.onToggleCollapse) {