feat(project): workload as vertical bars with task list drawer

Per assignee, main and subtask bars (height = count, green = done).
Clicking a bar slides in a right-side panel listing those tasks;
clicking an item opens the task editor. Closing the editor refreshes
the counts. Subtask summary API now returns id, title, due date.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-07 14:24:02 +09:00
parent 2d638804d1
commit 1cfcec2bef
12 changed files with 241 additions and 82 deletions
+57 -17
View File
@@ -1544,23 +1544,63 @@ img.pj-person-ic { width: 22px; height: 22px; }
box-shadow: var(--pj-card-shadow); padding: 18px 20px 20px; min-width: 0;
}
.pj-dash-card-wide { grid-column: 1 / -1; }
/* 담당자별 작업 합계(메인·하위, 완료) 표 */
.pj-dash-workload { overflow-x: auto; }
.pj-wl-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.pj-wl-table th, .pj-wl-table td { padding: 8px 10px; border-bottom: 1px solid var(--pj-border); text-align: left; white-space: nowrap; }
.pj-wl-table thead th { font-size: 12px; font-weight: 600; color: var(--pj-ink-soft); }
.pj-wl-table thead th:nth-child(2), .pj-wl-table thead th:nth-child(3), .pj-wl-table thead th:nth-child(4) { text-align: right; }
.pj-wl-table tbody th { font-weight: 600; }
.pj-wl-cnt { text-align: right !important; width: 72px; }
.pj-wl-num { min-width: 150px; }
.pj-wl-num > span { margin-left: 8px; color: var(--pj-ink-soft); }
.pj-wl-num b { color: var(--pj-ink); }
.pj-wl-num em { font-style: normal; font-weight: 700; color: var(--pj-accent-dark); margin-left: 4px; }
.pj-wl-num em.is-good { color: #1f8a4c; }
.pj-wl-bar { display: inline-block; vertical-align: middle; width: 90px; height: 8px; border-radius: 999px; background: #eceef2; overflow: hidden; }
.pj-wl-bar i { display: block; height: 100%; border-radius: inherit; background: var(--color-success-green, #2e9e5b); transition: width .6s cubic-bezier(.22,.9,.3,1); }
.pj-wl-all .pj-wl-bar { width: 120px; }
.pj-wl-total th, .pj-wl-total td { border-bottom: none; border-top: 2px solid var(--pj-border); font-weight: 700; }
/* 담당자별 작업 합계 — 사람마다 메인·하위 세로 막대(아래 초록 = 완료, 위 = 미완료). 누르면 오른쪽 업무 목록 패널 */
.pj-wl-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: -6px 0 14px; font-size: 12px; color: var(--pj-ink-soft); }
.pj-wl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.pj-wl-legend i.is-done { background: var(--color-success-green, #2e9e5b); }
.pj-wl-legend i.is-open { background: var(--pj-accent-tint); border: 1px solid #cfc6fb; }
.pj-wl-legend .pj-wl-sum { color: var(--pj-ink); }
.pj-wl-legend .pj-wl-hint { margin-left: auto; }
.pj-wl-bars { display: flex; align-items: flex-end; gap: 26px; overflow-x: auto; padding-bottom: 2px; min-height: 220px; }
.pj-wl-group { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; }
.pj-wl-pair { display: flex; align-items: flex-end; gap: 6px; }
.pj-wl-col {
display: flex; flex-direction: column; align-items: center; gap: 0; padding: 2px 2px 0; border: none; background: none;
border-radius: 8px; font: inherit; cursor: pointer;
}
.pj-wl-col:disabled { cursor: default; opacity: .55; }
.pj-wl-col:not(:disabled):hover .pj-wl-track, .pj-wl-col:focus-visible .pj-wl-track { box-shadow: 0 0 0 2px var(--pj-accent); }
.pj-wl-val { font-size: 12px; font-weight: 700; color: var(--pj-ink); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.pj-wl-track { position: relative; display: block; width: 30px; height: 150px; border-radius: 6px 6px 4px 4px; background: #f3f4f6; }
.pj-wl-stack {
position: absolute; left: 0; right: 0; bottom: 0; height: 0; display: flex; flex-direction: column;
border-radius: 6px 6px 4px 4px; overflow: hidden; transition: height .7s cubic-bezier(.22,.9,.3,1);
}
.pj-wl-stack i { display: block; flex: 0 0 auto; flex-basis: 0; }
.pj-wl-open { background: var(--pj-accent-tint); box-shadow: inset 0 0 0 1px #cfc6fb; }
.pj-wl-done { background: var(--color-success-green, #2e9e5b); }
.pj-wl-col.is-sub .pj-wl-done { background: #5fbf86; }
.pj-wl-kind { margin-top: 6px; font-size: 11px; color: var(--pj-ink-soft); }
.pj-wl-name { display: flex; flex-direction: column; align-items: center; margin-top: 4px; max-width: 110px; text-align: center; }
.pj-wl-name b { font-size: 12.5px; font-weight: 600; color: var(--pj-ink); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-wl-name small { font-size: 11px; color: var(--pj-ink-soft); font-variant-numeric: tabular-nums; }
/* 오른쪽 업무 목록 패널(body 에 붙음, 작업 편집 창(z 1000) 아래) */
.pj-wl-drawer { position: fixed; inset: 0; z-index: 950; }
.pj-wl-drawer-dim { position: absolute; inset: 0; background: rgba(20, 22, 26, .18); opacity: 0; transition: opacity .25s; }
.pj-wl-panel {
position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); display: flex; flex-direction: column;
background: #fff; box-shadow: -12px 0 40px rgba(16, 24, 40, .16); transform: translateX(100%);
transition: transform .26s cubic-bezier(.22,.9,.3,1);
}
.pj-wl-drawer.is-open .pj-wl-drawer-dim { opacity: 1; }
.pj-wl-drawer.is-open .pj-wl-panel { transform: none; }
.pj-wl-panel header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 18px 18px 12px; border-bottom: 1px solid var(--pj-border); }
.pj-wl-panel header b { display: block; font-size: 15px; }
.pj-wl-panel header small { color: var(--pj-ink-soft); font-size: 12px; }
.pj-wl-panel-body { flex: 1 1 auto; overflow-y: auto; padding: 8px 10px 16px; }
.pj-wl-panel-group { margin: 12px 8px 4px; font-size: 11.5px; font-weight: 700; color: var(--pj-ink-soft); }
.pj-wl-item {
display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 8px; border: none; border-radius: 8px;
background: none; font: inherit; text-align: left; cursor: pointer; color: var(--pj-ink);
}
.pj-wl-item:hover { background: #f5f6f8; }
.pj-wl-item .material-symbols-outlined { font-size: 19px; color: #9aa1ab; flex: none; }
.pj-wl-item.is-done .material-symbols-outlined { color: var(--color-success-green, #2e9e5b); }
.pj-wl-item.is-done .pj-wl-item-title { color: var(--pj-ink-soft); text-decoration: line-through; }
.pj-wl-item-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.pj-wl-item-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.pj-wl-item-main small { color: var(--pj-ink-soft); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-wl-item em { flex: none; font-style: normal; font-size: 12px; color: var(--pj-ink-soft); font-variant-numeric: tabular-nums; }
.pj-dash-card-title { font-size: 13.5px; font-weight: 700; color: var(--pj-ink); margin-bottom: 18px; }
/* 세로 막대(섹션별/담당자별 공용) */