From 3dcad4e00c48fda588526f8f121d5fa27c54c4b4 Mon Sep 17 00:00:00 2001 From: hskwon Date: Thu, 27 Nov 2025 20:18:44 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[flow-tester]=20AdminApiFlowRun=20?= =?UTF-8?q?=EB=AA=A8=EB=8D=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - created_at datetime 캐스팅 추가 (=false로 인한 문제) - status_color DaisyUI → 순수 Tailwind CSS 클래스로 변경 --- app/Models/Admin/AdminApiFlowRun.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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', }; } }