-
Notifications
You must be signed in to change notification settings - Fork 798
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/connection status inconsistencies #40632
base: trunk
Are you sure you want to change the base?
Conversation
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance! |
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Proposed changes:
The main purpose of this PR is to unify the connections states and flows in My Jetpack. It should now follow these rules
Other information:
Jetpack product discussion
GH: 3687b-pb/
Does this pull request change what data or activity we track or use?
Yes, there is going to be new events
jetpack_myjetpack_product_card_fix_site_connection_click
jetpack_myjetpack_product_card_fix_site_connection_success
For when a user connects their site via a product card
Testing instructions:
Checkout this branch via the Jetpack Beta plugin or your local dev environment
Go to
/wp-admin/admin.php?page=my-jetpack
and scroll down to the bottomSelect
Connect your site with one click
. Ensure you are scrolled to the top of the page and that after connection, you are directed to the pricing pagesite-connection.mov
Disconnect your site and ensure you see a few product cards with the
Connect
CTASelect Connect and ensure a similar experience to the footer happens where you are connected, brought to the pricing page, and then back to My Jetpack
Scroll down to the bottom again and select
Sign In
in the connection footer. On the Connection page, selectConnect your user account
Ensure you are led to the user connection flow, and after connecting, you go straight back to the plugin instead of the pricing page
Purchase a Jetpack Security plan for your site however you'd like (I used the Store Admin)
Go back to My Jetpack and disconnect your site
Confirm you see the site connection notice instead of the welcome banner
Scroll down to the connection footer and select
Connect
Ensure you have a similar experience where the screen scrolls to the top and connects the site, then directs to the pricing page
Go back to My Jetpack and confirm you see the User connection banner now
Note: There are other ways to connect I didn't explicitly cover (Such as user connection from the
Activate a license
link), feel free to try out any connection flow you can think of to ensure all site connections and user connections act exactly the same.