feat: [pm] 이슈 일정 UI 및 정렬 기능 추가

- 이슈 모달에 시작일/마감일/예상시간 입력 필드 추가
- 작업 탭 아코디언 서브 이슈에 마감일 표시 및 지연 강조
- 이슈 정렬: 마감일 → 상태 순 (이슈탭 + 작업탭 아코디언)
This commit is contained in:
2025-12-02 17:49:15 +09:00
parent 20354557ed
commit 8b88224be9
4 changed files with 73 additions and 2 deletions

View File

@@ -27,6 +27,9 @@ public function rules(): array
'description' => 'nullable|string|max:5000',
'type' => 'nullable|in:'.implode(',', array_keys(AdminPmIssue::getTypes())),
'status' => 'nullable|in:'.implode(',', array_keys(AdminPmIssue::getStatuses())),
'start_date' => 'nullable|date',
'due_date' => 'nullable|date|after_or_equal:start_date',
'estimated_hours' => 'nullable|integer|min:0|max:9999',
];
}
@@ -42,6 +45,9 @@ public function attributes(): array
'description' => '이슈 설명',
'type' => '타입',
'status' => '상태',
'start_date' => '시작일',
'due_date' => '마감일',
'estimated_hours' => '예상 시간',
];
}

View File

@@ -27,6 +27,9 @@ public function rules(): array
'description' => 'nullable|string|max:5000',
'type' => 'sometimes|in:'.implode(',', array_keys(AdminPmIssue::getTypes())),
'status' => 'sometimes|in:'.implode(',', array_keys(AdminPmIssue::getStatuses())),
'start_date' => 'nullable|date',
'due_date' => 'nullable|date|after_or_equal:start_date',
'estimated_hours' => 'nullable|integer|min:0|max:9999',
];
}
@@ -42,6 +45,9 @@ public function attributes(): array
'description' => '이슈 설명',
'type' => '타입',
'status' => '상태',
'start_date' => '시작일',
'due_date' => '마감일',
'estimated_hours' => '예상 시간',
];
}

View File

@@ -37,6 +37,9 @@ class AdminPmIssue extends Model
'description',
'type',
'status',
'start_date',
'due_date',
'estimated_hours',
'is_urgent',
'created_by',
'updated_by',
@@ -46,6 +49,9 @@ class AdminPmIssue extends Model
protected $casts = [
'project_id' => 'integer',
'task_id' => 'integer',
'start_date' => 'date',
'due_date' => 'date',
'estimated_hours' => 'integer',
'is_urgent' => 'boolean',
'created_by' => 'integer',
'updated_by' => 'integer',