Skip to content

[WIP] Remove starter site launch onboarding promo notice#486

Closed
Claude wants to merge 2 commits into
masterfrom
claude/remove-starter-site-onboarding-notice
Closed

[WIP] Remove starter site launch onboarding promo notice#486
Claude wants to merge 2 commits into
masterfrom
claude/remove-starter-site-onboarding-notice

Conversation

@Claude

@Claude Claude AI commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.


This section details on the original issue you should resolve

<issue_title>Remove starter site launch onboarding promo notice</issue_title>
<issue_description>### Goal / Acceptance Criteria

This onboarding notice was introduced in PR #465 (starter-sites-onboarding-notice) to promote newly launched starter sites.

The campaign has now ended and the notice should be removed.

Requirements:

  • Review PR starter-sites-onboarding-notice #465 and identify all code added specifically for the onboarding promo notice.
  • Remove the onboarding promo notice from the Site List onboarding step.
  • Remove any related styling, localization strings, AJAX handlers, option storage, and helper functions that are exclusively used by this notice.
  • If any code appears reusable or is referenced elsewhere, leave it in place and document it in the PR.

Validation:

  • The onboarding notice no longer appears.
  • The onboarding flow continues to function normally.
  • No onboarding navigation or redirect behavior is affected.
  • No console errors, PHP warnings, or failed tests are introduced.
  • All changes are limited to functionality introduced for the promo notice.

Please create a PR summarizing:

  • Files modified
  • Code removed
  • Any intentionally retained code and why
  • Any areas requiring developer review

Constraints / Do Not Touch

Do not modify unrelated onboarding functionality.

Do not change:

  • Site import flow
  • Template library functionality
  • Licensing checks
  • Upgrade prompts unrelated to this notice
  • Onboarding navigation or redirect logic

Keep changes focused only on the onboarding promo notice introduced in PR #465.

Relevant Files (if known)

No response

Tests to Run

Default:

  • composer run lint
  • composer run phpstan
  • phpunit

When JS files are touched:

  • yarn run lint
  • yarn run build

When UI/E2E flows are touched:

Comments on the Issue (you are @claude[agent] in this section)

Remove all code introduced in PR #465 for the promotional notice:
- Remove should_show_business_agency_promo_text() method from Admin.php
- Remove onboardingShowProNoticeText localization entry from Admin.php
- Remove related unit tests from tests/tc-disabled-test.php

Retained code (used elsewhere):
- adminUrl localization key: used by Header.js for exit redirect
- neve_license_plan() method: used by Sites_Listing.php

Closes #485

Agent-Logs-Url: https://github.com/Codeinwp/templates-patterns-collection/sessions/d36058c7-4e87-47f6-9d5d-24269786750d

Co-authored-by: harshitarora-in <56164789+harshitarora-in@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR starts removing the starter-site launch onboarding promo notice logic (introduced in PR #465) by deleting the PHP-side “business/agency variant” decision logic and its associated unit tests, reducing promo-notice-specific code paths in the plugin’s admin/onboarding bootstrap.

Changes:

  • Removed Admin::should_show_business_agency_promo_text() and stopped exposing its result via get_localization().
  • Deleted PHPUnit coverage that specifically validated the business/agency promo text branching behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
includes/Admin.php Removes the promo-text variant helper and the related localized flag previously exposed to the onboarding UI.
tests/tc-disabled-test.php Removes unit tests and test helpers that targeted the promo notice’s tier-aware text variant logic.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 19 to 23
public function set_up(): void {
parent::set_up();
$this->admin = new Admin();
$this->license = License::get_instance();
$this->neve_pro_license_option = 'neve_pro_addon_license_data';
}
Comment thread includes/Admin.php
Comment on lines 803 to 808
'license_id' => License::get_license_data()->key,
),
'upsellNotifications' => $this->get_upsell_notifications(),
'isValidLicense' => $this->has_valid_addons(),
'licenseTIOB' => License::get_license_data(),
'onboardingShowProNoticeText' => $this->should_show_business_agency_promo_text(),
'emailSubscribe' => array(
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 starter site launch onboarding promo notice

3 participants