-
Notifications
You must be signed in to change notification settings - Fork 115
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: modify JetpackSetupCoordinator
to dismiss progressView
upon successful setup completion
#14981
fix: modify JetpackSetupCoordinator
to dismiss progressView
upon successful setup completion
#14981
Conversation
…animation upon successful setup completion.
|
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.
Thanks @pmusolino for the quick fix, this worked well in my tests.
There is still a case regarding sites connected to Jetpack using Jeptack CP, and accessed using site credentials, we fail to show the remaining of the setup steps, but I think this was broken for quite some time, and it's the case where XCode logs the message I mentioned in the P2:
Attempt to present <WooCommerce.JCPJetpackInstallHostingController: 0x13c072000> on <SwiftUI.UIKitNavigationController: 0x11302a800> (from <SwiftUI.UIKitNavigationController: 0x11302a800>) whose view is not in the window hierarchy.
Anyway, this case is an edge case that we can investigate separately, I'll create a ticket later with more details.
Your fix now fixes the more urgent issue, so , I just left on non-blocking suggestion.
@@ -273,6 +273,7 @@ private extension JetpackSetupCoordinator { | |||
} | |||
}) | |||
} | |||
progressView.dismiss(animated: true) |
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 suggest we move this to the self.stores.synchronizeEntities
onCompletion, to make sure we are not dismissing the progress view until we finish all tasks, WDYT?
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.
Yes it makes sense, updated here 3b7238b
…se closure in `JetpackSetupCoordinator`
Closes: #14975
Description
After logging into a store where Jetpack is not connected (whether or not Jetpack is installed), @rachelmcr encountered an issue where the process gets stuck on the "Syncing data" screen after installing or connecting Jetpack.
This happens because there is a
progressView.dismiss(animated: true)
missing if the connection is successful.Steps to reproduce
Testing information
There are 4 cases that I tested on a Jurassic Ninja store.
Case 1
Case 2
Case 3
Case 4
RELEASE-NOTES.txt
if necessary.Reviewer (or Author, in the case of optional code reviews):
Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement: