feat(project): 아사나식 머리(제목·탭 2줄)·섹션 추가 위치·팝업 제목 KSN 프로그램

- 프로젝트 제목(색 네모 아이콘+이름)+멤버 / 뷰 탭을 왼쪽 위 2줄로
- "전체 프로젝트" 스코프면 제목을 "전체 프로젝트"로, 멤버 숨김
- "+ 섹션 추가"를 마지막 섹션 바로 오른쪽으로, 위쪽 바 "+ 작업 추가" 제거
- 수신함 오른쪽 작업 창(embed) 맨 위에 "프로젝트로 이동" 버튼
- 하위 작업에 또 하위 작업이 있으면 "N ⤷" 아이콘(작업 창·카드 펼침)
- erp-dialog: 화면별 제목(window.ERP_DIALOG_TITLE)·erpPrompt 추가,
  project.js 의 alert/confirm/prompt 를 공용 창으로(제목 "KSN 프로그램")

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-28 20:43:36 +09:00
parent 43b2ce7ad0
commit 10610b119f
11 changed files with 254 additions and 116 deletions
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %} {% extends "erp_base.html" %}
{% block head_extra %} {% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260928d" /> <link rel="stylesheet" href="/static/project.css?v=20260928e" />
<link rel="stylesheet" href="/static/project-help.css?v=20260926v" /> <link rel="stylesheet" href="/static/project-help.css?v=20260926v" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" /> <link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %} {% endblock %}
@@ -80,7 +80,7 @@
<div class="pjh-map" aria-hidden="true"> <div class="pjh-map" aria-hidden="true">
<div class="pjh-map-top"><span><b>위쪽 바</b>화면 이름</span><span>🔔 알림 · 내 이름 · 로그아웃 · <b style="display:inline">?</b> 도움말</span></div> <div class="pjh-map-top"><span><b>위쪽 바</b>화면 이름</span><span>🔔 알림 · 내 이름 · 로그아웃 · <b style="display:inline">?</b> 도움말</span></div>
<div class="pjh-map-side"><b>왼쪽 사이드바</b>전체 검색<br>수신함 · 내 작업 · 휴지통<br>프로젝트 목록<br>완료 프로젝트<br>전체 멤버</div> <div class="pjh-map-side"><b>왼쪽 사이드바</b>전체 검색<br>수신함 · 내 작업 · 휴지통<br>프로젝트 목록<br>완료 프로젝트<br>전체 멤버</div>
<div class="pjh-map-main"><b>가운데 작업 영역</b>보기 탭(보드 · 목록 · 캘린더 · 타임라인 · 대시보드)<br>프로젝트 제목 · 멤버 · 범위(이 프로젝트 / 전체 프로젝트)<br>필터 바<br>작업들</div> <div class="pjh-map-main"><b>가운데 작업 영역</b>왼쪽 위: 프로젝트 제목 · 멤버<br>그 아래: 보기 탭(보드 · 목록 · 캘린더 · 타임라인 · 대시보드)<br>오른쪽 위: 범위(이 프로젝트 / 전체 프로젝트)<br>필터 바<br>작업들</div>
</div> </div>
<h3>왼쪽 사이드바</h3> <h3>왼쪽 사이드바</h3>
<ul> <ul>
@@ -170,7 +170,7 @@
</table> </table>
<h3>범위: 이 프로젝트 / 전체 프로젝트</h3> <h3>범위: 이 프로젝트 / 전체 프로젝트</h3>
<p>화면 오른쪽 위 토글입니다. <b>이 프로젝트</b>는 지금 프로젝트만, <b>전체 프로젝트</b>는 내가 볼 수 있는 모든 프로젝트의 작업을 함께 보여줍니다. <p>화면 오른쪽 위 토글입니다. <b>이 프로젝트</b>는 지금 프로젝트만, <b>전체 프로젝트</b>는 내가 볼 수 있는 모든 프로젝트의 작업을 함께 보여줍니다.
전체 프로젝트일 때 카드 위에는 어느 프로젝트 작업인지 이름이 붙습니다.</p> 전체 프로젝트일 때는 위 제목이 <b>전체 프로젝트</b>로 바뀌고, 카드 위에는 어느 프로젝트 작업인지 이름이 붙습니다.</p>
<h3>필터 바</h3> <h3>필터 바</h3>
<p>탭 아래 한 줄로 작업을 거르고 정렬합니다. 다섯 가지 보기 모두에 똑같이 적용되고, 프로젝트마다 이 브라우저에 기억됩니다.</p> <p>탭 아래 한 줄로 작업을 거르고 정렬합니다. 다섯 가지 보기 모두에 똑같이 적용되고, 프로젝트마다 이 브라우저에 기억됩니다.</p>
<ul> <ul>
@@ -192,7 +192,7 @@
<p class="pjh-lead">보드는 섹션(세로 칸)이 옆으로 늘어선 화면입니다. 섹션이 많으면 가로로 스크롤되고, 한 섹션에 카드가 많으면 그 섹션 안에서만 세로로 스크롤됩니다.</p> <p class="pjh-lead">보드는 섹션(세로 칸)이 옆으로 늘어선 화면입니다. 섹션이 많으면 가로로 스크롤되고, 한 섹션에 카드가 많으면 그 섹션 안에서만 세로로 스크롤됩니다.</p>
<h3>섹션 다루기</h3> <h3>섹션 다루기</h3>
<ul> <ul>
<li><b>섹션 추가</b> — 보드 오른쪽 위 <span class="pjh-ui">+ 섹션 추가</span>.</li> <li><b>섹션 추가</b> — 마지막 섹션 바로 오른쪽의 <span class="pjh-ui">+ 섹션 추가</span>.</li>
<li><b>이름 바꾸기</b> — 섹션 이름을 누르면 그 자리에서 고칩니다. <kbd>Enter</kbd> 저장, <kbd>Esc</kbd> 취소.</li> <li><b>이름 바꾸기</b> — 섹션 이름을 누르면 그 자리에서 고칩니다. <kbd>Enter</kbd> 저장, <kbd>Esc</kbd> 취소.</li>
<li><b>순서 바꾸기</b> — 섹션 머리(이름 줄)를 잡고 좌우로 끌어 놓습니다.</li> <li><b>순서 바꾸기</b> — 섹션 머리(이름 줄)를 잡고 좌우로 끌어 놓습니다.</li>
<li><b>… 메뉴</b>(머리 오른쪽 <span class="pjh-ui">…</span> 또는 머리 우클릭): <li><b>… 메뉴</b>(머리 오른쪽 <span class="pjh-ui">…</span> 또는 머리 우클릭):
@@ -209,7 +209,7 @@
<div><b>기본 담당자</b>를 정해 두면, 그 섹션에 담당자 없는 작업을 새로 만들거나 옮겨 올 때 그 사람이 자동으로 담당자가 됩니다. 예) “검토” 섹션의 기본 담당자 = 팀장.</div></div> <div><b>기본 담당자</b>를 정해 두면, 그 섹션에 담당자 없는 작업을 새로 만들거나 옮겨 올 때 그 사람이 자동으로 담당자가 됩니다. 예) “검토” 섹션의 기본 담당자 = 팀장.</div></div>
<h3>작업 카드 다루기</h3> <h3>작업 카드 다루기</h3>
<ul> <ul>
<li><b>작업 추가</b> — 섹션 머리의 <span class="pjh-ui">+</span> 또는 섹션 맨 아래 <span class="pjh-ui">+ 작업 추가</span>, 또는 위쪽 바의 <span class="pjh-ui">+ 작업 추가</span>. 오른쪽에 작업 편집 창이 열립니다.</li> <li><b>작업 추가</b> — 섹션 머리의 <span class="pjh-ui">+</span> 또는 섹션 맨 아래 <span class="pjh-ui">+ 작업 추가</span>. 오른쪽에 작업 편집 창이 열립니다.</li>
<li><b>열기</b> — 카드를 누르면 오른쪽에 작업 편집 창이 열립니다. (<a href="#task">8장</a>)</li> <li><b>열기</b> — 카드를 누르면 오른쪽에 작업 편집 창이 열립니다. (<a href="#task">8장</a>)</li>
<li><b>담당자·마감일 바로 바꾸기</b> — 카드의 사람 아이콘이나 날짜를 누르면 그 자리에서 바꿉니다. 비어 있으면 카드에 마우스를 올렸을 때 점선 원 아이콘이 나타납니다.</li> <li><b>담당자·마감일 바로 바꾸기</b> — 카드의 사람 아이콘이나 날짜를 누르면 그 자리에서 바꿉니다. 비어 있으면 카드에 마우스를 올렸을 때 점선 원 아이콘이 나타납니다.</li>
<li><b>옮기기</b> — 카드를 끌어 다른 섹션에 놓으면 섹션이 바뀌고, 같은 섹션 안에서 위아래로 놓으면 순서가 바뀝니다.</li> <li><b>옮기기</b> — 카드를 끌어 다른 섹션에 놓으면 섹션이 바뀌고, 같은 섹션 안에서 위아래로 놓으면 순서가 바뀝니다.</li>
@@ -308,6 +308,7 @@
<li><b>이름 고치기</b> — 이름 글자를 눌러 바로 고칩니다(칸은 이름 길이만큼만 차지합니다).</li> <li><b>이름 고치기</b> — 이름 글자를 눌러 바로 고칩니다(칸은 이름 길이만큼만 차지합니다).</li>
<li><b>마감일·담당자</b> — 날짜 글자나 사람 아이콘을 누릅니다. 비어 있으면 줄에 마우스를 올렸을 때 점선 아이콘이 나옵니다.</li> <li><b>마감일·담당자</b> — 날짜 글자나 사람 아이콘을 누릅니다. 비어 있으면 줄에 마우스를 올렸을 때 점선 아이콘이 나옵니다.</li>
<li><b>열기</b> — 줄의 빈 곳이나 오른쪽 <span class="pjh-ui">›</span>를 누르면 그 하위 작업이 편집 창으로 열립니다.</li> <li><b>열기</b> — 줄의 빈 곳이나 오른쪽 <span class="pjh-ui">›</span>를 누르면 그 하위 작업이 편집 창으로 열립니다.</li>
<li><b>하위 작업의 하위 작업</b> — 그 하위 작업 안에도 하위 작업이 있으면 이름 옆에 <span class="pjh-ui">N ⤷</span> 아이콘이 붙습니다(보드 카드의 펼친 목록도 같음).</li>
<li><b>삭제</b> — 줄에서 우클릭 → <span class="pjh-ui">하위 작업 삭제</span>.</li> <li><b>삭제</b> — 줄에서 우클릭 → <span class="pjh-ui">하위 작업 삭제</span>.</li>
</ul> </ul>
<h3>하위 작업을 열었을 때</h3> <h3>하위 작업을 열었을 때</h3>
@@ -425,7 +426,7 @@
<h3>수신함 화면</h3> <h3>수신함 화면</h3>
<ul> <ul>
<li><b>나를 태그한 작업</b> — 누가 나를 @태그했는지와 함께 보입니다. <span class="pjh-ui">태그 모두 확인</span>으로 한 번에 확인 처리합니다.</li> <li><b>나를 태그한 작업</b> — 누가 나를 @태그했는지와 함께 보입니다. <span class="pjh-ui">태그 모두 확인</span>으로 한 번에 확인 처리합니다.</li>
<li><b>알림</b> — 작업 배정 · 작업 완료 · 새 댓글 · 마감 알림이 쌓입니다. 항목을 누르면 읽음이 되고, <span class="pjh-ui">확인</span>을 누르면 수신함에 머문 채 <b>오른쪽에 그 작업 창</b>이 열립니다(나를 태그한 작업도 같음). 창을 닫으면(→| 또는 <kbd>Esc</kbd>) 다시 수신함입니다. <kbd>Ctrl</kbd>+클릭하면 새 탭에서 프로젝트 화면으로 엽니다.</li> <li><b>알림</b> — 작업 배정 · 작업 완료 · 새 댓글 · 마감 알림이 쌓입니다. 항목을 누르면 읽음이 되고, <span class="pjh-ui">확인</span>을 누르면 수신함에 머문 채 <b>오른쪽에 그 작업 창</b>이 열립니다(나를 태그한 작업도 같음). 창 맨 위 <span class="pjh-ui">프로젝트로 이동</span>을 누르면 그 작업이 있는 프로젝트 화면으로 갑니다. 창을 닫으면(→| 또는 <kbd>Esc</kbd>) 다시 수신함입니다. <kbd>Ctrl</kbd>+클릭하면 새 탭에서 프로젝트 화면으로 엽니다.</li>
<li><span class="pjh-ui">알림 모두 읽음</span>으로 한 번에 읽음 처리합니다. 읽지 않은 알림에서 우클릭 → <span class="pjh-ui">읽음으로 표시</span>도 됩니다.</li> <li><span class="pjh-ui">알림 모두 읽음</span>으로 한 번에 읽음 처리합니다. 읽지 않은 알림에서 우클릭 → <span class="pjh-ui">읽음으로 표시</span>도 됩니다.</li>
</ul> </ul>
<h3>어떤 알림이 누구에게 가나요?</h3> <h3>어떤 알림이 누구에게 가나요?</h3>
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %} {% extends "erp_base.html" %}
{% block head_extra %} {% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260928d" /> <link rel="stylesheet" href="/static/project.css?v=20260928e" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" /> <link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %} {% endblock %}
@@ -104,5 +104,5 @@
{% include "project/_side_modals.html" %} {% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %} {% include "project/_member_tasks_modal.html" %}
<script src="/static/project.js?v=20260928d" defer></script> <script src="/static/project.js?v=20260928e" defer></script>
{% endblock %} {% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %} {% extends "erp_base.html" %}
{% block head_extra %} {% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260928d" /> <link rel="stylesheet" href="/static/project.css?v=20260928e" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" /> <link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %} {% endblock %}
@@ -100,5 +100,5 @@
"today": {{ today | tojson }} "today": {{ today | tojson }}
} }
</script> </script>
<script src="/static/project.js?v=20260928d" defer></script> <script src="/static/project.js?v=20260928e" defer></script>
{% endblock %} {% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %} {% extends "erp_base.html" %}
{% block head_extra %} {% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260928d" /> <link rel="stylesheet" href="/static/project.css?v=20260928e" />
<!-- 구글 머티리얼 심볼(담당자 아이콘 등) — self-host --> <!-- 구글 머티리얼 심볼(담당자 아이콘 등) — self-host -->
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" /> <link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
<!-- 타임라인 vis-timeline — self-host --> <!-- 타임라인 vis-timeline — self-host -->
@@ -19,9 +19,6 @@
<span class="material-symbols-outlined">notifications</span> <span class="material-symbols-outlined">notifications</span>
<span class="pj-bell-badge" id="pj-bell-badge" hidden>0</span> <span class="pj-bell-badge" id="pj-bell-badge" hidden>0</span>
</a> </a>
{% if can_manage %}
<button type="button" class="pj-btn pj-btn-primary" id="pj-new-task">+ 작업 추가</button>
{% endif %}
{% endblock %} {% endblock %}
{% block topbar_after_logout %}{% include "project/_help_btn.html" %}{% endblock %} {% block topbar_after_logout %}{% include "project/_help_btn.html" %}{% endblock %}
@@ -40,39 +37,46 @@
<!-- ── 우측: 뷰 ── --> <!-- ── 우측: 뷰 ── -->
<section class="pj-main"> <section class="pj-main">
<!-- 머리 — 아사나처럼 왼쪽 위에 두 줄: ① 프로젝트 아이콘·제목 + 멤버 아이콘,
② 뷰 탭(보드/목록/캘린더/타임라인/대시보드). 오른쪽엔 스코프 토글. -->
<div class="pj-toolbar"> <div class="pj-toolbar">
<div class="pj-view-tabs" id="pj-view-tabs"> <div class="pj-head-left">
<button type="button" class="pj-tab is-active" data-view="board">보드</button> <!-- 프로젝트 제목 + 이 프로젝트의 멤버 아이콘.
<button type="button" class="pj-tab" data-view="list">목록</button> 마우스를 올리면 이름(data-tip → initHoverTips), 클릭하면 그 사람이
<button type="button" class="pj-tab" data-view="calendar">캘린더</button> 이 프로젝트에서 맡은 업무 팝업, 우클릭(관리자)하면 제외. 목록은
<button type="button" class="pj-tab" data-view="timeline">타임라인</button> renderMemberList 가 같은 마크업으로 다시 그린다.
<button type="button" class="pj-tab" data-view="dashboard">대시보드</button> "전체 프로젝트" 스코프에선 제목이 "전체 프로젝트"로 바뀌고 멤버는 숨긴다
</div> (.pj-title-wrap.is-all-scope). -->
<!-- 프로젝트 제목 + 이 프로젝트의 멤버 아이콘. <div class="pj-title-wrap" id="pj-title-wrap">
예전엔 좌측 사이드바에 이름 목록으로 있던 것을 아사나처럼 제목 <h1 class="pj-project-title">
옆 겹친 아바타로 옮겼다. 마우스를 올리면 이름(data-tip → <span class="pj-project-title-pill" style="--pj-color: {{ project.color or '#4573d2' }}"><span class="material-symbols-outlined pj-pill-ic">{{ project.icon or 'folder' }}</span><span class="pj-pill-name">{{ project.name }}</span></span>
initHoverTips), 클릭하면 그 사람이 이 프로젝트에서 맡은 업무 </h1>
팝업, 우클릭(관리자)하면 제외. 목록은 renderMemberList 가 <h1 class="pj-project-title pj-all-title">
같은 마크업으로 다시 그린다. --> <span class="pj-project-title-all"><span class="material-symbols-outlined pj-pill-ic">apps</span><span class="pj-pill-name">전체 프로젝트</span></span>
<div class="pj-title-wrap"> </h1>
<h1 class="pj-project-title"> <div class="pj-title-members" id="pj-member-list">
<span class="pj-project-title-pill" style="--pj-color: {{ project.color or '#4573d2' }}">{% if project.icon %}<span class="material-symbols-outlined pj-pill-ic">{{ project.icon }}</span>{% endif %}<span class="pj-pill-name">{{ project.name }}</span></span> {% for m in members %}
</h1> <span class="pj-tmember" data-email="{{ m.user_email }}"
<div class="pj-title-members" id="pj-member-list"> data-tip="{{ m.user_email.split('@')[0][:1]|upper }}{{ m.user_email.split('@')[0][1:] }}{% if m.role == 'manager' %} (관리){% endif %}">
{% for m in members %} {% if avatars.get(m.user_email | lower) %}
<span class="pj-tmember" data-email="{{ m.user_email }}" <img class="pj-avatar pj-tmember-av" src="{{ avatars[m.user_email | lower] }}" alt="" referrerpolicy="no-referrer" />
data-tip="{{ m.user_email.split('@')[0][:1]|upper }}{{ m.user_email.split('@')[0][1:] }}{% if m.role == 'manager' %} (관리){% endif %}"> {% else %}
{% if avatars.get(m.user_email | lower) %} <span class="material-symbols-outlined pj-gicon pj-tmember-av">account_circle</span>
<img class="pj-avatar pj-tmember-av" src="{{ avatars[m.user_email | lower] }}" alt="" referrerpolicy="no-referrer" /> {% endif %}
{% else %} </span>
<span class="material-symbols-outlined pj-gicon pj-tmember-av">account_circle</span> {% endfor %}
{% endif %} </div>
</span> {% if is_admin %}
{% endfor %} <button type="button" class="pj-title-addmember" id="pj-add-member" title="멤버 배정">+</button>
{% endif %}
</div>
<div class="pj-view-tabs pj-view-tabs-line" id="pj-view-tabs">
<button type="button" class="pj-tab is-active" data-view="board">보드</button>
<button type="button" class="pj-tab" data-view="list">목록</button>
<button type="button" class="pj-tab" data-view="calendar">캘린더</button>
<button type="button" class="pj-tab" data-view="timeline">타임라인</button>
<button type="button" class="pj-tab" data-view="dashboard">대시보드</button>
</div> </div>
{% if is_admin %}
<button type="button" class="pj-title-addmember" id="pj-add-member" title="멤버 배정">+</button>
{% endif %}
</div> </div>
<!-- 아사나처럼 기본은 "이 프로젝트"만 보여준다. 전체 프로젝트 보기는 <!-- 아사나처럼 기본은 "이 프로젝트"만 보여준다. 전체 프로젝트 보기는
예전처럼 접근 가능한 모든 프로젝트를 합쳐서 보여주는 모드. --> 예전처럼 접근 가능한 모든 프로젝트를 합쳐서 보여주는 모드. -->
@@ -167,18 +171,16 @@
</div> </div>
<div id="pj-timeline"></div> <div id="pj-timeline"></div>
</div> </div>
<!-- 보드(칸반=세션) — 아사나처럼 프로젝트에 들어오면 기본으로 보이는 화면. <!-- 보드(칸반=섹션) — 아사나처럼 프로젝트에 들어오면 기본으로 보이는 화면.
최대 4열 매이슨리로 배치하고, 세션이 늘어나면 pj-board 안에서만 섹션은 가로로 늘어나고 넘치면 pj-board 안에서만 가로 스크롤된다.
세로 스크롤된다(좌측 프로젝트 목록·우측 내 업무와 스크롤이 서로 "+ 섹션 추가"는 마지막 섹션 오른쪽에 붙는다. -->
안 얽히게 각자 독립). "+ 세션 추가" 버튼은 스크롤 영역 밖(고정
위치)에 있어 항상 보인다. -->
<div class="pj-view" data-view="board"> <div class="pj-view" data-view="board">
<div class="pj-board-toolbar">
<button type="button" class="pj-add-stage" id="pj-board-addstage" hidden>+ 섹션 추가</button>
</div>
<div class="pj-board" id="pj-board"> <div class="pj-board" id="pj-board">
<div class="pj-board-canvas" id="pj-board-canvas"></div> <div class="pj-board-canvas" id="pj-board-canvas"></div>
</div> </div>
<!-- "+ 섹션 추가" — 아사나처럼 마지막 섹션 바로 오른쪽. renderBoard 가
매번 캔버스 맨 끝으로 옮겨 붙인다(여기 둔 건 첫 로드용 보관 자리). -->
<button type="button" class="pj-add-stage pj-board-addstage" id="pj-board-addstage" hidden>+ 섹션 추가</button>
<!-- 가로 스크롤 막대 — 네이티브 막대는 CSS 로 숨겨두므로(자동숨김 <!-- 가로 스크롤 막대 — 네이티브 막대는 CSS 로 숨겨두므로(자동숨김
환경 대응) 보드 바깥에 직접 그린다. JS(attachHScrollIndicator)가 환경 대응) 보드 바깥에 직접 그린다. JS(attachHScrollIndicator)가
pj-board 의 scrollLeft 와 동기화한다. --> pj-board 의 scrollLeft 와 동기화한다. -->
@@ -242,6 +244,10 @@
</button> </button>
<button type="button" class="pj-btn pj-btn-complete" id="pj-toggle-complete" hidden>✓ 완료로 표시</button> <button type="button" class="pj-btn pj-btn-complete" id="pj-toggle-complete" hidden>✓ 완료로 표시</button>
<button type="button" class="pj-btn pj-btn-danger" id="pj-delete-task" hidden>삭제</button> <button type="button" class="pj-btn pj-btn-danger" id="pj-delete-task" hidden>삭제</button>
<!-- 수신함 오른쪽 패널(?embed=1)에서만 보인다 — 이 작업이 있는 프로젝트 화면으로 이동. -->
<button type="button" class="pj-btn pj-btn-goto-project" id="pj-goto-project" title="이 작업이 있는 프로젝트 화면으로 이동">
<span class="material-symbols-outlined">open_in_new</span> 프로젝트로 이동
</button>
<span style="flex:1"></span> <span style="flex:1"></span>
<!-- 저장 버튼 없음 — 칸마다 바로 저장된다(실시간 저장). 상태만 작게 표시. --> <!-- 저장 버튼 없음 — 칸마다 바로 저장된다(실시간 저장). 상태만 작게 표시. -->
<span class="pj-autosave-state" id="pj-autosave-state" aria-live="polite"></span> <span class="pj-autosave-state" id="pj-autosave-state" aria-live="polite"></span>
@@ -479,5 +485,5 @@
</script> </script>
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script> <script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
<script src="/static/project.js?v=20260928d" defer></script> <script src="/static/project.js?v=20260928e" defer></script>
{% endblock %} {% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %} {% extends "erp_base.html" %}
{% block head_extra %} {% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260928d" /> <link rel="stylesheet" href="/static/project.css?v=20260928e" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" /> <link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %} {% endblock %}
@@ -70,5 +70,5 @@
{% include "project/_side_modals.html" %} {% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %} {% include "project/_member_tasks_modal.html" %}
<script src="/static/project.js?v=20260928d" defer></script> <script src="/static/project.js?v=20260928e" defer></script>
{% endblock %} {% endblock %}
+14
View File
@@ -69,6 +69,20 @@
word-break: break-word; word-break: break-word;
} }
/* erpPrompt 입력창 — 메시지 아래, 버튼 위 */
.erp-dialog-input {
display: block;
width: calc(100% - 40px);
margin: -8px 20px 20px;
padding: 8px 10px;
box-sizing: border-box;
border: 1px solid var(--color-subtle-ash, #d4d4d4);
border-radius: 8px;
font: inherit;
font-size: var(--text-body, 14px);
}
.erp-dialog-input:focus { outline: none; border-color: var(--color-rich-black, #0a0a0a); }
.erp-dialog-actions { .erp-dialog-actions {
display: flex; display: flex;
justify-content: center; justify-content: center;
+36 -6
View File
@@ -7,6 +7,10 @@
쓰는 법 (기본 창과 달리 **비동기**다 — Promise 를 돌려준다): 쓰는 법 (기본 창과 달리 **비동기**다 — Promise 를 돌려준다):
erpConfirm("지울까요?").then(function (ok) { if (ok) ... }); erpConfirm("지울까요?").then(function (ok) { if (ok) ... });
erpAlert("실패했습니다.").then(...) erpAlert("실패했습니다.").then(...)
erpPrompt("주소를 입력하세요", "https://").then(function (v) { if (v) ... }); // 취소면 null
창 제목은 기본 "No.1 King ERP 프로그램". 화면마다 바꾸려면 그 화면 스크립트에서
window.ERP_DIALOG_TITLE = "..." 를 두거나, 한 번만 options.title 로 넘긴다.
HTML 만으로 쓰려면 form 에 data-erp-confirm 을 달면 된다. 제출을 가로채 HTML 만으로 쓰려면 form 에 data-erp-confirm 을 달면 된다. 제출을 가로채
확인을 받은 뒤 통과시킨다(가로챈 제출은 form.submit() 으로 다시 보내므로 확인을 받은 뒤 통과시킨다(가로챈 제출은 form.submit() 으로 다시 보내므로
@@ -27,7 +31,12 @@
'<circle cx="12" cy="17.1" r="1.05" fill="currentColor"/>' + '<circle cx="12" cy="17.1" r="1.05" fill="currentColor"/>' +
"</svg>"; "</svg>";
function titleOf(options) {
return options.title || window.ERP_DIALOG_TITLE || TITLE;
}
function build(message, options) { function build(message, options) {
var TITLE_TEXT = titleOf(options);
var backdrop = document.createElement("div"); var backdrop = document.createElement("div");
backdrop.className = "erp-dialog-backdrop"; backdrop.className = "erp-dialog-backdrop";
@@ -35,11 +44,11 @@
box.className = "erp-dialog" + (options.ask ? " erp-dialog-ask" : ""); box.className = "erp-dialog" + (options.ask ? " erp-dialog-ask" : "");
box.setAttribute("role", "alertdialog"); box.setAttribute("role", "alertdialog");
box.setAttribute("aria-modal", "true"); box.setAttribute("aria-modal", "true");
box.setAttribute("aria-label", TITLE); box.setAttribute("aria-label", TITLE_TEXT);
var title = document.createElement("h2"); var title = document.createElement("h2");
title.className = "erp-dialog-title"; title.className = "erp-dialog-title";
title.textContent = TITLE; title.textContent = TITLE_TEXT;
var body = document.createElement("div"); var body = document.createElement("div");
body.className = "erp-dialog-body"; body.className = "erp-dialog-body";
@@ -54,6 +63,15 @@
// HTML 로 해석되지 않게. // HTML 로 해석되지 않게.
text.textContent = String(message == null ? "" : message); text.textContent = String(message == null ? "" : message);
// 입력창(erpPrompt) — 메시지 아래 한 줄.
var input = null;
if (options.prompt) {
input = document.createElement("input");
input.type = "text";
input.className = "erp-dialog-input";
input.value = options.defaultValue == null ? "" : String(options.defaultValue);
}
var actions = document.createElement("div"); var actions = document.createElement("div");
actions.className = "erp-dialog-actions"; actions.className = "erp-dialog-actions";
@@ -76,10 +94,11 @@
body.appendChild(text); body.appendChild(text);
box.appendChild(title); box.appendChild(title);
box.appendChild(body); box.appendChild(body);
if (input) box.appendChild(input);
box.appendChild(actions); box.appendChild(actions);
backdrop.appendChild(box); backdrop.appendChild(box);
return { backdrop: backdrop, box: box, ok: ok, cancel: cancel }; return { backdrop: backdrop, box: box, ok: ok, cancel: cancel, input: input };
} }
function open(message, options) { function open(message, options) {
@@ -94,7 +113,9 @@
document.removeEventListener("keydown", onKey, true); document.removeEventListener("keydown", onKey, true);
el.backdrop.remove(); el.backdrop.remove();
if (previous && typeof previous.focus === "function") previous.focus(); if (previous && typeof previous.focus === "function") previous.focus();
resolve(result); // 입력창이면 확인 = 입력한 글자, 취소 = null
if (el.input) resolve(result ? el.input.value : null);
else resolve(result);
} }
function onKey(e) { function onKey(e) {
@@ -106,7 +127,7 @@
close(true); close(true);
} else if (e.key === "Tab") { } else if (e.key === "Tab") {
// 포커스가 창 밖으로 나가지 않게 두 버튼 사이에서만 돈다. // 포커스가 창 밖으로 나가지 않게 두 버튼 사이에서만 돈다.
var focusable = el.cancel ? [el.cancel, el.ok] : [el.ok]; var focusable = (el.input ? [el.input] : []).concat(el.cancel ? [el.cancel, el.ok] : [el.ok]);
var index = focusable.indexOf(document.activeElement); var index = focusable.indexOf(document.activeElement);
e.preventDefault(); e.preventDefault();
var next = e.shiftKey ? index - 1 : index + 1; var next = e.shiftKey ? index - 1 : index + 1;
@@ -125,7 +146,8 @@
document.addEventListener("keydown", onKey, true); document.addEventListener("keydown", onKey, true);
document.body.appendChild(el.backdrop); document.body.appendChild(el.backdrop);
el.ok.focus(); if (el.input) { el.input.focus(); el.input.select(); }
else el.ok.focus();
}); });
} }
@@ -141,6 +163,14 @@
return open(message, opts).then(function () { return undefined; }); return open(message, opts).then(function () { return undefined; });
}; };
window.erpPrompt = function (message, defaultValue, options) {
var opts = options || {};
opts.ask = true;
opts.prompt = true;
opts.defaultValue = defaultValue;
return open(message, opts);
};
// data-erp-confirm 이 달린 폼은 제출 전에 확인을 받는다. // data-erp-confirm 이 달린 폼은 제출 전에 확인을 받는다.
document.addEventListener("submit", function (e) { document.addEventListener("submit", function (e) {
var form = e.target; var form = e.target;
+47 -20
View File
@@ -150,10 +150,15 @@
.pj-avatar.pj-gicon-sm { width: 18px; height: 18px; } .pj-avatar.pj-gicon-sm { width: 18px; height: 18px; }
/* ── 툴바 + 탭 ── */ /* ── 툴바 + 탭 ── */
.pj-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex: none; } .pj-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; flex: none; }
/* 제목 + 멤버 아이콘을 한 덩어리로 묶어 툴바 가운데에 둔다. */ /* 아사나식 머리 — 왼쪽 위에 두 줄: ① 아이콘·제목 + 멤버, ② 뷰 탭 */
.pj-title-wrap { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; } .pj-head-left { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pj-title-wrap { max-width: 100%; min-width: 0; display: flex; align-items: center; gap: 10px; }
.pj-project-title { min-width: 0; margin: 0; } .pj-project-title { min-width: 0; margin: 0; }
/* 전체 프로젝트 스코프 — 제목을 "전체 프로젝트"로, 이 프로젝트 멤버는 숨긴다 */
.pj-title-wrap .pj-all-title { display: none; }
.pj-title-wrap.is-all-scope .pj-all-title { display: block; }
.pj-title-wrap.is-all-scope > :not(.pj-all-title) { display: none; }
/* 프로젝트 멤버 — 아사나처럼 살짝 겹친 아바타. 이름은 마우스를 올렸을 때만 /* 프로젝트 멤버 — 아사나처럼 살짝 겹친 아바타. 이름은 마우스를 올렸을 때만
(data-tip → initHoverTips 가 커서 옆에 띄운다). */ (data-tip → initHoverTips 가 커서 옆에 띄운다). */
.pj-title-members { display: flex; align-items: center; flex: 0 0 auto; } .pj-title-members { display: flex; align-items: center; flex: 0 0 auto; }
@@ -171,20 +176,25 @@
color: #6b7280; font-size: 15px; line-height: 1; cursor: pointer; color: #6b7280; font-size: 15px; line-height: 1; cursor: pointer;
} }
.pj-title-addmember:hover { border-style: solid; border-color: var(--pj-accent); color: var(--pj-accent); } .pj-title-addmember:hover { border-style: solid; border-color: var(--pj-accent); color: var(--pj-accent); }
/* 제목 알약 안 프로젝트 아이콘 */ /* 제목 — 아사나처럼 프로젝트 색 네모 아이콘 + 진한 글자 제목 */
.pj-pill-ic { font-size: 26px; vertical-align: -5px; margin-right: 8px; } .pj-project-title-pill, .pj-project-title-all {
.pj-project-title-pill.is-light { color: #1e1f21; } display: inline-flex; align-items: center; gap: 10px; max-width: 100%; vertical-align: middle;
.pj-project-title-pill { font-size: 21px; font-weight: 700; color: #1e1f21;
display: inline-block; max-width: 100%; vertical-align: middle; border-radius: 8px; padding: 2px 8px 2px 0; white-space: nowrap;
font-size: 22px; font-weight: 800; color: #fff;
background: var(--pj-color, var(--pj-accent)); border-radius: 14px; padding: 8px 24px;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
} }
/* 제목 바로 수정 — 마우스를 올리면 점선 테두리 + 글자 커서, 편집 중엔 흰 테두리 */ .pj-pill-ic {
.pj-project-title-pill.is-editable { cursor: text; box-shadow: 0 0 0 2px transparent; transition: box-shadow .12s; } flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
.pj-project-title-pill.is-editable:hover { box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 0 0 4px var(--pj-color, var(--pj-accent)); } width: 34px; height: 34px; border-radius: 9px; font-size: 21px;
.pj-project-title-pill.is-editing { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pj-color, var(--pj-accent)); text-overflow: clip; } background: var(--pj-color, var(--pj-accent)); color: #fff;
.pj-pill-name { outline: none; } }
.pj-project-title-pill.is-light .pj-pill-ic { color: #1e1f21; }
.pj-project-title-all .pj-pill-ic { background: #5f6368; }
.pj-pill-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; outline: none; padding: 2px 6px; border-radius: 6px; }
/* 제목 바로 수정 — 마우스를 올리면 옅은 테두리 + 글자 커서, 편집 중엔 강조 테두리 */
.pj-project-title-pill.is-editable { cursor: text; }
.pj-project-title-pill.is-editable .pj-pill-name { box-shadow: 0 0 0 1px transparent; transition: box-shadow .12s; }
.pj-project-title-pill.is-editable:hover .pj-pill-name { box-shadow: 0 0 0 1px #c9cdd3; }
.pj-project-title-pill.is-editing .pj-pill-name { box-shadow: 0 0 0 2px var(--pj-color, var(--pj-accent)); text-overflow: clip; }
.pj-pill-name[contenteditable="true"] { display: inline-block; min-width: 2em; white-space: pre; } .pj-pill-name[contenteditable="true"] { display: inline-block; min-width: 2em; white-space: pre; }
/* 현재 활성 뷰(보드/리스트/달력/타임라인)가 pj-main 의 남은 세로 공간을 /* 현재 활성 뷰(보드/리스트/달력/타임라인)가 pj-main 의 남은 세로 공간을
차지 — 뷰 하나만 자체 스크롤(다른 칸과 스크롤이 서로 안 얽히게). 보드는 차지 — 뷰 하나만 자체 스크롤(다른 칸과 스크롤이 서로 안 얽히게). 보드는
@@ -203,6 +213,12 @@
transition: transform .22s cubic-bezier(.4,0,.2,1), width .22s cubic-bezier(.4,0,.2,1); transition: transform .22s cubic-bezier(.4,0,.2,1), width .22s cubic-bezier(.4,0,.2,1);
} }
.pj-tab-highlight.pj-no-anim { transition: none; } .pj-tab-highlight.pj-no-anim { transition: none; }
/* 뷰 탭(보드/목록/…) — 아사나처럼 제목 아래 글자 탭 줄, 고른 탭만 옅은 배경 */
.pj-view-tabs-line { background: transparent; padding: 0; gap: 2px; margin-left: -4px; }
.pj-view-tabs-line .pj-tab { padding: 5px 10px; font-size: 14px; font-weight: 500; color: #525860; border-radius: 6px; }
.pj-view-tabs-line .pj-tab:hover { color: #1e1f21; }
.pj-view-tabs-line .pj-tab.is-active { color: #1e1f21; font-weight: 600; }
.pj-view-tabs-line .pj-tab-highlight { top: 0; background: #ebe8fd; border-radius: 6px; box-shadow: none; }
/* 알림 벨 흔들림(미읽음 있을 때) */ /* 알림 벨 흔들림(미읽음 있을 때) */
@keyframes pj-bell-ring { @keyframes pj-bell-ring {
@@ -216,10 +232,9 @@
} }
/* ── 보드(칸반) — 아사나식. 세션은 가로로 한 줄에 나란히 놓이고, 화면을 /* ── 보드(칸반) — 아사나식. 세션은 가로로 한 줄에 나란히 놓이고, 화면을
넘치면 아래로 접히지 않고 보드가 가로로 스크롤된다. "+ 세션 추가" 버튼은 넘치면 아래로 접히지 않고 보드가 가로로 스크롤된다. ── */
스크롤 영역 밖(pj-board-toolbar)에 있어 항상 보인다. ── */ /* "+ 섹션 추가" — 아사나처럼 마지막 섹션 바로 오른쪽(renderBoard 가 캔버스 끝에 붙인다) */
.pj-board-toolbar { display: flex; justify-content: flex-end; margin-bottom: 10px; flex: none; } .pj-add-stage.pj-board-addstage { flex: 0 0 240px; width: 240px; padding: 12px; text-align: left; }
.pj-board-toolbar .pj-add-stage { width: auto; padding: 8px 18px; }
/* pj-board = 가로 스크롤 뷰포트(남은 세로 공간을 그대로 씀, 부모가 이미 /* pj-board = 가로 스크롤 뷰포트(남은 세로 공간을 그대로 씀, 부모가 이미
flex 로 높이를 정해준다). pj-board-canvas = 세션을 가로로 늘어놓는 flex flex 로 높이를 정해준다). pj-board-canvas = 세션을 가로로 늘어놓는 flex
컨테이너 — width:max-content 라서 세션이 늘어나는 만큼 캔버스가 넓어지고 컨테이너 — width:max-content 라서 세션이 늘어나는 만큼 캔버스가 넓어지고
@@ -1003,6 +1018,14 @@
.pj-card-sub.is-done .pj-card-sub-check .material-symbols-outlined { font-variation-settings: "FILL" 1; } .pj-card-sub.is-done .pj-card-sub-check .material-symbols-outlined { font-variation-settings: "FILL" 1; }
.pj-card-sub-title { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pj-card-sub-title { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-card-sub.is-done .pj-card-sub-title { color: #9aa1a9; } .pj-card-sub.is-done .pj-card-sub-title { color: #9aa1a9; }
/* 하위 작업에 또 하위 작업이 있으면 제목 옆에 "N ⑂"(아사나) — 보드 카드 펼침·작업 창 하위 작업 줄 공용 */
.pj-card-sub-nsubs, .pj-subtask-nsubs {
flex: 0 0 auto; display: inline-flex; align-items: center; gap: 1px;
font-size: 11.5px; font-weight: 600; color: #6d6e6f; white-space: nowrap;
}
.pj-card-sub-nsubs svg, .pj-subtask-nsubs svg { width: 13px; height: 13px; margin-left: 2px; }
.pj-subtask-nsubs { padding: 2px 5px; border-radius: 5px; }
.pj-subtask-row:hover .pj-subtask-nsubs { background: #eceef0; }
/* 마감일은 제목이 아무리 길어도 항상 보인다 — 줄어드는 건 제목(말줄임)뿐 */ /* 마감일은 제목이 아무리 길어도 항상 보인다 — 줄어드는 건 제목(말줄임)뿐 */
.pj-card-sub-due { flex: 0 0 auto; white-space: nowrap; font-size: 12px; color: var(--pj-ink-soft); } .pj-card-sub-due { flex: 0 0 auto; white-space: nowrap; font-size: 12px; color: var(--pj-ink-soft); }
.pj-card-sub-due.is-overdue { color: #c22b10; } .pj-card-sub-due.is-overdue { color: #c22b10; }
@@ -1564,6 +1587,10 @@ html.pj-embed #pj-modal-task .pj-task-modal-card {
box-shadow: none; border-radius: 0; transition: none; box-shadow: none; border-radius: 0; transition: none;
} }
html.pj-embed .pj-task-panel-resizer { display: none; } html.pj-embed .pj-task-panel-resizer { display: none; }
/* 프로젝트로 이동 — 수신함 패널(embed)에서만 */
.pj-btn-goto-project { display: none; }
html.pj-embed .pj-btn-goto-project { display: inline-flex; align-items: center; gap: 4px; }
.pj-btn-goto-project .material-symbols-outlined { font-size: 14px; }
.pj-inbox-panel { .pj-inbox-panel {
position: fixed; top: 0; right: 0; bottom: 0; z-index: 900; position: fixed; top: 0; right: 0; bottom: 0; z-index: 900;
width: min(640px, 92vw); background: #fff; width: min(640px, 92vw); background: #fff;
+75 -27
View File
@@ -22,6 +22,20 @@
} }
function el(id) { return document.getElementById(id); } function el(id) { return document.getElementById(id); }
// ── 확인/알림/입력 창 — 브라우저 기본 창 대신 공용 창(erp-dialog.js). 프로젝트
// 관리 화면의 창 제목은 전부 "KSN 프로그램". 이 파일 안의 alert/confirm/prompt 는
// 아래 함수가 가린다 — confirm/prompt 는 Promise 라서 쓰는 곳은 await 한다.
window.ERP_DIALOG_TITLE = "KSN 프로그램";
function alert(msg) {
if (window.erpAlert) window.erpAlert(msg); else window.alert(msg);
}
function confirm(msg, opts) {
return window.erpConfirm ? window.erpConfirm(msg, opts) : Promise.resolve(window.confirm(msg));
}
function prompt(msg, def) {
return window.erpPrompt ? window.erpPrompt(msg, def) : Promise.resolve(window.prompt(msg, def));
}
// 화면 배율 토글(_help_btn.html, html.pj-ui-scale) — 켜면 .erp-app 을 0.75 로 줄여 // 화면 배율 토글(_help_btn.html, html.pj-ui-scale) — 켜면 .erp-app 을 0.75 로 줄여
// 2880×1620·200%(CSS 화면 1440px 폭)에서도 1920×1080 기준 화면처럼 보이게 한다. // 2880×1620·200%(CSS 화면 1440px 폭)에서도 1920×1080 기준 화면처럼 보이게 한다.
// 팝업은 body 에 붙어 배율 밖이라 좌표를 그대로 쓰면 되고, 배율 안에서 마우스 // 팝업은 body 에 붙어 배율 밖이라 좌표를 그대로 쓰면 되고, 배율 안에서 마우스
@@ -174,7 +188,7 @@
async function shareTaskLink(taskId) { async function shareTaskLink(taskId) {
const url = location.origin + "/project/t/" + taskId; const url = location.origin + "/project/t/" + taskId;
if (await copyToClipboard(url)) showToast("작업 링크를 복사했습니다."); if (await copyToClipboard(url)) showToast("작업 링크를 복사했습니다.");
else window.prompt("아래 주소를 복사하세요.", url); else prompt("아래 주소를 복사하세요.", url);
} }
// ── 날짜 표기 'YYYY-MM-DD' → 'mm/dd(요일)' — 서버 _fmt_date_kr 과 동일 규칙 ── // ── 날짜 표기 'YYYY-MM-DD' → 'mm/dd(요일)' — 서버 _fmt_date_kr 과 동일 규칙 ──
@@ -582,8 +596,7 @@
? name + "작업에 하위 작업이 " + n + "개 있습니다.\n하위 작업까지 모두 삭제할까요?" + tail ? name + "작업에 하위 작업이 " + n + "개 있습니다.\n하위 작업까지 모두 삭제할까요?" + tail
: name + "작업을 삭제할까요?" + tail; : name + "작업을 삭제할까요?" + tail;
const opts = { okText: n > 0 ? "하위 작업까지 삭제" : "삭제", cancelText: "취소" }; const opts = { okText: n > 0 ? "하위 작업까지 삭제" : "삭제", cancelText: "취소" };
if (window.erpConfirm) return await window.erpConfirm(msg, opts); return await confirm(msg, opts);
return confirm(msg);
} }
async function deleteTaskRequest(taskId) { async function deleteTaskRequest(taskId) {
const res = await api("DELETE", "/project/api/tasks/" + taskId); const res = await api("DELETE", "/project/api/tasks/" + taskId);
@@ -606,6 +619,23 @@
'<rect x="7.3" y="8.2" width="9.4" height="8.6" rx="1.6"/>' + '<rect x="7.3" y="8.2" width="9.4" height="8.6" rx="1.6"/>' +
'<path d="M7.3 11.2h9.4M9.8 6.8v2.4M14.2 6.8v2.4" stroke-linecap="round"/>' + '<path d="M7.3 11.2h9.4M9.8 6.8v2.4M14.2 6.8v2.4" stroke-linecap="round"/>' +
"</svg>"; "</svg>";
// 아사나의 하위 업무 아이콘(위 노드 하나에서 두 갈래로 뻗은 노드) — 보드 카드·
// 타임라인·작업 창 하위 작업 줄 공용.
const SUBTASK_ICON_SVG =
'<svg class="pj-card-subtoggle-ic" viewBox="0 0 16 16" width="15" height="15" fill="none" ' +
'stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">' +
'<circle cx="4" cy="3" r="1.7"/>' +
'<path d="M4 4.7v6.3a1.5 1.5 0 0 0 1.5 1.5h3.8"/>' +
'<path d="M4 7.5h5.3"/>' +
'<circle cx="11.2" cy="7.5" r="1.7"/>' +
'<circle cx="11.2" cy="12.5" r="1.7"/>' +
"</svg>";
// 하위 작업 줄에 붙는 "N ⑂" — 그 하위 작업에도 하위 작업이 있을 때만(아사나).
function nestedSubsHtml(sub, cls) {
const n = (sub && sub.subtask_total) || 0;
if (!n) return "";
return '<span class="' + cls + '" data-tip="하위 작업 ' + n + '개">' + n + SUBTASK_ICON_SVG + "</span>";
}
function personIconHtml(email) { function personIconHtml(email) {
if (!email) return '<span class="pj-person-ic is-empty">' + EMPTY_PERSON_SVG + "</span>"; if (!email) return '<span class="pj-person-ic is-empty">' + EMPTY_PERSON_SVG + "</span>";
const url = pageAvatarUrl(email); const url = pageAvatarUrl(email);
@@ -1425,7 +1455,7 @@
if (replyBtn) replyBtn.addEventListener("click", function () { setReplyTo(c); }); if (replyBtn) replyBtn.addEventListener("click", function () { setReplyTo(c); });
if (mine) { if (mine) {
li.querySelector(".pj-chat-del").addEventListener("click", async function () { li.querySelector(".pj-chat-del").addEventListener("click", async function () {
if (!confirm("이 댓글을 삭제할까요? 첨부된 파일도 함께 삭제됩니다.")) return; if (!(await confirm("이 댓글을 삭제할까요? 첨부된 파일도 함께 삭제됩니다."))) return;
try { try {
await api("DELETE", "/project/api/comments/" + c.id); await api("DELETE", "/project/api/comments/" + c.id);
const n = await renderChat(taskId); const n = await renderChat(taskId);
@@ -1436,7 +1466,7 @@
li.querySelectorAll(".pj-chat-att-del").forEach(function (btn) { li.querySelectorAll(".pj-chat-att-del").forEach(function (btn) {
btn.addEventListener("click", async function (e) { btn.addEventListener("click", async function (e) {
e.preventDefault(); e.stopPropagation(); e.preventDefault(); e.stopPropagation();
if (!confirm("이 파일을 삭제할까요?")) return; if (!(await confirm("이 파일을 삭제할까요?"))) return;
try { try {
await api("DELETE", "/project/api/attachments/" + btn.dataset.id); await api("DELETE", "/project/api/attachments/" + btn.dataset.id);
await renderChat(taskId); await renderChat(taskId);
@@ -2543,8 +2573,8 @@
Object.assign(currentProject, p); Object.assign(currentProject, p);
const pillEl = document.querySelector(".pj-project-title-pill"); const pillEl = document.querySelector(".pj-project-title-pill");
if (pillEl) { if (pillEl) {
pillEl.innerHTML = (currentProject.icon pillEl.innerHTML =
? '<span class="material-symbols-outlined pj-pill-ic">' + escapeHtml(currentProject.icon) + "</span>" : "") + '<span class="material-symbols-outlined pj-pill-ic">' + escapeHtml(currentProject.icon || "folder") + "</span>" +
'<span class="pj-pill-name">' + escapeHtml(currentProject.name || "") + "</span>"; '<span class="pj-pill-name">' + escapeHtml(currentProject.name || "") + "</span>";
pillEl.style.setProperty("--pj-color", currentProject.color || "#4573d2"); pillEl.style.setProperty("--pj-color", currentProject.color || "#4573d2");
pillEl.classList.toggle("is-light", isLightColor(currentProject.color || "#4573d2")); pillEl.classList.toggle("is-light", isLightColor(currentProject.color || "#4573d2"));
@@ -2787,6 +2817,9 @@
scopeToggle.querySelectorAll("[data-scope]").forEach(function (b) { scopeToggle.querySelectorAll("[data-scope]").forEach(function (b) {
b.classList.toggle("is-active", b === btn); b.classList.toggle("is-active", b === btn);
}); });
// 전체 프로젝트 보기 — 위 제목도 "전체 프로젝트"로(멤버 아이콘은 이 프로젝트 것이라 숨김).
const titleWrap = el("pj-title-wrap");
if (titleWrap) titleWrap.classList.toggle("is-all-scope", viewScope === "all");
fillAssigneeFilter(); // 스코프가 바뀌면 담당자 후보도 달라진다 fillAssigneeFilter(); // 스코프가 바뀌면 담당자 후보도 달라진다
renderView(currentView); renderView(currentView);
updateFilterSummary(); updateFilterSummary();
@@ -3516,9 +3549,13 @@
const canvas = el("pj-board-canvas"); const canvas = el("pj-board-canvas");
canvas.innerHTML = ""; canvas.innerHTML = "";
const vis = visibleTasks(); const vis = visibleTasks();
if (boardAddStageBtn) boardAddStageBtn.hidden = !(viewScope === "project" && canManage);
if (viewScope === "project") renderBoardByStage(canvas, vis); if (viewScope === "project") renderBoardByStage(canvas, vis);
else renderBoardByName(canvas, vis); else renderBoardByName(canvas, vis);
// "+ 섹션 추가" — 아사나처럼 마지막 섹션 바로 오른쪽(캔버스 맨 끝)에.
if (boardAddStageBtn) {
boardAddStageBtn.hidden = !(viewScope === "project" && canManage);
canvas.appendChild(boardAddStageBtn);
}
syncBoardHBar(); syncBoardHBar();
} }
@@ -3969,22 +4006,13 @@
// dataTransfer 값을 읽을 수 없어서(보안상 type 만 보임) 여기 들고 있는다. // dataTransfer 값을 읽을 수 없어서(보안상 type 만 보임) 여기 들고 있는다.
let dragSub = null; let dragSub = null;
const SUB_DRAG_TYPE = "application/x-pj-subtask"; const SUB_DRAG_TYPE = "application/x-pj-subtask";
// 아사나의 하위 업무 아이콘(위 노드 하나에서 두 갈래로 뻗은 노드).
const SUBTASK_ICON_SVG =
'<svg class="pj-card-subtoggle-ic" viewBox="0 0 16 16" width="15" height="15" fill="none" ' +
'stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">' +
'<circle cx="4" cy="3" r="1.7"/>' +
'<path d="M4 4.7v6.3a1.5 1.5 0 0 0 1.5 1.5h3.8"/>' +
'<path d="M4 7.5h5.3"/>' +
'<circle cx="11.2" cy="7.5" r="1.7"/>' +
'<circle cx="11.2" cy="12.5" r="1.7"/>' +
"</svg>";
function cardSubRowHtml(sub) { function cardSubRowHtml(sub) {
const di = dueInfo(sub.due_date, !!sub.completed_at); const di = dueInfo(sub.due_date, !!sub.completed_at);
return '<div class="pj-card-sub' + (sub.completed_at ? " is-done" : "") + '" data-sub-id="' + sub.id + '">' + return '<div class="pj-card-sub' + (sub.completed_at ? " is-done" : "") + '" data-sub-id="' + sub.id + '">' +
'<button type="button" class="pj-card-sub-check" title="' + (sub.completed_at ? "완료 취소" : "완료로 표시") + '">' + '<button type="button" class="pj-card-sub-check" title="' + (sub.completed_at ? "완료 취소" : "완료로 표시") + '">' +
'<span class="material-symbols-outlined">check_circle</span></button>' + '<span class="material-symbols-outlined">check_circle</span></button>' +
'<span class="pj-card-sub-title">' + escapeHtml(sub.title || "") + "</span>" + '<span class="pj-card-sub-title">' + escapeHtml(sub.title || "") + "</span>" +
nestedSubsHtml(sub, "pj-card-sub-nsubs") +
// 마감일 — 있으면 날짜, 없으면 아사나처럼 점선 원 달력 아이콘(줄에 마우스를 // 마감일 — 있으면 날짜, 없으면 아사나처럼 점선 원 달력 아이콘(줄에 마우스를
// 올리면 보임). 둘 다 누르면 날짜 선택. // 올리면 보임). 둘 다 누르면 날짜 선택.
(sub.due_date (sub.due_date
@@ -5430,7 +5458,7 @@
}); });
ul.querySelectorAll(".pj-attach-del").forEach(function (b) { ul.querySelectorAll(".pj-attach-del").forEach(function (b) {
b.addEventListener("click", async function () { b.addEventListener("click", async function () {
if (!confirm("이 첨부 파일을 삭제할까요?")) return; if (!(await confirm("이 첨부 파일을 삭제할까요?"))) return;
try { await api("DELETE", "/project/api/attachments/" + b.dataset.id); loadAttachments(taskId); } try { await api("DELETE", "/project/api/attachments/" + b.dataset.id); loadAttachments(taskId); }
catch (e) { alert("삭제 실패: " + e.message); } catch (e) { alert("삭제 실패: " + e.message); }
}); });
@@ -5521,7 +5549,7 @@
if (btn.hasAttribute("data-reply")) { openReplyForm(item.closest(".pj-comment-thread"), rootId, c, taskId); return; } if (btn.hasAttribute("data-reply")) { openReplyForm(item.closest(".pj-comment-thread"), rootId, c, taskId); return; }
if (btn.hasAttribute("data-edit")) { editComment(item, c, taskId); return; } if (btn.hasAttribute("data-edit")) { editComment(item, c, taskId); return; }
const n = hasReplies ? item.parentNode.querySelectorAll(".pj-comment-item.is-reply").length : 0; const n = hasReplies ? item.parentNode.querySelectorAll(".pj-comment-item.is-reply").length : 0;
if (!confirm(n ? "이 댓글과 답글 " + n + "개를 삭제할까요?" : "이 댓글을 삭제할까요?")) return; if (!(await confirm(n ? "이 댓글과 답글 " + n + "개를 삭제할까요?" : "이 댓글을 삭제할까요?"))) return;
try { await api("DELETE", "/project/api/comments/" + c.id); loadComments(taskId); } try { await api("DELETE", "/project/api/comments/" + c.id); loadComments(taskId); }
catch (err) { alert("삭제 실패: " + err.message); } catch (err) { alert("삭제 실패: " + err.message); }
}); });
@@ -5640,6 +5668,17 @@
if (id) shareTaskLink(id); if (id) shareTaskLink(id);
}); });
// ── 프로젝트로 이동 — 수신함 오른쪽 패널(embed)에서만 보이는 버튼.
// 패널(iframe)이 아니라 수신함 창 전체를 그 프로젝트 화면(작업 창 열린 채)으로 옮긴다.
const gotoProjectBtn = el("pj-goto-project");
if (gotoProjectBtn) gotoProjectBtn.addEventListener("click", function () {
const id = el("pj-t-id").value;
const t = tasks.find(function (x) { return String(x.id) === String(id); });
const pid = (t && t.project_id) || projectId;
const url = "/project/p/" + pid + (id ? "?task=" + id : "");
(window.top || window).location.href = url;
});
el("pj-delete-task").addEventListener("click", async function () { el("pj-delete-task").addEventListener("click", async function () {
const id = el("pj-t-id").value; const id = el("pj-t-id").value;
if (!id) return; if (!id) return;
@@ -5671,7 +5710,7 @@
"</span>"; "</span>";
} }
async function removeMember(email) { async function removeMember(email) {
if (!confirm("이 멤버를 프로젝트에서 제외할까요?")) return; if (!(await confirm("이 멤버를 프로젝트에서 제외할까요?"))) return;
try { try {
await api("DELETE", "/project/api/projects/" + projectId + "/members/" + encodeURIComponent(email)); await api("DELETE", "/project/api/projects/" + projectId + "/members/" + encodeURIComponent(email));
members = members.filter(function (m) { return m.user_email !== email; }); members = members.filter(function (m) { return m.user_email !== email; });
@@ -5925,9 +5964,19 @@
box.focus(); box.focus();
const cmd = btn.dataset.cmd; const cmd = btn.dataset.cmd;
let arg = btn.dataset.arg || null; let arg = btn.dataset.arg || null;
// 링크 — 입력 창(비동기)이 떠 있는 동안 선택 영역이 풀리므로 저장했다가 되돌린다.
if (cmd === "createLink") { if (cmd === "createLink") {
arg = prompt("연결할 주소(URL)를 입력하세요", "https://"); const sel = window.getSelection();
if (!arg) return; const saved = sel && sel.rangeCount ? sel.getRangeAt(0).cloneRange() : null;
prompt("연결할 주소(URL)를 입력하세요", "https://").then(function (url) {
if (!url) return;
box.focus();
if (saved) { sel.removeAllRanges(); sel.addRange(saved); }
try { document.execCommand("createLink", false, url); } catch (_) {}
normalizeEditorLinks(box);
updateFmtState();
});
return;
} }
// 체크리스트 — 글머리 목록처럼 켜고 끈다(줄마다 체크박스). // 체크리스트 — 글머리 목록처럼 켜고 끈다(줄마다 체크박스).
if (cmd === "insertCheckbox") { if (cmd === "insertCheckbox") {
@@ -6270,6 +6319,7 @@
'<button type="button" class="pj-subtask-check">' + '<button type="button" class="pj-subtask-check">' +
'<span class="material-symbols-outlined">check_circle</span></button>' + '<span class="material-symbols-outlined">check_circle</span></button>' +
'<input type="text" class="pj-subtask-title" />' + '<input type="text" class="pj-subtask-title" />' +
nestedSubsHtml(sub, "pj-subtask-nsubs") +
'<span class="pj-subtask-fill"></span>' + '<span class="pj-subtask-fill"></span>' +
'<span class="pj-subtask-due"></span>' + '<span class="pj-subtask-due"></span>' +
'<span class="pj-subtask-av"></span>' + '<span class="pj-subtask-av"></span>' +
@@ -6498,7 +6548,7 @@
(link.stage_name ? " · " + escapeHtml(link.stage_name) : "") + (link.stage_name ? " · " + escapeHtml(link.stage_name) : "") +
' <button type="button" class="pj-link-del" title="연결 해제">×</button>'; ' <button type="button" class="pj-link-del" title="연결 해제">×</button>';
span.querySelector(".pj-link-del").addEventListener("click", async function () { span.querySelector(".pj-link-del").addEventListener("click", async function () {
if (!confirm("'" + (link.project_name || "") + "' 연결을 해제할까요?")) return; if (!(await confirm("'" + (link.project_name || "") + "' 연결을 해제할까요?"))) return;
try { try {
await api("DELETE", "/project/api/tasks/" + taskId + "/links/" + link.project_id); await api("DELETE", "/project/api/tasks/" + taskId + "/links/" + link.project_id);
span.remove(); span.remove();
@@ -7077,9 +7127,7 @@
const n = parseInt(btn.dataset.count || "1", 10); const n = parseInt(btn.dataset.count || "1", 10);
const msg = "'" + btn.dataset.title + "' 작업" + (n > 1 ? "(하위 작업 " + (n - 1) + "개 포함)" : "") + const msg = "'" + btn.dataset.title + "' 작업" + (n > 1 ? "(하위 작업 " + (n - 1) + "개 포함)" : "") +
"을 복구할까요?\n원래 프로젝트·섹션 자리로 돌아갑니다."; "을 복구할까요?\n원래 프로젝트·섹션 자리로 돌아갑니다.";
const ok = window.erpConfirm const ok = await confirm(msg, { okText: "복구", cancelText: "취소" });
? await window.erpConfirm(msg, { okText: "복구", cancelText: "취소" })
: confirm(msg);
if (!ok) return; if (!ok) return;
btn.disabled = true; btn.disabled = true;
try { try {
+2 -2
View File
@@ -7,7 +7,7 @@
<link rel="stylesheet" href="/static/erp.css?v=20260615b" /> <link rel="stylesheet" href="/static/erp.css?v=20260615b" />
<link rel="stylesheet" href="/static/erp-shell.css?v=20260615b" /> <link rel="stylesheet" href="/static/erp-shell.css?v=20260615b" />
<link rel="stylesheet" href="/static/erp-attach-viewer.css" /> <link rel="stylesheet" href="/static/erp-attach-viewer.css" />
<link rel="stylesheet" href="/static/erp-dialog.css?v=20260819a" /> <link rel="stylesheet" href="/static/erp-dialog.css?v=20260928a" />
{% block head_extra %}{% endblock %} {% block head_extra %}{% endblock %}
</head> </head>
<body class="erp-body erp-app-body"> <body class="erp-body erp-app-body">
@@ -177,7 +177,7 @@
{# 공용 확인/경고 창. defer 를 쓰지 않는다 — 아래 {% block scripts %} 의 {# 공용 확인/경고 창. defer 를 쓰지 않는다 — 아래 {% block scripts %} 의
인라인 스크립트가 곧바로 erpConfirm/erpAlert 을 쓸 수 있어야 한다. #} 인라인 스크립트가 곧바로 erpConfirm/erpAlert 을 쓸 수 있어야 한다. #}
<script src="/static/erp-dialog.js?v=20260819a"></script> <script src="/static/erp-dialog.js?v=20260928a"></script>
<script src="/static/erp-attach-viewer.js" defer></script> <script src="/static/erp-attach-viewer.js" defer></script>
{% block scripts %}{% endblock %} {% block scripts %}{% endblock %}
</body> </body>
+17 -5
View File
@@ -49,7 +49,8 @@
보이는 문구만 "섹션"으로 바꿨다. 보이는 문구만 "섹션"으로 바꿨다.
- **섹션 관리** — 프로젝트 화면(`/project/p/{id}`)에서 "이 프로젝트" 스코프로 - **섹션 관리** — 프로젝트 화면(`/project/p/{id}`)에서 "이 프로젝트" 스코프로
볼 때만 보드 컬럼에 관리 UI가 붙는다(이름변경·완료토글·삭제·"+ 섹션 추가"). 볼 때만 보드 컬럼에 관리 UI가 붙는다(이름변경·완료토글·삭제·"+ 섹션 추가" — 아사나처럼
마지막 섹션 바로 오른쪽, `renderBoard` 가 매번 캔버스 끝에 붙인다).
컬럼 헤더를 **드래그해서 순서를 바꿀 수 있다**(카드 드래그와 같은 네이티브 컬럼 헤더를 **드래그해서 순서를 바꿀 수 있다**(카드 드래그와 같은 네이티브
HTML5 DnD, `PUT /api/projects/{id}/stages/order` 재사용). "전체 프로젝트" HTML5 DnD, `PUT /api/projects/{id}/stages/order` 재사용). "전체 프로젝트"
스코프(여러 프로젝트를 섹션 '이름'으로 합쳐 보는 예전 방식)에서는 섹션을 스코프(여러 프로젝트를 섹션 '이름'으로 합쳐 보는 예전 방식)에서는 섹션을
@@ -75,7 +76,8 @@
(`PUT /api/tasks/{id}/subtasks/order` → `db.reorder_subtasks`), ✓ 완료, 제목 칸은 글자 폭만큼 (`PUT /api/tasks/{id}/subtasks/order` → `db.reorder_subtasks`), ✓ 완료, 제목 칸은 글자 폭만큼
(`fitTitle`)이고 줄의 빈 곳을 누르면 하위 작업 열기, 마감일은 날짜 글자만(없으면 점선 달력 (`fitTitle`)이고 줄의 빈 곳을 누르면 하위 작업 열기, 마감일은 날짜 글자만(없으면 점선 달력
아이콘, 누르면 아사나식 날짜 팝업 `openDatePopover`), 담당자는 아이콘만(누르면 아이콘+이름 메뉴). 아이콘, 누르면 아사나식 날짜 팝업 `openDatePopover`), 담당자는 아이콘만(누르면 아이콘+이름 메뉴).
삭제는 우클릭 메뉴(줄에 × 없음). 삭제는 우클릭 메뉴(줄에 × 없음). 그 하위 작업에도 하위 작업이 있으면 제목 옆에 "N ⤷"
아이콘(`nestedSubsHtml`, `list_tasks` 의 `subtask_total`) — 보드 카드 펼친 목록도 같다.
- **날짜 고르기는 전부 아사나식 날짜 팝업(`openDatePopover`)** — 브라우저 기본 달력(`input[type=date]`)을 - **날짜 고르기는 전부 아사나식 날짜 팝업(`openDatePopover`)** — 브라우저 기본 달력(`input[type=date]`)을
화면에 두지 않는다. 보드 카드·작업 팝업·하위 작업 줄은 직접 팝업을 열고, 폼의 날짜 칸(새 프로젝트 마감일, 화면에 두지 않는다. 보드 카드·작업 팝업·하위 작업 줄은 직접 팝업을 열고, 폼의 날짜 칸(새 프로젝트 마감일,
프로젝트 수정 시작일·마감일(버튼 하나), 하위 작업 추가 마감일)은 `enhanceDateInput` 이 숨긴 input 옆에 프로젝트 수정 시작일·마감일(버튼 하나), 하위 작업 추가 마감일)은 `enhanceDateInput` 이 숨긴 input 옆에
@@ -91,8 +93,12 @@
바로 그 경로)가 자동으로 연결된 작업까지 포함해서 돌려준다 — 다른 호출 바로 그 경로)가 자동으로 연결된 작업까지 포함해서 돌려준다 — 다른 호출
경로(홈/내 작업 등 `project_id` 없이 부르는 전체보기)는 원 소속만 세어 경로(홈/내 작업 등 `project_id` 없이 부르는 전체보기)는 원 소속만 세어
중복 노출을 막는다. 중복 노출을 막는다.
- **사이드바 프로젝트 스코프** — 프로젝트 화면 툴바에 "이 프로젝트"/"전체 - **프로젝트 화면 머리** — 아사나처럼 왼쪽 위 두 줄: ① 프로젝트 색 네모 아이콘(아이콘 없으면
프로젝트" 토글이 있다. 기본은 "이 프로젝트"(아사나처럼 지금 선택한 `folder`)+제목(클릭해 이름 수정)+멤버 아바타, ② 뷰 탭(보드/목록/캘린더/타임라인/대시보드).
위쪽 바의 "+ 작업 추가" 버튼은 없앴다(섹션의 + / "+ 작업 추가"로 만든다).
- **사이드바 프로젝트 스코프** — 프로젝트 화면 툴바 오른쪽에 "이 프로젝트"/"전체
프로젝트" 토글이 있다. "전체 프로젝트"면 제목이 "전체 프로젝트"로 바뀌고 멤버는
숨긴다(`#pj-title-wrap.is-all-scope`). 기본은 "이 프로젝트"(아사나처럼 지금 선택한
프로젝트의 섹션만 보드/캘린더/타임라인/목록에 나온다), "전체 프로젝트"는 프로젝트의 섹션만 보드/캘린더/타임라인/목록에 나온다), "전체 프로젝트"는
예전처럼 접근 가능한 모든 프로젝트를 합쳐서 보여준다. 서버가 `tasks` 배열의 예전처럼 접근 가능한 모든 프로젝트를 합쳐서 보여준다. 서버가 `tasks` 배열의
각 행에 `context_project_id`(어느 프로젝트를 보다가 담겼는지)를 표시해두고, 각 행에 `context_project_id`(어느 프로젝트를 보다가 담겼는지)를 표시해두고,
@@ -127,6 +133,11 @@
## 3. 화면 / 뷰 ## 3. 화면 / 뷰
> **확인/알림/입력 창 규칙** — 프로젝트 관리 화면의 팝업 창 제목은 전부 **"KSN 프로그램"**
> (`project.js` 가 `window.ERP_DIALOG_TITLE` 로 지정, 공용 `erp-dialog.js`). `project.js` 안의
> `alert/confirm/prompt` 는 공용 창으로 가려져 있고 `confirm/prompt` 는 Promise 라 반드시 `await`.
> 브라우저 기본 `window.confirm` 등을 새로 쓰지 않는다.
> **말풍선(툴팁) 규칙 — 모든 화면·앞으로 추가하는 기능 공통.** 말풍선은 아사나식 공용 말풍선 > **말풍선(툴팁) 규칙 — 모든 화면·앞으로 추가하는 기능 공통.** 말풍선은 아사나식 공용 말풍선
> 하나(`.pj-hovertip`, `initHoverTips`)만 쓴다: 어두운 배경 + 아래 꼬리, 커서 바로 위, 화면 끝이면 > 하나(`.pj-hovertip`, `initHoverTips`)만 쓴다: 어두운 배경 + 아래 꼬리, 커서 바로 위, 화면 끝이면
> 안쪽으로 밀리고 위가 모자라면 아래로 뒤집힘. 요소에 `data-tip="문구"` 또는 `title="문구"` 만 달면 > 안쪽으로 밀리고 위가 모자라면 아래로 뒤집힘. 요소에 `data-tip="문구"` 또는 `title="문구"` 만 달면
@@ -417,7 +428,8 @@ description 을 항상 HTML로 취급하기 때문). 두 번 실행하면 이중
- 수신함의 "확인"(예전 "이동"/"열기")은 페이지를 떠나지 않고 오른쪽 패널(`.pj-inbox-panel`)에 작업 창만 띄운다. - 수신함의 "확인"(예전 "이동"/"열기")은 페이지를 떠나지 않고 오른쪽 패널(`.pj-inbox-panel`)에 작업 창만 띄운다.
프로젝트 화면을 `?task={id}&embed=1` 로 iframe 에 열고, `html.pj-embed` 가 작업 창 외에는 숨긴다. 프로젝트 화면을 `?task={id}&embed=1` 로 iframe 에 열고, `html.pj-embed` 가 작업 창 외에는 숨긴다.
작업 창을 닫으면 iframe 이 `postMessage({type:"pj-embed-close"})` → 패널 닫힘. Ctrl+클릭은 새 탭(예전처럼 이동). 작업 창을 닫으면 iframe 이 `postMessage({type:"pj-embed-close"})` → 패널 닫힘.
embed 에서만 작업 창 맨 위에 "프로젝트로 이동"(`#pj-goto-project`) — `window.top` 을 그 프로젝트 화면(`?task=`)으로. Ctrl+클릭은 새 탭(예전처럼 이동).
- 화면 배율 토글(상단 바 `fit_screen`, `_help_btn.html`) — `html.pj-ui-scale` 이면 `.erp-app` 에 `zoom: .75` - 화면 배율 토글(상단 바 `fit_screen`, `_help_btn.html`) — `html.pj-ui-scale` 이면 `.erp-app` 에 `zoom: .75`
(2880×1620·200% = CSS 폭 1440px 에서 1920 기준 화면처럼). zoom 안에서 줄어드는 `vh` 높이는 배율로 나눠 (2880×1620·200% = CSS 폭 1440px 에서 1920 기준 화면처럼). zoom 안에서 줄어드는 `vh` 높이는 배율로 나눠
되돌린다. 팝업은 전부 `body` 에 붙어 배율 밖이라 좌표 보정 불필요(전체 검색 결과창도 body 로 옮김), 되돌린다. 팝업은 전부 `body` 에 붙어 배율 밖이라 좌표 보정 불필요(전체 검색 결과창도 body 로 옮김),