feat: add category filtering and tagging for abilities in Ability Table#355
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #355 +/- ##
=============================================
+ Coverage 57.70% 57.95% +0.25%
- Complexity 617 629 +12
=============================================
Files 46 46
Lines 3173 3204 +31
=============================================
+ Hits 1831 1857 +26
- Misses 1342 1347 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…ub.com/HILAYTRIVEDI/ai into feature/add-categories-ablility-filter
dkotter
left a comment
There was a problem hiding this comment.
Would also be great to add some E2E tests to cover the changes here, verifying the category dropdown renders and works as expected
@dkotter I added the E2E test for the category dropdown. |
dkotter
left a comment
There was a problem hiding this comment.
Sorry for all the back and forth here, this is looking really good and I think we're close, just a few final things I've noticed.
@dkotter no worries at all . I am new to the AI contribution in core WordPress. So I am actually grateful for your time you are giving in review and feedback. I really appreciate it . As moving forward in other PRs I will keep this feedbacks in mind before review. 🙇 |
What?
Closes #344
Adds a Category filter to the Abilities Explorer, allowing users to filter abilities by functional area (e.g., Image, Editorial, Content).
Why?
The Abilities Explorer currently only allows filtering by Provider (Core, Plugin, Theme), which makes it difficult to find abilities based on what they do, especially in large lists. This PR addresses the need for functional filtering by introducing a Category filter, making it easier to discover abilities by their purpose (e.g., image handling, content editing).
References: [Original issue] (summarize: lack of functional filtering in Abilities Explorer).
How?
This PR adds a Category filter dropdown to the Abilities Explorer UI. Categories are auto-derived from ability slugs using keyword matching, and can be extended or overridden by third-party plugins via the ai_ability_category_map and ai_ability_tags filter hooks. The filter works identically to the Provider dropdown: it is server-side, persists in the URL, and is submitted via the same Filter button.
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
https://www.awesomescreenshot.com/video/50968973?key=5acd67e6e7dc53b4aa9d85fe075a9709