🪢 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(dashboard): correctly display name filters on widget edit (#7522)
Steffen Schmitz6d9956ae6ef7
diff --git a/web/src/features/widgets/components/WidgetForm.tsx b/web/src/features/widgets/components/WidgetForm.tsxindex 7bad1be203..a833929519 100644--- a/web/src/features/widgets/components/WidgetForm.tsx+++ b/web/src/features/widgets/components/WidgetForm.tsx@@ -190,7 +190,21 @@ export function WidgetForm({const { selectedOption, dateRange, setDateRangeAndOption } =useDashboardDateRange({ defaultRelativeAggregation: "7 days" });const [userFilterState, setUserFilterState] = useState<FilterState>(- initialValues.filters ?? [],+ initialValues.filters?.map((filter) => {+ if (filter.column === "name") {+ // We need to map the generic `name` property to the correct column name for the selected view+ return {+ ...filter,+ column:+ initialValues.view === "traces"+ ? "traceName"+ : initialValues.view === "observations"+ ? "observationName"+ : "scoreName",+ };+ }+ return filter;+ }) ?? [],);const traceFilterOptions = api.traces.filterOptions.useQuery(