diff --git a/app/modules/notice/templates/notice/admin.html b/app/modules/notice/templates/notice/admin.html index 860bfe0..ef149cf 100644 --- a/app/modules/notice/templates/notice/admin.html +++ b/app/modules/notice/templates/notice/admin.html @@ -64,7 +64,7 @@ - + {% endif %} {% endblock %} diff --git a/app/modules/project/templates/project/goal_meeting.html b/app/modules/project/templates/project/goal_meeting.html index e3c0cf5..95c07de 100644 --- a/app/modules/project/templates/project/goal_meeting.html +++ b/app/modules/project/templates/project/goal_meeting.html @@ -294,5 +294,5 @@ - + {% endblock %} diff --git a/app/modules/project/templates/project/goals.html b/app/modules/project/templates/project/goals.html index 3252b29..faacbe3 100644 --- a/app/modules/project/templates/project/goals.html +++ b/app/modules/project/templates/project/goals.html @@ -207,5 +207,5 @@ {% include "project/_member_tasks_modal.html" %} - + {% endblock %} diff --git a/app/modules/project/templates/project/help.html b/app/modules/project/templates/project/help.html index 0d6c176..69045bd 100644 --- a/app/modules/project/templates/project/help.html +++ b/app/modules/project/templates/project/help.html @@ -636,7 +636,7 @@

위쪽 3칸 — 월 계획·숫자, 결정 사항, 작업 등록

제목 아래 세 칸은 표를 스크롤해도 그대로 보입니다. 왼쪽은 월 계획이고 그 머리 줄 오른쪽에 숫자 4개(월 목표 · 누적 목표 · 누적 실적 · 목표 대비)가 작게 한 줄로 나옵니다(목표 표 매출 단위, 예: 백만원 — 숫자에 마우스를 올리면 원 단위 금액과 뜻). 가운데는 결정사항(진행상황 수시 공유 및 완료 되어야 할 것), 오른쪽은 작업 등록 표입니다.

    -
  1. 작업 등록(제목에 N주차 작업 등록) — 주차마다 따로 기억합니다(다른 주차를 열면 그 주차 목록, 이 브라우저에 저장). 제목 칸에 작업 이름을 씁니다. 담당자·프로젝트·섹션 칸을 누르면 고를 수 있는 목록이 나옵니다. 목록 맨 위 새 프로젝트(Pro user 이상)·새 섹션(그 프로젝트 멤버)을 누르면 이름만 적어 바로 만들고 그 칸에 골라집니다. 새 프로젝트는 섹션 없이 시작하니 섹션 칸에서 새 섹션을 만들어 고르세요.
  2. +
  3. 작업 등록(제목에 N주차 작업 등록) — 주차마다 따로 기억합니다(다른 주차를 열면 그 주차 목록, 이 브라우저에 저장). 제목 칸에 작업 이름을 씁니다. 담당자·프로젝트·섹션 칸을 누르면 고를 수 있는 목록이 나옵니다(완료 프로젝트·완료 섹션은 목록에 나오지 않습니다). 목록 맨 위 새 프로젝트(Pro user 이상)·새 섹션(그 프로젝트 멤버)을 누르면 이름만 적어 바로 만들고 그 칸에 골라집니다. 새 프로젝트는 섹션 없이 시작하니 섹션 칸에서 새 섹션을 만들어 고르세요.
  4. 프로젝트는 내가 멤버인 프로젝트만 나오고, 고르면 첫 섹션이 자동으로 들어갑니다. 담당자는 그 프로젝트의 멤버·소유자 중에서 고릅니다(프로젝트를 먼저 고르면 정확합니다).
  5. 맨 오른쪽 적용을 누르면 그 프로젝트에 작업이 만들어지고, 줄에 등록됨 링크가 생깁니다. 줄은 이 브라우저에 남아 있어 새로고침해도 사라지지 않습니다. + 줄 추가로 줄을 늘립니다.
  6. 등록된 줄의 휴지통 아이콘을 누르면 확인 후 그 프로젝트의 작업도 함께 삭제됩니다(휴지통에 3개월 보관). 적용 전 줄의 ×는 줄만 지웁니다. 작업 삭제는 만든 사람만 할 수 있습니다.
  7. diff --git a/app/modules/project/templates/project/inbox.html b/app/modules/project/templates/project/inbox.html index 3cc1033..47e1edd 100644 --- a/app/modules/project/templates/project/inbox.html +++ b/app/modules/project/templates/project/inbox.html @@ -101,5 +101,5 @@ {% include "project/_side_modals.html" %} {% include "project/_member_tasks_modal.html" %} - + {% endblock %} diff --git a/app/modules/project/templates/project/mytasks.html b/app/modules/project/templates/project/mytasks.html index 836dd68..b70cf09 100644 --- a/app/modules/project/templates/project/mytasks.html +++ b/app/modules/project/templates/project/mytasks.html @@ -100,5 +100,5 @@ "today": {{ today | tojson }} } - + {% endblock %} diff --git a/app/modules/project/templates/project/notifier.html b/app/modules/project/templates/project/notifier.html index c6b6001..bf32443 100644 --- a/app/modules/project/templates/project/notifier.html +++ b/app/modules/project/templates/project/notifier.html @@ -108,5 +108,5 @@ }); })(); - + {% endblock %} diff --git a/app/modules/project/templates/project/project.html b/app/modules/project/templates/project/project.html index 476c11e..c6248b2 100644 --- a/app/modules/project/templates/project/project.html +++ b/app/modules/project/templates/project/project.html @@ -468,5 +468,5 @@ - + {% endblock %} diff --git a/app/modules/project/templates/project/trash.html b/app/modules/project/templates/project/trash.html index d302010..8e6115e 100644 --- a/app/modules/project/templates/project/trash.html +++ b/app/modules/project/templates/project/trash.html @@ -70,5 +70,5 @@ {% include "project/_side_modals.html" %} {% include "project/_member_tasks_modal.html" %} - + {% endblock %} diff --git a/app/static/project.js b/app/static/project.js index 0ba0831..771d697 100644 --- a/app/static/project.js +++ b/app/static/project.js @@ -10703,7 +10703,8 @@ async function loadProjects() { if (projects) return projects; const res = await api("GET", "/project/api/projects"); - projects = (res.projects || []).filter(function (p) { return !p.parent_id; }); + // 완료 프로젝트는 고를 목록에서 뺀다(새 작업을 넣을 곳이 아니다) — 서버는 보관만 뺀다 + projects = (res.projects || []).filter(function (p) { return !p.parent_id && p.status !== "completed"; }); return projects; } async function membersOf(pid) { @@ -10758,7 +10759,8 @@ showToast(nameOf(r.assignee) + "님은 이 프로젝트 멤버가 아니어서 담당자를 비웠습니다."); r.assignee = ""; } - if (!r.stageId && stages.length) { r.stageId = stages[0].id; r.stageName = stages[0].name; } + const open = stages.filter(function (st) { return !st.is_done_stage; }); // 완료 섹션은 자동으로 고르지 않는다 + if (!r.stageId && open.length) { r.stageId = open[0].id; r.stageName = open[0].name; } } catch (e) { showToast("프로젝트 정보를 읽지 못했습니다: " + e.message, "error"); } save(); render(); } @@ -10809,7 +10811,8 @@ showToast("섹션 ‘" + res.stage.name + "’를 만들었습니다."); } catch (e) { showToast("섹션 만들기 실패: " + e.message, "error"); } } }, null]; - menuAt(btn, head.concat(stages.map(function (st) { + // 완료 섹션(완료 단계)은 목록에서 뺀다 — 거기 만들면 바로 완료 처리된다 + menuAt(btn, head.concat(stages.filter(function (st) { return !st.is_done_stage; }).map(function (st) { return { label: st.name, icon: menuIcon("view_column"), checked: r.stageId === st.id, onClick: function () { r.stageId = st.id; r.stageName = st.name; save(); render(); } }; }))); } diff --git a/docs/PROJECT_MODULE.md b/docs/PROJECT_MODULE.md index b96b2f1..23bc724 100644 --- a/docs/PROJECT_MODULE.md +++ b/docs/PROJECT_MODULE.md @@ -1198,6 +1198,8 @@ Windows 트레이 프로그램 **DBX 알림**(`desktop/notifier/`, C# .NET Frame - **회의록 작업 등록 — 새 프로젝트·새 섹션**(2026-10-12): 프로젝트 칸 목록 맨 위 "새 프로젝트"(Pro user 이상만 보임 — `POST /api/projects`, 만든 사람이 소유자), 섹션 칸 맨 위 "새 섹션"(그 프로젝트 멤버 — `POST /api/projects/{id}/stages`). 이름만 묻고 만든 뒤 바로 그 칸에 고른다. +- **회의록 작업 등록 — 고를 목록**(2026-10-12): 완료 프로젝트(`status = completed`)·완료 섹션(`is_done_stage`)은 목록에서 빼고, + 프로젝트를 고를 때 자동으로 넣는 섹션도 완료 섹션이 아닌 첫 섹션. - **회의록 작업 등록 — 주차별**(2026-10-12): 제목 "N주차 작업 등록"(`week_n`). 표 내용은 이 브라우저 localStorage 에 `pj_meet_quick:{이메일}:{주차 시작일}` 로 주차마다 따로(예전 `pj_meet_quick:{이메일}` 한 묶음은 "이번 주" 회의록을 처음 열 때 그 주차로 옮긴다). - **말풍선 위치**(`initHoverTips`, 2026-10-12): 늘 커서 위 — 위 여유가 적으면(화면 맨 위 회의록 머리 버튼 등) 꼬리 간격을 줄여(커서 8px 위) diff --git a/tests/js/goals_meeting_ui.test.js b/tests/js/goals_meeting_ui.test.js index 81a178a..5630a9a 100644 --- a/tests/js/goals_meeting_ui.test.js +++ b/tests/js/goals_meeting_ui.test.js @@ -521,9 +521,11 @@ function meetServer(env, st) { meetServer(env); let posted = null; env.route("GET", /\/project\/api\/projects$/, function () { return { body: { projects: [ - { id: 7, name: "브랜드", parent_id: null, owner_email: "owner@test.local" }, { id: 8, name: "하위", parent_id: 7 }] } }; }); + { id: 7, name: "브랜드", parent_id: null, owner_email: "owner@test.local" }, { id: 8, name: "하위", parent_id: 7 }, + { id: 9, name: "끝난 프로젝트", parent_id: null, status: "completed" }] } }; }); env.route("GET", /\/project\/api\/projects\/7\/members$/, function () { return { body: { members: [{ user_email: "kim@test.local" }] } }; }); - env.route("GET", /\/project\/api\/projects\/7\/stages$/, function () { return { body: { stages: [{ id: 72, name: "진행", sort_order: 2 }, { id: 71, name: "할 일", sort_order: 1 }] } }; }); + env.route("GET", /\/project\/api\/projects\/7\/stages$/, function () { return { body: { stages: [{ id: 72, name: "진행", sort_order: 2 }, { id: 71, name: "할 일", sort_order: 1 }, + { id: 73, name: "완료", sort_order: 0, is_done_stage: true }] } }; }); env.route("POST", /\/project\/api\/projects\/7\/tasks$/, function (u, body) { posted = body; return { status: 201, body: { ok: true, task: { id: 555 } } }; }); await boot(env); const d = env.d, board = d.querySelector(".pj-meet-board"); @@ -543,7 +545,9 @@ function meetServer(env, st) { const projLabels = await pickItem("project", "브랜드"); check("[2g] 프로젝트 목록 = 맨 위 '새 프로젝트'(Pro user) + 최상위 프로젝트", JSON.stringify(projLabels) === JSON.stringify(["새 프로젝트", "브랜드"]), projLabels); const row = d.querySelector("#pj-meet-quick tbody tr"); - check("[2g] 프로젝트 고르면 첫 섹션 자동", row.querySelector('[data-pick="stage"]').textContent === "할 일", row.querySelector('[data-pick="stage"]').textContent); + check("[2g] 프로젝트 고르면 첫 섹션 자동(완료 섹션은 건너뜀)", row.querySelector('[data-pick="stage"]').textContent === "할 일", row.querySelector('[data-pick="stage"]').textContent); + const stageLabels = await pickItem("stage", "할 일"); + check("[2g] 섹션 목록에 완료 섹션 없음", stageLabels.indexOf("완료") < 0 && stageLabels.indexOf("할 일") >= 0 && stageLabels.indexOf("진행") >= 0, stageLabels); const people = await pickItem("assignee", "Kim"); check("[2g] 담당자 목록 = 그 프로젝트 소유자·멤버", people.indexOf("Owner") >= 0 && people.indexOf("Kim") >= 0, people); d.querySelector('#pj-meet-quick tbody tr [data-quick="apply"]').click(); await settle(); await wait(5); await settle();