-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Add Terms Query block #70682
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
base: trunk
Are you sure you want to change the base?
Add Terms Query block #70682
Conversation
Size Change: +3.23 kB (+0.17%) Total Size: 1.91 MB
ℹ️ View Unchanged
|
Flaky tests detected in a632e42. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/16217777071
|
To avoid redundant contributions I'll be contributing to this PR directly. I'll add the following features:
Apart from these changes the rest of my code seems to be pretty much same. |
I've started splitting this up into smaller PRs starting with the Terms Query block: #70720. I think we can still use this draft PR to test the other functionality, as it's easier to test ideas out when all the blocks are together. |
Hey @mikachan, would it be possible for you to make the changes mentioned here — #70747 (comment) — in this PR as well? |
@sarthaknagoshe2002 Yes sure, done in 05ba6d1. |
This is looking great, thanks for working on it.
The one thing missing that I can see is that this block doesn't have an option to display as dropdown. |
What?
Part of #49094
WIP
This adds a new block called Terms Query, to allow for a more flexible and extensible block for displaying taxonomy terms. It also adds a couple of inner blocks, Term Name and Term Count.
This PR is just a proof of concept, as I think this functionality will be easier to work on and review if it's split up into smaller PRs. More details in #49094.
Why?
To allow for more options and flexibility when displaying terms.
How?
This block allows for inner blocks and has a wider potential for extensibility compared to the Categories/Terms List block. This PR includes four new blocks:
It also allows Term Description as an inner block.
I've tried to match the functionality as closely as possible with the Categories block for now, and then we can add more options as follow-ups. Here are some ideas I've been thinking of:
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast