Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Woo Express site provisioning loading messages #77051

Merged
merged 2 commits into from
May 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion client/landing/stepper/declarative-flow/internals/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -388,14 +388,24 @@ button {
}
.loading-bar {
background-color: var(--studio-woocommerce-purple-5);
width: 520px;
width: 590px;
max-width: 100%;
margin-left: auto;
margin-right: auto;

@media screen and (max-width: 640px) {
width: 100%;
}
}
.processing-step {
width: 100%;
max-width: 640px;
box-sizing: border-box;
}
p.processing-step__subtitle {
font-family: "SF Pro Text", $sans;
font-weight: 400;
letter-spacing: initial;

.woo-inline-purple-heart {
width: 18px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,13 @@ const AssignTrialPlanStep: Step = function AssignTrialPlanStep( { navigation, da
};

const getSubTitle = () => {
return __(
'#FunWooFact: Did you know that Woo powers almost 4 million stores worldwide? You’re in good company.'
return (
<>
<strong>{ __( '#FunWooFact: ' ) }</strong>
{ __(
'Did you know that Woo powers almost 4 million stores worldwide? You’re in good company.'
) }
</>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ export function useProcessingLoadingMessages( flow?: string | null ): LoadingMes
title: __( "Woo! We're creating your store" ),
subtitle: (
<>
<strong>{ __( '#FunWooFact: ' ) }</strong>
{ __(
"Did you know that Woo powers almost 4 million stores worldwide? You're in good company."
) }
<strong>{ __( 'Hang tight! ' ) }</strong>
{ __( 'Your free trial is currently being set up and may take a few minutes.' ) }
</>
),
duration: 15000,
Expand All @@ -56,7 +54,19 @@ export function useProcessingLoadingMessages( flow?: string | null ): LoadingMes
) }
</>
),
duration: 15000,
duration: 8000,
},
{
title: __( 'Organizing the stock room' ),
subtitle: (
<>
<strong>{ __( '#FunWooFact: ' ) }</strong>
{ __(
"Did you know that Woo powers almost 4 million stores worldwide? You're in good company."
) }
</>
),
duration: 6000,
},
{
title: __( 'Organizing the stock room' ),
Expand All @@ -66,11 +76,8 @@ export function useProcessingLoadingMessages( flow?: string | null ): LoadingMes
{ __( 'Are you Team Cat or Team Dog? The Woo team is split 50/50!' ) }
</>
),
duration: 15000,
duration: 6000,
},
];
default:
return [
{
title: __( 'Applying the finishing touches' ),
subtitle: (
Expand All @@ -81,7 +88,7 @@ export function useProcessingLoadingMessages( flow?: string | null ): LoadingMes
) }
</>
),
duration: 10000,
duration: 8000,
},
{
title: __( 'Turning on the lights' ),
Expand All @@ -93,10 +100,10 @@ export function useProcessingLoadingMessages( flow?: string | null ): LoadingMes
) }
</>
),
duration: 15000,
duration: 8000,
},
{
title: __( 'Opening the doors' ),
title: __( 'Turning on the lights' ),
subtitle: (
<>
<strong>{ __( '#FunWooFact: ' ) }</strong>
Expand All @@ -112,6 +119,20 @@ export function useProcessingLoadingMessages( flow?: string | null ): LoadingMes
duration: 150000,
},
];
default:
return [
{
title: __( 'Opening the doors' ),
subtitle: (
<>
<strong>{ __( "We're almost there! " ) }</strong>
{ __( 'Your free trial will be ready in just a moment.' ) }
</>
),
// Set a very long duration to make sure it shows until the step is completed
duration: 150000,
},
];
}
}

Expand Down