Merge branch 'feat/meeting-quick-per-week'

This commit is contained in:
2026-10-12 15:09:59 +09:00
13 changed files with 67 additions and 21 deletions
@@ -2,7 +2,7 @@
{% block head_extra %}
{# 프로젝트 화면 부품(설명 편집기·날짜 팝업·멤버 고르기)을 그대로 쓴다 — project.js 는 PJ_LIB_ONLY 로 부품만 #}
<link rel="stylesheet" href="/static/project.css?v=20261012b" />
<link rel="stylesheet" href="/static/project.css?v=20261012c" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
<script>window.PJ_LIB_ONLY = true; window.PJ_HOLIDAYS = {{ (pj_kr_holidays or {}) | tojson }};</script>
{% endblock %}
@@ -64,7 +64,7 @@
</section>
</div>
<script>window.NTC_PEOPLE = {{ people | tojson }};</script>
<script src="/static/project.js?v=20261012e" defer></script>
<script src="/static/project.js?v=20261012f" defer></script>
<script src="/static/erp-notice-admin.js?v=20261012b" defer></script>
{% endif %}
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "project/_meeting_content_base.html" if meeting_embedded else "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20261012b" />
<link rel="stylesheet" href="/static/project.css?v=20261012c" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -116,8 +116,10 @@
{% else %}<div class="pj-meet-ro">{{ meeting.notes or '—' }}</div>{% endif %}
{% else %}<p class="pj-meet-plan-empty">이 주차 회의록을 만들면 적을 수 있습니다.</p>{% endif %}
</section>
<section class="pj-meet-area pj-meet-quick" id="pj-meet-quick">
<h3>작업 등록 <small>제목을 쓰고 담당자·프로젝트·섹션 칸을 눌러 고른 뒤 [적용]</small></h3>
{# 작업 등록 — 주차마다 따로(이 브라우저에 주차별로 기억, project.js initMeetQuickTasks). 제목 = "N주차 작업 등록" #}
{% set qw = weeks | selectattr("start", "equalto", week) | first %}
<section class="pj-meet-area pj-meet-quick" id="pj-meet-quick" data-week="{{ week }}"{% if qw and qw.now %} data-now="1"{% endif %}>
<h3>{% if week_n %}<span class="pj-meet-quick-week">{{ week_n }}주차</span> {% endif %}작업 등록 <small>제목을 쓰고 담당자·프로젝트·섹션 칸을 눌러 고른 뒤 [적용]</small></h3>
<div class="pj-meet-area-body">
<table class="pj-meet-quick-table">
<thead><tr><th>제목</th><th>담당자</th><th>프로젝트</th><th>섹션</th><th></th></tr></thead>
@@ -292,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=20261012e" defer></script>
<script src="/static/project.js?v=20261012f" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20261012b" />
<link rel="stylesheet" href="/static/project.css?v=20261012c" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% 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=20261012e" defer></script>
<script src="/static/project.js?v=20261012f" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20261012b" />
<link rel="stylesheet" href="/static/project.css?v=20261012c" />
<link rel="stylesheet" href="/static/project-help.css?v=20261003a" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% 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> — 제목 칸에 작업 이름을 씁니다. 담당자·프로젝트·섹션 칸을 누르면 고를 수 있는 목록이 나옵니다. 목록 맨 위 <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>
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20261012b" />
<link rel="stylesheet" href="/static/project.css?v=20261012c" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -101,5 +101,5 @@
{% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %}
<script src="/static/project.js?v=20261012e" defer></script>
<script src="/static/project.js?v=20261012f" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20261012b" />
<link rel="stylesheet" href="/static/project.css?v=20261012c" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -100,5 +100,5 @@
"today": {{ today | tojson }}
}
</script>
<script src="/static/project.js?v=20261012e" defer></script>
<script src="/static/project.js?v=20261012f" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20261012b" />
<link rel="stylesheet" href="/static/project.css?v=20261012c" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -108,5 +108,5 @@
});
})();
</script>
<script src="/static/project.js?v=20261012e" defer></script>
<script src="/static/project.js?v=20261012f" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20261012b" />
<link rel="stylesheet" href="/static/project.css?v=20261012c" />
<!-- 구글 머티리얼 심볼(담당자 아이콘 등) — self-host -->
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
<!-- 타임라인 vis-timeline — self-host -->
@@ -468,5 +468,5 @@
</script>
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
<script src="/static/project.js?v=20261012e" defer></script>
<script src="/static/project.js?v=20261012f" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20261012b" />
<link rel="stylesheet" href="/static/project.css?v=20261012c" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -70,5 +70,5 @@
{% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %}
<script src="/static/project.js?v=20261012e" defer></script>
<script src="/static/project.js?v=20261012f" defer></script>
{% endblock %}
+2
View File
@@ -3054,3 +3054,5 @@ html[data-pj-font="nanum-square-round"] { --pj-font: "NanumSquareRound", var(--p
}
.pj-desc-stylepop button:hover { background: #f1f2f4; }
.pj-desc-colorchip { display: inline-block; width: 22px; text-align: center; font-weight: 700; font-size: 15px; }
/* 회의록 작업 등록 — 제목 앞 주차(N주차 작업 등록, 주차마다 따로 기억) */
.pj-meet-quick-week { color: var(--pj-accent); }
+10 -1
View File
@@ -10669,7 +10669,16 @@
if (!box) return;
const tbody = box.querySelector("tbody");
const wrap = document.querySelector(".pj-wrap");
const KEY = "pj_meet_quick:" + ((wrap && wrap.dataset.me) || "");
// 주차마다 따로 기억한다(2026-10-12) — 키 = 사람 + 주차 시작일. 예전엔 사람마다 한 묶음이라 어느 주차를 봐도 같은 목록이었다.
// 예전 키(주차 없음)에 남은 줄은 "이번 주" 회의록을 처음 열 때 그 주차로 옮긴다.
const LEGACY_KEY = "pj_meet_quick:" + ((wrap && wrap.dataset.me) || "");
const KEY = LEGACY_KEY + ":" + (box.dataset.week || "");
try {
if (box.dataset.week && box.dataset.now === "1" && localStorage.getItem(KEY) == null) {
const old = localStorage.getItem(LEGACY_KEY);
if (old != null) { localStorage.setItem(KEY, old); localStorage.removeItem(LEGACY_KEY); }
}
} catch (_) {}
const people = {}, faces = {};
(window.PJ_MEET_MEMBERS || []).forEach(function (m) {
people[String(m.email).toLowerCase()] = m.name;
+2
View File
@@ -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): 제목 "N주차 작업 등록"(`week_n`). 표 내용은 이 브라우저 localStorage 에
`pj_meet_quick:{이메일}:{주차 시작일}` 로 주차마다 따로(예전 `pj_meet_quick:{이메일}` 한 묶음은 "이번 주" 회의록을 처음 열 때 그 주차로 옮긴다).
- **말풍선 위치**(`initHoverTips`, 2026-10-12): 늘 커서 위 — 위 여유가 적으면(화면 맨 위 회의록 머리 버튼 등) 꼬리 간격을 줄여(커서 8px 위)
위에 두고, 그래도 안 들어갈 때만 아래로 뒤집되 마우스 화살표에 가리지 않게 커서 28px 아래. 예전엔 위 여백이 말풍선 높이+20px 보다
작으면 커서 바로 아래(22px)로 뒤집혀 화살표가 글자를 가렸다.
+31
View File
@@ -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);