feat(project): 보드 세션 맨 아래에 "+ 업무 추가" 버튼

세션 헤더 우클릭으로만 가능하던 업무 추가를 컬럼 바닥의 버튼으로도
할 수 있게 했다(아사나와 같은 자리). 카드가 많아 .pj-col-body 가
세로로 스크롤돼도 버튼은 flex:none 이라 컬럼 바닥에 그대로 남는다.
관리 권한이 있을 때만 나오고, 누르면 그 세션이 미리 선택된 새 업무
팝업이 열린다(openTaskModal(null, stage_id) — 우클릭 메뉴와 동일 경로).

"전체 프로젝트" 스코프의 보드는 컬럼이 세션 이름 묶음이라 어느
프로젝트에 넣을지 정할 수 없어 버튼을 두지 않았다.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-09-22 12:16:04 +09:00
parent 8c68990aa9
commit f41733aa3f
5 changed files with 24 additions and 7 deletions
+9 -1
View File
@@ -1790,7 +1790,12 @@
'<button type="button" class="pj-icon-btn pj-col-del" title="세션 삭제">×</button>' +
"</span>"
: "") +
"</div><div class=\"pj-col-body\"></div>";
"</div><div class=\"pj-col-body\"></div>" +
// 세션 맨 아래 "+ 업무 추가" — 카드 목록이 길어져도 컬럼 바닥에
// 고정으로 남는다(.pj-col-body 만 스크롤).
(canManage
? '<button type="button" class="pj-col-addtask">+ 업무 추가</button>'
: "");
const body = col.querySelector(".pj-col-body");
const colTasks = vis.filter(function (t) { return t.stage_id === s.id; });
col.querySelector(".pj-col-count").textContent = colTasks.length;
@@ -1800,6 +1805,9 @@
wireColumnControls(col, s);
wireColumnDrag(col, s);
wireStageAddTask(body, s);
col.querySelector(".pj-col-addtask").addEventListener("click", function () {
openTaskModal(null, s.id);
});
}
board.appendChild(col);
});