feat(monthly-comparison): detail 페이지 수정요청 내역 표시 + 승인/거부 UI
관리자가 개인 작업자 detail 페이지에서 수정요청(change_request) 내역을 확인하고 승인/거부할 수 있도록 UI 추가. admin 리스트에도 수정 내역 요약 표시. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -54,6 +54,9 @@
|
||||
.mc-status-badge.pending { background: #fef3c7; color: #92400e; }
|
||||
.mc-status-badge.confirmed { background: #dcfce7; color: #166534; }
|
||||
.mc-status-badge.rejected { background: #fef2f2; color: #991b1b; }
|
||||
.mc-status-badge.change_request { background: #fff7ed; color: #c2410c; }
|
||||
.mc-status-badge.review_sent { background: #dbeafe; color: #1e40af; }
|
||||
.mc-status-badge.admin_checked { background: #dcfce7; color: #166534; }
|
||||
|
||||
/* Summary Cards */
|
||||
.mc-summary-cards {
|
||||
@@ -305,6 +308,61 @@
|
||||
.ds-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 16px; color: #9ca3af; font-size: 0.875rem; }
|
||||
.ds-link { color: #2563eb; font-size: 0.8rem; text-decoration: underline; }
|
||||
|
||||
/* Change Request Panel (detail mode) */
|
||||
.mc-change-panel {
|
||||
background: #fff7ed;
|
||||
border: 1px solid #fed7aa;
|
||||
border-radius: 10px;
|
||||
padding: 14px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.mc-change-header {
|
||||
font-size: 0.85rem; font-weight: 700; color: #c2410c;
|
||||
margin-bottom: 8px;
|
||||
display: flex; align-items: center; gap: 6px;
|
||||
}
|
||||
.mc-change-list { margin-bottom: 10px; }
|
||||
.mc-change-item {
|
||||
font-size: 0.8rem; color: #374151;
|
||||
padding: 4px 0;
|
||||
border-bottom: 1px solid #fde6d0;
|
||||
}
|
||||
.mc-change-item:last-child { border-bottom: none; }
|
||||
.mc-change-from { color: #9ca3af; text-decoration: line-through; }
|
||||
.mc-change-to { color: #c2410c; font-weight: 600; }
|
||||
.mc-change-desc {
|
||||
font-size: 0.8rem; color: #374151;
|
||||
margin-bottom: 10px;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
.mc-change-actions {
|
||||
display: flex; gap: 8px;
|
||||
}
|
||||
.mc-change-approve {
|
||||
flex: 1; padding: 10px;
|
||||
background: #2563eb; color: white;
|
||||
font-size: 0.8rem; font-weight: 600;
|
||||
border: none; border-radius: 8px; cursor: pointer;
|
||||
}
|
||||
.mc-change-approve:hover { background: #1d4ed8; }
|
||||
.mc-change-reject {
|
||||
flex: 1; padding: 10px;
|
||||
background: white; color: #ef4444;
|
||||
font-size: 0.8rem; font-weight: 600;
|
||||
border: 2px solid #fecaca; border-radius: 8px; cursor: pointer;
|
||||
}
|
||||
.mc-change-reject:hover { background: #fef2f2; }
|
||||
|
||||
/* Worker card change summary */
|
||||
.mc-worker-change-summary {
|
||||
font-size: 0.7rem; color: #c2410c;
|
||||
margin-top: 4px; padding-left: 8px;
|
||||
border-left: 2px solid #fed7aa;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@media (max-width: 480px) { body { max-width: 480px; margin: 0 auto; } }
|
||||
|
||||
/* Inline Edit */
|
||||
|
||||
Reference in New Issue
Block a user