-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat: port BrowserViewController - WPB-15927 #2566
base: develop
Are you sure you want to change the base?
feat: port BrowserViewController - WPB-15927 #2566
Conversation
@@ -54,7 +54,8 @@ class DetermineAuthMethodComponent: Component<DetermineAuthMethodComponentDepend | |||
@MainActor var determineAuthMethodView: DetermineAuthMethodView { | |||
DetermineAuthMethodView( | |||
viewModel: viewModel, | |||
builder: loginViaEmailComponent | |||
builder: loginViaEmailComponent, |
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.
Should we rename this builder
?
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.
Do you mean, rename it to loginViaEmailBuilder
? I would say yes.
Test Results34 tests 34 ✅ 6s ⏱️ Results for commit d8d1460. ♻️ This comment has been updated with latest results. |
Datadog ReportBranch report: ✅ 0 Failed, 29 Passed, 0 Skipped, 6.7s Total Time |
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.
Nice work. Personally I'm still not sure about the Router
pattern we are using but happy to follow along and see where it leads us.
...ication/Sources/WireAuthenticationUI/Views/DetermineAuthMethod/DetermineAuthMethodView.swift
Outdated
Show resolved
Hide resolved
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.
looks good but had a few questions
@@ -54,7 +54,8 @@ class DetermineAuthMethodComponent: Component<DetermineAuthMethodComponentDepend | |||
@MainActor var determineAuthMethodView: DetermineAuthMethodView { | |||
DetermineAuthMethodView( | |||
viewModel: viewModel, | |||
builder: loginViaEmailComponent | |||
builder: loginViaEmailComponent, |
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.
Do you mean, rename it to loginViaEmailBuilder
? I would say yes.
WireAuthentication/Sources/WireAuthenticationUI/Views/Root/Router.swift
Outdated
Show resolved
Hide resolved
WireAuthentication/Sources/WireAuthenticationUI/Views/Root/RootViewModel.swift
Outdated
Show resolved
Hide resolved
...ication/Sources/WireAuthenticationUI/Views/DetermineAuthMethod/DetermineAuthMethodView.swift
Outdated
Show resolved
Hide resolved
WireAuthentication/Sources/WireAuthenticationUI/Views/Root/Router.swift
Outdated
Show resolved
Hide resolved
WireAuthentication/Sources/WireAuthenticationUI/Views/Login/LoginViaSSO/LoginViaSSOView.swift
Outdated
Show resolved
Hide resolved
WireAuthentication/Sources/WireAuthenticationUI/Views/Login/LoginViaSSO/BrowserView.swift
Outdated
Show resolved
Hide resolved
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.
Nice work!
...thentication/Sources/WireAuthenticationUI/Views/Login/LoginViaSSO/LoginViaSSOViewModel.swift
Outdated
Show resolved
Hide resolved
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.
Great work 💯
...on/Sources/WireAuthenticationUI/Views/DetermineAuthMethod/DetermineAuthMethodViewModel.swift
Outdated
Show resolved
Hide resolved
...ication/Sources/WireAuthenticationUI/Views/DetermineAuthMethod/DetermineAuthMethodView.swift
Outdated
Show resolved
Hide resolved
WireAuthentication/Sources/WireAuthenticationUI/Views/Login/LoginViaSSO/LoginViaSSOView.swift
Outdated
Show resolved
Hide resolved
…eAuthMethod/DetermineAuthMethodView.swift Co-authored-by: John Nguyen <[email protected]>
Issue
We need to display the SSO login Web page in-app as a modal view, not as a part of the navigation stack.
Solution
We are currently using
SFSafariViewController
, but will probably want to use[ASWebAuthenticationSession](https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsession)
in the future. Switching toASWebAuthenticationSession
is not that easy, so I decided to copyBrowserViewController
and create a ticket for the future to investigate and decide whether we need/should useASWebAuthenticationSession
.Testing
Checklist
[WPB-XXX]
.UI accessibility checklist
If your PR includes UI changes, please utilize this checklist: