From 50ac333f2c54a78988c6952e64ef605ba0a05928 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estev=C3=A3o=20Costa?= Date: Mon, 16 Feb 2026 11:28:42 -0300 Subject: [PATCH 01/13] Update reverted dstatus label --- src/Enums/Status.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Enums/Status.php b/src/Enums/Status.php index b35506b..6257ca9 100644 --- a/src/Enums/Status.php +++ b/src/Enums/Status.php @@ -122,7 +122,7 @@ public function get_label(): string { case self::SCHEDULED: return _x( 'Scheduled', 'Migration status', 'stellarwp-migrations' ); case self::REVERTED: - return _x( 'Reverted', 'Migration status', 'stellarwp-migrations' ); + return _x( 'Rolled back', 'Migration status', 'stellarwp-migrations' ); default: return _x( 'Unknown', 'Migration status', 'stellarwp-migrations' ); } From 48add5d24cc41a2f21641238a75f221ce5bc44e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estev=C3=A3o=20Costa?= Date: Mon, 16 Feb 2026 11:29:58 -0300 Subject: [PATCH 02/13] Addd view details link --- assets/css/admin.css | 13 +++++++++++++ src/views/components/migration-card.php | 3 +++ ...uld_render_list_with_migrations__0.snapshot.html | 9 +++++++++ ...nder_list_with_single_migration__0.snapshot.html | 3 +++ 4 files changed, 28 insertions(+) diff --git a/assets/css/admin.css b/assets/css/admin.css index cb011ea..6427fbb 100644 --- a/assets/css/admin.css +++ b/assets/css/admin.css @@ -183,6 +183,19 @@ margin: 0 0 16px; } +.stellarwp-migration-card__details-link { + color: #2271b1; + display: inline-block; + font-size: 12px; + margin: 0 0 16px; + text-decoration: none; +} + +.stellarwp-migration-card__details-link:hover { + color: #135e96; + text-decoration: underline; +} + .stellarwp-migration-card__separator { border: none; border-top: 1px solid #f0f0f1; diff --git a/src/views/components/migration-card.php b/src/views/components/migration-card.php index 4e265ec..cb7de44 100644 --- a/src/views/components/migration-card.php +++ b/src/views/components/migration-card.php @@ -51,6 +51,9 @@

+ + → +
diff --git a/tests/wpunit/Admin/__snapshots__/UI_Test__it_should_render_empty_list_when_no_migrations__0.snapshot.html b/tests/wpunit/Admin/__snapshots__/UI_Test__it_should_render_empty_list_when_no_migrations__0.snapshot.html index 6d3c3ad..6c5100a 100644 --- a/tests/wpunit/Admin/__snapshots__/UI_Test__it_should_render_empty_list_when_no_migrations__0.snapshot.html +++ b/tests/wpunit/Admin/__snapshots__/UI_Test__it_should_render_empty_list_when_no_migrations__0.snapshot.html @@ -21,14 +21,6 @@ checked='checked' onchange="this.form.submit();" /> Show Completed - diff --git a/tests/wpunit/Admin/__snapshots__/UI_Test__it_should_render_list_with_migrations__0.snapshot.html b/tests/wpunit/Admin/__snapshots__/UI_Test__it_should_render_list_with_migrations__0.snapshot.html index 40c3612..ff6678c 100644 --- a/tests/wpunit/Admin/__snapshots__/UI_Test__it_should_render_list_with_migrations__0.snapshot.html +++ b/tests/wpunit/Admin/__snapshots__/UI_Test__it_should_render_list_with_migrations__0.snapshot.html @@ -37,14 +37,6 @@ checked='checked' onchange="this.form.submit();" /> Show Completed - @@ -65,17 +57,16 @@


+ +
@@ -116,17 +108,16 @@


+ +

@@ -171,17 +163,16 @@


+ +

diff --git a/tests/wpunit/Admin/__snapshots__/UI_Test__it_should_render_list_with_single_migration__0.snapshot.html b/tests/wpunit/Admin/__snapshots__/UI_Test__it_should_render_list_with_single_migration__0.snapshot.html index 876a8fd..9453d60 100644 --- a/tests/wpunit/Admin/__snapshots__/UI_Test__it_should_render_list_with_single_migration__0.snapshot.html +++ b/tests/wpunit/Admin/__snapshots__/UI_Test__it_should_render_list_with_single_migration__0.snapshot.html @@ -21,14 +21,6 @@ checked='checked' onchange="this.form.submit();" /> Show Completed - @@ -49,17 +41,16 @@


+ + From dff30f55eb664e8d39a96d5053a04aeaa48f5c67 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 16 Feb 2026 15:41:42 +0000 Subject: [PATCH 10/13] chore: autopublish 2026-02-16T15:41:42Z --- src/Admin/UI.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Admin/UI.php b/src/Admin/UI.php index dba631b..e37bf35 100644 --- a/src/Admin/UI.php +++ b/src/Admin/UI.php @@ -408,14 +408,14 @@ private function get_status_priority(): array { return apply_filters( "stellarwp_migrations_{$prefix}_status_priority", [ - Status::RUNNING()->getValue() => 1, - Status::FAILED()->getValue() => 2, - Status::PAUSED()->getValue() => 3, - Status::PENDING()->getValue() => 4, - Status::SCHEDULED()->getValue() => 5, - Status::CANCELED()->getValue() => 6, - Status::REVERTED()->getValue() => 7, - Status::COMPLETED()->getValue() => 8, + Status::RUNNING()->getValue() => 1, + Status::FAILED()->getValue() => 2, + Status::PAUSED()->getValue() => 3, + Status::PENDING()->getValue() => 4, + Status::SCHEDULED()->getValue() => 5, + Status::CANCELED()->getValue() => 6, + Status::REVERTED()->getValue() => 7, + Status::COMPLETED()->getValue() => 8, ] ); } From 098feed762d007e9f5c255b692fb8820cfbdc1b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estev=C3=A3o=20Costa?= Date: Mon, 16 Feb 2026 12:43:25 -0300 Subject: [PATCH 11/13] Fix align --- src/Admin/UI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Admin/UI.php b/src/Admin/UI.php index e37bf35..8a71377 100644 --- a/src/Admin/UI.php +++ b/src/Admin/UI.php @@ -304,7 +304,7 @@ static function ( Migration $migration ) use ( $show_completed, $filter_tags ): * * @since 0.0.1 * - * @param list $migrations Migrations to filter. + * @param list $migrations Migrations to filter. * @param array{tags: string[], show_completed: bool} $filters Filters to apply. * * @return list Filtered migrations. From 9a016ae5363d1419c88d58a0a974cc6074f042d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estev=C3=A3o=20Costa?= Date: Mon, 16 Feb 2026 12:50:16 -0300 Subject: [PATCH 12/13] Apply pending layout --- assets/css/admin.css | 12 ++++++++++++ .../components/migration-status/pending.php | 17 +++++++++-------- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/assets/css/admin.css b/assets/css/admin.css index 25c3fa9..8ee0123 100644 --- a/assets/css/admin.css +++ b/assets/css/admin.css @@ -278,6 +278,18 @@ font-variant-numeric: tabular-nums; } +.stellarwp-migration-card__dot-separator { + color: #8c8f94; + font-size: 14px; + line-height: 1; +} + +.stellarwp-migration-card__total-items { + color: #646970; + font-size: 13px; + font-variant-numeric: tabular-nums; +} + /* Progress Bar */ .stellarwp-migration-progress { flex: 1; diff --git a/src/views/components/migration-status/pending.php b/src/views/components/migration-status/pending.php index da55e85..f2d524f 100644 --- a/src/views/components/migration-status/pending.php +++ b/src/views/components/migration-status/pending.php @@ -13,7 +13,6 @@ defined( 'ABSPATH' ) || exit; -use StellarWP\Migrations\Config; use StellarWP\Migrations\Contracts\Migration; use StellarWP\Migrations\Utilities\Migration_UI; @@ -29,20 +28,22 @@ $status_value = $migration_ui->get_display_status()->getValue(); $status_label = $migration_ui->get_display_status_label(); -$template = Config::get_template_engine(); ?>
+ · + + template( - 'components/progress-text', - [ - 'migration' => $migration, - 'migration_ui' => $migration_ui, - ] + $total_items = $migration->get_total_items(); + printf( + /* translators: %s: total number of items */ + esc_html( _n( '%s total item', '%s total items', $total_items, 'stellarwp-migrations' ) ), + esc_html( number_format_i18n( $total_items ) ) ); ?> +
From 04d7b4711f16dfd1d8339fbd26f8ce6c8f340f77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estev=C3=A3o=20Costa?= Date: Mon, 16 Feb 2026 14:06:35 -0300 Subject: [PATCH 13/13] Update templates --- ...ender_list_with_migrations__0.snapshot.html | 18 ++++++++++++------ ...list_with_single_migration__0.snapshot.html | 6 ++++-- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/tests/wpunit/Admin/__snapshots__/UI_Test__it_should_render_list_with_migrations__0.snapshot.html b/tests/wpunit/Admin/__snapshots__/UI_Test__it_should_render_list_with_migrations__0.snapshot.html index ff6678c..3608eea 100644 --- a/tests/wpunit/Admin/__snapshots__/UI_Test__it_should_render_list_with_migrations__0.snapshot.html +++ b/tests/wpunit/Admin/__snapshots__/UI_Test__it_should_render_list_with_migrations__0.snapshot.html @@ -63,8 +63,10 @@

Migration not started - - 0 / 1 + · + + + 1 total item