diff --git a/agenta-web/src/components/pages/observability/ObservabilityDashboard.tsx b/agenta-web/src/components/pages/observability/ObservabilityDashboard.tsx index ba3e6b94bd..859129d88a 100644 --- a/agenta-web/src/components/pages/observability/ObservabilityDashboard.tsx +++ b/agenta-web/src/components/pages/observability/ObservabilityDashboard.tsx @@ -81,6 +81,7 @@ const ObservabilityDashboard = () => { const [editColumns, setEditColumns] = useState(["span_type", "key", "usage"]) const [isFilterColsDropdownOpen, setIsFilterColsDropdownOpen] = useState(false) const [isTestsetDrawerOpen, setIsTestsetDrawerOpen] = useState(false) + const [selectedRowKeys, setSelectedRowKeys] = useState([]) const [columns, setColumns] = useState>([ { title: "ID", @@ -265,6 +266,12 @@ const ObservabilityDashboard = () => { return () => clearInterval(interval) }, []) + const rowSelection = { + onChange: (selectedRowKeys: React.Key[]) => { + setSelectedRowKeys(selectedRowKeys) + }, + } + const selectedItem = useMemo( () => (traces?.length ? getNodeById(traces, selected) : null), [selected, traces], @@ -541,7 +548,7 @@ const ObservabilityDashboard = () => { @@ -558,6 +565,12 @@ const ObservabilityDashboard = () => {
[]} dataSource={traces}