Redesign report form and prevent duplicate reports (#3211)

* Redesign report form and prevent duplicate reports

* Fix lint

* Add malware evidence notice to report form

* Fix lint
This commit is contained in:
Prospector
2025-02-02 14:09:10 -08:00
committed by GitHub
parent 9574e8e639
commit a8630e93bc
9 changed files with 639 additions and 149 deletions

View File

@@ -1,7 +1,7 @@
export const BASE62_CHARS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
export type Base62Char = (typeof BASE62_CHARS)[number]
export type ModrinthId = `${Base62Char}`[]
export type ModrinthId = string
export type Environment = 'required' | 'optional' | 'unsupported' | 'unknown'
@@ -241,3 +241,15 @@ export interface TeamMember {
payouts_split: number
ordering: number
}
export type Report = {
id: ModrinthId
item_id: ModrinthId
item_type: 'project' | 'version' | 'user'
report_type: string
reporter: ModrinthId
thread_id: ModrinthId
closed: boolean
created: string
body: string
}