Skip to content

Commit

Permalink
Launchpad: Adapt the pre launch tasks to work on the Customer Home (#…
Browse files Browse the repository at this point in the history
…32796)

* Adapt the pre launch tasks to work on the Customer Home
* changelog

---------

Co-authored-by: Valter Lorran <valter.lorran@automattic.com>

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/6072128377
  • Loading branch information
daledupreez authored and matticbot committed Sep 4, 2023
1 parent 0da9e99 commit 30ca443
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
8 changes: 4 additions & 4 deletions composer.lock

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

1 change: 1 addition & 0 deletions vendor/automattic/jetpack-mu-wpcom/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ This is an alpha version! The changes listed here are not final.
- Use the task id to validate the task update request

### Changed
- Adapt the pre launch tasks to work on the Customer Home
- Update function prefixes for task list definitions
- Update the unused get_task_url prop on the task definition to the get_calypso_path

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ function wpcom_launchpad_get_task_definitions() {
},
'is_complete_callback' => '__return_true',
'is_disabled_callback' => 'wpcom_launchpad_is_design_step_enabled',
'get_calypso_path' => function ( $task, $default, $data ) {
return '/setup/update-design/designSetup?siteSlug=' . $data['site_slug_encoded'];
},
),
'domain_claim' => array(
'get_title' => function () {
Expand Down Expand Up @@ -82,6 +85,9 @@ function wpcom_launchpad_get_task_definitions() {
'subtitle' => 'wpcom_launchpad_get_plan_selected_subtitle',
'is_complete_callback' => '__return_true',
'badge_text_callback' => 'wpcom_launchpad_get_plan_selected_badge_text',
'get_calypso_path' => function ( $task, $default, $data ) {
return '/plans/' . $data['site_slug_encoded'];
},
),
'setup_general' => array(
'get_title' => function () {
Expand Down
6 changes: 3 additions & 3 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"packages": [
{
"name": "automattic/jetpack-mu-wpcom",
"version": "4.6.0-alpha.1693589940",
"version_normalized": "4.6.0.0-alpha1693589940",
"version": "4.6.0-alpha.1693822682",
"version_normalized": "4.6.0.0-alpha1693822682",
"dist": {
"type": "path",
"url": "/tmp/jetpack-build/Automattic/jetpack-mu-wpcom",
"reference": "41b7c37a6fe5bc91ff5d2b3f0696d06d8b42c3e0"
"reference": "4843773edbfc3cf6bb1e14aa9124b93c8c4bc75f"
},
"require-dev": {
"automattic/jetpack-changelogger": "^3.3.8",
Expand Down
6 changes: 3 additions & 3 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
),
'versions' => array(
'automattic/jetpack-mu-wpcom' => array(
'pretty_version' => '4.6.0-alpha.1693589940',
'version' => '4.6.0.0-alpha1693589940',
'reference' => '41b7c37a6fe5bc91ff5d2b3f0696d06d8b42c3e0',
'pretty_version' => '4.6.0-alpha.1693822682',
'version' => '4.6.0.0-alpha1693822682',
'reference' => '4843773edbfc3cf6bb1e14aa9124b93c8c4bc75f',
'type' => 'jetpack-library',
'install_path' => __DIR__ . '/../automattic/jetpack-mu-wpcom',
'aliases' => array(),
Expand Down

0 comments on commit 30ca443

Please sign in to comment.