-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Big Sky GF: Add AI Copy to big sky plans step (#99127)
* add AI copy to plans grid for big sky plans * remove strong element * Add a separate feature to display in checkout since the copy displayed on plans page should be bold * show the copy only when in the goals first experiment * Switch from goals-first to big sky experiment * Add hacks to get AI copy to only appear when user chooses Big Sky * fix typescript --------- Co-authored-by: Philip Jackson <[email protected]>
- Loading branch information
Showing
10 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { getPlansListExperiment } from './experiments'; | ||
|
||
declare global { | ||
interface Window { | ||
__a8cBigSkyOnboarding?: boolean; | ||
} | ||
} | ||
|
||
export function isBigSkyOnboarding(): boolean { | ||
if ( new URLSearchParams( location.search ).has( 'big-sky-checkout' ) ) { | ||
return true; | ||
} | ||
|
||
if ( | ||
getPlansListExperiment( 'calypso_signup_onboarding_goals_first_bigsky_202501_v1' ) !== | ||
'treatment' | ||
) { | ||
return false; | ||
} | ||
|
||
if ( typeof window === 'undefined' ) { | ||
return false; | ||
} | ||
|
||
return Boolean( window.__a8cBigSkyOnboarding ); | ||
} |
This file contains 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
This file contains 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