feat(project): 용어 "업무" 통일·섹션 담당자 바로 지정·세부 업무 협업자·반응 알림

- 화면·메시지·알림 제목·도움말의 "작업" → "업무"(조사 포함). 큰 알림 팝업·PC 알림 소스는 예전 "작업 배정:" 접두어도 뗀다
- 보드·목록 섹션 제목 오른쪽 담당자 아이콘을 눌러 기본 담당자를 그 자리에서 지정
- 섹션을 접으면 제목 보통 굵기, 펼치면 다시 굵게
- 업무 창 세부 업무 줄 담당자 오른쪽에 협업자 지정(subtasks[].followers, list_followers_of)
- 댓글 이모티콘 반응을 켜면 댓글 쓴 사람에게 어떤 이모티콘인지 수신함 알림(type=reaction)
- 왼쪽 전체 보기의 기본 보기는 대시보드
- 대시보드 업무 목록 패널에서 연 업무 창은 패널 왼쪽에 열림

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-13 11:27:38 +09:00
parent ac0f48bfce
commit 542e7fb7d1
26 changed files with 654 additions and 375 deletions
+30
View File
@@ -1357,6 +1357,36 @@ def test_review_meeting_quick_parent_task_column():
req("DELETE", f"/project/api/goals/meeting-quick-tasks/{row['id']}", BOB)
def test_subtask_followers_and_reaction_alert():
"""업무 창 세부 업무 줄의 협업자(상세 응답 subtasks[].followers) + 댓글 이모티콘 반응 알림(2026-10-13)."""
p = _project("P-subfol", ADMIN, (ALICE, BOB))
s = _stage(p["id"], by=ADMIN)
t = ST.create_task(project_id=p["id"], title="부모", stage_id=s["id"], created_by=ALICE)
sub = ST.create_task(project_id=p["id"], title="세부", parent_task_id=t["id"], created_by=ALICE)
subs = lambda: {x["id"]: x for x in req("GET", f"/project/api/tasks/{t['id']}", ALICE).json()["task"]["subtasks"]}
assert subs()[sub["id"]]["followers"] == []
assert req("POST", f"/project/api/tasks/{sub['id']}/followers", ALICE, json={"email": BOB}).status_code == 200
assert subs()[sub["id"]]["followers"] == [BOB]
assert req("POST", f"/project/api/tasks/{sub['id']}/followers", ALICE, json={"email": DAVE}).status_code == 400 # 비멤버 불가
# 반응 알림 — 켤 때만 댓글 쓴 사람에게(어떤 이모티콘인지 제목에), 끌 때·자기 댓글은 알림 없음
c = req("POST", f"/project/api/tasks/{t['id']}/comments", ALICE, json={"body": "확인 부탁"}).json()["comment"]
q = "SELECT COUNT(*) AS n FROM project_notifications WHERE recipient_email=%s AND task_id=%s AND type='reaction'"
assert req("POST", f"/project/api/comments/{c['id']}/reactions", BOB, json={"emoji": "👍"}).status_code == 200
assert _count(q, ALICE, t["id"]) == 1
with ST._pool.connection() as conn: # noqa: SLF001
title = conn.execute("SELECT title FROM project_notifications WHERE recipient_email=%s AND task_id=%s AND type='reaction'",
(ALICE, t["id"])).fetchone()["title"]
assert "👍" in title and "부모" in title
req("POST", f"/project/api/comments/{c['id']}/reactions", BOB, json={"emoji": "👍"}) # 끄기
req("POST", f"/project/api/comments/{c['id']}/reactions", ALICE, json={"emoji": "🎉"}) # 자기 댓글
assert _count(q, ALICE, t["id"]) == 1
# 멤버에서 빠진 댓글 작성자에게는 가지 않는다
ST.remove_member(project_id=p["id"], user_email=ALICE)
req("POST", f"/project/api/comments/{c['id']}/reactions", BOB, json={"emoji": "✅"})
assert _count(q, ALICE, t["id"]) == 1
if __name__ == "__main__":
if not ENABLED:
print("SKIP: PROJECT_TEST_DB_URL(localhost) not set")