question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dashboard: Add Filter by Taxonomy

See original GitHub issue

Summary

This issue will add a new filter option to the Dashboard to filter Stories, based on hierarchical taxonomy.

Screen Shot 2022-04-20 at 11 42 53 AM

References

UX: Still in progress, but this issue’s implementation can be started prior to having fleshed out comps for this. We can mimic the experience described below.

For an example of what this could look like, please see All Stories in the default WordPress view for what this means. The functionality between these two spaces should be the same: a dropdown, similar to the Author in the screenshot seen above.

Alternatives Considered

No alternatives.

Acceptance Criteria

Does this epic have any performance impact?

This should not impact performance.

Does this epic have telemetry?

We could capture usage of this dropdown via telemetry.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
swissspidycommented, May 30, 2022

The title of each dropdown should correspond to the name of the type

For context, the right All Categories labels will be provided in the REST API response under labels.allitems. See how the story-editor package uses taxonomy.labels.[...] everywhere as well.

There’s no need to provide this label manually (and string concatenation like “All %s” should be avoided anyway)

2reactions
sblindecommented, May 27, 2022

Having a quick look at the functionality of this PR, it is a little confusing. Why is this dropdown a mixture of taxonomy terms from different taxonomies. If you had a term of rock, in two taxonomies, how would you know which one you are selecting here? I believe it best to have a dropdown per taxonomy, not one dropdown for everything. This mirrors how WP list page does it. Screenshot 2022-05-27 at 14 25 51

@spacedmonkey Totally understand what you mean and excellent point, and I think that’s something that wasn’t clear for us picking up on the prior work slated by the previous team. At first, we thought that we were supposed to be supporting Categories (as seen in that dropdown), and then the ask was that we include All Taxonomies. Your point is right: if you had more than one same-named custom taxonomy, it would show up similarly in the dropdown.

But as far as I’m aware, even with adding custom taxonomies within Stories and that similar page view, that there’s not a space that actually shows any dropdowns for custom taxonomies, not even within the WP list style page for stories as seen below in my screenshot.

Screen Shot 2022-05-27 at 10 03 41 AM (Note: this one Story has two custom taxonomies assigned to it and one category, but there’s no indication or view to know such within this page, and no category dropdown)

But I would have hoped this would have come up with initial conversations about designing and planning this work prior to our start implementing it. Our team is pretty fresh at this work, so it’s harder for us to know (especially since our initial thought was that we were supporting categories) what’s expected if it isn’t clearly defined and scoped. If there are gaps between what’s expected, those gaps will be larger for us as a team with fresh eyes coming into this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Filtering Posts by Taxonomies in the Dashboard - GenerateWP
In this quick tutorial, we will learn how to add new filters (dropdowns) to any Post Type screen in order to filter content...
Read more >
Filter Custom Post Types by Taxonomy in WP Admin Dashboard
Filter CPTs by a linked custom Taxonomy in the WP Admin Dashboard is possible with restrict_manage_posts. Filter Cpt By Custom Taxonomy.
Read more >
Show filter for custom taxonomy in admin column
I checked “show in admin column” for custome taxonomy so I can see it in admin column table. But is there any way...
Read more >
How to filter posts by taxonomies in the WordPress admin area
To do that, you need to install a plugin called Admin Taxonomy Filter. Go to Plugins → Add New and search for Admin...
Read more >
Page category filter in admin dashboard
If you really want to add a filter, you can add a select (for exemple) that you will write by using the hook...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found