diff --git a/projects/packages/jetpack-mu-wpcom/changelog/add-entrepreneur-site-launchpad-tasks b/projects/packages/jetpack-mu-wpcom/changelog/add-entrepreneur-site-launchpad-tasks new file mode 100644 index 0000000000000..7459ba1722b14 --- /dev/null +++ b/projects/packages/jetpack-mu-wpcom/changelog/add-entrepreneur-site-launchpad-tasks @@ -0,0 +1,4 @@ +Significance: minor +Type: added + +Launchpad: Add Entrepreneur plan launchpad tasks diff --git a/projects/packages/jetpack-mu-wpcom/composer.json b/projects/packages/jetpack-mu-wpcom/composer.json index 86c9e0b8c58db..801da1662f668 100644 --- a/projects/packages/jetpack-mu-wpcom/composer.json +++ b/projects/packages/jetpack-mu-wpcom/composer.json @@ -56,7 +56,7 @@ }, "autotagger": true, "branch-alias": { - "dev-trunk": "5.26.x-dev" + "dev-trunk": "5.27.x-dev" }, "textdomain": "jetpack-mu-wpcom", "version-constants": { diff --git a/projects/packages/jetpack-mu-wpcom/package.json b/projects/packages/jetpack-mu-wpcom/package.json index d5c4ceb317857..225c976b96231 100644 --- a/projects/packages/jetpack-mu-wpcom/package.json +++ b/projects/packages/jetpack-mu-wpcom/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@automattic/jetpack-mu-wpcom", - "version": "5.26.1", + "version": "5.27.0-alpha", "description": "Enhances your site with features powered by WordPress.com", "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/jetpack-mu-wpcom/#readme", "bugs": { diff --git a/projects/packages/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php b/projects/packages/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php index 89a3188a0eafc..16599b2c0fd6c 100644 --- a/projects/packages/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php +++ b/projects/packages/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php @@ -13,7 +13,7 @@ * Jetpack_Mu_Wpcom main class. */ class Jetpack_Mu_Wpcom { - const PACKAGE_VERSION = '5.26.1'; + const PACKAGE_VERSION = '5.27.0-alpha'; const PKG_DIR = __DIR__ . '/../'; const BASE_DIR = __DIR__ . '/'; const BASE_FILE = __FILE__; diff --git a/projects/packages/jetpack-mu-wpcom/src/features/launchpad/launchpad-task-definitions.php b/projects/packages/jetpack-mu-wpcom/src/features/launchpad/launchpad-task-definitions.php index 5325d9e7ebcd2..348413bf40cce 100644 --- a/projects/packages/jetpack-mu-wpcom/src/features/launchpad/launchpad-task-definitions.php +++ b/projects/packages/jetpack-mu-wpcom/src/features/launchpad/launchpad-task-definitions.php @@ -735,6 +735,78 @@ function wpcom_launchpad_get_task_definitions() { return '/domains/manage/' . $data['site_slug_encoded']; }, ), + + // Entrepreneur plan tasks + 'customize_your_store' => array( + 'get_title' => function () { + return __( 'Customize your store', 'jetpack-mu-wpcom' ); + }, + 'is_complete_callback' => 'wpcom_launchpad_is_task_option_completed', + 'is_visible_callback' => 'wpcom_launchpad_is_woocommerce_setup_visible', + 'get_calypso_path' => function () { + return site_url( '/wp-admin/admin.php?page=wc-admin&path=%2Fcustomize-store' ); + }, + ), + 'add_your_products' => array( + 'get_title' => function () { + return __( 'Add your products', 'jetpack-mu-wpcom' ); + }, + 'is_complete_callback' => 'wpcom_launchpad_is_task_option_completed', + 'is_visible_callback' => 'wpcom_launchpad_is_woocommerce_setup_visible', + 'get_calypso_path' => function () { + return site_url( '/wp-admin/admin.php?page=wc-admin&task=products' ); + }, + ), + 'get_paid_with_woopayments' => array( + 'get_title' => function () { + return __( 'Get paid with WooPayments', 'jetpack-mu-wpcom' ); + }, + 'is_complete_callback' => 'wpcom_launchpad_is_task_option_completed', + 'is_visible_callback' => 'wpcom_launchpad_is_woocommerce_setup_visible', + 'get_calypso_path' => function () { + return site_url( '/wp-admin/admin.php?page=wc-admin&task=woocommerce-payments' ); + }, + ), + 'collect_sales_tax' => array( + 'get_title' => function () { + return __( 'Collect sales tax', 'jetpack-mu-wpcom' ); + }, + 'is_complete_callback' => 'wpcom_launchpad_is_task_option_completed', + 'is_visible_callback' => 'wpcom_launchpad_is_woocommerce_setup_visible', + 'get_calypso_path' => function () { + return site_url( '/wp-admin/admin.php?page=wc-admin&task=tax' ); + }, + ), + 'grow_your_business' => array( + 'get_title' => function () { + return __( 'Grow your business', 'jetpack-mu-wpcom' ); + }, + 'is_complete_callback' => 'wpcom_launchpad_is_task_option_completed', + 'is_visible_callback' => 'wpcom_launchpad_is_woocommerce_setup_visible', + 'get_calypso_path' => function () { + return site_url( '/wp-admin/admin.php?page=wc-admin&task=marketing' ); + }, + ), + 'add_a_domain' => array( + 'get_title' => function () { + return __( 'Add a domain', 'jetpack-mu-wpcom' ); + }, + 'is_complete_callback' => 'wpcom_launchpad_is_task_option_completed', + 'is_visible_callback' => 'wpcom_launchpad_is_woocommerce_setup_visible', + 'get_calypso_path' => function ( $task, $default, $data ) { + return '/domains/add/' . $data['site_slug_encoded']; + }, + ), + 'launch_your_store' => array( + 'get_title' => function () { + return __( 'Launch your store', 'jetpack-mu-wpcom' ); + }, + 'is_complete_callback' => 'wpcom_launchpad_is_task_option_completed', + 'is_visible_callback' => 'wpcom_launchpad_is_woocommerce_setup_visible', + 'get_calypso_path' => function () { + return site_url( '/wp-admin/admin.php?page=wc-admin&task=launch_site' ); + }, + ), ); $extended_task_definitions = apply_filters( 'wpcom_launchpad_extended_task_definitions', array() ); diff --git a/projects/packages/jetpack-mu-wpcom/src/features/launchpad/launchpad.php b/projects/packages/jetpack-mu-wpcom/src/features/launchpad/launchpad.php index a66632ac38f7a..5e474d1950c9c 100644 --- a/projects/packages/jetpack-mu-wpcom/src/features/launchpad/launchpad.php +++ b/projects/packages/jetpack-mu-wpcom/src/features/launchpad/launchpad.php @@ -31,7 +31,7 @@ */ function wpcom_launchpad_get_task_list_definitions() { $core_task_list_definitions = array( - 'build' => array( + 'build' => array( 'get_title' => function () { return __( 'Next steps for your site', 'jetpack-mu-wpcom' ); }, @@ -45,7 +45,7 @@ function wpcom_launchpad_get_task_list_definitions() { ), 'is_enabled_callback' => 'wpcom_launchpad_get_fullscreen_enabled', ), - 'free' => array( + 'free' => array( 'get_title' => function () { return __( 'Next steps for your site', 'jetpack-mu-wpcom' ); }, @@ -60,7 +60,7 @@ function wpcom_launchpad_get_task_list_definitions() { ), 'is_enabled_callback' => 'wpcom_launchpad_get_fullscreen_enabled', ), - 'link-in-bio' => array( + 'link-in-bio' => array( 'get_title' => function () { return __( 'Next steps for your site', 'jetpack-mu-wpcom' ); }, @@ -73,7 +73,7 @@ function wpcom_launchpad_get_task_list_definitions() { ), 'is_enabled_callback' => 'wpcom_launchpad_get_fullscreen_enabled', ), - 'link-in-bio-tld' => array( + 'link-in-bio-tld' => array( 'get_title' => function () { return __( 'Next steps for your site', 'jetpack-mu-wpcom' ); }, @@ -86,7 +86,7 @@ function wpcom_launchpad_get_task_list_definitions() { ), 'is_enabled_callback' => 'wpcom_launchpad_get_fullscreen_enabled', ), - 'newsletter' => array( + 'newsletter' => array( 'get_title' => function () { return __( 'Next steps for your site', 'jetpack-mu-wpcom' ); }, @@ -102,7 +102,7 @@ function wpcom_launchpad_get_task_list_definitions() { ), 'is_enabled_callback' => 'wpcom_launchpad_get_fullscreen_enabled', ), - 'videopress' => array( + 'videopress' => array( 'get_title' => function () { return __( 'Next steps for your site', 'jetpack-mu-wpcom' ); }, @@ -114,7 +114,7 @@ function wpcom_launchpad_get_task_list_definitions() { ), 'is_enabled_callback' => 'wpcom_launchpad_get_fullscreen_enabled', ), - 'write' => array( + 'write' => array( 'get_title' => function () { return __( 'Next steps for your site', 'jetpack-mu-wpcom' ); }, @@ -127,7 +127,7 @@ function wpcom_launchpad_get_task_list_definitions() { ), 'is_enabled_callback' => 'wpcom_launchpad_get_fullscreen_enabled', ), - 'start-writing' => array( + 'start-writing' => array( 'get_title' => function () { return __( 'Next steps for your site', 'jetpack-mu-wpcom' ); }, @@ -140,7 +140,7 @@ function wpcom_launchpad_get_task_list_definitions() { ), 'is_enabled_callback' => 'wpcom_launchpad_get_fullscreen_enabled', ), - 'design-first' => array( + 'design-first' => array( 'get_title' => function () { return __( 'Next steps for your site', 'jetpack-mu-wpcom' ); }, @@ -154,7 +154,7 @@ function wpcom_launchpad_get_task_list_definitions() { ), 'is_enabled_callback' => 'wpcom_launchpad_get_fullscreen_enabled', ), - 'intent-build' => array( + 'intent-build' => array( 'get_title' => function () { return __( 'Next steps for your site', 'jetpack-mu-wpcom' ); }, @@ -171,7 +171,7 @@ function wpcom_launchpad_get_task_list_definitions() { ), 'is_enabled_callback' => 'wpcom_launchpad_is_keep_building_enabled', ), - 'intent-write' => array( + 'intent-write' => array( 'get_title' => function () { return __( 'Next steps for your site', 'jetpack-mu-wpcom' ); }, @@ -185,7 +185,7 @@ function wpcom_launchpad_get_task_list_definitions() { ), 'is_enabled_callback' => 'wpcom_launchpad_is_intent_write_enabled', ), - 'intent-free-newsletter' => array( + 'intent-free-newsletter' => array( 'get_title' => function () { return __( 'Next steps for your site', 'jetpack-mu-wpcom' ); }, @@ -199,7 +199,7 @@ function wpcom_launchpad_get_task_list_definitions() { ), 'is_enabled_callback' => 'wpcom_launchpad_is_free_newsletter_enabled', ), - 'intent-paid-newsletter' => array( + 'intent-paid-newsletter' => array( 'get_title' => function () { return __( 'Next steps for your site', 'jetpack-mu-wpcom' ); }, @@ -215,14 +215,14 @@ function wpcom_launchpad_get_task_list_definitions() { ), 'is_enabled_callback' => 'wpcom_launchpad_is_paid_newsletter_enabled', ), - 'earn' => array( + 'earn' => array( 'task_ids' => array( 'stripe_connected', 'paid_offer_created', ), 'is_enabled_callback' => '__return_true', ), - 'host-site' => array( + 'host-site' => array( 'task_ids' => array( 'site_theme_selected', 'install_custom_plugin', @@ -233,14 +233,14 @@ function wpcom_launchpad_get_task_list_definitions() { ), 'is_enabled_callback' => 'wpcom_launchpad_is_hosting_flow_enabled', ), - 'subscribers' => array( + 'subscribers' => array( 'task_ids' => array( 'import_subscribers', 'add_subscribe_block', 'share_site', ), ), - 'assembler-first' => array( + 'assembler-first' => array( 'get_title' => function () { return __( 'Next steps for your site', 'jetpack-mu-wpcom' ); }, @@ -256,7 +256,7 @@ function wpcom_launchpad_get_task_list_definitions() { ), 'is_enabled_callback' => 'wpcom_launchpad_get_fullscreen_enabled', ), - 'ai-assembler' => array( + 'ai-assembler' => array( 'get_title' => function () { return __( 'Next steps for your site', 'jetpack-mu-wpcom' ); }, @@ -272,7 +272,7 @@ function wpcom_launchpad_get_task_list_definitions() { ), 'is_enabled_callback' => 'wpcom_launchpad_get_fullscreen_enabled', ), - 'legacy-site-setup' => array( + 'legacy-site-setup' => array( 'get_title' => function () { return __( 'Site setup', 'jetpack-mu-wpcom' ); }, @@ -289,6 +289,17 @@ function wpcom_launchpad_get_task_list_definitions() { 'site_launched', ), ), + 'entrepreneur-site-setup' => array( + 'task_ids' => array( + 'customize_your_store', + 'add_your_products', + 'get_paid_with_woopayments', + 'collect_sales_tax', + 'grow_your_business', + 'add_a_domain', + 'launch_your_store', + ), + ), ); $extended_task_list_definitions = apply_filters( 'wpcom_launchpad_extended_task_list_definitions', array() ); diff --git a/projects/plugins/mu-wpcom-plugin/changelog/add-entrepreneur-site-launchpad-tasks b/projects/plugins/mu-wpcom-plugin/changelog/add-entrepreneur-site-launchpad-tasks new file mode 100644 index 0000000000000..9aa70e3ec1f75 --- /dev/null +++ b/projects/plugins/mu-wpcom-plugin/changelog/add-entrepreneur-site-launchpad-tasks @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Updated composer.lock. + + diff --git a/projects/plugins/mu-wpcom-plugin/composer.lock b/projects/plugins/mu-wpcom-plugin/composer.lock index 4f2e0de9edca2..c4d1b1d1488bc 100644 --- a/projects/plugins/mu-wpcom-plugin/composer.lock +++ b/projects/plugins/mu-wpcom-plugin/composer.lock @@ -549,7 +549,7 @@ "dist": { "type": "path", "url": "../../packages/jetpack-mu-wpcom", - "reference": "78393b07da58b027c22850823a56326c3d5cd9bf" + "reference": "ca92a3e2fa415ff5d216be5fa54b8afb62ba4077" }, "require": { "automattic/jetpack-assets": "@dev", @@ -577,7 +577,7 @@ }, "autotagger": true, "branch-alias": { - "dev-trunk": "5.26.x-dev" + "dev-trunk": "5.27.x-dev" }, "textdomain": "jetpack-mu-wpcom", "version-constants": {