Skip to content

Commit

Permalink
Post-migration Experience: Adds the placeholder task list (#39593)
Browse files Browse the repository at this point in the history
* Add the placeholder Migration task list

* changelog

* Update the tasklist name to match calypso's

---------

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

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11130571297

Upstream-Ref: Automattic/jetpack@3583df8
  • Loading branch information
valterlorran authored and matticbot committed Oct 1, 2024
1 parent 10608cc commit 63cb6b0
Show file tree
Hide file tree
Showing 6 changed files with 101 additions and 85 deletions.
58 changes: 29 additions & 29 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 @@ -11,6 +11,7 @@ This is an alpha version! The changes listed here are not final.

### Added
- Adds JSON translation files
- Adds the placeholder task list for the Migration flow
- Global Styles: add a Help Link to premium styles limitation message

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,13 @@ function wpcom_launchpad_get_task_definitions() {
return site_url( '/wp-admin/admin.php?page=wc-admin&task=launch_site' );
},
),
'migrating_site' => array(
'get_title' => function () {
return __( 'Migrating the site', 'jetpack-mu-wpcom' );
},
'is_complete_callback' => 'wpcom_launchpad_is_task_option_completed',
'is_visible_callback' => '__return_true',
),
);

$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 @@ -315,6 +315,14 @@ function wpcom_launchpad_get_task_list_definitions() {
'woo_launch_site',
),
),
'post-migration' => array(
'get_title' => function () {
return __( 'Site migration', 'jetpack-mu-wpcom' );
},
'task_ids' => array(
'migrating_site',
),
),
);

$extended_task_list_definitions = apply_filters( 'wpcom_launchpad_extended_task_list_definitions', array() );
Expand Down
Loading

0 comments on commit 63cb6b0

Please sign in to comment.