Skip to content

Commit

Permalink
Remove design picker from site-setup flow
Browse files Browse the repository at this point in the history
  • Loading branch information
p-jackson committed Dec 17, 2024
1 parent a516888 commit 8ef4dc1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions client/landing/stepper/declarative-flow/site-setup-flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,16 @@ function isLaunchpadIntent( intent: string ) {
return intent === SiteIntent.Write || intent === SiteIntent.Build;
}

function useGoalsAtFrontExperimentQueryParam() {
return Boolean( useSelector( getInitialQueryArguments )?.[ 'goals-at-front-experiment' ] );
}

const siteSetupFlow: Flow = {
name: 'site-setup',
isSignupFlow: false,

useSteps() {
const isGoalsAtFrontExperiment = Boolean(
useSelector( getInitialQueryArguments )?.[ 'goals-at-front-experiment' ]
);
const isGoalsAtFrontExperiment = useGoalsAtFrontExperimentQueryParam();

const steps = [
STEPS.GOALS,
Expand Down Expand Up @@ -78,9 +80,7 @@ const siteSetupFlow: Flow = {
];

if ( isGoalsAtFrontExperiment ) {
// The user has already seen the goals step in the `onboarding` flow
// TODO Ensure that DESIGN_CHOICES is at the front if the user is Big Sky eligible
steps.splice( 0, 4 );
return [ STEPS.PROCESSING, STEPS.ERROR ];
}

return steps;
Expand Down

0 comments on commit 8ef4dc1

Please sign in to comment.