fix: [flow-tester] AdminApiFlowRun 모델 수정
- created_at datetime 캐스팅 추가 (=false로 인한 문제) - status_color DaisyUI → 순수 Tailwind CSS 클래스로 변경
This commit is contained in:
@@ -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',
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user