feat(프로젝트): 매일 하는 업무 — 날짜 팝업 [매일]·반복 아이콘·시각별 알림

- 마이그레이션 033 tasks.repeat_daily — [매일]이면 마감일·시각 비움, 마감일을 고르면 꺼짐(미적용이면 버튼 숨김·PUT 503)
- 마감 칸(카드·목록·내 업무·세부 업무·업무 창)에 반복 아이콘 + "매일"
- reminders.run_daily_alerts: 영업일, Project 옵션 daily_alert_times 중 지난 가장 늦은 시각마다 담당자(없으면 협업자)에게 type=daily 알림(task_reminders 로 중복 방지, 데몬 1분 주기)
- 큰 알림 팝업·PC 알림 프로그램에서 매일 업무 줄은 노란 배경
- Project 옵션 "알림" 분류: 알림 시각 여러 개 추가·삭제(최대 12)
- 도움말·모듈 CLAUDE.md·DEPLOYMENT(033) 갱신, 테스트 추가

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-11 14:35:59 +09:00
parent 3045bc6f99
commit 7f94e5efe7
26 changed files with 451 additions and 75 deletions
+30
View File
@@ -384,8 +384,28 @@ PROJECT_OPTION_DEFAULTS: dict[str, Any] = {
"default_view": "board", # 왼쪽에서 프로젝트를 열 때 처음 보이는 탭
"board_cover": True, # 보드 카드 표지(설명의 첫 이미지)
"all_view_users": None, # 왼쪽 "전체 보기" 메뉴를 볼 사람(이메일 목록) — None = 예전처럼 Pro user 이상
"daily_alert_times": ["09:00"], # 매일 업무(033 repeat_daily) 알림 시각들(KST, 영업일)
}
ALL_VIEW_USERS_MAX = 2000
DAILY_ALERT_TIMES_MAX = 12
def _time_list(raw: Any) -> list[str] | None:
"""'HH:MM' 목록 → 정규화·중복 제거·정렬. 목록이 아니거나 잘못된 시각이 끼면 None(빈 목록 = 알림 끔)."""
if not isinstance(raw, list) or len(raw) > DAILY_ALERT_TIMES_MAX:
return None
out: set[str] = set()
for t in raw:
if not isinstance(t, str):
return None
try:
v = validate_time(t)
except ValueError:
return None
if v is None:
return None
out.add(v)
return sorted(out)
def _email_list(raw: Any) -> list[str] | None:
@@ -410,6 +430,11 @@ def normalize_project_options(raw: dict[str, Any] | None) -> dict[str, Any]:
out["board_cover"] = raw["board_cover"]
if raw.get("all_view_users") is not None:
out["all_view_users"] = _email_list(raw["all_view_users"])
times = _time_list(raw.get("daily_alert_times"))
if times is not None:
out["daily_alert_times"] = times
else:
out["daily_alert_times"] = list(PROJECT_OPTION_DEFAULTS["daily_alert_times"])
return out
@@ -434,6 +459,11 @@ def validate_project_options(payload: Any) -> dict[str, Any]:
out["all_view_users"] = None if v is None else _email_list(v)
if v is not None and out["all_view_users"] is None:
raise ValueError("전체 보기 대상자 값이 올바르지 않습니다.")
if "daily_alert_times" in payload:
times = _time_list(payload["daily_alert_times"])
if times is None:
raise ValueError(f"매일 업무 알림 시각이 올바르지 않습니다(HH:MM, 최대 {DAILY_ALERT_TIMES_MAX}개).")
out["daily_alert_times"] = times
return out