Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3053,6 +3053,10 @@
}
}
},
"Please tap on the link in your email to complete verification." : {
"comment" : "A message displayed in a sheet that appears after a user requests email verification. It instructs the user to tap on the link in their email to complete the verification process.",
"isCommentAutoGenerated" : true
},
"PrivacyPolicy" : {
"comment" : "Text linked to a web page with the Privacy Policy content.",
"extractionState" : "manual",
Expand Down Expand Up @@ -4963,5 +4967,5 @@

}
},
"version" : "1.0"
"version" : "1.1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,13 @@ public class StringUtils {
return localizedString(for: "EnterYourPassword")
}

/// Update password title
/// found in:
/// - UpdatePasswordView
public var updatePasswordTitle: String {
return localizedString(for: "UpdatePasswordTitle")
}

/// Password recovery title
/// found in:
/// - PasswordRecoveryView
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ extension MFAManagementView: View {
.onAppear {
loadEnrolledFactors()
}
// Password prompt sheet now centralized in AuthPickerView
}

@ViewBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ extension SignedInView: View {
)
.presentationDetents([.medium])
}
// Password prompt sheet now centralized in AuthPickerView
.sheet(isPresented: $showEmailVerificationSent) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should use .alert instead for better UX

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks better than alert, no?
Image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not really, there's a title, brief message and single action. Either the sheet's height is reduced or a container like .alert if not just looks odd.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I've changed it to alert.

VStack(spacing: 24) {
Text(authService.string.verifyEmailSheetMessage)
.font(.headline)
Text("Please tap on the link in your email to complete verification.")
Button {
showEmailVerificationSent = false
} label: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ extension UpdatePasswordView: View {
}
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .top)
.safeAreaPadding()
.navigationTitle(authService.string.passwordRecoveryTitle)
.navigationTitle(authService.string.updatePasswordTitle)
.alert(
"Password Updated",
isPresented: $showAlert
Expand Down
Loading