feat(election): audit log UI with server-side filter, pagination, entity-aware actions

- New ElectionAuditLogComponent: timeline view, expandable JSON details
- Server-side filtering: entityType, action, full-text search (350ms debounce)
- Pagination bar with page size selector (10/20/50 per page)
- Action dropdown filtered by selected entity (CANDIDATE shows only
  candidate actions, NOMINATION shows nomination actions, etc.)
- Entity change resets action filter automatically
- election.service.ts: getAuditLog() sends query params to backend
- Audit Log button added to every election card in dashboard
- Route: /election/:electionId/audit-log

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jaanu423
2026-06-29 13:02:45 +05:30
co-authored by Claude Sonnet 4.6
parent f1b829a100
commit 960e4e181b
7 changed files with 836 additions and 1 deletions
@@ -132,6 +132,9 @@
<mat-icon>bar_chart</mat-icon> Results
</a>
}
<a [routerLink]="['/election', election.id, 'audit-log']" class="btn-audit">
<mat-icon>history</mat-icon> Audit Log
</a>
</div>
</div>
}