close
Skip to content

Use a neutral icon for disabled features and experiments in the AI Status widget#720

Merged
dkotter merged 1 commit into
WordPress:developfrom
i-anubhav-anand:fix/status-widget-neutral-disabled-icon
Jun 12, 2026
Merged

Use a neutral icon for disabled features and experiments in the AI Status widget#720
dkotter merged 1 commit into
WordPress:developfrom
i-anubhav-anand:fix/status-widget-neutral-disabled-icon

Conversation

@i-anubhav-anand

@i-anubhav-anand i-anubhav-anand commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Motivation for the change, related issues

Fixes #718.

The AI Status dashboard widget renders disabled features and experiments with a red cross (dashicons-no + the error icon style). A red cross reads as an error, failure, or missing configuration — but a disabled experiment is an expected, healthy state the user chose. A dashboard full of red crosses right after login suggests something is wrong when nothing is.

Implementation details

includes/Admin/Dashboard/AI_Status_Widget.php — in the Features and Experiments columns of the status view:

  • Disabled items now render dashicons-marker with the existing ai-dashboard-status__icon--neutral style (gray, already defined in src/admin/dashboard/index.scss but previously unused) instead of dashicons-no + ai-dashboard-status__icon--error.
  • Enabled items keep the green dashicons-yes-alt.
  • Added screen-reader-text "Enabled:"/"Disabled:" labels and aria-hidden="true" on the decorative icons — the state was previously conveyed by color/glyph alone.

Deliberately unchanged, since both still warrant attention:

  • The Connectors column (an unconfigured connector keeps the red icon).
  • The getting-started checklist (incomplete setup steps keep dashicons-dismiss).

This matches the proposal mockup in #718: green check = enabled, neutral gray = disabled, red reserved for actual problems.

Testing Instructions (or ideally a Blueprint)

  1. Configure a connector, enable AI features globally, and enable at least one feature/experiment (so the widget shows the status view rather than the checklist).
  2. Leave at least one experiment disabled.
  3. Visit the WP dashboard: enabled items show a green check, disabled items show a gray neutral marker, and nothing renders the red cross.
  4. npm run test:php -- --filter AI_Status_WidgetTest — includes 4 new tests covering the status view: column rendering, success icon for enabled experiments, neutral (never error) icon for disabled experiments, and the screen-reader state labels.
Open WordPress Playground Preview

…AI Status widget

Disabled features and experiments were rendered with a red cross
(dashicons-no + icon--error), which reads as an error state even though
being disabled is an expected, healthy configuration.

Render them with a gray neutral marker instead (dashicons-marker +
the existing ai-dashboard-status__icon--neutral style), keeping the red
error styling reserved for actual problems. Also expose the state to
screen readers via screen-reader-text and hide the decorative icons
with aria-hidden, since the state was previously conveyed by color and
glyph alone.

The Connectors column and the getting-started checklist are unchanged:
an unconfigured connector and incomplete setup steps still warrant
attention.

Fixes WordPress#718
@github-actions

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.

Unlinked Accounts

The following contributors have not linked their GitHub and WordPress.org accounts: @i-anubhav-anand.

Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases.

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

Unlinked contributors: i-anubhav-anand.

Co-authored-by: ankitguptaindia <ankit-k-gupta@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 added this to the 1.1.0 milestone Jun 12, 2026

@dkotter dkotter left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

While this doesn't exactly follow the suggestion in the issue (switches to the marker icon instead of always using the yes-alt icon), I do think this looks better than what we have. I'd maybe lean towards something like the minus icon but that's minor enough I don't think worth changing:

Marker icon Minus icon
Dashboard widget showing marker icon Dashboard widget showing minus icon

@dkotter dkotter merged commit caaca2d into WordPress:develop Jun 12, 2026
21 of 22 checks passed
@dkotter

dkotter commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

@i-anubhav-anand One request going forward, can you ensure your PR descriptions follow our PR template? We have certain sections in there that we want on each PR (like changelog entry and the level of AI assistance used)

@i-anubhav-anand

Copy link
Copy Markdown
Contributor Author

Thanks for merging, @dkotter — Noted on the template; I'll include the changelog entry and AI disclosure on future PRs.

@jeffpaul

Copy link
Copy Markdown
Member

@i-anubhav-anand if you're able to confirm your WordPress.org username (and ideally link it with your GitHub account), then I can ensure its properly credited in the AI plugin release (and associated AI Contributor badge)... thanks!

@i-anubhav-anand

Copy link
Copy Markdown
Contributor Author

Thanks @jeffpaul ! My WordPress.org username is anubhav24 My GitHub account (i-anubhav-anand) is already linked on that profile, so the props bot should be able to connect them. Happy to be credited in the AI plugin release, and thanks for the AI Contributor badge! 🙏

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.

UX Enhancement Proposal: Use a Neutral Disabled State Instead of a Red Cross for Disabled AI Experiments on the WP Dashboard

3 participants