feat(project): meeting task table kept per week, titled "N주차 작업 등록"
- localStorage key now includes the week start; each week shows only its own rows - Old per-person rows move into the current week the first time it is opened - Heading shows the week number; help + docs; jsdom tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -611,6 +611,37 @@ function meetServer(env, st) {
|
||||
check("[2g2] 직원(User)에겐 '새 프로젝트' 없음(새 프로젝트는 Pro user 이상)", labels.indexOf("새 프로젝트") < 0 && labels.indexOf("브랜드") >= 0, labels);
|
||||
});
|
||||
|
||||
// ════════════════════ [2g3] 작업 등록은 주차마다 따로 · 제목 "N주차 작업 등록" · 예전(주차 없는) 기록은 이번 주로 ════════════════════
|
||||
await section(async function () {
|
||||
const rowsOf = function (d) { return Array.from(d.querySelectorAll('#pj-meet-quick tbody input[data-field="title"]')).map(function (i) { return i.value; }); };
|
||||
const row = function (t) { return JSON.stringify([{ title: t, assignee: "", projectId: null, projectName: "", stageId: null, stageName: "" }]); };
|
||||
const env = makeEnv(PAGE.meeting_admin, MEET_URL);
|
||||
meetServer(env);
|
||||
const me = env.d.querySelector(".pj-wrap").dataset.me || "";
|
||||
env.w.localStorage.setItem("pj_meet_quick:" + me + ":2026-09-28", row("이 주차 할 일"));
|
||||
env.w.localStorage.setItem("pj_meet_quick:" + me + ":2026-10-05", row("다른 주차 할 일"));
|
||||
await boot(env);
|
||||
const d = env.d;
|
||||
check("[2g3] 제목 = 'N주차 작업 등록'", /^4주차 작업 등록/.test(d.querySelector("#pj-meet-quick h3").textContent.trim()), d.querySelector("#pj-meet-quick h3").textContent);
|
||||
check("[2g3] 이 주차에 적은 줄만(다른 주차 줄은 안 보임)", rowsOf(d)[0] === "이 주차 할 일" && rowsOf(d).indexOf("다른 주차 할 일") < 0, rowsOf(d));
|
||||
const t = d.querySelector('#pj-meet-quick tbody input[data-field="title"]');
|
||||
t.value = "고친 할 일"; t.dispatchEvent(new env.w.Event("input", { bubbles: true }));
|
||||
check("[2g3] 고치면 그 주차 키에만 저장", /고친 할 일/.test(env.w.localStorage.getItem("pj_meet_quick:" + me + ":2026-09-28")) &&
|
||||
/다른 주차 할 일/.test(env.w.localStorage.getItem("pj_meet_quick:" + me + ":2026-10-05")));
|
||||
// 예전 키(주차 없음) — 이번 주 회의록을 열면 그 주차로 옮기고, 다른 주차에선 그대로 둔다
|
||||
for (const isNow of [false, true]) {
|
||||
const e2 = makeEnv(PAGE.meeting_admin, MEET_URL);
|
||||
meetServer(e2);
|
||||
const me2 = e2.d.querySelector(".pj-wrap").dataset.me || "";
|
||||
e2.w.localStorage.setItem("pj_meet_quick:" + me2, row("예전 할 일"));
|
||||
if (isNow) e2.d.getElementById("pj-meet-quick").dataset.now = "1";
|
||||
await boot(e2);
|
||||
const legacy = e2.w.localStorage.getItem("pj_meet_quick:" + me2);
|
||||
check("[2g3] 예전 기록 — " + (isNow ? "이번 주면 이 주차로 옮김" : "이번 주가 아니면 그대로 둠"),
|
||||
isNow ? legacy == null && rowsOf(e2.d)[0] === "예전 할 일" : legacy != null && rowsOf(e2.d)[0] === "", [legacy, rowsOf(e2.d)]);
|
||||
}
|
||||
});
|
||||
|
||||
// ════════════════════ [2h] 회의록은 누구나 수정 · [회의 완료](관리자)면 잠금 ════════════════════
|
||||
await section(async function () {
|
||||
const env = makeEnv(PAGE.meeting_member, MEET_URL);
|
||||
|
||||
Reference in New Issue
Block a user