🪢 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(playground): always show tool/schema edit/delete buttons (#12028)
Nimar6263aa8a9361
diff --git a/web/src/features/playground/page/components/PlaygroundTools/index.tsx b/web/src/features/playground/page/components/PlaygroundTools/index.tsxindex 3c770263df..775e16aa26 100644--- a/web/src/features/playground/page/components/PlaygroundTools/index.tsx+++ b/web/src/features/playground/page/components/PlaygroundTools/index.tsx@@ -253,29 +253,30 @@ export const PlaygroundTools = () => {: undefined}>- <div className="cursor-pointer rounded-md border bg-background p-2 transition-colors duration-200 hover:bg-accent/50">+ <div className="cursor-pointer overflow-hidden rounded-md border bg-background p-2 transition-colors duration-200 hover:bg-accent/50"><div className="mb-1 flex items-center justify-between">- <div className="flex items-center gap-1">- <WrenchIcon className="h-4 w-4 text-muted-foreground" />+ <div className="flex min-w-0 items-center gap-1">+ <WrenchIcon className="h-4 w-4 shrink-0 text-muted-foreground" /><h3- className="max-w-[145px] truncate text-ellipsis text-sm font-medium"+ className="truncate text-sm font-medium"title={tool.name}>{tool.name}</h3>{!isToolSaved(tool) ? (- <span className="rounded bg-muted px-1 py-0.5 text-xs text-muted-foreground">+ <span className="shrink-0 rounded bg-muted px-1 py-0.5 text-xs text-muted-foreground">Unsaved</span>) : null}</div>- <div className="flex items-center gap-1">+ <div className="flex shrink-0 items-center gap-1"><Buttonvariant="ghost"size="sm"className="h-6 w-6 p-0"onClick={(e) => {e.stopPropagation();+ e.preventDefault();handleRemoveTool(tool.id);}}>diff --git a/web/src/features/playground/page/components/StructuredOutputSchemaSection.tsx b/web/src/features/playground/page/components/StructuredOutputSchemaSection.tsxindex 87c5bb01e6..45661a7073 100644--- a/web/src/features/playground/page/components/StructuredOutputSchemaSection.tsx+++ b/web/src/features/playground/page/components/StructuredOutputSchemaSection.tsx@@ -106,9 +106,9 @@ export const StructuredOutputSchemaPopover = () => {onSelect={() => handleSelectSchema(schema)}className="flex items-center justify-between px-1 py-2">- <div className="flex items-center gap-2">- <BoxIcon className="h-4 w-4 text-muted-foreground" />- <div className="flex-1 overflow-hidden">+ <div className="flex min-w-0 flex-1 items-center gap-2">+ <BoxIcon className="h-4 w-4 shrink-0 text-muted-foreground" />+ <div className="min-w-0 flex-1"><div className="truncate font-medium">{schema.name}</div><div className="line-clamp-1 text-xs text-muted-foreground">{schema.description}@@ -264,29 +264,30 @@ export const StructuredOutputSchemaSection = () => {: undefined}>- <div className="cursor-pointer rounded-md border bg-background p-2 transition-colors duration-200 hover:bg-accent/50">+ <div className="cursor-pointer overflow-hidden rounded-md border bg-background p-2 transition-colors duration-200 hover:bg-accent/50"><div className="mb-1 flex items-center justify-between">- <div className="flex items-center gap-1">- <BoxIcon className="h-4 w-4 text-muted-foreground" />+ <div className="flex min-w-0 items-center gap-1">+ <BoxIcon className="h-4 w-4 shrink-0 text-muted-foreground" /><h3- className="max-w-[200px] truncate text-ellipsis text-sm font-medium"+ className="truncate text-sm font-medium"title={structuredOutputSchema.name}>{structuredOutputSchema.name}</h3>{!isSchemaSaved(structuredOutputSchema) ? (- <span className="rounded bg-muted px-1 py-0.5 text-xs text-muted-foreground">+ <span className="shrink-0 rounded bg-muted px-1 py-0.5 text-xs text-muted-foreground">Unsaved</span>) : null}</div>- <div className="flex items-center gap-1">+ <div className="flex shrink-0 items-center gap-1"><Buttonvariant="ghost"size="sm"className="h-6 w-6 p-0"onClick={(e) => {e.stopPropagation();+ e.preventDefault();handleRemoveSchema();}}>