feat(project): 달력 bar 라벨에 프로젝트명·담당자 표기

bar 라벨을 제목만 → '[프로젝트명] 제목 · 담당자(아이디)' 로 확장.
서브프로젝트 업무도 한 달력에 섞이므로 프로젝트 구분에 유용.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-25 12:59:44 +09:00
parent 105e036573
commit 57b4b37468
+10 -1
View File
@@ -263,10 +263,19 @@ def _build_task_calendar(
continue
seg_start = max(rs, w_start)
seg_end = min(re_, w_end)
# bar 라벨: [프로젝트명] 제목 · 담당자(아이디)
assignee = (t.get("assignee_email") or "").split("@")[0]
proj = t.get("project_name") or ""
parts = []
if proj:
parts.append(f"[{proj}]")
parts.append(t["title"])
if assignee:
parts.append(f"· {assignee}")
bars.append(
{
"id": t["id"],
"label": t["title"],
"label": " ".join(parts),
"color": t.get("project_color") or "#4573d2",
"completed": bool(t.get("completed_at")),
"start_col": (seg_start - w_start).days,