close
Skip to content

Add some basic dashboard widgets#311

Merged
dkotter merged 17 commits into
WordPress:developfrom
dkotter:feature/dashboard-widget
Apr 20, 2026
Merged

Add some basic dashboard widgets#311
dkotter merged 17 commits into
WordPress:developfrom
dkotter:feature/dashboard-widget

Conversation

@dkotter
Copy link
Copy Markdown
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 an 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 and features 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
Copy Markdown

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 <dkotter@git.wordpress.org>
Co-authored-by: jeffpaul <jeffpaul@git.wordpress.org>

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

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 16, 2026

Codecov Report

❌ Patch coverage is 44.74708% with 142 lines in your changes missing coverage. Please review.
✅ Project coverage is 67.30%. Comparing base (4f5732e) to head (21e8e48).
⚠️ Report is 101 commits behind head on develop.

Files with missing lines Patch % Lines
includes/Admin/Dashboard/AI_Status_Widget.php 33.57% 93 Missing ⚠️
...ncludes/Admin/Dashboard/AI_Capabilities_Widget.php 47.19% 47 Missing ⚠️
includes/Admin/Dashboard/Dashboard_Widgets.php 95.00% 1 Missing ⚠️
includes/Main.php 0.00% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop     #311      +/-   ##
=============================================
- Coverage      68.36%   67.30%   -1.07%     
- Complexity       813      874      +61     
=============================================
  Files             53       56       +3     
  Lines           3945     4202     +257     
=============================================
+ Hits            2697     2828     +131     
- Misses          1248     1374     +126     
Flag Coverage Δ
unit 67.30% <44.74%> (-1.07%) ⬇️

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
jeffpaul
jeffpaul previously approved these changes Mar 19, 2026
@dkotter
Copy link
Copy Markdown
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
Copy Markdown
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.

@dkotter dkotter modified the milestones: 0.7.0, 0.8.0 Apr 6, 2026
@dkotter dkotter requested a review from jeffpaul April 16, 2026 17:34
@dkotter
Copy link
Copy Markdown
Collaborator Author

dkotter commented Apr 16, 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.

Now that we have a "stable" Feature in place, I've made these changes. New screenshots in the PR description

Copy link
Copy Markdown
Member

@jeffpaul jeffpaul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests well, thanks!

@jeffpaul jeffpaul moved this from In progress to Needs review in WordPress AI Planning & Roadmap Apr 16, 2026
@dkotter dkotter merged commit e63d8c0 into WordPress:develop Apr 20, 2026
16 of 18 checks passed
@github-project-automation github-project-automation Bot moved this from Needs review to Done in WordPress AI Planning & Roadmap Apr 20, 2026
@dkotter dkotter deleted the feature/dashboard-widget branch April 20, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants