feat: implement administrative audit allocation and management dashboard pages with supporting API services

This commit is contained in:
2026-07-12 18:19:50 +05:30
parent b667fe1082
commit e5c2b047d7
8 changed files with 551 additions and 248 deletions

View File

@@ -81,6 +81,22 @@ export const activityFeedsService = {
return response;
},
// Dashboard stats scoped to the logged-in user (org-wide for
// ADMIN/MODERATOR): overall workload, today's activity, and the workload
// split into batches of 50 in the same order the audit session walks.
getUserStats: async (isRectificationEnabled: boolean) => {
const response = await axiosClient.get('/api/audit/anomaly/user-stats', {
params: { isRectificationEnabled }
});
return response as unknown as {
scoped: boolean;
batchSize: number;
overall: { total: number; audited: number; pending: number; anomaliesFound: number };
today: { audited: number; anomaliesFound: number };
batches: { batch: number; total: number; audited: number; pending: number; anomaliesFound: number }[];
};
},
getFalseAnomaly: async (params: any) => {
const response = await axiosClient.get('/api/audit/asset/get-false-Anomaly', { params });
return response;