-
Notifications
You must be signed in to change notification settings - Fork 219
Products by Rating: Add inner block support #7362
Conversation
The release ZIP for this PR is accessible via:
|
Size Change: +3.3 kB (0%) Total Size: 965 kB
ℹ️ View Unchanged
|
@tjcafferkey The |
Maybe I need to look into it further but my understand of the work done on this pr #6978 was to separate headings from the filters. But in this case the heading still exists within the filter? The other filters it makes sense because we need to support and migrate users who are already using it but since this is a new block we shouldn't have that problem? |
Script Dependencies ReportThe
This comment was automatically generated by the |
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.
), | ||
headingLevel: 3, | ||
} ), | ||
transform: () => createBlock( 'woocommerce/rating-filter' ), |
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 transform function doesn't work anymore. I noticed the same happens to the Price Filter block. We should review the transform function for all filter blocks after this PR.
Thank you for the review, the star issue is unrelated to the block: #7167 |
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 relied on @dinhtungdu's comments.
Besides this comment that it will be addressed in a dedicated PR, LGTM 🚢
* Products by Rating: Add InnerBlock support for Ratings * Product by Ratings: Register Ratings filter as an InnerBlock * Product by Rating: Fix active rating filters bug * Products by Rating: Remove all heading references * Products by Rating: Minor code fixes * Products by Rating: Fix ESlint errors * Products by Rating: Fix dependency placement
* Products by Rating: Add InnerBlock support for Ratings * Product by Ratings: Register Ratings filter as an InnerBlock * Product by Rating: Fix active rating filters bug * Products by Rating: Remove all heading references * Products by Rating: Minor code fixes * Products by Rating: Fix ESlint errors * Products by Rating: Fix dependency placement
A PR following #6978 updating the Filter by Ratings block to match the new InnerBlock standard.
The only difference: there's no upgrade path included, as this has been behind an experimental flag.
It also adds the Ratings filter to the filters block pattern.
Testing
Automated Tests
User Facing Testing
Insert new blocks:
WooCommerce Visibility
Changelog