Skip to content

Remove Enable AI header toggle - #985

Open
wprashed wants to merge 2 commits into
WordPress:developfrom
wprashed:fix/600-remove-enable-ai-header-toggle
Open

Remove Enable AI header toggle#985
wprashed wants to merge 2 commits into
WordPress:developfrom
wprashed:fix/600-remove-enable-ai-header-toggle

Conversation

@wprashed

@wprashed wprashed commented Aug 30, 2026

Copy link
Copy Markdown

Fixes #600

Description

The Enable AI header toggle displayed a binary ON/OFF state that did not accurately reflect individual feature configurations. Per maintainer consensus in #600, this PR removes the global header toggle entirely, allowing individual feature and experiment group toggles (and deactivating the plugin) to manage functionality.

Changes Included

  • Removed the Enable AI header <ToggleControl> and InfoTip from routes/ai-home/stage.tsx.
  • Removed unused globalToggleDescription variable in stage.tsx.
  • Updated E2E test specs (settings.spec.js, import-export.spec.js, helpers.ts) to remove references to the Enable AI toggle.

Unlinked contributors: manueldiaz2006t-blip.

Co-authored-by: dhrupo dhrupo@git.wordpress.org
Co-authored-by: dkotter dkotter@git.wordpress.org
Co-authored-by: jeffpaul jeffpaul@git.wordpress.org
Co-authored-by: gziolo gziolo@git.wordpress.org

Testing Instructions

  1. Go to the AI settings page (options-general.php?page=ai-wp-admin).
  2. Confirm the header renders cleanly with Docs, Contribute, and options links, without the Enable AI header toggle.
  3. Confirm section group toggles ("Enable all" / "Disable all") and individual feature toggles continue to work as expected.
Open WordPress Playground Preview

@wprashed
wprashed requested a review from a team August 30, 2026 07:08
@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: @manueldiaz2006t-blip.

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: manueldiaz2006t-blip.

Co-authored-by: wprashed <wprashed@git.wordpress.org>
Co-authored-by: dkotter <dkotter@git.wordpress.org>
Co-authored-by: jeffpaul <jeffpaul@git.wordpress.org>
Co-authored-by: andreilupu <euthelup@git.wordpress.org>
Co-authored-by: gziolo <gziolo@git.wordpress.org>

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

@codecov

codecov Bot commented Aug 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.57%. Comparing base (0833eec) to head (62dcac0).

Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #985   +/-   ##
==========================================
  Coverage      74.57%   74.57%           
  Complexity      3132     3132           
==========================================
  Files            132      132           
  Lines          12213    12213           
==========================================
  Hits            9108     9108           
  Misses          3105     3105           
Flag Coverage Δ
unit 74.57% <ø> (ø)

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.

@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.

E2E tests are failing here.

In addition, please ensure the PR description contains everything from our PR template, as already mentioned here

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.

Remove Enable AI header toggle, allow feature/experiment toggles (and group toggles) to control plugin functionality

2 participants