Skip to content
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

Facet block #2722

Merged
merged 19 commits into from
May 12, 2022
Merged

Facet block #2722

merged 19 commits into from
May 12, 2022

Conversation

felipeelia
Copy link
Member

Description of the Change

This PR adds a block version of the Facet widget.

Closes #2689

Changelog Entry

Added: Facet block (previously only available as a widget.)

Credits

Props @felipeelia

@felipeelia felipeelia added this to the 4.2.0 milestone Apr 19, 2022
@felipeelia felipeelia self-assigned this Apr 19, 2022
@felipeelia felipeelia requested a review from JakePT May 2, 2022 19:21
JakePT
JakePT previously approved these changes May 10, 2022
Copy link
Contributor

@JakePT JakePT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@felipeelia LGTM. By the looks of it I think it just needs an ignore/disabled for the linting rule on the dangerouslySetInnerHtml line, and to be up to date with develop.

@felipeelia
Copy link
Member Author

@JakePT I've pushed a new commit improving the preview a bit. Do you mind giving it a quick look? Thanks!

@felipeelia felipeelia changed the title [WIP] Facet block Facet block May 10, 2022
Copy link
Contributor

@JakePT JakePT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@felipeelia I wonder if the message in the preview could explain a little bit more about why the preview isn't available? Something like:

No categories found for available results.

Just a thought. Otherwise looks good.

JakePT
JakePT previously approved these changes May 11, 2022
@felipeelia felipeelia merged commit 080fca9 into develop May 12, 2022
@felipeelia felipeelia deleted the feature/facet-block branch May 12, 2022 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Facets need to become a WP Block
3 participants