Merge remote-tracking branch 'origin/sub_laptop_1' into sub_desktop_1

This commit is contained in:
2026-09-16 10:46:05 +09:00
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 [지원·사업] > [건설적산기준] > [건설임금]"
],
[],
[],
]