Add optional report feature to error dialog (#2229)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
bymyself
2025-01-12 11:23:02 -07:00
committed by GitHub
parent d9b350e159
commit 9d3bc0f173
19 changed files with 733 additions and 72 deletions

View File

@@ -0,0 +1,24 @@
export type DefaultField = 'Workflow' | 'Logs' | 'SystemStats' | 'Settings'
export interface ReportField {
/**
* The label of the field, shown next to the checkbox if the field is opt-in.
*/
label: string
/**
* A unique identifier for the field, used internally as the key for this field's value.
*/
value: string
/**
* The data associated with this field, sent as part of the report.
*/
data: Record<string, unknown>
/**
* Indicates whether the field requires explicit opt-in from the user
* before its data is included in the report.
*/
optIn: boolean
}