Skip to content

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

chore(ui): Add free text option to dynamically populated filter options (#3020)

marliessophie91cd86a28689
diff --git a/web/src/components/table/use-cases/generations.tsx b/web/src/components/table/use-cases/generations.tsx
index b92b0028d5..73e9d9dc79 100644
--- a/web/src/components/table/use-cases/generations.tsx
+++ b/web/src/components/table/use-cases/generations.tsx
@@ -709,6 +709,7 @@ export default function GenerationsTable({
updateQuery: setSearchQuery,
currentQuery: searchQuery ?? undefined,
}}
+ columnsWithCustomSelect={["model", "name", "traceName", "promptName"]}
columnVisibility={columnVisibility}
setColumnVisibility={setColumnVisibilityState}
rowHeight={rowHeight}
diff --git a/web/src/components/table/use-cases/traces.tsx b/web/src/components/table/use-cases/traces.tsx
index 0ae1a5ad2b..a55a1a5dae 100644
--- a/web/src/components/table/use-cases/traces.tsx
+++ b/web/src/components/table/use-cases/traces.tsx
@@ -672,6 +672,7 @@ export default function TracesTable({
}}
filterState={userFilterState}
setFilterState={useDebounce(setUserFilterState)}
+ columnsWithCustomSelect={["name", "tags"]}
actionButtons={
Object.keys(selectedRows).filter((traceId) =>
traces.data?.traces.map((t) => t.id).includes(traceId),
diff --git a/web/src/features/prompts/components/prompts-table.tsx b/web/src/features/prompts/components/prompts-table.tsx
index 5ffa8ee22a..66144d9b70 100644
--- a/web/src/features/prompts/components/prompts-table.tsx
+++ b/web/src/features/prompts/components/prompts-table.tsx
@@ -259,6 +259,7 @@ export function PromptTable() {
setFilterState={useDebounce(setFilterState)}
selectedOption={selectedOption}
setDateRangeAndOption={setDateRangeAndOption}
+ columnsWithCustomSelect={["labels", "tags"]}
actionButtons={
<Link href={`/project/${projectId}/prompts/new`}>
<Button