feat(project): uniform #f3f3f3 section headers, remove section color picker

Stored stage colors are ignored; timeline rows use the project color.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-07 17:27:59 +09:00
parent f90884e028
commit 4bdab1de3d
2 changed files with 8 additions and 19 deletions
@@ -213,9 +213,6 @@
<h3 id="pj-stage-modal-title">새 섹션</h3>
<input type="hidden" id="pj-stg-id" />
<label>이름<input type="text" id="pj-stg-name" placeholder="섹션 이름" autocomplete="off" /></label>
<label>색상
<span class="pj-color-palette" id="pj-stg-colors"></span>
</label>
<div class="pj-field-label">기본 담당자
<div class="pj-member-picker" id="pj-stg-assignee"></div>
<span class="pj-modal-hint pj-stg-assignee-hint">이 섹션에 작업을 새로 만들거나 카드를 옮겨오면, 담당자가 비어 있는 작업만 이 사람에게 자동 배정됩니다.</span>
+8 -16
View File
@@ -3709,9 +3709,8 @@
const list = byGroup[gid];
const grp = (groupBySession ? "S" : "P") + gid;
const meta = groupBySession ? {} : (projById[gid] || {});
// 행 색 — "이 프로젝트"는 섹션에 지정한 색(없으면 프로젝트 색), "전체 프로젝트"는 프로젝트 색
const stageColor = groupBySession && stageById[gid] ? stageById[gid].color : null;
const groupColor = stageColor || list[0].project_color || meta.color || "#4573d2";
// 행 색 — 프로젝트 색(섹션별 색은 없앴다, 2026-10-07)
const groupColor = list[0].project_color || meta.color || "#4573d2";
const groupName = groupBySession
? (gid === "none" ? "미지정" : (list[0].stage_name || "섹션"))
: (list[0].project_name || meta.name || "프로젝트");
@@ -4108,21 +4107,16 @@
// "+ 세션 추가" 버튼은 보드(스크롤 영역) 밖 고정 위치에 있어 세션이
// 늘어나 스크롤이 생겨도 항상 보인다 — 한 번만 wiring, 표시 여부만 매
// 렌더마다 토글.
// ── 세션 추가/편집 팝업 — 이름 + 색상(아사나 10색). "+ 세션 추가" 버튼과
const STAGE_HEAD_BG = "#f3f3f3";
// ── 섹션 추가/편집 팝업 — 이름 + 기본 담당자(색 지정은 없앰). "+ 세션 추가" 버튼과
// 세션 헤더 ✎(세션 편집) 아이콘·컨텍스트 메뉴가 전부 이 모달 하나를 쓴다.
const stageModal = el("pj-modal-stage");
let getStageColor = null;
if (stageModal) wireModalClose(stageModal);
function openStageModal(stage) {
if (!stageModal) return;
el("pj-stage-modal-title").textContent = stage ? "\"" + stage.name + "\" 섹션 편집" : "새 섹션";
el("pj-stg-id").value = stage ? stage.id : "";
el("pj-stg-name").value = stage ? stage.name : "";
// 프로젝트와 같은 색상표. 색이 없는 섹션은 첫 칸(연회색 = 색 없음)이 선택된 채로.
const noColor = (window.PJ_STAGE_COLORS || [])[0];
getStageColor = renderColorPalette(
el("pj-stg-colors"), null, (stage && stage.color) || noColor, window.PJ_STAGE_COLORS
);
// 기본 담당자 후보 = 업무 담당자 후보와 같다(프로젝트 멤버 + owner).
// 지금 지정된 사람이 멤버에서 빠졌어도 선택지에 남겨 칸이 비지 않게 한다.
const cur = stage ? (stage.default_assignee_email || "") : "";
@@ -4153,8 +4147,7 @@
const id = el("pj-stg-id").value;
const name = el("pj-stg-name").value.trim();
if (!name) { alert("섹션 이름을 입력하세요."); return; }
const color = getStageColor ? getStageColor() : null;
const body = { name: name, color: color };
const body = { name: name }; // 섹션 색은 보내지 않는다(화면은 늘 #f3f3f3)
// 기본 담당자는 바뀐 경우에만 보낸다 — DB 마이그레이션 009 전이라도
// 이름·색상 편집은 그대로 되게.
const picker = el("pj-stg-assignee");
@@ -4348,11 +4341,10 @@
const col = document.createElement("div");
col.className = "pj-col" + (s.is_done_stage ? " pj-col-done" : "");
col.dataset.stageId = s.id;
// 섹션 머리 색은 모두 같은 연회색(#f3f3f3) — 섹션별 색 지정은 2026-10-07 요청으로 없앴다(DB 의 예전 색은 쓰지 않는다)
col.innerHTML =
'<div class="pj-col-head' + (s.color ? " pj-col-head-colored" : "") +
(s.color && isLightColor(s.color, 0.6, "#eef0f4") ? " is-light" : "") + '"' +
(canManage ? ' draggable="true"' : "") +
(s.color ? ' style="background:' + hexToRgba(s.color, 0.6) + '"' : "") + '>' +
'<div class="pj-col-head pj-col-head-colored is-light"' +
(canManage ? ' draggable="true"' : "") + ' style="background:' + STAGE_HEAD_BG + '">' +
// 아사나처럼: 이름 바로 오른쪽에 업무 수(숫자만), 맨 오른쪽에 + / … 버튼.
'<span class="pj-col-name">' + escapeHtml(s.name) + "</span>" +
'<span class="pj-col-count"></span>' +