-
Notifications
You must be signed in to change notification settings - Fork 823
My Jetpack: Unify the user connection screen #44469
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
My Jetpack: Unify the user connection screen #44469
Conversation
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.
Pull Request Overview
This PR unifies the user connection flow across My Jetpack by creating a dedicated onboarding-style page for user connection. Instead of having separate connection flows throughout the interface, all user connection actions now redirect to a unified screen accessible via &step=connect-user
.
- Unified all user connection entry points to use a single screen (
step=connect-user
) - Updated connection handling logic to support both site and user connection flows
- Modified connection form to display different content based on connection status
Reviewed Changes
Copilot reviewed 33 out of 33 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
projects/packages/my-jetpack/src/class-initializer.php | Added routing logic for connect-user step and updated redirect handling |
projects/packages/my-jetpack/_inc/components/onboarding-screen/connection-form/connection-form.tsx | Enhanced connection form to handle both site and user connection states |
projects/packages/my-jetpack/_inc/admin.jsx | Updated routing to support connect-user step alongside onboarding |
projects/plugins/jetpack/_inc/client/components/settings-card/index.jsx | Changed user connection flow to redirect to unified screen |
Multiple files | Updated URL references from hash-based routing to step parameter approach |
...ts/packages/my-jetpack/_inc/components/onboarding-screen/connection-form/connection-form.tsx
Outdated
Show resolved
Hide resolved
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
9b7d468
to
63eed79
Compare
*/ | ||
export function getUserConnectionUrl( redirectUrl?: string | null ): string { | ||
return addQueryArgs( getJetpackAdminPageUrl(), { | ||
// This is handled in \Automattic\Jetpack\Connection\Webhooks::controller() |
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.
Can you extend the comment to explain a bit more?
I would restrain from using relative words like "This", cause it might be not sure what they reference.
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.
Updated. Thanks
projects/js-packages/connection/helpers/get-user-connection-url.ts
Outdated
Show resolved
Hide resolved
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.
Approving so you can ship after implementing Robert's comment.
Completes MYJP-237
Proposed changes:
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
jetpack docker wp jetpack disconnect blog