Skip to content

Commit 3e6880e

Browse files
authored
Onboarding Copy Polish: Update plans page copy (#101873)
* Update plan selection text for consistency across components * display copy only in the onboarding flow plans page.
1 parent d5b377e commit 3e6880e

File tree

4 files changed

+39
-12
lines changed

4 files changed

+39
-12
lines changed

client/landing/stepper/declarative-flow/internals/steps-repository/plans/plans-wrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ const PlansWrapper: React.FC< Props > = ( props ) => {
200200
}
201201

202202
if ( isDomainUpsellFlow( flowName ) ) {
203-
return __( 'Choose your flavor of WordPress' );
203+
return __( 'There’s a plan for you' );
204204
}
205205

206206
if ( isNewsletterFlow( flowName ) || isStartWritingFlow( flowName ) ) {

client/landing/stepper/declarative-flow/internals/steps-repository/unified-plans/unified-plans-step.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ function UnifiedPlansStep( {
354354
return headerText;
355355
}
356356

357-
return translate( 'Choose your flavor of WordPress' );
357+
return translate( 'There’s a plan for you' );
358358
};
359359

360360
const getSubheaderText = () => {

client/my-sites/plans-features-main/components/plans-page-subheader.tsx

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Button, Gridicon } from '@automattic/components';
22
import { OnboardSelect } from '@automattic/data-stores';
3+
import { isOnboardingFlow } from '@automattic/onboarding';
34
import styled from '@emotion/styled';
45
import { useSelect } from '@wordpress/data';
56
import { useTranslate } from 'i18n-calypso';
@@ -129,6 +130,7 @@ const PlansPageSubheader = ( {
129130
deemphasizeFreePlan,
130131
showPlanBenefits,
131132
offeringFreePlan,
133+
flowName,
132134
onFreePlanCTAClick,
133135
selectedFeature,
134136
}: {
@@ -137,6 +139,7 @@ const PlansPageSubheader = ( {
137139
deemphasizeFreePlan?: boolean;
138140
offeringFreePlan?: boolean;
139141
showPlanBenefits?: boolean;
142+
flowName?: string | null;
140143
onFreePlanCTAClick: () => void;
141144
selectedFeature: SelectedFeatureData | null;
142145
} ) => {
@@ -147,10 +150,12 @@ const PlansPageSubheader = ( {
147150
return getCreateWithBigSky();
148151
}, [] );
149152

150-
return (
151-
<>
152-
{ createWithBigSky && (
153-
<Subheader className="plans-features-main__subheader">
153+
const isOnboarding = isOnboardingFlow( flowName ?? null );
154+
155+
const renderSubheader = () => {
156+
if ( createWithBigSky ) {
157+
return (
158+
<Subheader>
154159
{ translate(
155160
'Build your site quickly with our AI Website Builder or {{link}}start with a free plan{{/link}}.',
156161
{
@@ -160,9 +165,12 @@ const PlansPageSubheader = ( {
160165
}
161166
) }
162167
</Subheader>
163-
) }
164-
{ ! createWithBigSky && deemphasizeFreePlan && offeringFreePlan ? (
165-
<Subheader className="plans-features-main__subheader">
168+
);
169+
}
170+
171+
if ( ! createWithBigSky && deemphasizeFreePlan && offeringFreePlan ) {
172+
return (
173+
<Subheader>
166174
{ translate(
167175
'Unlock a powerful bundle of features. Or {{link}}start with a free plan{{/link}}.',
168176
{
@@ -172,9 +180,27 @@ const PlansPageSubheader = ( {
172180
}
173181
) }
174182
</Subheader>
175-
) : (
176-
showPlanBenefits && <PlanBenefitHeader />
177-
) }
183+
);
184+
}
185+
186+
if ( showPlanBenefits ) {
187+
return <PlanBenefitHeader />;
188+
}
189+
190+
if ( isOnboarding ) {
191+
return (
192+
<Subheader>
193+
{ translate( 'Whatever site you’re building, there’s a plan to make it happen sooner.' ) }
194+
</Subheader>
195+
);
196+
}
197+
198+
return null;
199+
};
200+
201+
return (
202+
<>
203+
{ renderSubheader() }
178204
{ isDisplayingPlansNeededForFeature && (
179205
<SecondaryFormattedHeader siteSlug={ siteSlug } selectedFeature={ selectedFeature } />
180206
) }

client/my-sites/plans-features-main/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,7 @@ const PlansFeaturesMain = ( {
821821
isDisplayingPlansNeededForFeature={ isDisplayingPlansNeededForFeature }
822822
selectedFeature={ selectedFeatureData }
823823
offeringFreePlan={ offeringFreePlan }
824+
flowName={ flowName }
824825
deemphasizeFreePlan={ deemphasizeFreePlan }
825826
onFreePlanCTAClick={ onFreePlanCTAClick }
826827
/>

0 commit comments

Comments
 (0)