-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Launch: use step-by-step launch flow after new onboarding with free plan #47493
Launch: use step-by-step launch flow after new onboarding with free plan #47493
Conversation
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~14 bytes added 📈 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
Caution: This PR affects files in the Editing Toolkit Plugin on WordPress.com D52861-code has been created so you can easily test it on your sandbox. See this FieldGuide page about developing the Editing Toolkit Plugin for more info: PCYsg-ly5-p2 |
const isGutenboarding = this.props.siteCreationFlow === 'gutenboarding' && ! this.props.plan; | ||
const isGutenboarding = | ||
this.props.siteCreationFlow === 'gutenboarding' && | ||
( ! this.props.plan || this.props.plan.is_free ); // prevent showing StepByStepLaunch on sites with paid plans |
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.
Putting the ( ! this.props.plan || this.props.plan.is_free )
check here may cause some confusion, since the isGutenboarding
variable now carries a different meaning that is not just to do with the site creation flow.
Would it be better move the check under a separate siteHasFreePlan
variable, and pass that variable to calypsoifyGutenberg
?
The code on the Editing Toolkit side could then check for isGutenboarding && siteHasFreePlan
, making the code more explicit on what's going on
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 agree there is a better way to do this and also prevent confusion. Opened #47504 to unblock current PR so we can quickly fix the issue from the Calypso side and then implement a more solid solution that involves deploying ETK and WBE.
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.
Agreed. Thank you for opening a separate issue to track this.
When clicking on "Launch", I'm shown a prompt to confirm I want to leave the editor, and I'm then redirected to Here's a screen recording, in case I'm missing any step |
apps/editing-toolkit/editing-toolkit-plugin/editor-gutenboarding-launch/index.ts
Outdated
Show resolved
Hide resolved
Update: without sandboxing, I'm able to test the changes correctly. Can be merged once the outstanding comments are discussed / addressed |
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.
LGTM
*Editing Toolkit release notes: N/A (this PR is just cleaning up some unused code)
Changes proposed in this Pull Request
Testing instructions - what should stay unchanged
/new
/start/launch-site
which is the default Launch flow in Calypso.Testing instructions - what should change
/new
wp.data.select( 'automattic/site' ).getSite( _currentSiteId )?.plan
inpost.php
window in console.Context
p1605290793102800-slack-CRNF6A9DX
#47421