🪢 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(ui): fix CommandInput icon overlap and add bottom border variant for popovers (#10664)
Michael Fröhlichc617b4f3108f
diff --git a/web/src/components/table/key-value-filter-builder.tsx b/web/src/components/table/key-value-filter-builder.tsxindex e2ef8959fe..9ec081458f 100644--- a/web/src/components/table/key-value-filter-builder.tsx+++ b/web/src/components/table/key-value-filter-builder.tsx@@ -218,7 +218,10 @@ export function KeyValueFilterBuilder(props: KeyValueFilterBuilderProps) {</PopoverTrigger><PopoverContent className="w-[200px] p-0" align="start"><InputCommand>- <InputCommandInput placeholder="Search keys..." />+ <InputCommandInput+ placeholder="Search keys..."+ variant="bottom"+ /><InputCommandList><InputCommandEmpty>No keys found.</InputCommandEmpty><InputCommandGroup>diff --git a/web/src/components/ui/command.tsx b/web/src/components/ui/command.tsxindex f0ee241c95..896308fdd1 100644--- a/web/src/components/ui/command.tsx+++ b/web/src/components/ui/command.tsx@@ -74,7 +74,7 @@ const CommandInput = React.forwardRef<<CommandPrimitive.Inputref={ref}className={cn(- "flex h-8 w-full rounded-md bg-transparent px-6 py-3 text-sm outline-none placeholder:text-muted-foreground focus:outline-none focus:ring-0 disabled:cursor-not-allowed disabled:opacity-50",+ "flex h-8 w-full rounded-md bg-transparent py-3 pl-6 pr-6 text-sm outline-none placeholder:text-muted-foreground focus:outline-none focus:ring-0 disabled:cursor-not-allowed disabled:opacity-50",className,)}{...props}diff --git a/web/src/features/dashboard/components/ModelSelector.tsx b/web/src/features/dashboard/components/ModelSelector.tsxindex c22f0cee3c..29639e5e4e 100644--- a/web/src/features/dashboard/components/ModelSelector.tsx+++ b/web/src/features/dashboard/components/ModelSelector.tsx@@ -51,7 +51,7 @@ export const ModelSelectorPopover = ({</PopoverTrigger><PopoverContent className="w-56 p-0"><InputCommand>- <InputCommandInput placeholder="Search models..." />+ <InputCommandInput placeholder="Search models..." variant="bottom" /><InputCommandEmpty>No model found.</InputCommandEmpty><InputCommandGroup><InputCommandItem onSelect={handleSelectAll}>diff --git a/web/src/features/datasets/components/NewDatasetItemForm.tsx b/web/src/features/datasets/components/NewDatasetItemForm.tsxindex e8dec2ac18..3290a8bdb9 100644--- a/web/src/features/datasets/components/NewDatasetItemForm.tsx+++ b/web/src/features/datasets/components/NewDatasetItemForm.tsx@@ -299,7 +299,10 @@ export const NewDatasetItemForm = (props: {</PopoverTrigger><PopoverContent className="p-0"><InputCommand>- <InputCommandInput placeholder="Search datasets..." />+ <InputCommandInput+ placeholder="Search datasets..."+ variant="bottom"+ /><InputCommandEmpty>No datasets found.</InputCommandEmpty>diff --git a/web/src/features/evals/components/template-selector.tsx b/web/src/features/evals/components/template-selector.tsxindex 9426e3737d..e86806a596 100644--- a/web/src/features/evals/components/template-selector.tsx+++ b/web/src/features/evals/components/template-selector.tsx@@ -171,6 +171,7 @@ export const TemplateSelector = ({className="h-9"value={search}onValueChange={setSearch}+ variant="bottom"/><divtabIndex={0}diff --git a/web/src/features/experiments/components/steps/PromptModelStep.tsx b/web/src/features/experiments/components/steps/PromptModelStep.tsxindex f806ce9f83..97e0764eeb 100644--- a/web/src/features/experiments/components/steps/PromptModelStep.tsx+++ b/web/src/features/experiments/components/steps/PromptModelStep.tsx@@ -129,6 +129,7 @@ export const PromptModelStep: React.FC<PromptModelStepProps> = ({<InputCommandInputplaceholder="Search prompts..."className="h-9"+ variant="bottom"/><InputCommandList><InputCommandEmpty>No prompt found.</InputCommandEmpty>@@ -299,6 +300,7 @@ export const PromptModelStep: React.FC<PromptModelStepProps> = ({<InputCommandInputplaceholder="Search schemas..."className="h-9"+ variant="bottom"/><InputCommandList><InputCommandEmpty>diff --git a/web/src/features/filters/components/filter-builder.tsx b/web/src/features/filters/components/filter-builder.tsxindex 7f2fc34345..44a72404dd 100644--- a/web/src/features/filters/components/filter-builder.tsx+++ b/web/src/features/filters/components/filter-builder.tsx@@ -524,7 +524,7 @@ function FilterBuilderForm({<InputCommand><InputCommandInputplaceholder="Search for column"- onFocus={(e) => (e.target.style.border = "none")}+ variant="bottom"/><InputCommandList><InputCommandEmpty>diff --git a/web/src/features/filters/components/multi-select.tsx b/web/src/features/filters/components/multi-select.tsxindex 17226292fa..42c2b4dd5a 100644--- a/web/src/features/filters/components/multi-select.tsx+++ b/web/src/features/filters/components/multi-select.tsx@@ -172,7 +172,7 @@ export function MultiSelect({</PopoverTrigger><PopoverContent className="w-[200px] p-0" align="center"><InputCommand>- <InputCommandInput placeholder={title} />+ <InputCommandInput placeholder={title} variant="bottom" /><InputCommandList>{/* if isCustomSelectEnabled we always show custom select hence never empty */}{!isCustomSelectEnabled && (diff --git a/web/src/features/playground/page/components/PlaygroundTools/index.tsx b/web/src/features/playground/page/components/PlaygroundTools/index.tsxindex 71a3aecd7a..3a11cbf66b 100644--- a/web/src/features/playground/page/components/PlaygroundTools/index.tsx+++ b/web/src/features/playground/page/components/PlaygroundTools/index.tsx@@ -79,7 +79,7 @@ export const PlaygroundToolsPopover = () => {<Command className="flex flex-col"><CommandInputplaceholder="Search tools..."- className="h-8 border-none p-1 focus:ring-0 focus:ring-offset-0"+ className="h-8 border-none py-1 pl-6 pr-1 focus:ring-0 focus:ring-offset-0"/><CommandList className="max-h-[300px] overflow-y-auto"><CommandEmpty>No tools found.</CommandEmpty>diff --git a/web/src/features/playground/page/components/SaveToPromptButton.tsx b/web/src/features/playground/page/components/SaveToPromptButton.tsxindex 9999d7ade6..9bfc63dae4 100644--- a/web/src/features/playground/page/components/SaveToPromptButton.tsx+++ b/web/src/features/playground/page/components/SaveToPromptButton.tsx@@ -128,7 +128,10 @@ export const SaveToPromptButton: React.FC<SaveToPromptButtonProps> = ({</Button><Divider /><InputCommand className="min-h-[8rem]">- <InputCommandInput placeholder="Search chat prompts..." />+ <InputCommandInput+ placeholder="Search chat prompts..."+ variant="bottom"+ /><InputCommandEmpty>No chat prompt found<DocPopup description="Prompts from the playground can only be saved to 'chat' prompts as they include multiple system/user messages." />diff --git a/web/src/features/playground/page/components/StructuredOutputSchemaSection.tsx b/web/src/features/playground/page/components/StructuredOutputSchemaSection.tsxindex 258762ffff..87c5bb01e6 100644--- a/web/src/features/playground/page/components/StructuredOutputSchemaSection.tsx+++ b/web/src/features/playground/page/components/StructuredOutputSchemaSection.tsx@@ -94,7 +94,7 @@ export const StructuredOutputSchemaPopover = () => {<Command className="flex flex-col"><CommandInputplaceholder="Search schemas..."- className="h-8 border-none p-1 focus:ring-0 focus:ring-offset-0"+ className="h-8 border-none py-1 pl-6 pr-1 focus:ring-0 focus:ring-offset-0"/><CommandList className="max-h-[300px] overflow-y-auto"><CommandEmpty>No schemas found.</CommandEmpty>