-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Jetpack Content Migration: Refactor "Open WordPress" screen to appear only when the app launches #19961
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
Jetpack Content Migration: Refactor "Open WordPress" screen to appear only when the app launches #19961
Conversation
Generated by 🚫 dangerJS |
You can test the changes in Jetpack from this Pull Request by:
|
You can test the changes in WordPress from this Pull Request by:
|
twstokes
left a comment
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.
This LGTM @salimbraksa! 🚀
I tested:
- The migration flow
- "No thanks" -> logging in
- "No thanks" -> restart -> migrating
- Clean install without WordPress installed
- On iPad
And didn't spot any issues. 👍
Currently the PR is targeted for trunk so we'll need to update that to the 21.5 release. Thanks!
dvdchr
left a comment
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.
I've also tested the steps, and it fixes the issue as described. 👍🏼
Simulator.Screen.Recording.-.iPhone.14.Pro.-.2023-01-20.at.22.25.07.mp4
I suspect this is because after returning to WordPress and getting a migration error, the sign-in UI is not shown because the Load WordPress UI is currently being shown.
Additionally, when testing the local draft scenario (refer to no. 7 from the table below), it unexpectedly showed me the 🔁 Open WordPress flow when it should've been the 🔐 Sign-in flow. I'm suspecting the root cause is the same as the above 🤔
Here's a table:
| No. | WordPress app | Account state | Scenario | Expected flow | Result |
|---|---|---|---|---|---|
| 1 | Not installed | n/a | n/a | 🔐 Sign-in flow | unchanged |
| 2 | Incompatible | Any | Any | 🔐 Sign-in flow | unchanged |
| 3 | Compatible | Logged out | Never opened | 🔁 Open WordPress | unchanged |
| 4 | Compatible | Logged out | Log in > then tap the Jetpack banner | 🟢 Normal migration | unchanged |
| 5 | Compatible | Logged in | Never opened | 🔁 Open WordPress | unchanged |
| 6 | Compatible | Logged in | Tap the Jetpack banner | 🟢 Normal migration | unchanged |
| 7 | Compatible | Logged in | Airplane mode > create local draft > tap the Jetpack banner | 🔐 Sign-in flow | 🔁 Open WordPress |
| 8 | Compatible | Logged in | Log out | 🔐 Sign-in flow | unchanged |
|
👋🏼 @salimbraksa, @twstokes. I've pushed f73e480 which should address all the issues I've raised in my previous comment.
Here are three test scenarios to verify: 1️⃣ Verifying that the Open WordPress loop is fixed:
2️⃣ Verifying the local draft scenario shows the 🔐 Sign-in flow:
3️⃣ Verifying that the original issue remains fixed:
Lastly, here's the updated table for the overall migration pathways:
|
|
Thank you @dvdchr for the catch and fix! It appears what's left is to target this for the
Update: This is done and I'm going to re-test now. |
f73e480 to
86a0ed4
Compare
|
Thanks @twstokes for rebasing this PR. I was about to work on that. I'll help with testing as well. |
|
I tested:
And all succeeded. 🎉 |
|
I tested the following:
All good 🚀 |
… only when the app launches (#19961)
Fixes #19950
Description
This PR fixes an issue where the Login Flow was restarting every time the app enters the foreground. The solution that resolves this issue is showing the "Load WordPress" screen only if the
rootViewControllerisnil.Simulator.Screen.Recording.-.iPhone.14.-.2023-01-19.at.12.40.53.mp4
CleanShot.2023-01-20.at.13.19.40.mp4
Test Instructions
Case 1: WordPress app installed
Case 2: WordPress app not installed
Bonus
Although this PR shouldn't impact the content migration logic, but it would be great to make sure the migration flow is still working as expected. 🙇
Regression Notes
Potential unintended areas of impact
This PR only impacts when the "Load WordPress" is shown. Previously it was shown every time the app enters foreground, now it only appears at launch.
What I did to test those areas of impact (or what existing automated tests I relied on)
Manual testing.
What automated tests I added (or what prevented me from doing so)
None.
PR submission checklist:
RELEASE-NOTES.txtif necessary.