From b74d2be6d3416ba992b5604221f0acbef52f75b8 Mon Sep 17 00:00:00 2001 From: king Date: Thu, 25 Jun 2026 17:58:37 +0900 Subject: [PATCH] =?UTF-8?q?feat(project):=20=EC=A2=8C=EC=B8=A1=20=ED=8A=B8?= =?UTF-8?q?=EB=A6=AC=EB=A5=BC=20=ED=81=B4=EB=9D=BC=EC=9D=B4=EC=96=B8?= =?UTF-8?q?=ED=8A=B8=20=EB=A0=8C=EB=8D=94=20=E2=86=92=20=EC=97=85=EB=AC=B4?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80/=EC=88=98=EC=A0=95/=EC=82=AD=EC=A0=9C=20?= =?UTF-8?q?=EC=A6=89=EC=8B=9C=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 사이드 프로젝트 트리를 tasks 로부터 JS 로 재렌더(renderTree) - refreshActiveView 에서 트리도 갱신 → 새로고침 없이 좌측에 바로 표시 - 새 업무 추가 시 해당 프로젝트 자동 펼침 - projectsMeta 에 created_by 추가(트리 삭제 권한용) Co-Authored-By: Claude Opus 4.8 --- app/modules/project/router.py | 1 + .../project/templates/project/index.html | 4 +- .../project/templates/project/project.html | 6 +- app/static/project.js | 94 +++++++++++++------ 4 files changed, 72 insertions(+), 33 deletions(-) diff --git a/app/modules/project/router.py b/app/modules/project/router.py index 091c1c2..5924517 100644 --- a/app/modules/project/router.py +++ b/app/modules/project/router.py @@ -418,6 +418,7 @@ async def project_page(request: Request, project_id: int) -> HTMLResponse: "color": p.get("color") or "#4573d2", "start_date": p.get("start_date"), "due_date": p.get("due_date"), + "created_by": p.get("created_by") or "", }) nav_projects.append({ "id": p["id"], diff --git a/app/modules/project/templates/project/index.html b/app/modules/project/templates/project/index.html index dc44197..f5c1324 100644 --- a/app/modules/project/templates/project/index.html +++ b/app/modules/project/templates/project/index.html @@ -1,7 +1,7 @@ {% extends "erp_base.html" %} {% block head_extra %} - + {% endblock %} @@ -167,5 +167,5 @@ - + {% endblock %} diff --git a/app/modules/project/templates/project/project.html b/app/modules/project/templates/project/project.html index a993ed0..437c3a9 100644 --- a/app/modules/project/templates/project/project.html +++ b/app/modules/project/templates/project/project.html @@ -1,7 +1,7 @@ {% extends "erp_base.html" %} {% block head_extra %} - + @@ -37,7 +37,7 @@ {% endif %} {% if nav_projects %} -