IssueReporterUiState

data class IssueReporterUiState(val title: String = "", val description: String = "", val email: String = "", val fieldErrors: IssueReportValidation = IssueReportValidation(), val submissionState: IssueSubmissionState = IssueSubmissionState.Editing, val deviceInfo: Loadable<String> = Loadable.Empty())(source)

Everything the issue reporter sheet renders. The form fields survive submission and are cleared when the sheet is dismissed.

Constructors

Link copied to clipboard
constructor(title: String = "", description: String = "", email: String = "", fieldErrors: IssueReportValidation = IssueReportValidation(), submissionState: IssueSubmissionState = IssueSubmissionState.Editing, deviceInfo: Loadable<String> = Loadable.Empty())

Properties

Link copied to clipboard
Link copied to clipboard

The device details as plain text. Stays Loadable.Empty until the device panel is first opened.

Link copied to clipboard
Link copied to clipboard

The errors shown under the fields. Set by a send that failed validation, and cleared field by field as the author edits.

Link copied to clipboard

Which of the editor and the confirmation shows.

Link copied to clipboard