Skip to content

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

fix(batch-add-to-dataset): improve formatting (#11040)

Hassieb Pakzad67a70d5530b9
diff --git a/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/MappingStep.tsx b/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/MappingStep.tsx
index 6dc75ef678..6c41a306a9 100644
--- a/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/MappingStep.tsx
+++ b/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/MappingStep.tsx
@@ -112,9 +112,9 @@ export function MappingStep({
};
return (
- <div className="grid h-[62vh] grid-cols-[1fr,1fr] gap-6 overflow-auto p-6">
+ <div className="grid h-[62vh] grid-cols-[minmax(0,1fr),minmax(0,1fr)] gap-6 overflow-auto p-6">
{/* Left: Configuration */}
- <div className="space-y-6">
+ <div className="min-w-0 space-y-6">
<div>
<div className="flex items-center gap-2">
<h3 className="flex-grow text-lg font-semibold">
@@ -154,7 +154,7 @@ export function MappingStep({
</div>
{/* Right: Preview */}
- <div className="h-full border-l pl-6">
+ <div className="min-w-0 border-l pl-6">
<MappingPreviewPanel
fieldLabel={fieldLabel}
defaultSourceField={defaultSourceField}
diff --git a/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/StatusStep.tsx b/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/StatusStep.tsx
index 5c41a27c45..655740f5f8 100644
--- a/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/StatusStep.tsx
+++ b/web/src/features/batch-actions/components/AddObservationsToDatasetDialog/StatusStep.tsx
@@ -90,6 +90,21 @@ export function StatusStep({
!isSuccess &&
`${processedCount} observations added, ${failedCount} failed`}
</p>
+ {!isComplete && (
+ <p className="mt-2 text-sm text-muted-foreground">
+ You can safely close this dialog. The action is running in the
+ background and you can track its progress in the{" "}
+ <Link
+ href={`/project/${projectId}/settings/batch-actions`}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="text-primary underline hover:no-underline"
+ >
+ batch actions table
+ </Link>
+ .
+ </p>
+ )}
</div>
{/* Progress/Results Card */}