-
Notifications
You must be signed in to change notification settings - Fork 54
Studio: Make sure that Publish site button navigates to WP.com #2264
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
Conversation
📊 Performance Test ResultsComparing a951b43 vs trunk site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change |
epeicher
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.
Thanks @katinthehatsite for improving this! I have tested it, and it works as expected. I am redirected to the creation site flow, and the site is connected to Studio at the end of the process. Changes also LGTM!
| After clicking on Publish Site | Creating site | Site is created | Site is connected to Studio |
|---|---|---|---|
This PR is working as expected and could be merged. However, I would like to point out that the button says Publish site, and that is not actually happening until they click on Push in Studio. So I think we should create some follow-up task to add a clear Notice to the user that the site must be pushed for the local site to be published.
Thanks for the review 👍 @epeicher 100%, we will do the follow up PR as mentioned in Linear to do the following:
|
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 for pointing the Publish button to open the browser directly. It works great.
I left a small suggestion to make sure that we call generateCheckoutUrl always with a local site id.
| export function generateCheckoutUrl( selectedSite?: SiteDetails ): string { | ||
| const url = new URL( | ||
| 'https://wordpress.com/setup/new-hosted-site?ref=studio§ion=studio-sync&showDomainStep' |
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.
@katinthehatsite, can we pass the section as a parameter? Currently it's hardcoded to §ion=studio-sync, but I would like the Publish site button to have a different section in the URL so we can measure the amount of "clicks" on this button.
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.
Sure, I will adress these comments in a follow up PR 👍
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.
Adressed in #2283
Related issues
Fixes STU-1108
Proposed Changes
This PR ensures that when you click on the
Publish sitebutton in Studio, it navigates to WP.com and takes you through the purchase flow, then bringing back to Studio. It should behave identical toCreate a new WordPress.com sitebutton inside theSyncmodal.Testing Instructions
SynctabPublish sitebutton displays in the top right cornerPublish sitebuttonSynctab (might be a couple of seconds)Pre-merge Checklist