diff --git a/assets/css/admin.css b/assets/css/admin.css
index ed09528..cb011ea 100644
--- a/assets/css/admin.css
+++ b/assets/css/admin.css
@@ -178,7 +178,7 @@
.stellarwp-migration-card__description {
color: #50575e;
- font-size: 14px;
+ font-size: 12px;
line-height: 1.5;
margin: 0 0 16px;
}
diff --git a/assets/js/admin.js b/assets/js/admin.js
index 868cefa..da39cf4 100644
--- a/assets/js/admin.js
+++ b/assets/js/admin.js
@@ -162,7 +162,7 @@
// Add loading state to clicked button
button.classList.add( 'stellarwp-migration-btn--loading' );
const originalText = button.textContent;
- button.textContent = action === 'run' ? __( 'Running...', 'stellarwp-migrations' ) : __( 'Rolling back...', 'stellarwp-migrations' );
+ button.textContent = action === 'run' ? __( 'Adding to queue...', 'stellarwp-migrations' ) : __( 'Rolling back...', 'stellarwp-migrations' );
// Build the endpoint path (relative to REST root)
const endpoint = restUrl + '/migrations/' + encodeURIComponent( migrationId ) + '/' + action;
diff --git a/src/Admin/UI.php b/src/Admin/UI.php
index a041de7..ba39ba8 100644
--- a/src/Admin/UI.php
+++ b/src/Admin/UI.php
@@ -220,7 +220,7 @@ private function parse_filters(): array {
"stellarwp_migrations_{$prefix}_filters",
[
'tags' => $tags,
- 'show_completed' => ! empty( filter_input( INPUT_GET, 'show_completed', FILTER_SANITIZE_NUMBER_INT ) ),
+ 'show_completed' => filter_input( INPUT_GET, 'show_completed', FILTER_SANITIZE_NUMBER_INT ) !== '0',
'show_non_applicable' => ! empty( filter_input( INPUT_GET, 'show_non_applicable', FILTER_SANITIZE_NUMBER_INT ) ),
]
);
diff --git a/src/Enums/Status.php b/src/Enums/Status.php
index cdce248..b35506b 100644
--- a/src/Enums/Status.php
+++ b/src/Enums/Status.php
@@ -106,9 +106,9 @@ class Status extends Enum {
public function get_label(): string {
switch ( $this->getValue() ) {
case self::PENDING:
- return _x( 'Pending', 'Migration status', 'stellarwp-migrations' );
+ return _x( 'Not started', 'Migration status', 'stellarwp-migrations' );
case self::RUNNING:
- return _x( 'Running', 'Migration status', 'stellarwp-migrations' );
+ return _x( 'Migration in progress', 'Migration status', 'stellarwp-migrations' );
case self::COMPLETED:
return _x( 'Completed', 'Migration status', 'stellarwp-migrations' );
case self::FAILED:
diff --git a/src/Utilities/Migration_UI.php b/src/Utilities/Migration_UI.php
index 535835c..db62001 100644
--- a/src/Utilities/Migration_UI.php
+++ b/src/Utilities/Migration_UI.php
@@ -137,33 +137,6 @@ public function get_run_action_label(): string {
return __( 'Start', 'stellarwp-migrations' );
}
- /**
- * Returns the run action icon name for the migration.
- *
- * @since 0.0.1
- *
- * @return string Icon name (e.g. 'start', 'retry').
- */
- public function get_run_action_icon(): string {
- $status_value = $this->get_display_status()->getValue();
-
- if (
- in_array(
- $status_value,
- [
- Status::COMPLETED()->getValue(),
- Status::REVERTED()->getValue(),
- Status::FAILED()->getValue(),
- ],
- true
- )
- ) {
- return 'retry';
- }
-
- return 'start';
- }
-
/**
* Whether the run button should be shown for the migration.
*
diff --git a/src/views/components/migration-actions.php b/src/views/components/migration-actions.php
index 1368c88..c6f6374 100644
--- a/src/views/components/migration-actions.php
+++ b/src/views/components/migration-actions.php
@@ -32,7 +32,6 @@
$show_run = $migration_ui->show_run();
$show_rollback = $migration_ui->show_rollback();
$run_migration_label = $migration_ui->get_run_action_label();
-$run_migration_icon = $migration_ui->get_run_action_icon();
$template = Config::get_template_engine();
@@ -63,7 +62,7 @@ class="stellarwp-migration-btn stellarwp-migration-btn--primary"
>
template(
- 'icons/' . $run_migration_icon,
+ 'icons/start',
[
'is_aria_hidden' => true,
]
diff --git a/src/views/icons/retry.php b/src/views/icons/retry.php
deleted file mode 100644
index 939e268..0000000
--- a/src/views/icons/retry.php
+++ /dev/null
@@ -1,43 +0,0 @@
-template(
- 'icons/icon/start',
- [
- 'classes' => $svg_classes,
- 'height' => 16,
- 'label' => $label,
- 'width' => 16,
- ],
-);
-?>
-
-