Skip to content

GH#1648: Recommend AI plugins in setup wizard - #1649

Merged
superdav42 merged 4 commits into
mainfrom
feature/setup-wizard-ai-plugins-clean
Jul 20, 2026
Merged

GH#1648: Recommend AI plugins in setup wizard#1649
superdav42 merged 4 commits into
mainfrom
feature/setup-wizard-ai-plugins-clean

Conversation

@superdav42

@superdav42 superdav42 commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Recommend Superdav AI Language Packs in the setup wizard and select it by default for non-English locales.
  • Offer Superdav AI Agent as an unselected optional install.
  • Cover locale defaults and AI plugin descriptions with installer tests.

Verification

  • Passed: vendor/bin/phpcs inc/installers/class-recommended-plugins-installer.php tests/WP_Ultimo/Installers/Recommended_Plugins_Installer_Test.php
  • Passed: vendor/bin/phpstan analyse inc/installers/class-recommended-plugins-installer.php --memory-limit=1G
  • Passed: php -l inc/installers/class-recommended-plugins-installer.php and php -l tests/WP_Ultimo/Installers/Recommended_Plugins_Installer_Test.php
  • Blocked: vendor/bin/phpunit --filter Recommended_Plugins_Installer_Test because the local WordPress test suite is absent at /tmp/wordpress-tests-lib.

Resolves #1648


aidevops.sh v3.32.148 plugin for OpenCode v1.18.3 with gpt-5.6-terra spent 10m and 144,595 tokens on this with the user in an interactive session.

Summary by CodeRabbit

  • New Features
    • Updated the recommended plugin setup to include Superdav AI Language Packs with locale-based preselection (selected only for non-English locales; not selected for English).
    • Updated the recommended plugin setup to include Superdav AI Agent, with its install/activate steps left unselected by default.
  • Tests
    • Added automated coverage to verify locale-based selection behavior and confirm the expected step descriptions for language packs and the AI agent.

@superdav42 superdav42 added the origin:interactive Created by interactive user session label Jul 18, 2026
@coderabbitai

coderabbitai Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@superdav42, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 1 minute

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a35d5d6a-5c40-4545-8b61-d458326798ca

📥 Commits

Reviewing files that changed from the base of the PR and between 6f2ac32 and 5ea6928.

📒 Files selected for processing (1)
  • tests/WP_Ultimo/Installers/Recommended_Plugins_Installer_Test.php
📝 Walkthrough

Walkthrough

The setup wizard now recommends Superdav AI Language Packs and Superdav AI Agent. Language Packs are selected by default for non-English locales, while AI Agent remains unselected. Tests cover locale handling, selection states, and descriptions.

Changes

AI Plugin Recommendations

Layer / File(s) Summary
Locale-aware plugin steps
inc/installers/class-recommended-plugins-installer.php
Adds install and activation steps for Superdav AI Language Packs and Superdav AI Agent, selecting Language Packs only for non-English locales.
Plugin step validation
tests/WP_Ultimo/Installers/Recommended_Plugins_Installer_Test.php
Tests locale-specific selection states and verifies the new plugin descriptions.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant SetupWizard
  participant Recommended_Plugins_Installer
  participant WordPressLocale
  SetupWizard->>Recommended_Plugins_Installer: request recommended plugin steps
  Recommended_Plugins_Installer->>WordPressLocale: determine current locale
  WordPressLocale-->>Recommended_Plugins_Installer: return locale
  Recommended_Plugins_Installer-->>SetupWizard: return locale-aware plugin steps
Loading
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly states the main change: recommending AI plugins in the setup wizard.
Linked Issues check ✅ Passed The changes satisfy the issue by selecting language packs only for non-English locales, leaving AI Agent unselected, and adding tests/descriptions.
Out of Scope Changes check ✅ Passed The diff stays focused on the setup-wizard AI plugin recommendations and matching tests.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/setup-wizard-ai-plugins-clean

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

🔨 Build Complete - Ready for Testing!

📦 Download Build Artifact (Recommended)

Download the zip build, upload to WordPress and test:

🌐 Test in WordPress Playground (Very Experimental)

Click the link below to instantly test this PR in your browser - no installation needed!
Playground support for multisite is very limitied, hopefully it will get better in the future.

🚀 Launch in Playground

Login credentials: admin / password

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@tests/WP_Ultimo/Installers/Recommended_Plugins_Installer_Test.php`:
- Around line 23-36: Update get_steps_for_locale to register the same
locale_filter for both the locale and determine_locale hooks before calling
Recommended_Plugins_Installer::get_instance()->get_steps(), and remove both
hooks in the finally block so the mocked locale is consistently applied and
fully restored.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 711246d6-f066-42fc-b393-04fe1e68c11b

📥 Commits

Reviewing files that changed from the base of the PR and between 03983bd and e9a55aa.

📒 Files selected for processing (2)
  • inc/installers/class-recommended-plugins-installer.php
  • tests/WP_Ultimo/Installers/Recommended_Plugins_Installer_Test.php

Comment thread tests/WP_Ultimo/Installers/Recommended_Plugins_Installer_Test.php
Updated titles and descriptions for AI Language Packs and AI Agent to be more concise and informative.
@github-actions

Copy link
Copy Markdown

🔨 Build Complete - Ready for Testing!

📦 Download Build Artifact (Recommended)

Download the zip build, upload to WordPress and test:

🌐 Test in WordPress Playground (Very Experimental)

Click the link below to instantly test this PR in your browser - no installation needed!
Playground support for multisite is very limitied, hopefully it will get better in the future.

🚀 Launch in Playground

Login credentials: admin / password

@superdav42 superdav42 added the status:in-review PR open, awaiting review/merge label Jul 20, 2026
@superdav42 superdav42 self-assigned this Jul 20, 2026
@superdav42

Copy link
Copy Markdown
Collaborator Author

Interactive session claimed by @superdav42 in ultimate-multisite-bugfix-gh1649-respond-to-verified-pr-1649-review-threa on thinkserver.
Pulse dispatch blocked via status:in-review + self-assignment.


aidevops.sh v3.32.159 plugin for OpenCode v1.18.4 with gpt-5.6-terra spent 35s and 15,086 tokens on this with the user in an interactive session.

@github-actions

Copy link
Copy Markdown

🔨 Build Complete - Ready for Testing!

📦 Download Build Artifact (Recommended)

Download the zip build, upload to WordPress and test:

🌐 Test in WordPress Playground (Very Experimental)

Click the link below to instantly test this PR in your browser - no installation needed!
Playground support for multisite is very limitied, hopefully it will get better in the future.

🚀 Launch in Playground

Login credentials: admin / password

@github-actions

Copy link
Copy Markdown

🔨 Build Complete - Ready for Testing!

📦 Download Build Artifact (Recommended)

Download the zip build, upload to WordPress and test:

🌐 Test in WordPress Playground (Very Experimental)

Click the link below to instantly test this PR in your browser - no installation needed!
Playground support for multisite is very limitied, hopefully it will get better in the future.

🚀 Launch in Playground

Login credentials: admin / password

@superdav42
superdav42 merged commit 6f2b4f3 into main Jul 20, 2026
10 of 11 checks passed
@superdav42 superdav42 added the review-feedback-scanned Merged PR already scanned for quality feedback label Jul 21, 2026
@superdav42 superdav42 added status:available Task is available for claiming and removed status:in-review PR open, awaiting review/merge labels Jul 28, 2026
@superdav42 superdav42 removed their assignment Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

origin:interactive Created by interactive user session review-feedback-scanned Merged PR already scanned for quality feedback status:available Task is available for claiming

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recommend AI plugins in setup wizard

1 participant