-
Notifications
You must be signed in to change notification settings - Fork 4.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
Distraction Free: Add missing command in site editor #52868
Merged
draganescu
merged 1 commit into
trunk
from
fix/missing-distraction-free-command-in-site-editor
Jul 24, 2023
Merged
Distraction Free: Add missing command in site editor #52868
draganescu
merged 1 commit into
trunk
from
fix/missing-distraction-free-command-in-site-editor
Jul 24, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
andrewserong
added
[Type] Bug
An existing feature does not function as intended
[Feature] Distraction Free
A preference in the Post and Site Editor that limits distractions to focus the editing experience
labels
Jul 24, 2023
andrewserong
added
the
Backport to WP 6.7 Beta/RC
Pull request that needs to be backported to the WordPress major release that's currently in beta
label
Jul 24, 2023
Size Change: +96 B (0%) Total Size: 1.44 MB
ℹ️ View Unchanged
|
ramonjd
approved these changes
Jul 24, 2023
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.
draganescu
deleted the
fix/missing-distraction-free-command-in-site-editor
branch
July 24, 2023 09:32
Thanks for the review Ramon, and for merging this one in, Andrei! |
tellthemachines
pushed a commit
that referenced
this pull request
Jul 25, 2023
I just cherry-picked this PR to the update/further-bugfixes-rc2 branch to get it included in the next release: 2046e1b |
tellthemachines
removed
the
Backport to WP 6.7 Beta/RC
Pull request that needs to be backported to the WordPress major release that's currently in beta
label
Jul 25, 2023
ramonjd
added a commit
that referenced
this pull request
Jul 25, 2023
* Fix image block v6 deprecation (#52822) * Remove incorrect comment * Add missing attribtes and supports * Add integration tests for the deprecation * Fix incorrect import * Fix fixtures * Image: Use the correct method for caption class in recent deprecation (#52853) * Distraction Free: Fix notices in site editor (#52867) * Distraction Free: Add missing command in site editor (#52868) * Site Editor: Fix the template parts link on the list page (#52891) * Return focus more from focus return hook (#52710) * Disambiguate "Import" button string. (#52907) * Disambiguate "Import" button string. * Add _x to import --------- Co-authored-by: Andrew Serong <[email protected]> * My patterns page: Increase color contrast for the toggle group (#52678) * Update style.scss * Update style.scss * Check if object exists before accessing its properties. (#52870) * Check if object exists before accessing its properties. * Name anonymous functions * Update names * Sidebar: Restore Back buton 'go to parent' functionality (#52910) * Global styles revisions: display text if no revisions are found (#52865) * If somehow a user lands on the revisions panel when there are no revisions, show some helpful text rather than a loading spinner. Also, add an E2E test! * Updated unit tests to reflect resolver logic changes * Use existing string * Only open edit view when testing the revisions panel itself * ResizableFrame: Account for window resizing (#52697) * ResizableFrame: Account for window resizing * Don't memoize --------- Co-authored-by: Robert Anderson <[email protected]> * Distraction Free: Fix conflict with showListViewByDefault preference (#52914) * Backporting changes from WordPress/wordpress-develop#4891 * Site Editor: Open template parts in view canvas view mode (#52916) --------- Co-authored-by: Alex Lende <[email protected]> Co-authored-by: George Mamadashvili <[email protected]> Co-authored-by: Andrew Serong <[email protected]> Co-authored-by: Mitchell Austin <[email protected]> Co-authored-by: Jb Audras <[email protected]> Co-authored-by: Carolina Nymark <[email protected]> Co-authored-by: Robert Anderson <[email protected]> Co-authored-by: Ramon <[email protected]> Co-authored-by: Lena Morita <[email protected]> Co-authored-by: ramon <[email protected]>
22 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
[Feature] Distraction Free
A preference in the Post and Site Editor that limits distractions to focus the editing experience
Needs User Documentation
Needs new user documentation
[Type] Bug
An existing feature does not function as intended
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
Fixes #52806
Distraction free mode was introduced to the site editor in #51173. This PR addresses an inconsistency between the post and site editors by ensuring that there is a command available for toggling distraction free mode.
Why?
As reported in #52806, now that the feature is in both the post and site editors, it could be expected that the command is available consistently. It is debatable as to whether or not this is a bug per se, or a missing feature. I've added the
Bug
label in case it feels like a bug from a user's perspective (in that they might go to use the command palette and find it unexpected that Distraction Free is not available in the list in the site editor, but it is in the post editor).How?
Testing Instructions
CMD+K
to open the command palettedistraction
and see that there should be a distraction free mode availableCMD+K
again to open the command palette, and start typingdistraction
Screenshots or screencast
2023-07-24.16.20.50.mp4