FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat: reorder experiment classes in experiments configuration array by Malayt04 · Pull Request #871 · WordPress/ai · GitHub

/ ai Public

feat: reorder experiment classes in experiments configuration array - #871

Merged
dkotter merged 2 commits into
WordPress:developfrom
Malayt04:feat/adjust-order-of-admin-experiments
Jul 16, 2026
Merged

feat: reorder experiment classes in experiments configuration array#871
dkotter merged 2 commits into
WordPress:developfrom
Malayt04:feat/adjust-order-of-admin-experiments

Conversation

Malayt04 commented Jul 16, 2026
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Contributor

What?

Closes #870

This PR reorders the registered experiments in the Settings page:

  • Grouped linked admin experiments (Key Encryption immediately after Connector Approval; and consequently Suggest Reply immediately after Comment Moderation).
  • Sorted all editor experiments alphabetically by their user-facing labels.

Why?

  • Key Encryption and Connector Approval are closely linked functionalities, so grouping them together improves user experience. Moving Key Encryption up also pairs Suggest Reply right after Comment Moderation, which are another pair of linked experiments.
  • Editor Experiments were previously unordered, making it hard to find a specific feature. Sorting them alphabetically by label makes the layout cleaner and more predictable.

How?

Reordered the constant EXPERIMENT_CLASSES array in Experiments.php. Because the Settings page pulls from the default feature registration order, this automatically updates the UI ordering for both sections.

Use of AI Tools

AI assistance: Yes
Tool(s): Antigravity
Model(s): Gemini 3.5 Flash
Used for: Reordering the experiments in desired order

Testing Instructions

  1. Navigate to the AI Plugin Settings page in the WordPress admin area (options-general.php?page=ai-wp-admin).
  2. Verify the order of items under the Admin Experiments section:
    • Abilities Explorer
    • Connector Approval
    • Key Encryption
    • AI Request Logging
    • Comment Moderation
    • Suggest Reply
  3. Verify the order of items under the Editor Experiments section matches alphabetical ordering by label:
    • Alt Text Generation
    • Content Classification
    • Content Resizing
    • Content Summarization
    • Editorial Notes
    • Editorial Updates
    • Excerpt Generation
    • Meta Description Generation
    • Title Generation
    • Type-ahead Text

Screenshots or screencast

Before

After

Changelog Entry

Changed - Reordered setting experiments list: grouped linked experiments (Key Encryption after Connector Approvals, Suggest Reply after Comment Moderation) and sorted editor experiments alphabetically.

Malayt04 requested a review from a team July 16, 2026 06:20

github-actions Bot commented Jul 16, 2026
edited
Loading

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: hbhalodia <hbhalodia@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 Bot commented Jul 16, 2026
edited
Loading

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.44%. Comparing base (adb9afa) to head (0f6c95e).

Additional details and impacted files
@@            Coverage Diff             @@
##             develop     #871   +/-   ##
==========================================
  Coverage      78.44%   78.44%           
  Complexity      2454     2454           
==========================================
  Files            104      104           
  Lines           9925     9925           
==========================================
  Hits            7786     7786           
  Misses          2139     2139           
Flag Coverage Δ
unit 78.44% <ø> (ø)

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.

Comment thread includes/Experiments/Experiments.php Outdated
\WordPress\AI\Experiments\Abilities_Explorer\Abilities_Explorer::class,
\WordPress\AI\Experiments\Connector_Approval\Connector_Approval::class,
\WordPress\AI\Experiments\Key_Encryption\Key_Encryption::class,
\WordPress\AI\Experiments\AI_Request_Logging\AI_Request_Logging::class,

hbhalodia Jul 16, 2026
edited
Loading

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

May be AI_Request_Logging should move before Connector_Approval. To make it alphabetical sorting? Since that is not linked with any experiments.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Yes, that makes sense. Updated it

dkotter added this to the 1.3.0 milestone Jul 16, 2026
dkotter merged commit 4927f24 into WordPress:develop Jul 16, 2026
26 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

Adjust order of Admin Experiments

3 participants


Back | FazBrowse Home | New Git URL