Skip to content

Fix: Summarize AI Status Widget experiments list when exceeding 5 items - #1155

Merged
jeffpaul merged 3 commits into
WordPress:developfrom
Malayt04:fix/dashboard-widget-height
Oct 21, 2026
Merged

jeffpaul merged 3 commits into
WordPress:developfrom
Malayt04:fix/dashboard-widget-height

Conversation

@Malayt04

@Malayt04 Malayt04 commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

What?

Closes: #1153

Summarize enabled and disabled experiments in the AI Status dashboard widget when the experiment list becomes large.

Why?

The AI Status widget currently lists every experiment individually. As more experiments are added, the widget becomes unnecessarily tall.

How?

  • Lists enabled experiments individually when five or fewer are enabled.
  • Displays an enabled experiment count when more than five are enabled.
  • Displays a count of experiments that are not enabled.
  • Adds integration coverage for the five experiment threshold, the collapsed six experiment state, and plural disabled counts.

Use of AI Tools

AI assistance: Yes
Tool(s): ChatGPT / Codex
Model(s): GPT-5.6 Luna
Used for: Code review, test case suggestions, and test implementation. The final code and tests were reviewed by me.

Testing Instructions

  1. Enable enough experiments in the AI plugin settings to verify both states:
    • Five or fewer enabled experiments should be listed individually.
    • More than five enabled experiments should display a summary such as 6 experiments enabled.
    • Disabled experiments should display a summary such as 2 experiments not enabled.
  2. Visit the WordPress Dashboard and verify the AI Status widget displays the expected summaries.

Screenshots or screencast

Before

Screenshot 2026-10-11 at 12 43 51 AM

After

Screenshot 2026-10-11 at 12 44 09 AM Screenshot 2026-10-11 at 12 44 29 AM

Changelog Entry

Changed - Summarize enabled and disabled experiments in the AI Status dashboard widget to keep it compact as more experiments are added.

Open WordPress Playground Preview

@codecov

codecov Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.85%. Comparing base (de285a8) to head (4556301).

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #1155      +/-   ##
=============================================
- Coverage      82.11%   81.85%   -0.27%     
- Complexity      3396     3401       +5     
=============================================
  Files            136      136              
  Lines          13179    14001     +822     
=============================================
+ Hits           10822    11460     +638     
- Misses          2357     2541     +184     
Flag Coverage Δ
unit 81.85% <100.00%> (-0.27%) ⬇️

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

☔ View full report in Codecov by Harness.
📢 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.

@Malayt04
Malayt04 marked this pull request as ready for review October 10, 2026 19:31
@Malayt04
Malayt04 requested a review from a team October 10, 2026 19:31
@github-actions

github-actions Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

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: Malayt04 <malaytiwari@git.wordpress.org>
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.

@dkotter
dkotter requested a review from jeffpaul October 12, 2026 14:01
@dkotter dkotter added this to the 1.5.0 milestone Oct 13, 2026

@dkotter dkotter left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code-wise this looks good to me. Worth a review though from @jeffpaul to ensure the UI/UX matches what you were thinking

@jeffpaul jeffpaul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, thanks!

@jeffpaul
jeffpaul merged commit 09f2e43 into WordPress:develop Oct 21, 2026
38 of 39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Condense AI Status widget content

3 participants