🪢 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(events-table): observation filter should show all events (#11761)
Nimareb7dc254287a
diff --git a/web/src/features/events/components/EventsTable.tsx b/web/src/features/events/components/EventsTable.tsxindex adc0297c8b..8f8ead3012 100644--- a/web/src/features/events/components/EventsTable.tsx+++ b/web/src/features/events/components/EventsTable.tsx@@ -199,9 +199,8 @@ export default function ObservationsEventsTable({const { viewMode, setViewMode: setViewModeRaw } =useEventsViewMode(projectId);- // Convert view mode to hasParentObservation filter value- // trace = false (no parent), observation = true (has parent)- const hasParentObservation = viewMode === "observation";+ // For filter options: trace mode filters to root items, observation mode shows all+ const hasParentObservation = viewMode === "observation" ? undefined : false;// Wrap setViewMode to reset pagination when view mode changesconst setViewMode = useCallback(@@ -309,14 +308,17 @@ export default function ObservationsEventsTable({);// Create view mode filter (not shown in sidebar)- const viewModeFilter: FilterState = [- {- column: "hasParentObservation",- type: "boolean",- operator: "=",- value: hasParentObservation,- },- ];+ const viewModeFilter: FilterState =+ viewMode === "trace"+ ? [+ {+ column: "hasParentObservation",+ type: "boolean",+ operator: "=",+ value: false, // Only root-level items (no parent)+ },+ ]+ : [];const filterState = queryFilter.filterState.concat(dateRangeFilter)