Hide empty provider capabilities section#616
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 #616 +/- ##
=============================================
+ Coverage 73.41% 74.01% +0.59%
- Complexity 1734 1736 +2
=============================================
Files 85 85
Lines 7486 7492 +6
=============================================
+ Hits 5496 5545 +49
+ Misses 1990 1947 -43
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:
|
jeffpaul
left a comment
There was a problem hiding this comment.
Tests well via Playground, thanks!

What?
Hides the dashboard widget's
Provider Capabilitiessection when no provider capability rows can be rendered.Why?
The
AI Capabilitiesdashboard widget already conditionally renders some UI based on available content. For example, theAbilities Explorerlink only appears when that feature is enabled.The
Provider Capabilitiessection was different: it could render the section heading even when no provider capability rows were available. This left an empty section in the dashboard widget, which looked incomplete.How?
This updates the provider capabilities rendering so it first collects providers that have renderable capabilities.
If no provider rows are available, the section is not rendered. If provider capabilities are available, the heading and rows continue to render as before.
A regression test was added for the empty provider capability state.
Testing Instructions
Automated checks run locally:
Result:
Manual verification:
AI Capabilitieswidget is visible.Provider Capabilitiessection.Screenshots/Screencast
Before
The
Provider Capabilitiesheading appeared even though no provider capability rows were shown.After
The empty
Provider Capabilitiessection is no longer rendered.Use of AI Tools
AI assistance: Yes
Tool(s): ChatGPT / Codex
Used for: Repository review, reproduction planning, implementation guidance, test updates, and local verification. I reviewed the changes, tested the behavior locally, and take responsibility for the final submission.