feat(z01): 표 머리 세 줄을 모두 서버 글자로 — 고친 값이 닿는 자리(scope_notice · 보라 굵게) · 뒤처진 원본마다 한 줄(출처가 목록으로 옴 · outdated 참만 · null 은 모름이라 안 세움) · 알림은 서버 notice(요율 문구 화면 사전 뺌 — 두 벌 금지)

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016VBGFXB9AbJBwXP19z75Qq
This commit is contained in:
2026-09-16 08:46:57 +09:00
co-authored by Claude Opus 5
parent 909b055aa9
commit dd6bd0620a
6 changed files with 81 additions and 37 deletions
+32 -16
View File
@@ -29,18 +29,32 @@ import {
} from "./Z01_MasterData_UI_Cells.js";
// 뒤처짐 띠 — 판정은 서버 outdated 만(화면이 날짜를 안 견줌) · 받는 자리를 띠에 적음(2026-09-15 브레인)
const laborSource = {
publisher: "대한건설협회",
where: "cak.or.kr [지원·사업]>[건설적산기준]>[건설임금]",
cycle: "반년",
latest_published: "2026-09-01",
our_edition: "2026-01-01",
checked_at: "2026-09-15",
outdated: true,
};
// ⚠ 한 표가 원본 여럿을 모은 것이라 출처는 목록으로 옴(노임 = 건설업 + 제조업).
const laborSources = [
{
source_id: "labor_const",
name: "건설업 시중노임단가",
publisher: "대한건설협회",
where: "cak.or.kr [지원·사업] > [건설적산기준] > [건설임금]",
cycle: "해마다 두 번",
latest_published: "2026-09-01",
our_edition: "2026-01-01",
checked_at: "2026-09-15",
outdated: true,
},
{
source_id: "labor_mfg",
name: "중소제조업 직종별 임금",
publisher: "중소기업중앙회",
where: "",
latest_published: null,
our_edition: "2026-07-01",
outdated: null,
},
];
const banners = [
outdatedBanner(laborSource),
outdatedBanner({ ...laborSource, outdated: false }),
outdatedBanner(laborSources),
outdatedBanner([{ ...laborSources[0], outdated: false }]),
outdatedBanner(undefined),
];
@@ -225,10 +239,12 @@ def test_칸_글자와_숨김_열(tmp_path: Path) -> None:
assert [row[1] for row in got["editions"]] == ["2026-01-01", "판 모름", "판 모름"]
# 단추 글자·칸 설명의 값 — 쉼표 + 단위(이름표) · 단위 없으면 수만
assert got["withUnit"] == ["17 원", "41,500,000 원", "0.17", "12,345.678", "", "5억 미만"]
# 날짜가 뒤처져 보여도 서버가 outdated=false 면 띠 없음 · 출처가 안 오면 띠 없음
# 뒤처진 원본만 한 줄씩 · 판정을 모르는 것(outdated null)은 안 세움 · 없으면 빈 목록
assert got["banners"] == [
"이 자료는 2026-01-01 판 · 최신은 2026-09-01 공표 · "
"대한건설협회 cak.or.kr [지원·사업]>[건설적산기준]>[건설임금]",
None,
None,
[
"건설업 시중노임단가 — 이 자료는 2026-01-01 판 · 최신은 2026-09-01 공표 · "
"대한건설협회 cak.or.kr [지원·사업] > [건설적산기준] > [건설임금]"
],
[],
[],
]