-
Notifications
You must be signed in to change notification settings - Fork 314
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
Refine ElasticPress blocks. #3403
Conversation
- Rename blocks to "Filter by..." - Reduce code repetition by sharing Edit component between meta and taxonomy facets. - Add an "ElasticPress" block category. - Implement redux store for taxonomy and meta options. - Replace custom API request with ServerSideRender. - Updated block setting controls for consistency with core. - Add transforms between meta and meta range blocks. - Add support for various style options, eg. colors.
@oscarssanchez While working on these changes the Facet by Post Type block was introduced. To make that new block consistent with the changes made to the existing blocks, the following will need to be done:
|
Refine facet by post type block
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.
Overall it looks good @JakePT but we'll need to address a few things before merging it (especially the methods removal instead of deprecation)
assets/js/blocks/facets/common/components/facet-order-control.js
Outdated
Show resolved
Hide resolved
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.
a few more things @JakePT (i could be missing a few things, sorry in advance)
Description of the Change
Introduces the following features, improvements, and refinements to our blocks:
ServerSideRender
.useSelect
and a custom data store. This eliminates repeated API requests for data that has already been retrieved, including filterable taxonomies, meta fields, and meta range previews.Closes #3384
How to test the Change
Changelog Entry
Credits
Props @JakePT
Checklist: