-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Query Block: select from a list for categories #31112
Comments
I believe this would very much help. |
This came up in the seventh call for testing as well:
|
That issue that @paaljoachim links is very interesting and has a lot of potential, but I still think that @annezazu's proposed solution (using the same interface to select categories as in the post editor) is more intuitive and solves the problem of not remembering the names of the categories (and thus allowing to refine the query much faster). I've also seen this UI in one of @jameskoster's explorations for this block, and I'd like to give my plus one to the implementation of this enhancement. |
More feedback from the tenth call from testing from our very own @paaljoachim :D
In my own testing, this continues to be a pain point I run into too and feels like an easy win to get in place to improve the UX. |
To me it feels like a quick fix to change categories to use regular post editor categories feature. -Edit- |
👋 - I'll have to look into better at this but in general this is definitely a part of this: #25198. Some designers might share some thoughts as well 😄 --cc @jameskoster @jasmussen |
FWIW I worked on this exact problem for the WooCommerce Products block a couple of years ago. The UI in the video below accounts for a few things that I think have been missing in explorations shared so far:
categories.mp4Looking at this with fresh eyes, one thing that might be missing is a "select all" option to make it easier to display posts from all categories except one or two specific ones. Regardless of where 25198 takes us, it seems that we'll need need more intuitive patterns on a granular level for query block setup. |
As a first step we could use the existing |
PR Here: |
It also seems I went out of scope, I am not very used to Gutenberg. Seems the change needed to be done in another place! Oops! |
It would be very helpful to get movement in this issue. |
Just noting that the current implementation does a dynamic search, so it it's not limited to the hard limit of 100 results of the WP REST API. So if we fetch some first categories to be visible, we would still need to preserve the dynamic searching and probably combine results. |
Current implementation does a dynamic search, but one needs to know which categories one is looking for to actually do the search. The question comes back to: How can we easily show a lot of categories without it crowding up the settings sidebar?
There are various explorations that can be done where categories can easily be seen and found. |
To implement a solution closer to what was discussed above, folks could look into building a custom solution using |
I just wanted to note that Why?
|
@Mamaduka Would ComboboxControl work? Can it multi-select? |
@jarekmorawski I believe you might want to know about this issue. I am thinking in relation to how WooCommerce uses categories. |
@richtabor, IIRC, the current version of I think there was a plan to refactor some of these components using Ariakit (which supports multi-select) under the hood. I'm not sure about the current status, though. |
Got it. I'm not thinking this should be prioritized, just wanted to look ahead a bit. Thanks! |
Does Form Token Field currently provide all results if there are no matches? That’s the crux of this issue. To be able to see available categories without having to know the categories. Also, per your mockups, why would you need to drag to reorder tokens? |
I am going to add in this somewhat associated link to tags issue I found as there might be some info shared by @jarekmorawski that can be useful: https://github.com/WordPress/gutenberg/issues?q=is%3Aopen+label%3A%22%5BFeature%5D+Document+Settings%22+tags |
Yes, see this example. It's a bit strange how the options displace the content below rather than appearing in a popover though. On a site with hundreds of tags that's going to be quite awkward. |
Hey folks, just wanted to let you know that we're considering a rewrite of Before we can work on It would probably be a good idea to start brainstorming any tweaks and changes / improvements that we'd like to see applied to the component (like what @jarekmorawski shared here). Please feel free to open a new issue specific to |
@ciampo, is there a tracking issue for the |
I invited folks to open one in my previous message — but I went ahead and did it myself |
This seems valid, but also incredibly niche. Do we really want to build the complexity necessary to achieve this into this component? As a provocation; in #63872 we're exploring a UI based on |
What problem does this address?
As part of the fifth call for testing for the FSE Outreach Program, the following feedback came in. Of note, this is was translated from Japanese and is not the original text:
Another person later brought up the same feedback:
What is your proposed solution?
List the categories in a way that matches the post editor. It's not clear to me though if this might cause performance issues so, if that is the case, feel free to close this :) but I do think this might be a helpful addition to consider.
Current view:
Categories in the post editor:
The text was updated successfully, but these errors were encountered: