feat(project): show weekday and day count in weekly target popup

Each week reads like "11/1(일)~11/8(일) 8일".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-07 11:30:49 +09:00
parent cd3577b299
commit 38d0a87d6b
11 changed files with 20 additions and 12 deletions
+1
View File
@@ -434,6 +434,7 @@ function meetServer(env, st) {
const pop = env.d.body.querySelector(".pj-goal-wkpop");
const ins = pop ? Array.from(pop.querySelectorAll("input")) : [];
check("[2e] 창은 body 에, 1월 주차 수만큼 입력칸", !!pop && pop.parentElement === env.d.body && ins.length === 5, ins.length);
check("[2e] 주차 날 수 표시(1월 1주차 1/1~1/4 = 4일)", pop.querySelector(".pj-goal-wkpop-days").textContent === "4일", pop.querySelector(".pj-goal-wkpop-days").textContent);
check("[2e] 저장된 주차 값·합계", ins[0].value === "100" && ins[1].value === "200" && pop.querySelector(".pj-goal-wkpop-sum b").textContent === "300");
type(env, ins[2], "300");
check("[2e] 입력하면 합계 다시 계산", pop.querySelector(".pj-goal-wkpop-sum b").textContent === "600");
+1 -1
View File
@@ -59,7 +59,7 @@ def week_targets() -> dict:
"""2026년 달마다 주차(store.month_weeks) — 1월 1·2주차만 값(100·200)."""
out = {}
for mo in range(1, 13):
out[mo] = [{"start": a.isoformat(), "n": i + 1, "label": f"{a.month}/{a.day}~{b.month}/{b.day}",
out[mo] = [{"start": a.isoformat(), "n": i + 1, "days": (b - a).days + 1, "label": f"{a.month}/{a.day}~{b.month}/{b.day}",
"value": {(1, 0): "100", (1, 1): "200"}.get((mo, i), "")}
for i, (a, b) in enumerate(store.month_weeks(2026, mo))]
return out