feat: implement activity feed module with debounced filtering, history tracking, and axios service integration

This commit is contained in:
2026-06-24 11:28:37 +05:30
parent de2b5a808f
commit fc61b4cdb6
13 changed files with 442 additions and 156 deletions

View File

@@ -62,8 +62,15 @@ export const activityFeedsService = {
return response;
},
// Called after normal (non-rectification) true anomaly audit
updateAnomalyInDashboard: async (payload: { site_id: string, anomaly_id: number[] }) => {
const response = await axiosClient.post(`/api/audit/auditor/anomaly/update`, payload);
const response = await axiosClient.post('/api/audit/auditor/anomaly/update', payload);
return response;
},
// Called after rectification true anomaly audit
markAnomalyCompleted: async (payload: { anomaly_id: number[], site_id: number }) => {
const response = await axiosClient.post('/api/audit/auditor/anomaly/completed', payload);
return response;
},