Skip to content

fix(setup): combine recommended plugin actions - #1677

Merged
superdav42 merged 2 commits into
mainfrom
feature/auto-20260727-125629
Jul 28, 2026
Merged

fix(setup): combine recommended plugin actions#1677
superdav42 merged 2 commits into
mainfrom
feature/auto-20260727-125629

Conversation

@superdav42

@superdav42 superdav42 commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • show one selectable setup-wizard row per recommended plugin
  • run activation automatically after each selected installation while reusing the row's status cell for progress
  • update the wizard description and cover the combined install/activate metadata with tests

Verification

  • vendor/bin/phpunit --filter 'Recommended_Plugins_Installer_Test|Setup_Wizard_Admin_Page_Test'
  • vendor/bin/phpcs inc/admin-pages/class-setup-wizard-admin-page.php inc/installers/class-recommended-plugins-installer.php tests/WP_Ultimo/Admin_Pages/Setup_Wizard_Admin_Page_Test.php tests/WP_Ultimo/Installers/Recommended_Plugins_Installer_Test.php
  • vendor/bin/phpstan analyse inc/admin-pages/class-setup-wizard-admin-page.php inc/installers/class-recommended-plugins-installer.php
  • node_modules/.bin/eslint assets/js/setup-wizard.js
  • agent-browser: confirmed three plugin rows with no activation rows; selecting User Switching produced install then activate AJAX actions, status transitions through Installing and Activating, and network activation completed

aidevops.sh v3.32.188 plugin for OpenCode v1.18.5 with gpt-5.6-sol spent 15m and 223,072 tokens on this with the user in an interactive session.

Summary by CodeRabbit

  • New Features

    • Recommended plugins are now installed and activated in a single wizard step, with “Installed and activated!” progress messaging.
    • Multi-step plugin setup now proceeds only after required activation completes successfully.
  • Bug Fixes

    • Improved wizard queue handling and error/success state updates during plugin setup.
    • Activation now respects network-wide activation semantics when applicable.
  • Documentation

    • Updated the setup wizard “Recommended Plugins” description to clarify sequential install-and-activate behavior.
  • Tests

    • Updated and strengthened installer/admin-page tests for the new step logic and messaging.

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

coderabbitai Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: e960b74f-da27-43a9-b376-75ff0e4009bc

📥 Commits

Reviewing files that changed from the base of the PR and between 10426b2 and 268d6a7.

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

📝 Walkthrough

Walkthrough

The recommended plugin wizard now combines installation and network activation into one step per plugin. Queue processing handles both operations, reports errors, and advances consistently. Wizard copy and tests were updated for active-plugin completion and combined success messages.

Changes

Recommended plugin installation flow

Layer / File(s) Summary
Combined plugin step definitions
inc/installers/class-recommended-plugins-installer.php
User Switching, AI Language Packs, and SD AI Agent steps now use network-active status, activation metadata, and “Installed and activated!” messaging. Activation helpers use network activation.
Queued installation and activation execution
assets/js/setup-wizard.js
Installer responses, error handling, queue advancement, and optional activation are centralized before marking each row complete.
Wizard copy and validation
inc/admin-pages/class-setup-wizard-admin-page.php, tests/WP_Ultimo/Admin_Pages/Setup_Wizard_Admin_Page_Test.php, tests/WP_Ultimo/Installers/Recommended_Plugins_Installer_Test.php
Description text and tests now verify sequential installation/activation and the consolidated step structure.

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

Sequence Diagram(s)

sequenceDiagram
  participant SetupWizard
  participant Installer
  participant Activation
  SetupWizard->>Installer: Install selected plugin
  Installer-->>SetupWizard: Return success or error
  SetupWizard->>Activation: Activate configured plugin across network
  Activation-->>SetupWizard: Return activation result
  SetupWizard->>SetupWizard: Mark row complete and process next item
Loading
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 44.44% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: combining recommended plugin install and activation actions in the setup flow.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/auto-20260727-125629

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 `@inc/installers/class-recommended-plugins-installer.php`:
- Around line 51-52: Update all three activation actions in
inc/installers/class-recommended-plugins-installer.php at lines 51-52, 70-71,
and 85-86 to pass true as the third argument to activate_plugin(), ensuring each
recommended plugin is activated network-wide; add coverage verifying network
activation.
🪄 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 Plus

Run ID: 62bde238-4b61-417a-8555-c680deac98dc

📥 Commits

Reviewing files that changed from the base of the PR and between 1238102 and 10426b2.

📒 Files selected for processing (5)
  • assets/js/setup-wizard.js
  • inc/admin-pages/class-setup-wizard-admin-page.php
  • inc/installers/class-recommended-plugins-installer.php
  • tests/WP_Ultimo/Admin_Pages/Setup_Wizard_Admin_Page_Test.php
  • tests/WP_Ultimo/Installers/Recommended_Plugins_Installer_Test.php

Comment thread inc/installers/class-recommended-plugins-installer.php
@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 f481279 into main Jul 28, 2026
11 checks passed
@superdav42 superdav42 added the review-feedback-scanned Merged PR already scanned for quality feedback label Jul 29, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant