diff --git a/webui/src/features/audit/AdminAuditPanel.tsx b/webui/src/features/audit/AdminAuditPanel.tsx index 1c6817a..61a1797 100644 --- a/webui/src/features/audit/AdminAuditPanel.tsx +++ b/webui/src/features/audit/AdminAuditPanel.tsx @@ -1,7 +1,6 @@ import { useCallback, useEffect, useMemo, useRef, useState } from "react"; import { Search } from "lucide-react"; import { - AdminIconButton, AdminPageLayout, adminErrorMessage, Button, @@ -9,6 +8,7 @@ import { Dialog, formatAdminDateTime as formatDateTime, mergeDeltaRows, + TableActionGroup, useDeltaWatermarks, type ApiSettings, type AuthInfo, @@ -118,7 +118,7 @@ export default function AdminAuditPanel({ settings, auth, systemMode = false }: { id: "action", header: "Action", width: 250, minWidth: 170, maxWidth: 420, resizable: true, sortable: true, filterable: true, value: (row) => row.action }, { id: "object", header: "Object", width: 300, minWidth: 180, maxWidth: 640, resizable: true, fill: true, sortable: true, filterable: true, value: (row) => `${row.object_type || "-"} ${row.object_id || ""}`.trim() }, ...(systemMode ? [{ id: "tenant", header: "Tenant context", width: 190, minWidth: 150, maxWidth: 300, resizable: true, sortable: true, filterable: true, value: (row: AuditAdminItem) => row.tenant_id || "-" }] : []), - { id: "actions", header: "Actions", width: 70, sticky: "end", resizable: false, align: "right", render: (row) =>
} onClick={() => setSelected(row)} />
} + { id: "actions", header: "Actions", width: 70, sticky: "end", resizable: false, align: "right", render: (row) => , onClick: () => setSelected(row) }]} /> } ], [systemMode]); const firstShown = total === 0 ? 0 : (page - 1) * pageSize + 1;