Removing grow section from local free extensions in OBW (https://github.com/woocommerce/woocommerce-admin/pull/7386)

This commit is contained in:
Joel Thiessen 2021-07-27 09:05:14 -07:00 committed by GitHub
parent e7c479adf9
commit 05ede81c5f
4 changed files with 13 additions and 125 deletions

View File

@ -0,0 +1,4 @@
Significance: minor
Type: Update
Removing grow section from local free extensions in OBW

View File

@ -1,61 +0,0 @@
/**
* External dependencies
*/
import { __ } from '@wordpress/i18n';
export const extensionBenefits = [
{
slug: 'mailpoet',
title: __(
'All-in-one email marketing by MailPoet',
'woocommerce-admin'
),
icon: 'onboarding/mailpoet.png',
description: __(
'Create and send purchase follow-up emails, newsletters, and promotional campaigns straight from your dashboard.',
'woocommerce-admin'
),
},
{
slug: 'facebook-for-woocommerce',
title: __( 'Market on Facebook', 'woocommerce-admin' ),
icon: 'onboarding/fb-woocommerce.png',
description: __(
'Grow your business by targeting the right people and driving sales with Facebook.',
'woocommerce-admin'
),
},
{
slug: 'google-listings-and-ads',
title: __(
'Drive traffic to your store with Google Listings and Ads',
'woocommerce-admin'
),
icon: 'onboarding/g-shopping.png',
description: __(
'Get in front of shoppers and drive traffic so you can grow your business with Smart Shopping Campaigns and free listings.',
'woocommerce-admin'
),
},
{
slug: 'mailchimp-for-woocommerce',
title: __( 'Contact customers with Mailchimp', 'woocommerce-admin' ),
icon: 'onboarding/mailchimp.png',
description: __(
'Send targeted campaigns, recover abandoned carts and much more with Mailchimp.',
'woocommerce-admin'
),
},
{
slug: 'creative-mail-by-constant-contact',
title: __(
'Email marketing for WooCommerce with Creative Mail',
'woocommerce-admin'
),
icon: 'onboarding/creativemail.png',
description: __(
'Create on-brand store campaigns, fast email promotions and customer retargeting with Creative Mail.',
'woocommerce-admin'
),
},
];

View File

@ -99,20 +99,9 @@ class BusinessDetails extends Component {
extensionInstallationOptions[ extensionInstallationOptions[
'woocommerce-services:shipping' 'woocommerce-services:shipping'
] || extensionInstallationOptions[ 'woocommerce-services:tax' ], ] || extensionInstallationOptions[ 'woocommerce-services:tax' ],
install_mailchimp:
extensionInstallationOptions[ 'mailchimp-for-woocommerce' ],
install_mailpoet: extensionInstallationOptions.mailpoet,
install_jetpack: extensionInstallationOptions.jetpack, install_jetpack: extensionInstallationOptions.jetpack,
install_google_listings_and_ads:
extensionInstallationOptions[ 'google-listings-and-ads' ],
install_facebook:
extensionInstallationOptions[ 'facebook-for-woocommerce' ],
install_wcpay: install_wcpay:
extensionInstallationOptions[ 'woocommerce-payments' ], extensionInstallationOptions[ 'woocommerce-payments' ],
install_creative_mail:
extensionInstallationOptions[
'creative-mail-by-constant-contact'
],
} ); } );
const updates = { const updates = {

View File

@ -22,6 +22,8 @@ import { setAllPropsToValue } from '~/lib/collections';
import { getCountryCode } from '~/dashboard/utils'; import { getCountryCode } from '~/dashboard/utils';
import { isWCPaySupported } from '~/task-list/tasks/PaymentGatewaySuggestions/components/WCPay'; import { isWCPaySupported } from '~/task-list/tasks/PaymentGatewaySuggestions/components/WCPay';
const ALLOWED_PLUGIN_LISTS = [ 'basics' ];
const generatePluginDescriptionWithLink = ( const generatePluginDescriptionWithLink = (
description, description,
productName, productName,
@ -140,54 +142,6 @@ const installableExtensionsData = [
}, },
], ],
}, },
{
title: __( 'Grow your store', 'woocommerce-admin' ),
key: 'grow',
plugins: [
{
key: 'mailpoet',
description: generatePluginDescriptionWithLink(
__(
'Level up your email marketing with {{link}}MailPoet{{/link}}',
'woocommerce-admin'
),
'mailpoet',
'https://wordpress.org/plugins/mailpoet/'
),
},
{
key: 'google-listings-and-ads',
description: generatePluginDescriptionWithLink(
__(
'Drive sales with {{link}}Google Listings and Ads{{/link}}',
'woocommerce-admin'
),
'google-listings-and-ads'
),
},
{
key: 'mailchimp-for-woocommerce',
description: generatePluginDescriptionWithLink(
__(
'Contact customers with {{link}}Mailchimp{{/link}}',
'woocommerce-admin'
),
'mailchimp-for-woocommerce'
),
},
{
key: 'creative-mail-by-constant-contact',
description: generatePluginDescriptionWithLink(
__(
'Emails made easy with {{link}}Creative Mail{{/link}}',
'woocommerce-admin'
),
'creative-mail-for-woocommerce'
),
selected: false,
},
],
},
]; ];
const FreeBadge = () => { const FreeBadge = () => {
@ -444,8 +398,13 @@ export const SelectiveExtensionsBundle = ( {
setLocalInstallableExtensions(); setLocalInstallableExtensions();
return; return;
} }
const extensions = results.filter( ( list ) =>
ALLOWED_PLUGIN_LISTS.includes( list.key )
);
const transformedExtensions = transformRemoteExtensions( const transformedExtensions = transformRemoteExtensions(
results extensions
); );
const initialValues = createInitialValues( const initialValues = createInitialValues(
transformedExtensions, transformedExtensions,
@ -545,11 +504,8 @@ export const SelectiveExtensionsBundle = ( {
</div> </div>
{ showExtensions && { showExtensions &&
installableExtensions.map( installableExtensions.map(
( { plugins, title, key: sectionKey } ) => ( ( { plugins, key: sectionKey } ) => (
<div key={ sectionKey }> <div key={ sectionKey }>
<div className="woocommerce-admin__business-details__selective-extensions-bundle__category">
{ title }
</div>
{ isFetching ? ( { isFetching ? (
<Spinner /> <Spinner />
) : ( ) : (