feat: 캘린더 기반 작업 현황 확인 시스템 구현

- 월별 캘린더 UI로 작업 현황을 한눈에 확인 가능
- 미입력(빨강), 부분입력(주황), 확인필요(보라), 이상없음(초록) 상태 표시
- 범례 아이콘(●)을 사용한 직관적인 상태 표시
- 날짜 클릭 시 해당일 작업자별 상세 현황 모달
- 작업자 클릭 시 개별 작업 입력/수정 모달
- 휴가 처리 기능 (연차, 반차, 반반차, 조퇴)
- 월별 집계 데이터 최적화로 API 호출 최소화

백엔드:
- monthly_worker_status, monthly_summary 테이블 추가
- 자동 집계 stored procedure 및 trigger 구현
- 확인필요(12시간 초과) 상태 감지 로직
- 출석 관리 시스템 확장

프론트엔드:
- 캘린더 그리드 UI 구현
- 상태별 색상 및 아이콘 표시
- 모달 기반 상세 정보 표시
- 반응형 디자인 적용
This commit is contained in:
Hyungi Ahn
2025-11-04 10:12:07 +09:00
parent 33307bb243
commit 746e09420b
29 changed files with 8815 additions and 251 deletions

View File

@@ -817,4 +817,346 @@
.guide-item strong {
font-size: var(--text-sm);
}
}
/* ========== 개별 작업 보고서 전용 스타일 ========== */
/* 작업자 정보 카드 */
.worker-info-card {
background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
border: 2px solid var(--primary-200);
border-radius: var(--radius-2xl);
padding: var(--space-8);
margin-bottom: var(--space-8);
display: flex;
align-items: center;
gap: var(--space-6);
box-shadow: var(--shadow-lg);
position: relative;
overflow: hidden;
}
.worker-info-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
}
.worker-avatar-large {
width: 80px;
height: 80px;
border-radius: var(--radius-full);
background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
display: flex;
align-items: center;
justify-content: center;
color: var(--text-inverse);
font-weight: var(--font-bold);
font-size: var(--text-3xl);
box-shadow: var(--shadow-lg);
flex-shrink: 0;
}
.worker-info-details {
flex: 1;
}
.worker-info-details h2 {
font-size: var(--text-2xl);
font-weight: var(--font-bold);
color: var(--text-primary);
margin: 0 0 var(--space-2) 0;
}
.worker-info-details p {
font-size: var(--text-base);
color: var(--text-secondary);
margin: 0 0 var(--space-1) 0;
}
.worker-status-summary {
display: flex;
gap: var(--space-6);
}
.status-item {
text-align: center;
padding: var(--space-4);
background: var(--bg-primary);
border-radius: var(--radius-xl);
border: 1px solid var(--border-light);
min-width: 100px;
}
.status-label {
display: block;
font-size: var(--text-sm);
color: var(--text-secondary);
margin-bottom: var(--space-1);
}
.status-value {
display: block;
font-size: var(--text-xl);
font-weight: var(--font-bold);
color: var(--text-primary);
}
.status-value.warning {
color: var(--error-600);
}
/* 섹션 헤더 */
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: var(--space-6);
padding-bottom: var(--space-4);
border-bottom: 2px solid var(--border-light);
}
.section-header h3 {
font-size: var(--text-xl);
font-weight: var(--font-bold);
color: var(--text-primary);
margin: 0;
}
/* 기존 작업 목록 */
.existing-work-section {
margin-bottom: var(--space-8);
}
.existing-work-item {
background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
border: 2px solid var(--border-light);
border-radius: var(--radius-xl);
padding: var(--space-6);
margin-bottom: var(--space-4);
transition: var(--transition-normal);
box-shadow: var(--shadow-md);
position: relative;
overflow: hidden;
}
.existing-work-item::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: var(--success-500);
opacity: 0;
transition: opacity 0.3s ease;
}
.existing-work-item:hover {
border-color: var(--primary-300);
box-shadow: var(--shadow-lg);
transform: translateY(-2px);
}
.existing-work-item:hover::before {
opacity: 1;
}
.work-item-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: var(--space-4);
}
.work-item-info h4 {
font-size: var(--text-lg);
font-weight: var(--font-semibold);
color: var(--text-primary);
margin: 0 0 var(--space-1) 0;
}
.work-item-info p {
font-size: var(--text-sm);
color: var(--text-secondary);
margin: 0;
}
.work-item-status {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: var(--space-2);
}
.status-badge {
padding: var(--space-1) var(--space-3);
border-radius: var(--radius-full);
font-size: var(--text-xs);
font-weight: var(--font-medium);
}
.status-badge.normal {
background: var(--success-100);
color: var(--success-700);
border: 1px solid var(--success-300);
}
.status-badge.error {
background: var(--error-100);
color: var(--error-700);
border: 1px solid var(--error-300);
}
.work-hours {
font-size: var(--text-lg);
font-weight: var(--font-bold);
color: var(--primary-600);
}
.work-item-error {
background: var(--error-50);
border: 1px solid var(--error-200);
border-radius: var(--radius-lg);
padding: var(--space-3);
margin-bottom: var(--space-4);
}
.error-label {
font-size: var(--text-sm);
font-weight: var(--font-medium);
color: var(--error-600);
}
.error-type {
font-size: var(--text-sm);
color: var(--error-700);
margin-left: var(--space-2);
}
.work-item-actions {
display: flex;
gap: var(--space-2);
justify-content: flex-end;
}
/* 새 작업 추가 섹션 */
.new-work-section {
margin-bottom: var(--space-8);
}
/* 휴가 처리 섹션 */
.vacation-section {
margin-bottom: var(--space-8);
}
.vacation-buttons {
display: flex;
gap: var(--space-4);
flex-wrap: wrap;
}
.vacation-process-btn {
flex: 1;
min-width: 150px;
padding: var(--space-4) var(--space-6);
font-size: var(--text-base);
font-weight: var(--font-medium);
background: linear-gradient(135deg, var(--warning-500), var(--warning-600));
border: none;
color: var(--text-inverse);
border-radius: var(--radius-xl);
transition: var(--transition-normal);
box-shadow: var(--shadow-md);
}
.vacation-process-btn:hover {
background: linear-gradient(135deg, var(--warning-600), var(--warning-700));
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
}
/* 빈 상태 */
.empty-state {
text-align: center;
padding: var(--space-12);
background: var(--bg-secondary);
border-radius: var(--radius-xl);
border: 2px dashed var(--border-light);
}
.empty-icon {
font-size: var(--text-6xl);
margin-bottom: var(--space-4);
}
.empty-state h3 {
font-size: var(--text-xl);
font-weight: var(--font-semibold);
color: var(--text-primary);
margin: 0 0 var(--space-2) 0;
}
.empty-state p {
font-size: var(--text-base);
color: var(--text-secondary);
margin: 0;
}
/* 개별 보고서 반응형 디자인 */
@media (max-width: 768px) {
.worker-info-card {
flex-direction: column;
text-align: center;
gap: var(--space-4);
}
.worker-status-summary {
justify-content: center;
gap: var(--space-4);
}
.section-header {
flex-direction: column;
align-items: stretch;
gap: var(--space-3);
}
.work-item-header {
flex-direction: column;
gap: var(--space-3);
}
.work-item-status {
align-items: flex-start;
flex-direction: row;
justify-content: space-between;
}
.vacation-buttons {
flex-direction: column;
}
.vacation-process-btn {
min-width: auto;
}
}
@media (max-width: 480px) {
.worker-status-summary {
flex-direction: column;
gap: var(--space-3);
}
.status-item {
min-width: auto;
}
.work-item-actions {
flex-direction: column;
}
}