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 auth footer copy for Jetpack AI and Jetpack Boost A/B test #81871

Merged
merged 4 commits into from
Sep 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
30 changes: 29 additions & 1 deletion client/jetpack-connect/authorize.js
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,34 @@ export class JetpackAuthorize extends Component {
renderContent() {
const { translate, user, authQuery } = this.props;
if ( this.isWooCoreProfiler() ) {
let col1Features = [];
let col2Features = [];
if ( authQuery.plugin_name === 'jetpack-boost' ) {
col1Features = [
translate( 'Speed up your store' ),
translate( 'Optimize CSS loading' ),
translate( 'Defer non-essential Javascript' ),
];
col2Features = [
translate( 'Lazy image loading' ),
translate( 'Site performance scores' ),
translate( 'Improve SEO' ),
];
} else {
col1Features = [
translate( 'Speed up content creation' ),
translate( 'Prompt based AI assistant' ),
translate( 'Adaptive tone adjustment' ),
translate( 'Generate text, tables, and lists' ),
];
col2Features = [
translate( 'Quota of 20 requests' ),
translate( 'Title and summary generation' ),
translate( 'Translate content to multiple languages' ),
translate( 'Spelling and grammar correction' ),
];
}

return (
<Fragment>
<div className="jetpack-connect__logged-in-content">
Expand All @@ -888,7 +916,7 @@ export class JetpackAuthorize extends Component {
</Card>
<div className="jetpack-connect__logged-in-bottom">
{ this.renderStateAction() }
<JetpackFeatures />
<JetpackFeatures col1Features={ col1Features } col2Features={ col2Features } />
<Disclaimer siteName={ decodeEntities( authQuery.blogname ) } />
<div className="jetpack-connect__jetpack-logo-wrapper">
<JetpackLogo monochrome size={ 18 } />{ ' ' }
Expand Down
27 changes: 9 additions & 18 deletions client/jetpack-connect/features.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,15 @@
import { Icon, check } from '@wordpress/icons';
import classNames from 'classnames';
import { useTranslate } from 'i18n-calypso';

export const JetpackFeatures = ( { className }: { className?: string } ) => {
const translate = useTranslate();

const col1Features = [
translate( 'Speed up images and photos' ),
translate( 'Prevent brute force attacks' ),
translate( 'Secure user authentication' ),
translate( 'Enhanced site stats and insights' ),
];

const col2Features = [
translate( 'Daily or real-time backups' ),
translate( 'Keep plugins auto-updated' ),
translate( 'Immediate downtime alerts' ),
translate( 'Bulk site management from one dashboard' ),
];

export const JetpackFeatures = ( {
className,
col1Features,
col2Features,
}: {
className?: string;
col1Features: string[];
col2Features: string[];
} ) => {
return (
<div className={ classNames( 'jetpack-connect__features_wrapper', className ) }>
<ul className="jetpack-connect__features">
Expand Down