feat: 현황판 정렬 기준 필터 제거 - UI 단순화

🗑️ 정렬 기준 필터 완전 제거:
- 정렬 기준 드롭다운 UI 삭제
- sortIssues() 함수 제거
- 관련 함수 호출 제거

💡 UI 단순화 효과:
- 필터 영역이 더 깔끔해짐
- 프로젝트 선택에 집중
- 사용자 인터페이스 복잡도 감소

🎯 기본 정렬 유지:
- 날짜별 그룹화는 그대로 유지
- 최신순 정렬 (newest first) 기본 적용
- 핵심 기능은 보존하면서 불필요한 옵션만 제거

Expected Result:
 더 간단하고 직관적인 필터 인터페이스
 프로젝트 선택 + 새로고침 버튼만 유지
 사용자 혼란 요소 제거
 핵심 기능에 집중
This commit is contained in:
Hyungi Ahn
2025-10-26 12:34:08 +09:00
parent 01fa39c75b
commit 151d1cc875

View File

@@ -218,14 +218,6 @@
<option value="">전체 프로젝트</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">정렬 기준</label>
<select id="sortOrder" class="px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500" onchange="sortIssues()">
<option value="priority">우선순위</option>
<option value="date">신고일순</option>
<option value="deadline">마감일순</option>
</select>
</div>
</div>
<div class="flex items-center space-x-2">
<button onclick="refreshDashboard()" class="px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition-colors">
@@ -722,34 +714,9 @@
filteredIssues = [...allIssues];
}
sortIssues();
updateProjectCards();
}
function sortIssues() {
const sortOrder = document.getElementById('sortOrder').value;
filteredIssues.sort((a, b) => {
switch (sortOrder) {
case 'priority':
// 긴급도 우선 (마감일이 가까운 순)
const aUrgent = a.expected_completion_date ?
(new Date(a.expected_completion_date) - new Date()) / (1000 * 60 * 60 * 24) : 999;
const bUrgent = b.expected_completion_date ?
(new Date(b.expected_completion_date) - new Date()) / (1000 * 60 * 60 * 24) : 999;
return aUrgent - bUrgent;
case 'date':
return new Date(b.report_date) - new Date(a.report_date);
case 'deadline':
if (!a.expected_completion_date && !b.expected_completion_date) return 0;
if (!a.expected_completion_date) return 1;
if (!b.expected_completion_date) return -1;
return new Date(a.expected_completion_date) - new Date(b.expected_completion_date);
default:
return 0;
}
});
}
// 유틸리티 함수들
function getDepartmentText(department) {