refactor: update report types and statuses to remove useless values

This commit is contained in:
2026-01-31 16:07:09 -05:00
parent fb41995d53
commit 4057f2303c
3 changed files with 4 additions and 10 deletions
+2 -4
View File
@@ -25,14 +25,12 @@ export interface ReportListResponse {
} }
export const reportTypeLabels = [ export const reportTypeLabels = [
'Spam',
'Abuse',
'InappropriateContent',
'CopyrightViolation', 'CopyrightViolation',
'IllegalContent',
'Fraud', 'Fraud',
'Other' 'Other'
] as const; ] as const;
export const reportStatusLabels = ['Open', 'InProgress', 'Resolved', 'Closed'] as const; export const reportStatusLabels = ['Open', 'Closed'] as const;
export const reportTargetLabels = ['Paste', 'User'] as const; export const reportTargetLabels = ['Paste', 'User'] as const;
+1 -1
View File
@@ -8,7 +8,7 @@ namespace SharpbinV3.Server.DTOs.Report
[MinLength(12), MaxLength(1000)] [MinLength(12), MaxLength(1000)]
public string Description { get; set; } = string.Empty; public string Description { get; set; } = string.Empty;
[Required] [Required]
public string ReportType { get; set; } = string.Empty; // e.g., "Spam", "Abuse", etc. public string ReportType { get; set; } = string.Empty;
public string ReportStatus { get; set; } = "Open"; public string ReportStatus { get; set; } = "Open";
public string? VerificationToken { get; set; } public string? VerificationToken { get; set; }
} }
+1 -5
View File
@@ -36,16 +36,12 @@ namespace SharpbinV3.Server.Data.Entities
public enum ReportStatus public enum ReportStatus
{ {
Open, Open,
InProgress,
Resolved,
Closed Closed
} }
public enum ReportType public enum ReportType
{ {
Spam,
Abuse,
InappropriateContent,
CopyrightViolation, CopyrightViolation,
IllegalContent,
Fraud, Fraud,
Other Other
} }