feat(project): hide completed projects and done sections in meeting task pickers
- Project picker skips status=completed; section picker skips is_done_stage - Auto-selected first section skips done sections - Help + docs; jsdom test data covers both Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -64,7 +64,7 @@
|
||||
</section>
|
||||
</div>
|
||||
<script>window.NTC_PEOPLE = {{ people | tojson }};</script>
|
||||
<script src="/static/project.js?v=20261012f" defer></script>
|
||||
<script src="/static/project.js?v=20261012g" defer></script>
|
||||
<script src="/static/erp-notice-admin.js?v=20261012b" defer></script>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -294,5 +294,5 @@
|
||||
|
||||
<script src="/static/project-goal-text.js?v=20261003d" defer></script>
|
||||
<script src="/static/project-meeting-cells.js?v=20261007a" defer></script>
|
||||
<script src="/static/project.js?v=20261012f" defer></script>
|
||||
<script src="/static/project.js?v=20261012g" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -207,5 +207,5 @@
|
||||
{% include "project/_member_tasks_modal.html" %}
|
||||
|
||||
<script src="/static/project-goal-text.js?v=20261003d" defer></script>
|
||||
<script src="/static/project.js?v=20261012f" defer></script>
|
||||
<script src="/static/project.js?v=20261012g" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -636,7 +636,7 @@
|
||||
<h3 id="meetings-kpis">위쪽 3칸 — 월 계획·숫자, 결정 사항, 작업 등록</h3>
|
||||
<p>제목 아래 세 칸은 표를 스크롤해도 그대로 보입니다. 왼쪽은 <b>월 계획</b>이고 그 머리 줄 오른쪽에 숫자 4개(월 목표 · 누적 목표 · 누적 실적 · 목표 대비)가 작게 한 줄로 나옵니다(목표 표 매출 단위, 예: 백만원 — 숫자에 마우스를 올리면 원 단위 금액과 뜻). 가운데는 <b>결정사항</b>(진행상황 수시 공유 및 완료 되어야 할 것), 오른쪽은 <b>작업 등록</b> 표입니다.</p>
|
||||
<ol class="pjh-steps">
|
||||
<li><b>작업 등록</b>(제목에 <b>N주차 작업 등록</b>) — 주차마다 따로 기억합니다(다른 주차를 열면 그 주차 목록, 이 브라우저에 저장). 제목 칸에 작업 이름을 씁니다. 담당자·프로젝트·섹션 칸을 누르면 고를 수 있는 목록이 나옵니다. 목록 맨 위 <span class="pjh-ui">새 프로젝트</span>(Pro user 이상)·<span class="pjh-ui">새 섹션</span>(그 프로젝트 멤버)을 누르면 이름만 적어 바로 만들고 그 칸에 골라집니다. 새 프로젝트는 섹션 없이 시작하니 섹션 칸에서 <span class="pjh-ui">새 섹션</span>을 만들어 고르세요.</li>
|
||||
<li><b>작업 등록</b>(제목에 <b>N주차 작업 등록</b>) — 주차마다 따로 기억합니다(다른 주차를 열면 그 주차 목록, 이 브라우저에 저장). 제목 칸에 작업 이름을 씁니다. 담당자·프로젝트·섹션 칸을 누르면 고를 수 있는 목록이 나옵니다(완료 프로젝트·완료 섹션은 목록에 나오지 않습니다). 목록 맨 위 <span class="pjh-ui">새 프로젝트</span>(Pro user 이상)·<span class="pjh-ui">새 섹션</span>(그 프로젝트 멤버)을 누르면 이름만 적어 바로 만들고 그 칸에 골라집니다. 새 프로젝트는 섹션 없이 시작하니 섹션 칸에서 <span class="pjh-ui">새 섹션</span>을 만들어 고르세요.</li>
|
||||
<li>프로젝트는 내가 멤버인 프로젝트만 나오고, 고르면 첫 섹션이 자동으로 들어갑니다. 담당자는 그 프로젝트의 멤버·소유자 중에서 고릅니다(프로젝트를 먼저 고르면 정확합니다).</li>
|
||||
<li>맨 오른쪽 <span class="pjh-ui">적용</span>을 누르면 그 프로젝트에 작업이 만들어지고, 줄에 <b>등록됨</b> 링크가 생깁니다. 줄은 이 브라우저에 남아 있어 새로고침해도 사라지지 않습니다. <span class="pjh-ui">+ 줄 추가</span>로 줄을 늘립니다.</li>
|
||||
<li>등록된 줄의 휴지통 아이콘을 누르면 확인 후 <b>그 프로젝트의 작업도 함께 삭제</b>됩니다(휴지통에 3개월 보관). 적용 전 줄의 <span class="pjh-ui">×</span>는 줄만 지웁니다. 작업 삭제는 만든 사람만 할 수 있습니다.</li>
|
||||
|
||||
@@ -101,5 +101,5 @@
|
||||
{% include "project/_side_modals.html" %}
|
||||
{% include "project/_member_tasks_modal.html" %}
|
||||
|
||||
<script src="/static/project.js?v=20261012f" defer></script>
|
||||
<script src="/static/project.js?v=20261012g" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -100,5 +100,5 @@
|
||||
"today": {{ today | tojson }}
|
||||
}
|
||||
</script>
|
||||
<script src="/static/project.js?v=20261012f" defer></script>
|
||||
<script src="/static/project.js?v=20261012g" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -108,5 +108,5 @@
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
<script src="/static/project.js?v=20261012f" defer></script>
|
||||
<script src="/static/project.js?v=20261012g" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -468,5 +468,5 @@
|
||||
</script>
|
||||
|
||||
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
|
||||
<script src="/static/project.js?v=20261012f" defer></script>
|
||||
<script src="/static/project.js?v=20261012g" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -70,5 +70,5 @@
|
||||
{% include "project/_side_modals.html" %}
|
||||
{% include "project/_member_tasks_modal.html" %}
|
||||
|
||||
<script src="/static/project.js?v=20261012f" defer></script>
|
||||
<script src="/static/project.js?v=20261012g" defer></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -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(); } };
|
||||
})));
|
||||
}
|
||||
|
||||
@@ -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 위)
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user