Skip to content

Commit

Permalink
Launchpad: Add Entrepreneur plan tasks (#37094)
Browse files Browse the repository at this point in the history
* Add changelog

* Add first two tasks

* Add the rest of the tasks

* Add tasks comment

* Updated version.

---------

Co-authored-by: Yan Sern <[email protected]>
  • Loading branch information
ivan-ottinger and yansern authored Apr 29, 2024
1 parent 91efee8 commit bf1e528
Show file tree
Hide file tree
Showing 8 changed files with 116 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

Launchpad: Add Entrepreneur plan launchpad tasks
2 changes: 1 addition & 1 deletion projects/packages/jetpack-mu-wpcom/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion projects/packages/jetpack-mu-wpcom/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
},
Expand All @@ -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' );
},
Expand All @@ -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' );
},
Expand All @@ -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' );
},
Expand All @@ -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' );
},
Expand All @@ -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' );
},
Expand All @@ -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' );
},
Expand All @@ -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' );
},
Expand All @@ -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' );
},
Expand All @@ -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' );
},
Expand All @@ -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' );
},
Expand All @@ -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' );
},
Expand All @@ -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' );
},
Expand All @@ -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',
Expand All @@ -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' );
},
Expand All @@ -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' );
},
Expand All @@ -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' );
},
Expand All @@ -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() );
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: changed
Comment: Updated composer.lock.


4 changes: 2 additions & 2 deletions projects/plugins/mu-wpcom-plugin/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bf1e528

Please sign in to comment.