Skip to content

Commit 10414c3

Browse files
paulopmt1matticbot
authored andcommitted
Launchpad Checklist API: Add start writing checklist and tasks (#30369)
* Add start writing checklist and task definitions * changelog * Add start writing to endpoint whitelist * Add new checklist_statuses and task * Add new start writing tasks * fix lint * Fix changelogger validity --------- Co-authored-by: DustyReagan <[email protected]> Co-authored-by: Candy Tsai <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/4948803010
1 parent 7609623 commit 10414c3

File tree

15 files changed

+65
-27
lines changed

15 files changed

+65
-27
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## 1.2.2-alpha - unreleased
9+
10+
This is an alpha version! The changes listed here are not final.
11+
812
## 1.2.1 - 2023-05-08
913
### Changed
1014
- Updated package dependencies. [#30493]

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type": "wordpress-plugin",
55
"license": "GPL-2.0-or-later",
66
"require": {
7-
"automattic/jetpack-mu-wpcom": "^2.0.1-alpha"
7+
"automattic/jetpack-mu-wpcom": "^2.1.0-alpha"
88
},
99
"require-dev": {
1010
"yoast/phpunit-polyfills": "1.0.4",
@@ -37,6 +37,6 @@
3737
]
3838
},
3939
"config": {
40-
"autoloader-suffix": "d9d132a783958a00a2c7cccff60ca42d_jetpack_mu_wpcom_pluginⓥ1_2_1"
40+
"autoloader-suffix": "d9d132a783958a00a2c7cccff60ca42d_jetpack_mu_wpcom_pluginⓥ1_2_2_alpha"
4141
}
4242
}

composer.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mu-wpcom-plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Plugin Name: WordPress.com Features
55
* Description: Test plugin for the jetpack-mu-wpcom package
6-
* Version: 1.2.1
6+
* Version: 1.2.2-alpha
77
* Author: Automattic
88
* License: GPLv2 or later
99
* Text Domain: jetpack-mu-wpcom-plugin

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@automattic/jetpack-mu-wpcom-plugin",
4-
"version": "1.2.1",
4+
"version": "1.2.2-alpha",
55
"description": "Test plugin for the jetpack-mu-wpcom package",
66
"homepage": "https://jetpack.com",
77
"bugs": {

vendor/autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222

2323
require_once __DIR__ . '/composer/autoload_real.php';
2424

25-
return ComposerAutoloaderInitd9d132a783958a00a2c7cccff60ca42d_jetpack_mu_wpcom_pluginⓥ1_2_1::getLoader();
25+
return ComposerAutoloaderInitd9d132a783958a00a2c7cccff60ca42d_jetpack_mu_wpcom_pluginⓥ1_2_2_alpha::getLoader();

vendor/automattic/jetpack-mu-wpcom/CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [2.0.1-alpha] - unreleased
8+
## [2.1.0-alpha] - unreleased
99

1010
This is an alpha version! The changes listed here are not final.
1111

1212
### Added
13+
- Add start writing checklist and task definitions to Launchpad Checklist API
1314
- Launchpad API improvements and compat
1415

1516
## [2.0.0] - 2023-05-08
@@ -140,7 +141,7 @@ This is an alpha version! The changes listed here are not final.
140141

141142
- Testing initial package release.
142143

143-
[2.0.1-alpha]: https://github.com/Automattic/jetpack-mu-wpcom/compare/v2.0.0...v2.0.1-alpha
144+
[2.1.0-alpha]: https://github.com/Automattic/jetpack-mu-wpcom/compare/v2.0.0...v2.1.0-alpha
144145
[2.0.0]: https://github.com/Automattic/jetpack-mu-wpcom/compare/v1.7.0...v2.0.0
145146
[1.7.0]: https://github.com/Automattic/jetpack-mu-wpcom/compare/v1.6.0...v1.7.0
146147
[1.6.0]: https://github.com/Automattic/jetpack-mu-wpcom/compare/v1.5.1...v1.6.0

vendor/automattic/jetpack-mu-wpcom/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"autotagger": true,
4040
"branch-alias": {
41-
"dev-trunk": "2.0.x-dev"
41+
"dev-trunk": "2.1.x-dev"
4242
},
4343
"textdomain": "jetpack-mu-wpcom",
4444
"version-constants": {

vendor/automattic/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
class Jetpack_Mu_Wpcom {
1616

17-
const PACKAGE_VERSION = '2.0.1-alpha';
17+
const PACKAGE_VERSION = '2.1.0-alpha';
1818
const PKG_DIR = __DIR__ . '/../';
1919

2020
/**

vendor/automattic/jetpack-mu-wpcom/src/features/launchpad/launchpad.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,15 @@ function wpcom_register_default_launchpad_checklists() {
142142
)
143143
);
144144

145+
wpcom_register_launchpad_task(
146+
array(
147+
'id' => 'setup_blog',
148+
'title' => __( 'Name your blog', 'jetpack-mu-wpcom' ),
149+
'is_complete_callback' => '__return_false',
150+
'is_disabled_callback' => '__return_false',
151+
)
152+
);
153+
145154
wpcom_register_launchpad_task(
146155
array(
147156
'id' => 'setup_general',
@@ -171,6 +180,15 @@ function wpcom_register_default_launchpad_checklists() {
171180
)
172181
);
173182

183+
wpcom_register_launchpad_task(
184+
array(
185+
'id' => 'blog_launched',
186+
'title' => __( 'Launch your blog', 'jetpack-mu-wpcom' ),
187+
'isLaunchTask' => true,
188+
'add_listener_callback' => 'wpcom_add_site_launch_listener',
189+
)
190+
);
191+
174192
wpcom_register_launchpad_task(
175193
array(
176194
'id' => 'setup_write',
@@ -314,6 +332,20 @@ function wpcom_register_default_launchpad_checklists() {
314332
)
315333
);
316334

335+
wpcom_register_launchpad_task_list(
336+
array(
337+
'id' => 'start-writing',
338+
'title' => 'Start Writing',
339+
'task_ids' => array(
340+
'first_post_published',
341+
'setup_blog',
342+
'domain_upsell',
343+
'plan_selected',
344+
'blog_launched',
345+
),
346+
)
347+
);
348+
317349
// This is the hook that allows other plugins to register their own checklists.
318350
do_action( 'wpcom_register_launchpad_tasks' );
319351

0 commit comments

Comments
 (0)