-
Notifications
You must be signed in to change notification settings - Fork 4.7k
De-emphasise pattern filters in inserter #54681
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
21 commits
Select commit
Hold shift + click to select a range
406d3a4
de-emphasise pattern filters in inserter
SaxonF 97b0644
Remove obsolete props from PatternListHeader
aaronrobertshaw 8c2a7ab
Remove unnecessary dependencies comment
aaronrobertshaw e9b5006
Remove unused pattern source filters
aaronrobertshaw 979d9be
Fix pattern filtering logic
aaronrobertshaw 34293bc
Split theme patterns from core and directory sourced ones
aaronrobertshaw 32f7a31
Allow theme and directory patterns as unsynced
aaronrobertshaw d4ec9c6
Disable the sync filter options if the pattern source is not user
glendaviesnz 1f0ed2a
Add constants for different all values
glendaviesnz 14f6acd
Keep the menu open while toggling options
glendaviesnz b55d967
Add sticky header
glendaviesnz 3a2afce
Fix padding and move pagination
glendaviesnz f42cbc7
Fix pagination scroll to top
glendaviesnz 42e8aa1
Reset pagination if filter changes
glendaviesnz a75cccf
Revert the update to paging scroll to top
glendaviesnz b6d5df8
Fix scrolling-to-top after page changes
kevin940726 cf60dac
Fix scrolling-to-top after filter changes
kevin940726 023e034
Scroll to top on category change
kevin940726 74188d4
Fix scroll-to-top on category change
kevin940726 d00e6f8
Derive pattern sync menu options
kevin940726 f9c7827
Update the translators comment
kevin940726 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
Disable the sync filter options if the pattern source is not user
- Loading branch information
commit d4ec9c60be50a1a118699d91f902ec24c278e6b4
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
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.
Nit: I'm not sure if we want to reuse the same constants in
edit-siteorpatterns? That might not be trivial as theblock-editormight not be able to depend on those packages. I wonder if tree-shaking helps here, but I doubt it since we have side effects in both packages 🤔 . c.c. @ramonjd if you have any feedback!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.
The plan when we added the new constants to the patterns package was to then tidy up the block editor to use the same constants, but it is the editor that currently depends on the patterns package rather than the block editor so not sure if this will be possible - it would be good to try and work out how all the pattern related constants can be centralised somehow.
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.
Yeah, that's the reason I didn't touch these either. 😄
To be honest, my only motivation was to clean up the site editor package. There were some constants being used, others duplicated etc. I think it's okay to have some dupes across packages, but the site editor needed some spring cleaning IMO