Skip to content

Launch Site Flow Standardization: Add WP Admin Launchpad variations#47832

Draft
bogiii wants to merge 2 commits intodatsci-1168-standardize-site-launch-wp-admin-masterbar-entry-pointfrom
datsci-1179-standardize-site-launch-wp-admin-launchpad-task-entry-point-2
Draft

Launch Site Flow Standardization: Add WP Admin Launchpad variations#47832
bogiii wants to merge 2 commits intodatsci-1168-standardize-site-launch-wp-admin-masterbar-entry-pointfrom
datsci-1179-standardize-site-launch-wp-admin-launchpad-task-entry-point-2

Conversation

@bogiii
Copy link
Copy Markdown
Contributor

@bogiii bogiii commented Mar 30, 2026

Fixes DATSCI-1179

Proposed changes

This PR standardizes the "Launch site" task in the WP Admin launchpad dashboard widget, under the calypso_standardized_site_launch_gating ExPlat experiment. It builds on the shared infrastructure introduced in #47705 (useLaunchSiteMutation, CelebrateLaunchModal in common/).

The launchpad widget's launch task now has three variants:

  • Control: preserves existing behaviour — the launchpad package makes the API call, then redirects to ?celebrate-launch=true
  • gated_site_launch: intercepts the task click and redirects to https://wordpress.com/start/launch-site?siteSlug=…&ref=wp-admin without making an API call
  • ungated_site_launch: intercepts the task click, launches via useLaunchSiteMutation (handles both Simple and Atomic sites), and shows CelebrateLaunchModal in place

The interception is done via the onTaskClick prop of the @automattic/launchpad component — returning false prevents the launchpad's own API call from firing.

Other information

  • Generate changelog entries for this PR (using AI).

Related product discussion/links

  • datsci-optimization-site-launch-standardization-b99113373d42

Does this pull request change what data or activity we track or use?

No.

Testing instructions

Prerequisites: An unlaunched Simple or Atomic site with an active launchpad checklist in the WP Admin dashboard. Assign the site to a variation of the calypso_standardized_site_launch_gating ExPlat experiment.

Control (no experiment assignment):

  1. Go to WP Admin dashboard on an unlaunched site
  2. Click "Launch" in the launchpad widget
  3. Verify the site launches and the page reloads with ?celebrate-launch=true

gated_site_launch variation:

  1. Same setup as above
  2. Click "Launch" in the launchpad widget
  3. Verify no API call is made and the user is redirected to wordpress.com/start/launch-site?siteSlug=…&ref=wp-admin

ungated_site_launch variation:

  1. Same setup as above
  2. Click "Launch" in the launchpad widget
  3. Verify the site is launched via a back-end request (no redirect)
  4. Verify the CelebrateLaunchModal appears in place with the correct domain, plan upsell, and "View site" link
  5. Verify closing the modal stays on the same page

Adds ExPlat experiment handling to the launchpad dashboard widget:
- Control: preserves existing behavior (launchpad API call + redirect to ?celebrate-launch=true)
- gated_site_launch: redirects to /start/launch-site without making an API call
- ungated_site_launch: launches via useLaunchSiteMutation and shows CelebrateLaunchModal in place
@bogiii bogiii changed the title Datsci 1179 standardize site launch wp admin launchpad task entry point 2 Launch Site Flow Standardization: Add WP Admin Launchpad variations Mar 30, 2026
@bogiii bogiii self-assigned this Mar 30, 2026
@bogiii bogiii removed Admin Page React-powered dashboard under the Jetpack menu Actions GitHub actions used to automate some of the work around releases and repository management [Block] AI Assistant [Feature] Publicize Now Jetpack Social, auto-sharing [Feature] Carousel A fullscreen modal appearing when clicking on an image in a gallery or tiled gallery. [Feature] Infinite Scroll [Feature] SSO [Feature] WPCOM API [Feature] Theme Tools Docs [Feature] Masterbar WordPress.com Toolbar and Dashboard customizations [Feature] WooCommerce Analytics Docker [Block] Map [Block] Google Calendar E2E Tests [Tools] Development CLI The tools/cli to assist during JP development. RNA [Feature] Memberships [Focus] Compatibility Ensuring our products play well with third-parties [Package] Jetpack mu wpcom WordPress.com Features [Tests] Includes Tests [CRM] WooSync Module [Extension] AI Assistant Plugin labels Mar 30, 2026
- Use window.location.assign() for the gated redirect
- Add comments referencing wp-calypso/pull/109434 for return false
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 30, 2026

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WoA dev site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin (WordPress.com Site Helper), and enable the datsci-1179-standardize-site-launch-wp-admin-launchpad-task-entry-point-2 branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack-mu-wpcom-plugin datsci-1179-standardize-site-launch-wp-admin-launchpad-task-entry-point-2

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[mu wpcom Feature] Launch Button [mu wpcom Feature] Wpcom Dashboard Widgets [Package] Jetpack mu wpcom WordPress.com Features [Status] In Progress [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant