-
Notifications
You must be signed in to change notification settings - Fork 2k
Connect Refresh: Remove JP-Connect signup (create-account) components completely #105157
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
base: trunk
Are you sure you want to change the base?
Connect Refresh: Remove JP-Connect signup (create-account) components completely #105157
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
|
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
995f513 to
7d59977
Compare
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 works great and code changes look good! I'm able to connect my site to Jetpack when I'm not logged, logged in or with a newly created account.
Creating an account flow shows one possible regression:
Creating a new account takes me to the new page now but we lose of the Jetpack branding. On the left is production, on the right is this branch. This was the case for WooJPC as well but switching from the Jetpack green made it really obvious
Tested as:
- Start a test site
- Make sure you are logged out of WordPress.com
- Go to
wp-admin> Jetpack and find a CTA to connect - Clicking the CTA, replace the URL from wordpress.com to calypso.localhost:3000
- See the create account screen
|
Thanks @raicem for the testing and insights! Appreciate the details. When you mention:
Just to make sure - do you mean the same raw create-account page was rendered for WooJPC as well? I think we get the properly unified one in that case, right? (otherwise it must be some parameter missing to not be passing the isWooJPC checks) 🤔 For the Jetpack one, we probably need to pass a parameter |
64c5a91 to
5312f73
Compare
Indeed, it was properly unified and had no issues at all. WooJPC styling is way more subtle, and redirecting to unified signup looks OK. Redirecting Jetpack login to unified signup looks more drastic. Suddenly, Jetpack green is gone. So I wanted to highlight that bit. It was not a blocker to merge the PR.
I flipped |
|
This PR has been marked as stale. This happened because:
If this PR is still useful, please do a trunk merge or rebase and otherwise make sure it's up to date and has clear testing instructions. You may also want to ping possible reviewers in case they've forgotten about it. Please close this PR if you think it's not valid anymore — if you do, please add a brief explanation. If the PR is not updated (or at least commented on) in another month, it will be automatically closed. |
Part of https://linear.app/a8c/issue/DOTCOM-13218/signup-update-and-unify-the-account-creation-screens
Part of https://linear.app/a8c/issue/DOTCOM-14131/signup-woojpc-and-woodna-update-create-an-account-screen
Follows up from #105156
Proposed Changes
The JP Connect flow renders its own Signup components as part of its routing middleware. As of #105135 for Woo JPC & Woo DNA we no longer utilise these components. We instead redirect to
/start/accountand back so signup happens through our standardised Signup frameworks.We remove these componenets completely and make the redirection the default/only behavior. I cannot think of a reason to keep importing and signing up users through JP Connect directly.
Why are these changes being made?
Part of https://linear.app/a8c/issue/DOTCOM-13218/signup-update-and-unify-the-account-creation-screens
Part of https://linear.app/a8c/issue/DOTCOM-14131/signup-woojpc-and-woodna-update-create-an-account-screen
Follows up from #105156
Testing Instructions
I am not sure how these components are utilised outside of Woo JPC. Assuming nothing else currently requires the JP signup form, then we should be good to deploy when build passes.
The route that consumes the JP Signup form is: /jetpack/connect/authorize
Pre-merge Checklist