🪢 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(evals): reduce prompt editor minimum height (#16876)
Tobias Wochingerc050200ce019
diff --git a/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/components/PromptEditor/PromptEditor.stories.tsx b/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/components/PromptEditor/PromptEditor.stories.tsxindex a425ea489c..c6b7c0e279 100644--- a/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/components/PromptEditor/PromptEditor.stories.tsx+++ b/web/src/features/evals/v2/components/Evaluators/EvaluatorSetupEditor/components/DefinitionStep/components/PromptEditor/PromptEditor.stories.tsx@@ -320,7 +320,7 @@ export const AddMessageWhilePreviewing = meta.story({await expect(newPromptEditor.getBoundingClientRect().height,- ).toBeGreaterThan(100);+ ).toBeGreaterThan(0);await userEvent.click(newPromptEditor);await userEvent.keyboard("A new prompt");await expect(canvas.getByText("A new prompt")).toBeVisible();diff --git a/web/src/features/evals/v2/components/Evaluators/Judges/PromptVariableEditor/PromptVariableEditor.tsx b/web/src/features/evals/v2/components/Evaluators/Judges/PromptVariableEditor/PromptVariableEditor.tsxindex 4d3e0b185a..4e520b5da5 100644--- a/web/src/features/evals/v2/components/Evaluators/Judges/PromptVariableEditor/PromptVariableEditor.tsx+++ b/web/src/features/evals/v2/components/Evaluators/Judges/PromptVariableEditor/PromptVariableEditor.tsx@@ -302,7 +302,7 @@ export function PromptVariableEditor({mode="prompt"// Keep the editor mounted while previewing so it remains the// stable height anchor for both surfaces.- minHeight={140}+ minHeight={48}maxHeight="50dvh"lineNumbers={false}extensions={extensions}