feat(project): 달력 bar 라벨에 프로젝트명·담당자 표기
bar 라벨을 제목만 → '[프로젝트명] 제목 · 담당자(아이디)' 로 확장. 서브프로젝트 업무도 한 달력에 섞이므로 프로젝트 구분에 유용. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -263,10 +263,19 @@ def _build_task_calendar(
|
|||||||
continue
|
continue
|
||||||
seg_start = max(rs, w_start)
|
seg_start = max(rs, w_start)
|
||||||
seg_end = min(re_, w_end)
|
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(
|
bars.append(
|
||||||
{
|
{
|
||||||
"id": t["id"],
|
"id": t["id"],
|
||||||
"label": t["title"],
|
"label": " ".join(parts),
|
||||||
"color": t.get("project_color") or "#4573d2",
|
"color": t.get("project_color") or "#4573d2",
|
||||||
"completed": bool(t.get("completed_at")),
|
"completed": bool(t.get("completed_at")),
|
||||||
"start_col": (seg_start - w_start).days,
|
"start_col": (seg_start - w_start).days,
|
||||||
|
|||||||
Reference in New Issue
Block a user