feat(project): 홈 카드 세션 없으면 업무추가 버튼 비활성화

세션이 하나도 없으면 업무를 넣을 세션이 없으므로 아이콘 버튼(disabled)과
우클릭 메뉴 둘 다 막는다. "세션 추가"로 첫 세션을 만들면 새로고침 없이
바로 활성화(dataset.hasStages 갱신 + disabled 해제).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-17 14:18:37 +09:00
parent 29ce3554b1
commit e2734e176c
6 changed files with 38 additions and 17 deletions
+2
View File
@@ -419,6 +419,8 @@ async def index(request: Request) -> HTMLResponse:
or store.norm_str(user["email"], lower=True) in member_emails
or store.norm_str(p.get("owner_email"), lower=True) == store.norm_str(user["email"], lower=True)
)
# 세션이 하나도 없으면 업무를 넣을 곳이 없다 — "업무 추가" 버튼 비활성화용.
p["has_stages"] = bool(st.list_stages(project_id=p["id"]))
my_tasks = st.list_tasks(assignee_email=user["email"], limit=500)
for t in my_tasks: