Skip to content
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

Login: Code Header #1617

Merged
merged 3 commits into from
Jul 16, 2024
Merged

Login: Code Header #1617

merged 3 commits into from
Jul 16, 2024

Conversation

jleandroperez
Copy link
Contributor

@jleandroperez jleandroperez commented Jul 15, 2024

Fix

In this PR we're building a Haeader in the Authentication Code UI.

Ref. #1611

Scenario: Auth

  1. Fresh install Simplenote
  2. Press on Log in
  3. Enter your email
  4. Press on Log in with your email
  • Verify the new Header looks great
  • Wait until the email arrives
  • Verify that pressing on the link gets you logged into Simplenote

Scenario: Invalid Link

  1. Fresh install Simplenote
  2. Press on Log in
  3. Enter your email
  4. Paste the following link in Notes.app: https://app.simplenote.com/login?email=akB0ZXN0LmNvbQ==&auth_code=QQQQ
  • Verify that shortly after, you get a UI indicating that the link isn't valid
  • Verify that pressing on Request a new Link gets you back into the Login UI

Release

These changes do not require release notes.

@jleandroperez jleandroperez self-assigned this Jul 15, 2024
@dangermattic
Copy link
Collaborator

dangermattic commented Jul 15, 2024

1 Warning
⚠️ View files have been modified, but no screenshot or video is included in the pull request. Consider adding some for clarity.

Generated by 🚫 Danger

@wpmobilebot
Copy link
Collaborator

You can test the changes in simplenote-ios from this Pull Request by:

  • Clicking here or scanning the QR code below to access App Center
  • Then installing the build number pr1617-17cef6b-0190b8a6-be09-40fb-8c05-d658ad18e567 on your iPhone

If you need access to App Center, please ask a maintainer to add you.

@jleandroperez jleandroperez changed the title Login: Code Hader Login: Code Header Jul 15, 2024
@@ -60,7 +60,7 @@ private extension MagicLinkAuthenticator {
NSLog("[MagicLinkAuthenticator] Requesting SyncToken for \(email) and \(authCode)")
NotificationCenter.default.post(name: .magicLinkAuthWillStart, object: nil)

Task {
Task { @MainActor in
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was causing a threading violation

@@ -221,7 +221,7 @@ private extension SPOnboardingViewController {
hostingController.modalPresentationStyle = .formSheet
hostingController.sheetPresentationController?.detents = [.medium()]

let presenter = presentedViewController ?? self
let presenter = navigationController?.visibleViewController ?? self
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since now we may have multiple VCs in the hierarchy, we must access the UINavigationController

@jleandroperez jleandroperez added the enhancement Improve existing functionality. label Jul 15, 2024
@jleandroperez jleandroperez added this to the 4.52 milestone Jul 15, 2024
@jleandroperez jleandroperez marked this pull request as ready for review July 15, 2024 23:19
Base automatically changed from lantean/1611-login-code-ui to trunk July 16, 2024 17:19
@jleandroperez
Copy link
Contributor Author

Thank youuuu

@jleandroperez jleandroperez merged commit e19de82 into trunk Jul 16, 2024
17 of 22 checks passed
@jleandroperez jleandroperez deleted the lantean/1611-login-code-header branch July 16, 2024 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve existing functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants