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:
@@ -225,13 +225,15 @@ namespace DbxNotifier
|
||||
private void DrawRow(Graphics g, Alert a, RectangleF r, bool hover)
|
||||
{
|
||||
float s = _s;
|
||||
if (hover) Fill(g, r, 10 * s, Gfx.Hex("#f5f6f8"));
|
||||
// 매일 하는 업무 = 노란 줄 배경(웹 팝업 .pj-alert-item.is-daily 와 같은 색)
|
||||
if (a.IsDaily) Fill(g, r, 10 * s, Gfx.Hex(hover ? "#ffedb8" : "#fff5d6"));
|
||||
else if (hover) Fill(g, r, 10 * s, Gfx.Hex("#f5f6f8"));
|
||||
|
||||
string kind = a.IsMention ? "나를 태그" : "업무 배정";
|
||||
string kind = a.IsDaily ? "매일 업무" : a.IsMention ? "나를 태그" : "업무 배정";
|
||||
SizeF ks = g.MeasureString(kind, _fBadge, PointF.Empty, StringFormat.GenericTypographic);
|
||||
var kr = new RectangleF(r.X + 10 * s, r.Y + (r.Height - 22 * s) / 2, ks.Width + 18 * s, 22 * s);
|
||||
Fill(g, kr, 11 * s, a.IsMention ? Gfx.Hex("#eef2ff") : Gfx.Hex("#e7f6ec"));
|
||||
DrawText(g, kind, _fBadge, a.IsMention ? Gfx.Hex("#4053c8") : Gfx.Hex("#1f8a4c"), kr, StringAlignment.Center);
|
||||
Fill(g, kr, 11 * s, a.IsDaily ? Gfx.Hex("#f0a800") : a.IsMention ? Gfx.Hex("#eef2ff") : Gfx.Hex("#e7f6ec"));
|
||||
DrawText(g, kind, _fBadge, a.IsDaily ? Color.White : a.IsMention ? Gfx.Hex("#4053c8") : Gfx.Hex("#1f8a4c"), kr, StringAlignment.Center);
|
||||
|
||||
const string go = "열기 ›";
|
||||
SizeF gsz = g.MeasureString(go, _fGo, PointF.Empty, StringFormat.GenericTypographic);
|
||||
|
||||
@@ -20,13 +20,14 @@ namespace DbxNotifier
|
||||
public long ProjectId;
|
||||
|
||||
public bool IsMention => Type == "mention";
|
||||
public bool IsDaily => Type == "daily"; // 매일 하는 업무(project_db 033) — 줄 배경을 따로
|
||||
|
||||
/// <summary>제목 앞 "나를 태그함: " / "업무 배정: "(예전 알림은 "작업 배정: ") 은 배지로 보여 주므로 뗀다(웹 팝업과 같게).</summary>
|
||||
public string CleanTitle
|
||||
{
|
||||
get
|
||||
{
|
||||
foreach (string p in new[] { "나를 태그함:", "업무 배정:", "작업 배정:" })
|
||||
foreach (string p in new[] { "나를 태그함:", "업무 배정:", "작업 배정:", "매일 업무:" })
|
||||
if (Title.StartsWith(p, StringComparison.Ordinal)) return Title.Substring(p.Length).Trim();
|
||||
return Title;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user