-
Notifications
You must be signed in to change notification settings - Fork 4
numpad issue resolved #314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -109,6 +109,16 @@ struct OTPScreenView: View { | |||||||||||||||||||||||||||||||||||
| .accessibilityHidden(true) | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| hiddenOTPTextField | ||||||||||||||||||||||||||||||||||||
| .onSubmit { | ||||||||||||||||||||||||||||||||||||
| Task { | ||||||||||||||||||||||||||||||||||||
| do { | ||||||||||||||||||||||||||||||||||||
| try await handleSubmit() | ||||||||||||||||||||||||||||||||||||
| } catch { | ||||||||||||||||||||||||||||||||||||
| controlState.error = error | ||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||
| .submitLabel(.done) | ||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
| .submitLabel(.done) | |
| .submitLabel(.done) | |
| .toolbar { | |
| ToolbarItemGroup(placement: .keyboard) { | |
| Spacer() | |
| Button("Verify") { | |
| isFieldFocused = false | |
| Task { | |
| do { | |
| try await handleSubmit() | |
| } catch { | |
| controlState.error = error | |
| } | |
| } | |
| } | |
| } | |
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,15 +60,15 @@ struct GlobalRightsView: View { | |
| .foregroundColor(.secondary) | ||
| .multilineTextAlignment(.center) | ||
|
|
||
| Text("privacy@momcare.com") | ||
| Text("support.momcare@vision-labs.site") | ||
|
||
| .font(.headline) | ||
| .fontWeight(.semibold) | ||
| .foregroundColor(accentColor) | ||
| .padding(.vertical, 12) | ||
| .padding(.horizontal, 24) | ||
| .background(Color.gray.opacity(0.1)) | ||
| .clipShape(Capsule()) | ||
| .accessibilityLabel("Contact email: privacy@momcare.com") | ||
| .accessibilityLabel("Contact email: support.momcare@vision-labs.site") | ||
|
Comment on lines
+63
to
+71
|
||
| } | ||
| .padding(.vertical, 24) | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -112,6 +112,7 @@ struct ProfileView: View { | |||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| @EnvironmentObject private var authenticationService: AuthenticationService | ||||||||||||||||||||||||||||||||||||||||||||||
| @EnvironmentObject private var controlState: ControlState | ||||||||||||||||||||||||||||||||||||||||||||||
| @Environment(\.openURL) private var openURL | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| private var footerView: some View { | ||||||||||||||||||||||||||||||||||||||||||||||
| VStack(spacing: 4) { | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -121,6 +122,12 @@ struct ProfileView: View { | |||||||||||||||||||||||||||||||||||||||||||||
| Text("Connect with Us") | ||||||||||||||||||||||||||||||||||||||||||||||
| .foregroundStyle(Color("primaryAppColor")) | ||||||||||||||||||||||||||||||||||||||||||||||
| .fontWeight(.medium) | ||||||||||||||||||||||||||||||||||||||||||||||
| .onTapGesture { | ||||||||||||||||||||||||||||||||||||||||||||||
| let url = "mailto:support.momcare@vision-labs.site" | ||||||||||||||||||||||||||||||||||||||||||||||
| if let mailURL = URL(string: url) { | ||||||||||||||||||||||||||||||||||||||||||||||
| openURL(mailURL) | ||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+125
to
+128
|
||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
122
to
+130
|
||||||||||||||||||||||||||||||||||||||||||||||
| Text("Connect with Us") | |
| .foregroundStyle(Color("primaryAppColor")) | |
| .fontWeight(.medium) | |
| .onTapGesture { | |
| let url = "mailto:support.momcare@vision-labs.site" | |
| if let mailURL = URL(string: url) { | |
| openURL(mailURL) | |
| } | |
| } | |
| Button { | |
| let urlString = "mailto:support.momcare@vision-labs.site" | |
| if let mailURL = URL(string: urlString) { | |
| openURL(mailURL) | |
| } | |
| } label: { | |
| Text("Connect with Us") | |
| .foregroundStyle(Color("primaryAppColor")) | |
| .fontWeight(.medium) | |
| } | |
| .buttonStyle(.plain) | |
| .accessibilityLabel("Connect with MomCare support") | |
| .accessibilityHint("Opens your email app to contact support.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The OTP submit flow is now duplicated in both
verifyButtonand the newonSubmithandler (creating separateTask { do/try/await ... }blocks). Consider extracting this into a single privatesubmitOTP()helper to keep behavior consistent and avoid future drift.