Merge branch 'fix/overdue-close-tooltip'
This commit is contained in:
@@ -85,7 +85,7 @@
|
||||
box.innerHTML =
|
||||
'<div class="erp-overdue-head"><span class="erp-overdue-ic" aria-hidden="true">⏰</span>' +
|
||||
'<b>마감이 지난 내 업무 ' + tasks.length + "건</b>" +
|
||||
'<button type="button" class="erp-overdue-close" data-overdue-close title="닫으면 1시간 뒤에 다시 알려 드립니다">닫기</button></div>' +
|
||||
'<button type="button" class="erp-overdue-close" data-overdue-close>닫기</button></div>' +
|
||||
'<div class="erp-overdue-list">' + rows + more + "</div>";
|
||||
box.hidden = false;
|
||||
}
|
||||
|
||||
@@ -344,6 +344,6 @@
|
||||
<link rel="stylesheet" href="/static/erp-notice.css?v=20261012c" />
|
||||
<script src="/static/erp-notice.js?v=20261012a" defer></script>
|
||||
<link rel="stylesheet" href="/static/erp-overdue.css?v=20261013a" />
|
||||
<script src="/static/erp-overdue.js?v=20261014a" defer></script>
|
||||
<script src="/static/erp-overdue.js?v=20261014b" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -194,7 +194,7 @@
|
||||
{# 긴급 공지 — 로그인한 모든 화면 가운데(받는 사람이 [확인] 전까지). app/modules/notice #}
|
||||
{% if user %}<script src="/static/erp-notice.js?v=20261012a" defer></script>{% endif %}
|
||||
{# 마감 지난 내 업무 — 로그인한 모든 화면 위쪽(닫으면 1시간 뒤 다시). Project 권한이 없으면 조용히 멈춘다. #}
|
||||
{% if user %}<script src="/static/erp-overdue.js?v=20261014a" defer></script>{% endif %}
|
||||
{% if user %}<script src="/static/erp-overdue.js?v=20261014b" defer></script>{% endif %}
|
||||
{% block scripts %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -171,6 +171,6 @@
|
||||
<link rel="stylesheet" href="/static/erp-notice.css?v=20261012c" />
|
||||
<script src="/static/erp-notice.js?v=20261012a" defer></script>
|
||||
<link rel="stylesheet" href="/static/erp-overdue.css?v=20261013a" />
|
||||
<script src="/static/erp-overdue.js?v=20261014a" defer></script>
|
||||
<script src="/static/erp-overdue.js?v=20261014b" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1285,7 +1285,7 @@ Windows 트레이 프로그램 **DBX 알림**(`desktop/notifier/`, C# .NET Frame
|
||||
- **마감 지난 내 업무 알림** — `static/erp-overdue.js`·`erp-overdue.css`, ERP 모든 화면(`erp_base.html`·`main.html`·`admin.html`) 위쪽 가운데
|
||||
(body 에 붙음, z 5500 — 긴급 공지 6000 아래). `GET /project/api/my-overdue` = 내가 담당인 미완료 업무(세부 포함) 중 마감일 < 오늘(KST),
|
||||
지금 볼 수 있는 것만(`access.filter_visible_tasks`), 마감 오래된 순 최대 200건(`db.list_my_overdue`). 알림은 최대 5줄 + "그 밖에 N건 — 내 업무에서 보기",
|
||||
줄 = `/project/t/{id}`(마감 M/D · N일 지남). **[닫기]**(말풍선 "닫으면 1시간 뒤에 다시 알려 드립니다", 2026-10-14 버튼 글자에서 "(1시간 뒤 다시)" 뺌) = localStorage `erp_overdue_snooze`({until, ids}) — 이 브라우저 모든 탭이
|
||||
줄 = `/project/t/{id}`(마감 M/D · N일 지남). **[닫기]**(버튼 글자 "닫기"만 — 2026-10-14 "(1시간 뒤 다시)" 글자·말풍선 뺌) = localStorage `erp_overdue_snooze`({until, ids}) — 이 브라우저 모든 탭이
|
||||
1시간 쉬고, 닫을 때 없던 업무가 새로 마감을 넘기면 바로 다시 띄운다. 5분마다·창을 다시 볼 때 확인, 다 완료하면 사라짐.
|
||||
401·403(Project 권한 없음)·404·503 이면 조용히 멈춤, iframe 안에서는 안 돈다. 새 환경변수·DB 변경 없음.
|
||||
- 검증: `tests/test_project_module.py::test_create_with_followers_and_my_overdue`(실제 PG), `tests/js/project_ui.test.js`
|
||||
|
||||
@@ -43,7 +43,7 @@ const T = function (id, title, due, extra) {
|
||||
check("[마감 알림] 줄 = 업무 링크·마감일·며칠 지남", first.getAttribute("href") === "/project/t/1" && /마감 10\/10 · 3일 지남/.test(first.textContent));
|
||||
check("[마감 알림] 제목은 글자로(HTML 아님)·상위 업무 표시", !box.querySelector(".erp-overdue-item b b") && /상위: 상위/.test(box.textContent));
|
||||
const closeBtn = box.querySelector("[data-overdue-close]");
|
||||
check("[마감 알림] 닫기 버튼 글자는 '닫기'만(1시간 뒤 안내는 말풍선)", closeBtn.textContent.trim() === "닫기" && /1시간/.test(closeBtn.title), closeBtn.textContent);
|
||||
check("[마감 알림] 닫기 버튼 = '닫기' 글자만(말풍선 없음)", closeBtn.textContent.trim() === "닫기" && !closeBtn.title && !closeBtn.dataset.tip, closeBtn.outerHTML);
|
||||
closeBtn.click(); await settle();
|
||||
check("[마감 알림] 닫기 → 숨김·1시간 쉼 기록", box.hidden && JSON.parse(e.w.localStorage.getItem("erp_overdue_snooze")).ids.length === 7);
|
||||
await e.w.__erpOverdue.poll(); await settle();
|
||||
|
||||
Reference in New Issue
Block a user