-
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
Hide the Welcome Tour in the site editor view
mode
#74242
Conversation
This PR modifies the release build for editing-toolkit To test your changes on WordPress.com, run To deploy your changes after merging, see the documentation: PCYsg-mMA-p2 |
@@ -18,25 +19,37 @@ import VideoPressCelebrationModal from './video-celebration-modal'; | |||
import WpcomNux from './welcome-modal/wpcom-nux'; | |||
import LaunchWpcomWelcomeTour from './welcome-tour/tour-launch'; | |||
|
|||
const { unlock } = __dangerousOptInToUnstableAPIsOnlyForCoreModules( |
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.
We needed to use unlock
to get the "site editor's mode" (view
, edit
, etc.) since the select( 'core/edit-site' ).getCanvasMode
is still a private API.
getCanvasMode
selector: https://github.com/WordPress/gutenberg/blob/4b4b4ca96f201a06cf7fffb9921041957f070fac/packages/edit-site/src/store/private-selectors.js#L8- It is used with
unlock
in Gutenberg; https://github.com/WordPress/gutenberg/blob/4b4b4ca96f201a06cf7fffb9921041957f070fac/packages/edit-site/src/components/sidebar-navigation-screen-template/index.js#L17
What do you think about using @wordpress/private-apis
? @Automattic/lego
If this is not preferred, I think we better wait until getCanvasMode
get stable than implement this on our own.
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 assigned @Automattic/lego as a reviewer because I would like you to look at this earlier 🙂 If it looks good, I'll get to work on tests, etc.
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 assume it's good to use it except we have another stable way to get the canvas mode. Tested and changes look good 🙂
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 found these:
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
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.
@miksansegundo Thanks for testing and the merge! |
Closes #72533
Proposed Changes
Hide the Welcome Tour in the site editor
view
mode (referred to as the "Browse mode" in the original issue) since the tour doesn’t explain how to use theview
mode (it does when ineditor
mode). Hide it until we create the tour for theview
mode.Screen.Recording.2566-03-24.at.16.21.23.mov
Testing Instructions
install-plugin.sh etk update/hide-wolcome-tour
command in your sandboxEdit
or on the canvas to enter theedit mode
Welcome Guide
from theOptions
panel (the three dots menu on the top right) to show itview mode
edit mode
Pre-merge Checklist