diff --git a/app/Models/Admin/AdminApiFlowRun.php b/app/Models/Admin/AdminApiFlowRun.php index 04732104..5aab8b20 100644 --- a/app/Models/Admin/AdminApiFlowRun.php +++ b/app/Models/Admin/AdminApiFlowRun.php @@ -58,6 +58,7 @@ class AdminApiFlowRun extends Model protected $casts = [ 'flow_id' => 'integer', + 'created_at' => 'datetime', 'started_at' => 'datetime', 'completed_at' => 'datetime', 'duration_ms' => 'integer', @@ -162,12 +163,12 @@ public function getStatusLabelAttribute(): string public function getStatusColorAttribute(): string { return match ($this->status) { - self::STATUS_PENDING => 'badge-ghost', - self::STATUS_RUNNING => 'badge-info', - self::STATUS_SUCCESS => 'badge-success', - self::STATUS_FAILED => 'badge-error', - self::STATUS_PARTIAL => 'badge-warning', - default => 'badge-ghost', + self::STATUS_PENDING => 'bg-gray-100 text-gray-600', + self::STATUS_RUNNING => 'bg-blue-100 text-blue-700', + self::STATUS_SUCCESS => 'bg-green-100 text-green-700', + self::STATUS_FAILED => 'bg-red-100 text-red-700', + self::STATUS_PARTIAL => 'bg-yellow-100 text-yellow-700', + default => 'bg-gray-100 text-gray-600', }; } }