Launch Site Flow Standardization: Add WP Admin Launchpad variations#47832
Draft
Conversation
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
- Use window.location.assign() for the gated redirect - Add comments referencing wp-calypso/pull/109434 for return false
Contributor
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_gatingExPlat experiment. It builds on the shared infrastructure introduced in #47705 (useLaunchSiteMutation,CelebrateLaunchModalincommon/).The launchpad widget's launch task now has three variants:
?celebrate-launch=truegated_site_launch: intercepts the task click and redirects tohttps://wordpress.com/start/launch-site?siteSlug=…&ref=wp-adminwithout making an API callungated_site_launch: intercepts the task click, launches viauseLaunchSiteMutation(handles both Simple and Atomic sites), and showsCelebrateLaunchModalin placeThe interception is done via the
onTaskClickprop of the@automattic/launchpadcomponent — returningfalseprevents the launchpad's own API call from firing.Other information
Related product discussion/links
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_gatingExPlat experiment.Control (no experiment assignment):
?celebrate-launch=truegated_site_launchvariation:wordpress.com/start/launch-site?siteSlug=…&ref=wp-adminungated_site_launchvariation:CelebrateLaunchModalappears in place with the correct domain, plan upsell, and "View site" link