feat(project): 홈 화면 폐지 → 내 업무 화면 · 하위 업무 전체폭/완료 체크
- /project/ 가 프로젝트 홈(카드 그리드) 대신 "내 업무" 화면이 된다 (project/mytasks.html). 내가 담당자인 업무를 한 표에 모아 보여준다 — 완료 체크박스 · 업무 · 프로젝트 · 세션 · 우선순위 · 시작 · 마감, 헤더 클릭 정렬, 진행중/완료/전체 필터, 진행·완료·지연 요약. 체크박스로 그 자리에서 완료 토글, 행을 누르면 그 프로젝트로 이동하며 업무 편집 팝업(?task=), 우클릭은 열기/완료/삭제. - 좌측 "내 업무"는 접이식 패널을 없애고 이 화면으로 가는 링크로 바꿨다. - 좌측 사이드바를 project/_side.html 로 뽑아 두 화면이 공용으로 쓴다. - 홈 전용 코드 삭제: templates/project/index.html, project.js 의 initHome/wireProjectGridDrag/updateMyTreeCounts/wireMyTreeToggles(약 900줄), router 의 홈 카드 집계와 _group_my_tasks, project.css 의 홈 카드/내 업무 트리 스타일. 새 프로젝트 모달은 두 화면이 쓰도록 initNewProjectModal 로 분리했다. - 업무 편집 팝업: 하위 업무를 우측 칼럼에서 빼내 설명 바로 아래, 팝업 너비 전체를 쓰는 행으로 옮겼다(.pj-subtask-full). 제목 왼쪽 체크박스로 완료를 토글하고 완료된 줄은 반투명(50%) + 취소선. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
{# ── 프로젝트 모듈 좌측 사이드바 (공용) ──────────────────────────────
|
||||
내 업무 화면(mytasks.html)과 프로젝트 화면(project.html)이 함께 쓴다.
|
||||
|
||||
변수:
|
||||
mention_unread 미확인 @태그 개수 (수신함 배지)
|
||||
my_open_total 진행 중인 내 업무 개수 (내 업무 배지)
|
||||
nav_projects 프로젝트 목록(평면)
|
||||
current_pid 지금 보고 있는 프로젝트 id (내 업무 화면이면 0)
|
||||
is_admin 프로젝트 생성/수정/삭제 권한
|
||||
프로젝트 수정/삭제(✎/×) 버튼은 그 동작을 배선하는 initProject 가 도는
|
||||
프로젝트 화면에서만 그린다(current_pid 로 판별). #}
|
||||
<aside class="pj-side">
|
||||
<!-- 아사나처럼 맨 위에 개인 메뉴(수신함 / 내 업무). 내 업무는 접었다 펴는
|
||||
패널이 아니라 오른쪽 화면 전체에 목록을 띄우는 별도 페이지다. -->
|
||||
<nav class="pj-side-nav">
|
||||
<a class="pj-side-navlink" href="/project/inbox">
|
||||
<span class="material-symbols-outlined pj-side-navic">inbox</span>
|
||||
<span class="pj-side-navtext">수신함</span>
|
||||
<span class="pj-side-navbadge" id="pj-mention-badge"
|
||||
{% if not mention_unread %}hidden{% endif %}>{{ mention_unread }}</span>
|
||||
</a>
|
||||
<a class="pj-side-navlink {% if not current_pid %}is-active{% endif %}" href="/project/">
|
||||
<span class="material-symbols-outlined pj-side-navic">checklist</span>
|
||||
<span class="pj-side-navtext">내 업무</span>
|
||||
<span class="pj-side-navbadge pj-side-navbadge-open" id="pj-myopen-badge"
|
||||
{% if not my_open_total %}hidden{% endif %}>{{ my_open_total }}</span>
|
||||
</a>
|
||||
</nav>
|
||||
|
||||
<div class="pj-side-block">
|
||||
<div class="pj-side-head">
|
||||
<span>프로젝트</span>
|
||||
{% if is_admin %}
|
||||
<button type="button" class="pj-icon-btn" id="pj-new-project-side" title="새 프로젝트">+</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% macro nav_li(p) %}
|
||||
<li class="pj-tree-li" data-id="{{ p.id }}"
|
||||
data-name="{{ p.name }}" data-desc="{{ p.description or '' }}"
|
||||
data-start="{{ p.start_date or '' }}" data-due="{{ p.due_date or '' }}"
|
||||
data-color="{{ p.color }}" data-status="{{ p.status or 'active' }}"
|
||||
data-creator="{{ p.created_by or '' }}">
|
||||
<div class="pj-tree-row {% if p.id == current_pid %}is-active{% endif %}">
|
||||
<a class="pj-tree-link" href="/project/p/{{ p.id }}">
|
||||
<span class="pj-tree-avatar" style="background: {{ p.color }}">{{ p.name[0] | upper }}</span>
|
||||
<span class="pj-tree-name">{{ p.name }}</span>
|
||||
</a>
|
||||
{% if is_admin and current_pid %}
|
||||
<span class="pj-tree-acts">
|
||||
<button type="button" class="pj-icon-btn pj-tree-edit" title="프로젝트 수정">✎</button>
|
||||
<button type="button" class="pj-icon-btn pj-tree-del" data-id="{{ p.id }}" data-name="{{ p.name }}" data-creator="{{ p.created_by }}" title="프로젝트 삭제">×</button>
|
||||
</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</li>
|
||||
{% endmacro %}
|
||||
{% set nav_active = nav_projects | rejectattr("status", "equalto", "completed") | list %}
|
||||
{% set nav_done = nav_projects | selectattr("status", "equalto", "completed") | list %}
|
||||
{% if nav_active %}
|
||||
<ul class="pj-tree" id="pj-tree-root">
|
||||
{% for p in nav_active %}{{ nav_li(p) }}{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<div class="pj-empty-sm">프로젝트 없음</div>
|
||||
{% endif %}
|
||||
{% if nav_done %}
|
||||
<div class="pj-side-head pj-side-head-done"><span>완료 프로젝트</span></div>
|
||||
<ul class="pj-tree" id="pj-tree-root-done">
|
||||
{% for p in nav_done %}{{ nav_li(p) }}{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<!-- 전체 멤버 — 등록된 전체 직원(프로젝트 권한 보유자). 아이콘 클릭 시
|
||||
그 사람이 담당자인 업무를 팝업으로 보여준다(프로젝트/세션/마감일).
|
||||
이 팝업을 배선하는 코드가 initProject 안에 있어 프로젝트 화면에서만
|
||||
그린다(내 업무 화면에는 안 나온다). -->
|
||||
{% if current_pid %}
|
||||
<div class="pj-side-block">
|
||||
<div class="pj-side-head"><span>전체 멤버</span></div>
|
||||
<div class="pj-allmembers-grid" id="pj-allmembers-grid">불러오는 중…</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</aside>
|
||||
Reference in New Issue
Block a user