Implement report verification interface with audit log

- Add verify/dispute endpoints to backend API
- Create verification service methods with auto-hide logic for 3+ disputes
- Update ReportDetailModal with verification buttons and comment forms
- Add verification audit log display showing history of verifications/disputes
- Implement auto-hide warning for disputed reports
- Update MapPage to handle verification actions and refresh data
- Add verification counts to report responses
- Filter out disputed reports from public view by default
- Add verification test script

Requirements: 7.1, 7.2, 7.3, 7.4, 7.5
This commit is contained in:
2025-11-16 22:11:40 +00:00
parent 53cc84e832
commit f603ea8fda
8 changed files with 567 additions and 38 deletions

View File

@@ -106,6 +106,19 @@ export interface CreateReportDTO {
}[];
}
export interface Verification {
id: string;
reportId: string;
userId: string;
verificationType: 'verify' | 'dispute';
comment?: string;
createdAt: Date;
user: {
id: string;
username: string;
};
}
export interface ReportResponseDTO extends Report {
user: {
id: string;
@@ -115,6 +128,7 @@ export interface ReportResponseDTO extends Report {
verificationCount: number;
disputeCount: number;
environmentalConcerns: EnvironmentalConcern[];
verifications?: Verification[];
}
export interface FilterState {