feat: 세부 업무 자동 협업자 없음·마감일 아이콘·담당자별 패널 날짜 + 광고비 13채널·ROAS

[Project]
- 세부 업무를 만들 때 만든 사람을 자동 협업자로 넣지 않음(고른 협업자만), 메인 업무는 그대로
- 업무 창 세부 업무 줄의 빈 마감일 아이콘을 협업자 아이콘처럼 늘 옅게
- 대시보드 담당자별 합계 패널 날짜 mm/dd(요일), 마감 지난 미완료는 빨간 굵은 글씨

[실적 — 광고비]
- 열: 구글·메타·네이버·쿠팡(윙)·쿠팡(로켓)·오늘의집·G마켓·카카오·GS샵·11번가·롯데ON·토스·애터미아자몰
- 칸 = 광고비(ROAS%), ROAS = 그 쇼핑몰 매출 ÷ 광고비(구글·메타 = 카페24), 월/연 누적에도 ROAS

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-14 10:57:30 +09:00
parent c30ef72c6e
commit 67001f0a6e
25 changed files with 178 additions and 51 deletions
+11 -3
View File
@@ -1007,11 +1007,12 @@
: await api("DELETE", "/project/api/tasks/" + taskId + "/followers/" + encodeURIComponent(email));
return res.followers || [];
}
// 새로 만든 업무의 협업자 = 만든 사람 + 고른 사람(담당자는 빼고) — 서버 _follow·db.add_followers 와 같은 규칙.
// 새로 만든 세부 업무의 협업자 = 고른 사람만(담당자는 빼고) — 서버 _follow·db.add_followers 와 같은 규칙.
// 만든 사람은 세부 업무에 자동으로 협업자가 되지 않는다(2026-10-14).
function newTaskFollowers(chosen, assignee) {
const who = String(assignee || "").toLowerCase();
const out = [];
[pageMeEmail()].concat(chosen || []).forEach(function (x) {
(chosen || []).forEach(function (x) {
x = String(x || "").toLowerCase(); if (x && x !== who && out.indexOf(x) < 0) out.push(x);
});
return out;
@@ -6528,7 +6529,14 @@
btn.querySelector(".pj-wl-item-title").textContent = t.title || "(제목 없음)";
const parent = isSub && (seenTask(t.parent_task_id) || (t.parent_title ? { title: t.parent_title } : null));
btn.querySelector("small").textContent = parent ? "상위: " + (parent.title || "") : (t.stage_name || "");
btn.querySelector("em").textContent = t.due_date ? fmtShortDate(t.due_date) : "";
// 마감일 = mm/dd(요일), 지난 마감(미완료)은 빨간 굵은 글씨(2026-10-14)
const due = String(t.due_date || "").slice(0, 10);
const em = btn.querySelector("em");
if (/^\d{4}-\d{2}-\d{2}$/.test(due)) {
const dd = new Date(due + "T00:00:00");
em.textContent = due.slice(5, 7) + "/" + due.slice(8, 10) + "(" + ["일", "월", "화", "수", "목", "금", "토"][dd.getDay()] + ")";
if (!(t.completed_at || t.done) && due < isoToday()) { em.classList.add("is-overdue"); em.title = "마감 지남"; }
}
btn.addEventListener("click", function () {
body.querySelectorAll(".pj-wl-item.is-current").forEach(function (b) { b.classList.remove("is-current"); });
btn.classList.add("is-current");