-
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
Editor Toolkit: update slide copy in NUX #46674
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,13 +73,11 @@ function WpcomNux() { | |
} | ||
|
||
/** | ||
* This function returns a filtered collection of NUX slide data | ||
* Function arguments can be extended to customize the slides for specific environments, e.g., Gutenboarding | ||
* This function returns a collection of NUX slide data | ||
* | ||
* @param { boolean } isGutenboarding Whether the flow is Gutenboarding or not | ||
* @returns { Array } a collection of <NuxPage /> props filtered by whether the flow is Gutenboarding or not | ||
* @returns { Array } a collection of <NuxPage /> props | ||
*/ | ||
function getWpcomNuxPages( isGutenboarding ) { | ||
function getWpcomNuxPages() { | ||
return [ | ||
{ | ||
heading: __( 'Welcome to your website', 'full-site-editing' ), | ||
|
@@ -108,17 +106,15 @@ function getWpcomNuxPages( isGutenboarding ) { | |
alignBottom: true, | ||
}, | ||
{ | ||
heading: __( 'Private until you’re ready', 'full-site-editing' ), | ||
heading: __( 'Hidden until you’re ready', 'full-site-editing' ), | ||
description: __( | ||
'Your site will remain private as you make changes until you’re ready to launch and share with the world.', | ||
'Your site will remain hidden until launched. Click “Launch” in the toolbar to share it with the world.', | ||
'full-site-editing' | ||
), | ||
imgSrc: privateImage, | ||
// @TODO: hide for sites that are already public | ||
shouldHide: ! isGutenboarding, | ||
Comment on lines
-117
to
-118
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Technically thie There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My inclination is to let the reference to "hidden" slide for now. The main reason we're showing this one for all users I think stems from p9Jlb4-1SN-p2
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd leave the
|
||
alignBottom: true, | ||
}, | ||
].filter( ( nuxPage ) => ! nuxPage.shouldHide ); | ||
]; | ||
} | ||
|
||
function NuxPage( { alignBottom = false, heading, description, imgSrc } ) { | ||
|
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.