-
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.
Site Migration: Add A/B test check before showing certain UI/UX updat…
…es (#97572) * Enable A/B test on feature flag * Switch to using experiment only check * Move logic into a hook * Fix tests * Add flow check before we use experimental UI
- Loading branch information
Showing
6 changed files
with
41 additions
and
26 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
client/landing/stepper/declarative-flow/internals/hooks/use-migration-experiment/index.ts
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,9 @@ | ||
import { useExperiment } from 'calypso/lib/explat'; | ||
|
||
export function useMigrationExperiment( flowName: string ) { | ||
const [ , experimentAssignment ] = useExperiment( | ||
'calypso_signup_onboarding_site_migration_flow_202501_v1' | ||
); | ||
|
||
return 'treatment' === experimentAssignment?.variationName && 'site-migration' === flowName; | ||
} |
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