fix(project): 프로젝트 생성 시 세션 자동 추가 제거 (아사나처럼 직접 추가)
create_project 의 seed_stages 기본값을 True→False 로. 새 프로젝트는 이제 세션이 0개로 시작하고, 보드에서 "+ 세션 추가"로 직접 만든다. 세션이 하나도 없는 새 프로젝트의 보드 화면에는 안내 문구를 띄운다. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1101,6 +1101,15 @@
|
||||
function renderBoardByStage(board, vis) {
|
||||
const list = (stagesByProject[projectId] || []).slice()
|
||||
.sort(function (a, b) { return a.sort_order - b.sort_order; });
|
||||
// 세션은 프로젝트를 만들 때 자동으로 생기지 않는다(아사나처럼 직접 추가) —
|
||||
// 아직 하나도 없으면 안내만 보여준다.
|
||||
if (!list.length && !vis.length) {
|
||||
const empty = document.createElement("div");
|
||||
empty.className = "pj-empty";
|
||||
empty.style.flex = "1 1 auto";
|
||||
empty.textContent = "세션이 없습니다. 아래 \"+ 세션 추가\"로 만들어 보세요.";
|
||||
board.appendChild(empty);
|
||||
}
|
||||
list.forEach(function (s) {
|
||||
const col = document.createElement("div");
|
||||
col.className = "pj-col";
|
||||
|
||||
Reference in New Issue
Block a user