fix(project): workload bars fill by completion rate, not task count
Bar height was scaled to the largest count, so 9/13 looked nearly empty and 1/1 short. Each bar is now the whole set; green fill = done ratio, with count and percent above. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -706,11 +706,14 @@ function titleVal(d) { return d.getElementById("pj-t-title").value; }
|
||||
});
|
||||
env.d.querySelector('.pj-tab[data-view="dashboard"]').click(); await settle();
|
||||
const groups = Array.from(env.d.querySelectorAll(".pj-wl-group")).map(function (g) {
|
||||
return [g.querySelector(".pj-wl-name b").textContent].concat(Array.from(g.querySelectorAll(".pj-wl-val")).map(function (v) { return v.textContent; })).join("|");
|
||||
return [g.querySelector(".pj-wl-name b").textContent].concat(Array.from(g.querySelectorAll(".pj-wl-val")).map(function (v) { return v.firstChild.textContent; })).join("|");
|
||||
});
|
||||
check("[대시보드 담당자별] 하위 작업 요청(이 프로젝트 범위)", !!asked);
|
||||
check("[대시보드 담당자별] 세로 막대: 사람별 메인·하위 완료/전체(다른 프로젝트 하위 제외)",
|
||||
JSON.stringify(groups) === JSON.stringify(["Me|1/2|1/1", "Bob|0/1|0/1"]), groups);
|
||||
// 막대 = 그 작업 전체, 채움 = 완료율(작업 수가 아니라) — Me 메인 1/2 → 50%, 하위 1/1 → 100%, Bob 0/1 → 0%
|
||||
const pcts = Array.from(env.d.querySelectorAll(".pj-wl-done")).map(function (f) { return f.dataset.pct; });
|
||||
check("[대시보드 담당자별] 채움 높이 = 완료율", JSON.stringify(pcts) === JSON.stringify(["50", "100", "0", "0"]), pcts);
|
||||
const sum = env.d.querySelector(".pj-wl-sum").textContent.replace(/\s+/g, " ");
|
||||
check("[대시보드 담당자별] 전체 완료 2/5 (40%)", /2 \/ 5 \(40%\)/.test(sum), sum);
|
||||
// 막대 → 오른쪽 패널(body 에) → 항목 → 편집 창
|
||||
|
||||
Reference in New Issue
Block a user