feat(project): 하위 업무도 업무처럼 팝업에서 똑같이 편집(아사나식)

하위 업무를 누르면 상위 업무가 아니라 그 하위 업무 자신의 팝업이 열려
제목·담당자·우선순위·마감일·설명·첨부·댓글·팔로워·하위 업무를 업무와
똑같이 고친다.

- 여는 곳: 보드 카드 하위 업무 줄 클릭 / 우클릭 "열기", 업무 팝업 하위
  업무 줄의 › 버튼, 공유 링크(/project/t/{id} 가 하위 업무 자신을 연다)
- 제목 위에 상위 업무 경로(누르면 상위 업무로), 세션 칸·프로젝트 연결은 숨김
- GET /api/tasks/{id} 에 parent_title 추가
- 저장해도 보드 목록에 카드로 끼어들지 않게 mergeTask 에서 제외
- 정적 파일 버전 20260925e

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-25 18:36:48 +09:00
parent d5e02b04a4
commit 91347f8aef
8 changed files with 97 additions and 17 deletions
+6 -3
View File
@@ -642,10 +642,9 @@ def task_permalink(request: Request, task_id: int):
403,
)
# 하위 업무는 목록에 따로 뜨지 않고 부모 팝업 안에서만 보인다 — 부모를 연다.
open_id = task.get("parent_task_id") or task_id
# 하위 업무도 업무처럼 자기 팝업으로 연다(아사나식 — 제목 위에 상위 업무 경로).
return RedirectResponse(
url=f"/project/p/{task['project_id']}?task={open_id}", status_code=303
url=f"/project/p/{task['project_id']}?task={task_id}", status_code=303
)
@@ -1347,6 +1346,10 @@ def api_get_task(request: Request, task_id: int) -> JSONResponse:
if task is None:
raise HTTPException(status_code=404, detail="업무를 찾을 수 없습니다.")
_require_manage(request, st, user, task["project_id"])
# 하위 업무를 팝업으로 열면 제목 위에 상위 업무 경로를 보여준다(아사나식).
if task.get("parent_task_id"):
parent = st.get_task(task_id=task["parent_task_id"])
task["parent_title"] = parent["title"] if parent else ""
task["subtasks"] = st.list_tasks(parent_task_id=task_id)
task["links"] = st.list_task_links(task_id=task_id)
try:
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260925d" />
<link rel="stylesheet" href="/static/project.css?v=20260925e" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -99,5 +99,5 @@
{% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %}
<script src="/static/project.js?v=20260925d" defer></script>
<script src="/static/project.js?v=20260925e" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260925d" />
<link rel="stylesheet" href="/static/project.css?v=20260925e" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -98,5 +98,5 @@
"today": {{ today | tojson }}
}
</script>
<script src="/static/project.js?v=20260925d" defer></script>
<script src="/static/project.js?v=20260925e" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260925d" />
<link rel="stylesheet" href="/static/project.css?v=20260925e" />
<!-- 구글 머티리얼 심볼(담당자 아이콘 등) — self-host -->
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
<!-- 타임라인 vis-timeline — self-host -->
@@ -245,6 +245,11 @@
<!-- 아사나처럼 큰 제목은 이 무테 입력칸 하나뿐이다(위의 작은 안내줄은
없앴다 — 버튼 줄 바로 아래 공간을 아낀다). -->
<input type="hidden" id="pj-t-id" />
<!-- 하위 업무를 열었을 때만 — 아사나처럼 제목 위에 상위 업무 경로. 누르면 상위 업무로. -->
<button type="button" class="pj-t-parent" id="pj-t-parent" hidden title="상위 업무 열기">
<span class="material-symbols-outlined">subdirectory_arrow_left</span>
<span class="pj-t-parent-title" id="pj-t-parent-title"></span>
</button>
<input type="text" id="pj-t-title" class="pj-t-title-input" placeholder="업무 제목" />
<div class="pj-modal-body">
@@ -460,5 +465,5 @@
</script>
<script src="/static/vendor/vis-timeline/vis-timeline-graph2d.min.js"></script>
<script src="/static/project.js?v=20260925d" defer></script>
<script src="/static/project.js?v=20260925e" defer></script>
{% endblock %}
@@ -1,7 +1,7 @@
{% extends "erp_base.html" %}
{% block head_extra %}
<link rel="stylesheet" href="/static/project.css?v=20260925d" />
<link rel="stylesheet" href="/static/project.css?v=20260925e" />
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
{% endblock %}
@@ -68,5 +68,5 @@
{% include "project/_side_modals.html" %}
{% include "project/_member_tasks_modal.html" %}
<script src="/static/project.js?v=20260925d" defer></script>
<script src="/static/project.js?v=20260925e" defer></script>
{% endblock %}