Skip to content

Add some basic dashboard widgets#311

Open
dkotter wants to merge 9 commits intoWordPress:developfrom
dkotter:feature/dashboard-widget
Open

Add some basic dashboard widgets#311
dkotter wants to merge 9 commits intoWordPress:developfrom
dkotter:feature/dashboard-widget

Conversation

@dkotter
Copy link
Collaborator

@dkotter dkotter commented Mar 16, 2026

What?

Adds the framework for registering new dashboard widgets and adds two to start: AI Status and AI Capabilities

Why?

The admin dashboard in WordPress provides a quick, at-a-glance place to get an overview of your site. Adding in some AI dashboard widgets can provide more value there.

How?

  • Adds the framework to easily register dashboard widgets
  • Adds an AI Status dashboard widget that will render a simple getting started guide if things aren't set up yet. If things are setup, will show which Providers are connected and which Experiments are turned on
  • Adds an AI Capabilities widget that will render how many Abilities we have (same output that's on the Abilities Explorer page) as well as what AI capabilities each registered Provider has

Use of AI Tools

Planned approach and executed that plan using Claude Code running Opus 4.6. Tested and cleaned things up manually.

Testing Instructions

  1. Pull this PR down and run npm i && npm run build
  2. Add a AI Provider plugin and set that up
  3. Go to the Dashboard page and ensure you see an AI Status and AI Capabilities widget
  4. Turn Experiments on/off and ensure they are reflected there
  5. Do the same for individual Providers

Screenshots

AI Status widget showing onboarding steps AI Status widget showing which providers are connected and which experiments are turned on AI Capabilities widget showing how many Abilities are registered and what capabilities each provider has Open WordPress Playground Preview

dkotter added 4 commits March 16, 2026 15:14
…are setup and which Experiments are turned on. Also shows onboarding steps if nothing is set up yet
…bout the Abilities on the site as well as the capabilities for each registered provider
@dkotter dkotter added this to the 0.6.0 milestone Mar 16, 2026
@dkotter dkotter self-assigned this Mar 16, 2026
@github-actions
Copy link

github-actions bot commented Mar 16, 2026

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 props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: dkotter <[email protected]>
Co-authored-by: jeffpaul <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@codecov
Copy link

codecov bot commented Mar 16, 2026

Codecov Report

❌ Patch coverage is 50.90090% with 109 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.09%. Comparing base (71f393a) to head (1ea9f90).

Files with missing lines Patch % Lines
includes/Dashboard/AI_Status_Widget.php 46.84% 59 Missing ⚠️
includes/Dashboard/AI_Capabilities_Widget.php 47.19% 47 Missing ⚠️
includes/bootstrap.php 0.00% 2 Missing ⚠️
includes/Dashboard/Dashboard_Widgets.php 95.00% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop     #311      +/-   ##
=============================================
+ Coverage      57.05%   57.09%   +0.04%     
- Complexity       591      633      +42     
=============================================
  Files             42       45       +3     
  Lines           3083     3305     +222     
=============================================
+ Hits            1759     1887     +128     
- Misses          1324     1418      +94     
Flag Coverage Δ
unit 57.09% <50.90%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jeffpaul jeffpaul mentioned this pull request Mar 18, 2026
33 tasks
@jeffpaul
Copy link
Member

Only adjustment here is to "Enable a feature or experiment" and a column between Connectors and Experiments for Features that will include the Image Generation and Editing one underway.

@dkotter
Copy link
Collaborator Author

dkotter commented Mar 19, 2026

Only adjustment here is to "Enable a feature or experiment" and a column between Connectors and Experiments for Features that will include the Image Generation and Editing one underway.

I think it's likely that migrating Image Gen to be a Feature will happen in the next release so going to punt this to that release as well. I can come back and make this change once that has happened

@dkotter dkotter modified the milestones: 0.6.0, 0.7.0 Mar 19, 2026
@jeffpaul
Copy link
Member

I think it's likely that migrating Image Gen to be a Feature will happen in the next release so going to punt this to that release as well. I can come back and make this change once that has happened

That works for me, I'll add a reference from this PR to the Experiments > Features open issue.

@jeffpaul jeffpaul self-requested a review March 19, 2026 15:55
@dkotter
Copy link
Collaborator Author

dkotter commented Mar 19, 2026

I think it's likely that migrating Image Gen to be a Feature will happen in the next release so going to punt this to that release as well. I can come back and make this change once that has happened

That works for me, I'll add a reference from this PR to the Experiments > Features open issue.

Sorry, to be more specific, was going to punt this entire PR until the next release, though happy to merge this as-is if we want it in 0.6.0 (noting this is just a minor PR so no real issue holding this for a bit)

@jeffpaul
Copy link
Member

Sorry, to be more specific, was going to punt this entire PR until the next release, though happy to merge this as-is if we want it in 0.6.0 (noting this is just a minor PR so no real issue holding this for a bit)

No strong opinion either way, plenty other things to try and wrap for 0.6.0 so will leave this here and we can YOLO into it if we want or punt and worry more in 0.7.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

2 participants