From 49a4089dfa4fde6c4f770633d81dced217850296 Mon Sep 17 00:00:00 2001 From: Roland Tannous Date: Tue, 10 Mar 2026 16:14:16 +0000 Subject: [PATCH] feat: Beta badge, generated System column, fix table scroll - Add "Beta" badge next to AI Assist button text - When advisor generates a system prompt, show it as a "System (generated)" column prepended to the data table so user can see it alongside data - Fix table being squished to near-zero height when advisor notification banner is present: add min-h-[250px] to table wrapper, change body from overflow-hidden to overflow-auto --- .../dataset-preview-dialog-mapping.tsx | 1 + .../sections/dataset-preview-dialog.tsx | 37 +++++++++++++++++-- 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/studio/frontend/src/features/studio/sections/dataset-preview-dialog-mapping.tsx b/studio/frontend/src/features/studio/sections/dataset-preview-dialog-mapping.tsx index 153230df7d..aca485c702 100644 --- a/studio/frontend/src/features/studio/sections/dataset-preview-dialog-mapping.tsx +++ b/studio/frontend/src/features/studio/sections/dataset-preview-dialog-mapping.tsx @@ -214,6 +214,7 @@ export function DatasetMappingCard({ <> AI Assist + Beta )} diff --git a/studio/frontend/src/features/studio/sections/dataset-preview-dialog.tsx b/studio/frontend/src/features/studio/sections/dataset-preview-dialog.tsx index 446f445a50..f17bda7199 100644 --- a/studio/frontend/src/features/studio/sections/dataset-preview-dialog.tsx +++ b/studio/frontend/src/features/studio/sections/dataset-preview-dialog.tsx @@ -242,7 +242,8 @@ export function DatasetPreviewDialog({ // Build TanStack Table columns from the column names const tableColumns = useMemo>[]>(() => { if (!columns.length) return []; - return columns.map((colName) => ({ + + const dataCols: ColumnDef>[] = columns.map((colName) => ({ accessorKey: colName, header: () => (
@@ -309,12 +310,42 @@ export function DatasetPreviewDialog({ ); }, })); + + // Prepend generated system prompt column when advisor is active + if (datasetSystemPrompt) { + dataCols.unshift({ + id: "__system_generated", + header: () => ( +
+ + System (generated) + + {mappingEnabled && ( + + System + + )} +
+ ), + cell: () => ( +

+ {datasetSystemPrompt} +

+ ), + }); + } + + return dataCols; }, [ columns, manualMapping, handleRoleChange, mappingEnabled, availableRoles, + datasetSystemPrompt, ]); return ( @@ -336,7 +367,7 @@ export function DatasetPreviewDialog({ {/* Body */} -
+
{/* Loading */} {loading && (
@@ -434,7 +465,7 @@ export function DatasetPreviewDialog({ )} {/* Data table */} -
+