Merge pull request 'feat: add incident audit trail API integration and UI component' (#36) from waseem into development

Reviewed-on: https://gitea.maskantech.in/gitea_admin/aeroresolve_frontend/pulls/36
This commit is contained in:
Syed Waseem khadri Rafai
2026-08-18 04:14:17 +00:00
3 changed files with 6 additions and 3 deletions
@@ -63,7 +63,7 @@ export function getIncidentAuditTrail(id: string): Promise<AuditTrailStepDto[]>
return ApiClient.get<any, AuditTrailStepDto[]>(`/recovery-incidents/${id}/audit-trail`);
}
export function createRecoveryIncident(data: Omit<RecoveryIncident, 'id'>): Promise<RecoveryIncident> {
export function createRecoveryIncident(data: Omit<RecoveryIncident, 'id' | 'createdAt' | 'updatedAt'>): Promise<RecoveryIncident> {
return ApiClient.post<any, RecoveryIncident>('/recovery-incidents', data);
}
@@ -31,8 +31,8 @@ export interface IncidentEvaluation {
}
export interface RecoveryIncident {
createdAt: string;
updatedAt: string;
createdAt?: string;
updatedAt?: string;
id: string;
recoveryCode: string;
date: string;
@@ -99,6 +99,9 @@ export default function AuditTrailTab({ incident }: AuditTrailTabProps) {
Lifecycle Timeline & Audit Trail ({code})
</h3>
</div>
{loading && (
<span className="text-xs text-gray-400 animate-pulse">Loading updates...</span>
)}
</div>
<div className="flex flex-col mt-4 pl-2">