Feature/7555 migration part 3

This commit is contained in:
Arnfried Griesert
2026-03-17 13:55:15 +00:00
committed by SDE GitLab
parent 4515ab49e4
commit 585f4a852d
14 changed files with 283 additions and 84 deletions

View File

@@ -21,6 +21,10 @@ struct AuthenticationLoginScreen: View {
/// This must be manually set back to `false` when the text field finishes editing.
@State private var isPasswordFocused = false
// BWI #7555 migration part 3
@State private var showMigrationView = BWIBuildSettings.shared.BuMXMigrationInfoLevel == 3
// BWI #7555 END
// MARK: Public
@ObservedObject var viewModel: AuthenticationLoginViewModel.Context
@@ -110,6 +114,13 @@ struct AuthenticationLoginScreen: View {
.background(theme.colors.background.ignoresSafeArea())
.alert(item: $viewModel.alertInfo) { $0.alert }
.accentColor(theme.colors.accent)
// BWI #7555 migration part 3
.sheet(isPresented: $showMigrationView) {
MigrationInfoView(username: "", getUserName: nil)
.environmentObject(BWIThemeService.shared)
.interactiveDismissDisabled(true)
}
// BWI #7555 END
}
/// The header containing a Welcome Back title.
@@ -163,6 +174,7 @@ struct AuthenticationLoginScreen: View {
Button(action: submit) {
Text(getCustomText(text: .submit))
}
.disabled(BWIBuildSettings.shared.BuMXMigrationInfoLevel > 2) // BWI #7555 migration part 3
.buttonStyle(PrimaryActionButtonStyle())
.disabled(!viewModel.viewState.canSubmit)
.accessibilityIdentifier("nextButton")