Allow reporting a problem from the onboarding screen

This commit is contained in:
Stefan Ceriu
2024-01-20 17:10:12 +02:00
parent 261258dd0a
commit 0fe52fe54b
16 changed files with 71 additions and 23 deletions
@@ -24,7 +24,7 @@ enum BugReportScreenCoordinatorResult {
struct BugReportScreenCoordinatorParameters {
let bugReportService: BugReportServiceProtocol
let userID: String
let userID: String?
let deviceID: String?
let userIndicatorController: UserIndicatorControllerProtocol?
@@ -21,7 +21,7 @@ typealias BugReportScreenViewModelType = StateStoreViewModel<BugReportScreenView
class BugReportScreenViewModel: BugReportScreenViewModelType, BugReportScreenViewModelProtocol {
private let bugReportService: BugReportServiceProtocol
private let userID: String
private let userID: String?
private let deviceID: String?
private let actionsSubject: PassthroughSubject<BugReportScreenViewModelAction, Never> = .init()
// periphery:ignore - when set to nil this is automatically cancelled
@@ -32,7 +32,7 @@ class BugReportScreenViewModel: BugReportScreenViewModelType, BugReportScreenVie
}
init(bugReportService: BugReportServiceProtocol,
userID: String,
userID: String?,
deviceID: String?,
screenshot: UIImage?,
isModallyPresented: Bool) {