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

Fix unresponsive "Onboarding Questions" screen #19791

Merged
merged 2 commits into from
Jan 23, 2023

Conversation

salimbraksa
Copy link
Contributor

@salimbraksa salimbraksa commented Dec 19, 2022

Fixes #19774

Description

This PR resolves an issue that was causing the user to get stuck in the "Onboarding Questions" screen.

Before After
bug.mp4
CleanShot.2022-12-23.at.16.13.01.mp4

Related PR

Test Instructions

Prerequisites

Account Setup

Have an account with at least 2 sites and 2FA enabled.

Simulate Auth Token Issue

  1. Log into your account.
  2. Go to WPAuthTokenIssueSolver.m file and change hasAuthTokenIssues to return true
- (BOOL)hasAuthTokenIssues
{
//    NSManagedObjectContext *context = [[ContextManager sharedInstance] mainContext];
//    WPAccount *account = [WPAccount lookupDefaultWordPressComAccountInContext:context];
//
//    BOOL hasAuthTokenIssues = account && ![account authToken];
//
//    return hasAuthTokenIssues;
    return true;
}
  1. Build and run the WordPress app
  2. Expect the Log In screen to appear

  1. Follow Prerequisites steps
  2. Enter your password
  3. Expect the 2FA screen to appear
  4. Enter 2FA code, then tap Continue
  5. Expect the Blogs List screen to appear
  6. Select any blog
  7. Expect the “What would you like to focus on first?” screen to appear
  8. Tap any button
  9. Expect the next screen to show up

Regression Notes

  1. Potential unintended areas of impact
    None.

  2. What I did to test those areas of impact (or what existing automated tests I relied on)
    None.

  3. What automated tests I added (or what prevented me from doing so)
    None.

PR submission checklist:

  • I have completed the Regression Notes.
  • I have considered adding unit tests for my changes.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@salimbraksa salimbraksa changed the base branch from trunk to wpshared-remove-cocoalumberjack December 19, 2022 21:24
@salimbraksa salimbraksa changed the base branch from wpshared-remove-cocoalumberjack to trunk December 19, 2022 21:25
@salimbraksa salimbraksa self-assigned this Dec 19, 2022
@wpmobilebot
Copy link
Contributor

wpmobilebot commented Dec 19, 2022

You can test the changes in Jetpack from this Pull Request by:
  • Clicking here or scanning the QR code below to access App Center
  • Then installing the build number pr19791-ce5dbc5 on your iPhone

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

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Dec 19, 2022

You can test the changes in WordPress from this Pull Request by:
  • Clicking here or scanning the QR code below to access App Center
  • Then installing the build number pr19791-ce5dbc5 on your iPhone

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

@salimbraksa salimbraksa changed the base branch from trunk to task/fix-wordpress-kit-compatibilty-issue December 23, 2022 13:54
@salimbraksa salimbraksa force-pushed the task/fix-onboarding-questions-unresponsive branch from bfcced8 to ac88772 Compare December 23, 2022 13:57
@salimbraksa salimbraksa force-pushed the task/fix-onboarding-questions-unresponsive branch from ac88772 to 5eef2c7 Compare December 23, 2022 14:04
@salimbraksa salimbraksa reopened this Dec 23, 2022
@salimbraksa salimbraksa changed the title Task/fix onboarding questions unresponsive Fix unresponsive "Onboarding Questions" screen Dec 23, 2022
@salimbraksa salimbraksa added this to the 21.6 milestone Dec 23, 2022
@salimbraksa salimbraksa marked this pull request as ready for review December 23, 2022 15:15
@salimbraksa salimbraksa requested a review from twstokes January 1, 2023 21:46
Copy link
Contributor

@twstokes twstokes left a comment

Choose a reason for hiding this comment

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

This worked great! I also approved wordpress-mobile/WordPressAuthenticator-iOS#719 (review). 🚀

For the pod to get pulled down I had to specify the commit hash rather than the branch. It looks like the branch name is out of sync and still pointing to 98dc0b8 instead of 03e2e89 that was force-pushed.

That should get ironed out once the merging / tagging takes place on the WordPressAuthenticator side.

I'd also consider a release note for this. 👍

@salimbraksa salimbraksa changed the base branch from task/fix-wordpress-kit-compatibilty-issue to trunk January 19, 2023 14:12
@salimbraksa salimbraksa force-pushed the task/fix-onboarding-questions-unresponsive branch from 690dc78 to 3a11a12 Compare January 19, 2023 14:13
@salimbraksa salimbraksa force-pushed the task/fix-onboarding-questions-unresponsive branch from 3a11a12 to 230140d Compare January 19, 2023 14:16
@salimbraksa salimbraksa reopened this Jan 19, 2023
@peril-wordpress-mobile
Copy link

Warnings
⚠️ This PR is assigned to a milestone which is closing in less than 4 days Please, make sure to get it merged by then or assign it to a later expiring milestone

Generated by 🚫 dangerJS

@salimbraksa salimbraksa enabled auto-merge (squash) January 19, 2023 14:21
@mokagio
Copy link
Contributor

mokagio commented Jan 23, 2023

Since this PR was approved and the auto-merged enabled, the RELEASE-NOTES.txt developed conflicts.

I resolved them (with GitHub's web editor, for a change) and am now waiting for the auto-merge to kick in before starting the 21.6 code freeze.

@salimbraksa salimbraksa merged commit 27b5988 into trunk Jan 23, 2023
@salimbraksa salimbraksa deleted the task/fix-onboarding-questions-unresponsive branch January 23, 2023 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

During the "Log In" flow, the "Onboarding Questions" screen sometimes doesn't respond to user touches
4 participants