Repository navigation
Global Styles: filter and indicate blocks that have custom styles #81373
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
c247330
Global Styles: add predicate for blocks with user styles
ramonjd 6b3bc56
Global Styles: indicate blocks that have user styles
ramonjd fd1c32d
Global Styles: import VisuallyHidden from @wordpress/ui
ramonjd 3cee8ef
Global Styles: add filter for blocks with user styles
ramonjd fad9022
Global Styles: remove filter tests that asserted a copy of the logic
ramonjd b60cf21
Global Styles: add changelog entry for block list filter
ramonjd 186331b
Global Styles: tell apart the two empty states in the block list
ramonjd 1da774e
Global Styles: summarize what changed on each block in the block list
ramonjd 692af90
Tests: match the Heading row by prefix in push-to-global-styles
ramonjd e93ecc9
Global Styles: drop the "Changed:" prefix from the block summary
ramonjd b2519a2
Global Styles: say "No blocks found" when a search comes up empty
ramonjd b582168
Global Styles: mark customized blocks with a dot rather than a summary
ramonjd ea85b2f
Global Styles: match the block list empty state class to its markup
ramonjd 818fff5
Global Styles: do not announce a result when the block list is empty
ramonjd 06a1b96
Remove block types item BEM styles
ramonjd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Global Styles: mark customized blocks with a dot rather than a summary
Reviewers preferred the dot: from the block list the question is which blocks have been customized, not what changed inside each one, and the summary added noise without answering that faster. Drop the summary and the getGlobalStylesChangelist export it needed. The filter, the empty states and the rest of the screen are unchanged.
- Loading branch information
commit b582168c44da789963688489da156387e424cecc
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
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.
Not for now, but potentially a refactor idea: this currently places the check of whether or not to render within
BlockMenuItemrather than further up the hierarchy where we show an empty state. So, it's theoretically possible (but unlikely) to have a situation where the list renders completely empty (because every item in the list returnsfalsefor this check) rather than show the empty state text.So, at some point, we might want the check to occur at the same place where we do the filtering. Just a thought for later, nothing blocking for now!
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.
Good point. Hoisting might change a few files, so I'll do it a follow up. 👍🏻