mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-25 11:31:12 -05:00
Implement Phase 1 audit logging
Add centralized admin action logger and integrate logging for: - Alert resolutions (system, rate limit, grouped) - Role grants/revokes in UserRoleManager - Incident creation/acknowledgement/resolution - Moderation lock overrides Includes file updates and usage across relevant components to ensure consistent audit trails.
This commit is contained in:
@@ -44,6 +44,14 @@ export function useResolveAlertGroup() {
|
||||
}
|
||||
}
|
||||
|
||||
// Log to audit trail
|
||||
const { logAdminAction } = await import('@/lib/adminActionAuditHelpers');
|
||||
await logAdminAction('alert_group_resolved', {
|
||||
alert_source: source,
|
||||
alert_count: alertIds.length,
|
||||
alert_ids: alertIds,
|
||||
});
|
||||
|
||||
return { count: alertIds.length, updatedAlerts: data };
|
||||
},
|
||||
onMutate: async ({ alertIds }) => {
|
||||
|
||||
Reference in New Issue
Block a user