Skip to content

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

fix: fix full text search selector (#7129)

Max Deichmann48ec1bccaeb4
diff --git a/web/src/components/table/data-table-toolbar.tsx b/web/src/components/table/data-table-toolbar.tsx
index 40ae15bae8..5a19df6cd8 100644
--- a/web/src/components/table/data-table-toolbar.tsx
+++ b/web/src/components/table/data-table-toolbar.tsx
@@ -180,13 +180,13 @@ export function DataTableToolbar<TData, TValue>({
<Button
variant="outline"
size="default"
- className="flex w-auto items-center justify-between gap-1 rounded-l-none border-l-0"
+ className="w-30 flex items-center justify-between gap-1 rounded-l-none border-l-0"
>
- <span className="flex items-center gap-1">
+ <span className="flex items-center gap-1 truncate">
{searchConfig.tableAllowsFullTextSearch &&
(searchConfig.searchType ?? []).includes("content")
- ? "Metadata + Full Text"
- : "Metadata"}
+ ? "Full Text"
+ : "IDs / Names"}
<DocPopup
description={
<>
@@ -242,13 +242,13 @@ export function DataTableToolbar<TData, TValue>({
}}
>
<DropdownMenuRadioItem value="metadata">
- Metadata
+ IDs / Names
</DropdownMenuRadioItem>
<DropdownMenuRadioItem
value="metadata_fulltext"
disabled={!searchConfig.tableAllowsFullTextSearch}
>
- Metadata + Full Text
+ Full Text
</DropdownMenuRadioItem>
</DropdownMenuRadioGroup>
</DropdownMenuContent>
diff --git a/web/src/components/table/use-cases/traces.tsx b/web/src/components/table/use-cases/traces.tsx
index 27b9679f44..c98ceb0ffc 100644
--- a/web/src/components/table/use-cases/traces.tsx
+++ b/web/src/components/table/use-cases/traces.tsx
@@ -1075,7 +1075,7 @@ export default function TracesTable({
}}
filterColumnDefinition={transformedFilterOptions}
searchConfig={{
- metadataSearchFields: ["ID", "Name", "Trace Name", "User ID"],
+ metadataSearchFields: ["ID", "Trace Name", "User ID"],
updateQuery: setSearchQuery,
currentQuery: searchQuery ?? undefined,
tableAllowsFullTextSearch: true,