From 18dd1a66c96e01c6a39c7da4417f4ed3337935b3 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Thu, 19 Nov 2026 00:04:30 +0900 Subject: [PATCH 1/6] =?UTF-8?q?test(859-8):=20M02=20=ED=95=AD=EB=AA=A9=20?= =?UTF-8?q?=EB=AA=A9=EB=A1=9D=20=EC=8B=9C=ED=97=98=20=EB=8F=84=EC=9A=B0?= =?UTF-8?q?=EB=AF=B8=EC=97=90=20=EA=B8=88=EC=95=A1=20=EA=BC=B4=20=EC=A7=84?= =?UTF-8?q?=EC=A7=9C=20=ED=8C=8C=EC=9D=BC=20=EC=8B=A4=EC=9D=8C=20=E2=80=94?= =?UTF-8?q?=2011-02=20=EB=B6=80=ED=84=B0=20formatMoney=20=EC=97=86?= =?UTF-8?q?=EC=96=B4=20=EB=B9=A8=EA=B0=95=EC=9D=B4=EB=8D=98=206=20?= =?UTF-8?q?=EA=B0=9C=20=ED=86=B5=EA=B3=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- resources/tester/helper_m02_item_list.cjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/tester/helper_m02_item_list.cjs b/resources/tester/helper_m02_item_list.cjs index 2c3ea7d19..d86e71829 100644 --- a/resources/tester/helper_m02_item_list.cjs +++ b/resources/tester/helper_m02_item_list.cjs @@ -16,7 +16,9 @@ const load = (name, stubs) => { }; const model = load("M02_MasterTemplete_TreePanel_Model.ts", {}); const time = load("../common_util/common_util_time.ts", {}); // 날짜 글 = 진짜(PC 시간대는 시험이 고정) +const money = load("../common_util/common_util_money.ts", {}); // 금액 꼴 = 진짜 const m = load("M02_MasterTemplete_ItemList.ts", { + "../common_util/common_util_money": money, "./M02_MasterTemplete_TreePanel_Model": model, "../common_util/common_util_time": time, }); From a3004c18249ee369395d463b1c8fbedb9b9262dd Mon Sep 17 00:00:00 2001 From: umsangdon Date: Thu, 19 Nov 2026 00:04:30 +0900 Subject: [PATCH 2/6] =?UTF-8?q?fix(859-8):=20=EA=B8=B0=EA=B3=84=20?= =?UTF-8?q?=EC=B0=BD=20=EB=82=A1=EC=9D=80=20=EC=95=8C=EB=A6=BC=20=E3=80=8C?= =?UTF-8?q?=EC=9B=90=EB=B3=B8=EC=97=90=20=EC=83=88=20=EA=B0=92=20=EC=9E=88?= =?UTF-8?q?=EC=9D=8C=20=E2=80=94=20=ED=94=84=EB=A1=9C=EC=A0=9D=ED=8A=B8=20?= =?UTF-8?q?=EC=82=AC=EB=B3=B8=EC=9D=80=20[=EB=8B=A8=EA=B0=80=20=EA=B0=B1?= =?UTF-8?q?=EC=8B=A0]=20=EC=9C=BC=EB=A1=9C=20=EB=B0=98=EC=98=81=E3=80=8D?= =?UTF-8?q?=20=EA=B1=B7=EC=9D=8C=20=E2=80=94=20=ED=94=84=EB=A1=9C=EC=A0=9D?= =?UTF-8?q?=ED=8A=B8=20[=EB=8B=A8=EA=B0=80=20=EA=B0=B1=EC=8B=A0]=20?= =?UTF-8?q?=EC=97=86=EC=96=B4=EC=A7=90=20=C2=B7=20=EC=84=9C=EB=B2=84=20?= =?UTF-8?q?=EA=B8=B0=EA=B3=84=20=EC=B0=BD=20=EB=8B=B5=20=EC=83=88=EA=B0=92?= =?UTF-8?q?=20=EC=B9=B8=20=C2=B7=20=EA=B8=80=20=ED=82=A4=20Win=5FNewer=20?= =?UTF-8?q?=EC=A7=80=EC=9B=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- A00_Common/line_stack_machine.ts | 6 +----- M02_MasterTemplete/M02_MyMachine_Draft.py | 5 ++--- M02_MasterTemplete/M02_MyMachine_Text.ts | 1 - resources/tester/test_827_1_machine_window.py | 4 +--- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/A00_Common/line_stack_machine.ts b/A00_Common/line_stack_machine.ts index f4cf6c2ef..a33d7350f 100644 --- a/A00_Common/line_stack_machine.ts +++ b/A00_Common/line_stack_machine.ts @@ -37,7 +37,6 @@ interface CopyRowData { export interface CopyAnswer { 사본: CopyRowData | null; 지금: CopyRowData | null; - 새값: boolean; } export interface MachineCtx { @@ -233,10 +232,7 @@ export function openMachineWindow(o: MachineWindowOptions): void { // 지금 줄 = 이 단가산출 사본 값(있으면) const copy = c.kind === "now" && ctx.copyRow ? await ctx.copyRow(c.no).catch(() => null) : null; const row = copy?.사본 ?? null; - if (row) { - lines.push(createText(mt("Win_Copy"), "muted")); - if (copy?.새값) lines.push(createText(mt("Win_Newer"), "warning")); - } + if (row) lines.push(createText(mt("Win_Copy"), "muted")); if (k === "mine") { const m = c.mine ?? mines.find((r) => r.원문번호 === c.no); if (m) lines.push(createText(`${mt("Server_Hourly")} ${hourlyText(m.시간당)}`)); diff --git a/M02_MasterTemplete/M02_MyMachine_Draft.py b/M02_MasterTemplete/M02_MyMachine_Draft.py index 319c07d87..e63bfc106 100644 --- a/M02_MasterTemplete/M02_MyMachine_Draft.py +++ b/M02_MasterTemplete/M02_MyMachine_Draft.py @@ -197,7 +197,7 @@ def saving(body: dict, inner: Callable[[dict], Any]) -> Any: def copy_row(doc: dict, copy: dict | None, no: str) -> dict[str, Any]: - """기계 창 열 때 — {사본: 이 SK 사본에 박힌 줄 | None, 지금: 지금 줄 | None, 새값}(원문번호 · 키로 찾음).""" + """기계 창 열 때 — {사본: 이 SK 사본에 박힌 줄 | None, 지금: 지금 줄 | None}(원문번호 · 키로 찾음).""" from M02_MasterTemplete import M02_Sangeun_Copy as skc no = no.strip().strip("'") @@ -209,5 +209,4 @@ def copy_row(doc: dict, copy: dict | None, no: str) -> dict[str, Any]: whole = skc.whole_() live = (whole.numbers.get("EQ") or {}).get(no) or (whole.index.get("EQ") or {}).get(no) now = prices.to_json(live) if live is not None else None - new = have is not None and now is not None and skc._fp(have) != skc._fp(now) - return {"사본": have, "지금": now, "새값": new} + return {"사본": have, "지금": now} diff --git a/M02_MasterTemplete/M02_MyMachine_Text.ts b/M02_MasterTemplete/M02_MyMachine_Text.ts index 7d04557f2..32d8986fc 100644 --- a/M02_MasterTemplete/M02_MyMachine_Text.ts +++ b/M02_MasterTemplete/M02_MyMachine_Text.ts @@ -60,7 +60,6 @@ const TEXT = { Win_M01: "M01 기계", Win_Copy: "이 단가산출에 복사된 값", Win_Live: "원본 지금 값", - Win_Newer: "원본에 새 값 있음 — 프로젝트 사본은 [단가 갱신] 으로 반영", Win_Swap: "이 기계로 바꾸기", Win_Hint: "왼쪽에서 기계를 고르면 값이 보임", Win_View: "조회", diff --git a/resources/tester/test_827_1_machine_window.py b/resources/tester/test_827_1_machine_window.py index f18a69559..55e60a6fe 100644 --- a/resources/tester/test_827_1_machine_window.py +++ b/resources/tester/test_827_1_machine_window.py @@ -182,9 +182,7 @@ def test_edit_mine_other_sk_new_value(world): now = _at(me, path.read, first) assert now["셈"]["계"] == was seen = _at(me, path.machine, first, f"'{no}'") - assert ( - seen["사본"]["값"]["가격"] == 1000 and seen["지금"]["값"]["가격"] == 5000 and seen["새값"] - ) + assert seen["사본"]["값"]["가격"] == 1000 and seen["지금"]["값"]["가격"] == 5000 def test_company_and_other_refused(world): From d59adc42c80bec6529c7371076d5563b7858ecbe Mon Sep 17 00:00:00 2001 From: umsangdon Date: Thu, 19 Nov 2026 00:40:29 +0900 Subject: [PATCH 3/6] =?UTF-8?q?fix(859-8):=20M02=20=EC=84=9C=EA=B3=A0=20?= =?UTF-8?q?=C2=B7=20=EA=B0=9C=EC=9D=B8=EA=B4=80=EB=A6=AC=20=ED=99=94?= =?UTF-8?q?=EB=A9=B4=20=EA=B8=80=20=EC=86=90=EC=A7=88=20=E2=80=94=20?= =?UTF-8?q?=EC=84=9C=EA=B3=A0=20=EB=AA=A9=EB=A1=9D=20=E3=80=8C=EA=B3=A0?= =?UTF-8?q?=EC=B9=9C=20=EB=82=A0=E3=80=8D=20=EB=82=A0=EC=A7=9C=20=EA=BC=B4?= =?UTF-8?q?=20=C2=B7=20=EB=82=B4=20=EA=B8=B0=EA=B3=84=20=C2=B7=20=EB=82=B4?= =?UTF-8?q?=20=EC=9E=AC=EB=A3=8C=20=C2=B7=20=EB=82=B4=20=ED=92=88=EB=AA=A9?= =?UTF-8?q?=20=EB=B9=88=20=EB=AA=A9=EB=A1=9D=20=EA=B8=80(=EB=B9=88=20?= =?UTF-8?q?=EC=B9=B8=EC=97=90=20=E3=80=8C=EC=97=86=EC=9D=8C=E3=80=8D=20?= =?UTF-8?q?=EC=B0=8D=ED=9E=88=EB=8D=98=20=EA=B2=83)=20=C2=B7=20=EC=A7=80?= =?UTF-8?q?=EC=9A=B0=EA=B8=B0=20=ED=99=95=EC=9D=B8=20=EA=B8=80(=EA=B1=B7?= =?UTF-8?q?=ED=9E=8C=20=E3=80=8C=EC=A7=80=EC=9B=8C=EC=A7=90=E3=80=8D=20?= =?UTF-8?q?=C2=B7=20=EC=A1=B0=EC=82=AC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- M02_MasterTemplete/M02_MasterTemplete_Library_List.ts | 5 +++-- M02_MasterTemplete/M02_MyItems_View.ts | 3 +-- M02_MasterTemplete/M02_MyMachine_Text.ts | 2 +- M02_MasterTemplete/M02_MyMachine_View.ts | 3 +-- M02_MasterTemplete/M02_MyMaterial_View.ts | 6 ++++-- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/M02_MasterTemplete/M02_MasterTemplete_Library_List.ts b/M02_MasterTemplete/M02_MasterTemplete_Library_List.ts index e1a92ede2..b7559365a 100644 --- a/M02_MasterTemplete/M02_MasterTemplete_Library_List.ts +++ b/M02_MasterTemplete/M02_MasterTemplete_Library_List.ts @@ -35,6 +35,7 @@ import { } from "./M02_MasterTemplete_Api_Fetch"; import { tc } from "./M02_MasterTemplete_Labor_Text"; import { formatMoney } from "../common_util/common_util_money"; +import { dateText } from "../common_util/common_util_time"; /** 목록 줄 — 서버가 문서 `이름`(제목) · 단위 · 1 단위 기준 계를 실어 보냄 */ type Row = TemplateInfo & { @@ -84,7 +85,7 @@ const COLUMNS: Record [string, (row: Row) => string][]> = { [tc("Lib_Unit"), (r) => r.단위 ?? ""], [tc("Lib_Base"), (r) => money(r.기준금액)], [L("M02_LibUnlinked"), (r) => (r.안이은줄 ? String(r.안이은줄) : "")], // 729-3 - [tc("Lib_Date"), (r) => r.수정일], + [tc("Lib_Date"), (r) => dateText(r.수정일, "")], ], sangeun: () => [ [tc("Lib_Key"), (r) => r.이름], @@ -94,7 +95,7 @@ const COLUMNS: Record [string, (row: Row) => string][]> = { [L("M02_SangeunEdited"), (r) => String(r.고친줄수 ?? 0)], [L("M02_SangeunUsers"), (r) => String(r.쓰는곳수 ?? 0)], [tc("Lib_Base"), (r) => money(r.기준금액)], - [tc("Lib_Date"), (r) => r.수정일], + [tc("Lib_Date"), (r) => dateText(r.수정일, "")], ], }; diff --git a/M02_MasterTemplete/M02_MyItems_View.ts b/M02_MasterTemplete/M02_MyItems_View.ts index 0fe43446f..f98cb71df 100644 --- a/M02_MasterTemplete/M02_MyItems_View.ts +++ b/M02_MasterTemplete/M02_MyItems_View.ts @@ -40,7 +40,6 @@ export function buildMyItemsView(opt: MyItemsViewOptions): HTMLElement { { key: "같은이름", label: mt("Same_Name"), kind: "number", decimals: 0, width: 70 }, ], rows: [], - empty: mt("Items_None"), mergeSame: ["이름"], onRowClick: (i) => pick(shown[i]), }); @@ -62,7 +61,7 @@ export function buildMyItemsView(opt: MyItemsViewOptions): HTMLElement { const count = new Map(); for (const r of rows) count.set(r.이름, (count.get(r.이름) ?? 0) + 1); shown = rows.filter((r) => words.every((w) => `${r.이름} ${r.규격}`.toLowerCase().includes(w))); - hint.textContent = rows.length ? `${shown.length} / ${rows.length}` : ""; + hint.textContent = rows.length ? `${shown.length} / ${rows.length}` : mt("Items_None"); table.setRows( shown.map((r) => ({ 이름: r.이름, diff --git a/M02_MasterTemplete/M02_MyMachine_Text.ts b/M02_MasterTemplete/M02_MyMachine_Text.ts index 32d8986fc..3e7110e6a 100644 --- a/M02_MasterTemplete/M02_MyMachine_Text.ts +++ b/M02_MasterTemplete/M02_MyMachine_Text.ts @@ -24,7 +24,7 @@ const TEXT = { Delete: "지우기", Deleted: "내 기계 지움", Delete_Ask: "이 내 기계를 지울까? 쓰는 단가산출 {value}", - Delete_Keep: "지워도 이미 만든 단가산출은 마지막 값 유지(「지워짐」 표시)", + Delete_Keep: "지워도 이미 만든 단가산출은 지우기 직전 값 유지", Back: "목록", Close: "닫기", Failed: "못 함", diff --git a/M02_MasterTemplete/M02_MyMachine_View.ts b/M02_MasterTemplete/M02_MyMachine_View.ts index 7c777a8a2..d5d581bb8 100644 --- a/M02_MasterTemplete/M02_MyMachine_View.ts +++ b/M02_MasterTemplete/M02_MyMachine_View.ts @@ -45,7 +45,6 @@ export function buildMyMachineView(opt: MyMachineViewOptions): HTMLElement { { key: "고친날", label: mt("Edited"), width: 96 }, ], rows: [], - empty: mt("None"), onRowClick: (i) => shown[i] && void openForm(shown[i].키), }); const draw = (): void => { @@ -54,7 +53,7 @@ export function buildMyMachineView(opt: MyMachineViewOptions): HTMLElement { const text = `${r.이름} ${r.규격} ${r.키}`.toLowerCase(); return words.every((w) => text.includes(w)); }); - hint.textContent = rows.length ? `${shown.length} / ${rows.length}` : ""; + hint.textContent = rows.length ? `${shown.length} / ${rows.length}` : mt("None"); table.setRows( shown.map((r) => ({ 이름: r.이름, diff --git a/M02_MasterTemplete/M02_MyMaterial_View.ts b/M02_MasterTemplete/M02_MyMaterial_View.ts index a340173c3..2dda862f6 100644 --- a/M02_MasterTemplete/M02_MyMaterial_View.ts +++ b/M02_MasterTemplete/M02_MyMaterial_View.ts @@ -40,7 +40,7 @@ const TEXT = { need: "품명 · 단위는 꼭 적음", saved: "저장함 — 쓰는 단가산출이 새 값으로 셈", dropped: "지움", - dropAsk: "「{name}」 을 지움", + dropAsk: "「{name}」 지움", readOnly: "남의 층 — 읽기만", } as const; @@ -65,7 +65,6 @@ export function buildMyMaterialBlock(opt: MyMaterialBlockOptions): HTMLElement { { key: "키", label: TEXT.key, width: 90 }, ], rows: [], - empty: TEXT.none, onRowClick: (i) => canWrite && open(rows[i]), }); const name = createInputField({ label: TEXT.name, required: true }); @@ -84,6 +83,7 @@ export function buildMyMaterialBlock(opt: MyMaterialBlockOptions): HTMLElement { }), ); const head = createText(""); + const none = createText(TEXT.none, "muted"); // 빈 목록 글(표 `empty` = 빈 칸 글이라 따로) const saveBtn = createButton({ label: TEXT.save, variant: "filled", onClick: () => void save() }); const dropBtn = createButton({ label: TEXT.drop, @@ -138,6 +138,7 @@ export function buildMyMaterialBlock(opt: MyMaterialBlockOptions): HTMLElement { rows = got.줄; ver = got.판; table.setRows(rows.map((r) => ({ ...r, 쓰는곳: r.쓰는곳?.length ?? 0 }))); + none.hidden = rows.length > 0; } async function save(): Promise { const 이름 = name.input.value.trim(); @@ -188,6 +189,7 @@ export function buildMyMaterialBlock(opt: MyMaterialBlockOptions): HTMLElement { el("div", { className: "ui-toolbar", children: [addBtn] }), createText(canWrite ? TEXT.note : TEXT.readOnly, "muted"), table.root, + none, form, ], }); From f97ee9e86feb70d52125aab3522129dd167f3053 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Thu, 19 Nov 2026 00:48:32 +0900 Subject: [PATCH 4/6] =?UTF-8?q?fix(859-8):=20D01=20=EB=93=B1=EB=A1=9D=20?= =?UTF-8?q?=EC=B9=B8=20=EA=B8=B8=EC=9D=B4=20=3D=20=EC=84=9C=EB=B2=84=20?= =?UTF-8?q?=EC=B9=B8=20=EA=B8=B8=EC=9D=B4=20=E2=80=94=20=EC=82=AC=EC=97=85?= =?UTF-8?q?=20=EC=A7=80=EC=97=AD=20100=20=C2=B7=20=ED=94=84=EB=A1=9C?= =?UTF-8?q?=EC=A0=9D=ED=8A=B8=EB=AA=85=20255=20=EC=9E=90=20=EB=84=98?= =?UTF-8?q?=EA=B2=8C=20=EC=95=88=20=EB=93=A4=EC=96=B4=EA=B0=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 넘으면 서버가 422 로 막고 화면엔 「HTTP 422」 만 뜨던 것. Co-Authored-By: Claude Opus 5.5 --- D01_PlanRegister/D01_PlanRegister_UI_Page.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/D01_PlanRegister/D01_PlanRegister_UI_Page.ts b/D01_PlanRegister/D01_PlanRegister_UI_Page.ts index dad0a66eb..810cae6e4 100644 --- a/D01_PlanRegister/D01_PlanRegister_UI_Page.ts +++ b/D01_PlanRegister/D01_PlanRegister_UI_Page.ts @@ -115,6 +115,9 @@ export function renderD01PlanRegister(root: HTMLElement): void { required: true, }); const name = createInputField({ label: t("DE_Reg_Name"), required: true }); + // 서버 칸 길이(CreatePlanRequest)와 같게 — 넘으면 「HTTP 422」 만 뜸 + region.input.maxLength = 100; + name.input.maxLength = 255; // 이름 = B02 조합기 그대로(손대기 전 = 자동 · 고친 뒤 = 조각만 갈아 끼움) const composer = createNameComposer(); From 8227d1fbfc36c9200121550218a19ed3522bdca4 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Thu, 19 Nov 2026 00:48:32 +0900 Subject: [PATCH 5/6] =?UTF-8?q?fix(859-8):=20D03=20=EC=A7=80=EC=A0=90=20?= =?UTF-8?q?=EC=9D=B4=EB=A6=84=20=EB=B0=94=EA=BF=88=20=EB=92=A4=20=EC=A7=80?= =?UTF-8?q?=EC=9B=80=20=EB=8B=A8=EC=B6=94=20=EC=9D=B4=EB=A6=84=ED=91=9C?= =?UTF-8?q?=EB=8F=84=20=EC=83=88=20=EC=9D=B4=EB=A6=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 목록 틀을 그대로 둘 때 이름 · 좌표 글만 바꾸고 지움 단추 title · aria-label 은 옛 이름으로 남던 것. Co-Authored-By: Claude Opus 5.5 --- D03_PlanAnalysis/D03_PlanAnalysis_UI_Points.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/D03_PlanAnalysis/D03_PlanAnalysis_UI_Points.ts b/D03_PlanAnalysis/D03_PlanAnalysis_UI_Points.ts index 18e0b57d1..c490722bc 100644 --- a/D03_PlanAnalysis/D03_PlanAnalysis_UI_Points.ts +++ b/D03_PlanAnalysis/D03_PlanAnalysis_UI_Points.ts @@ -262,6 +262,9 @@ export function createPlanPoints(params: PlanPointsParams): PlanPoints { const sub = row?.querySelector(".ui-list-row__sub"); if (label) label.textContent = name(i); if (sub) sub.textContent = lonLatOf(i) ?? ""; + const drop = row?.querySelector(".ui-list-row__trailing button"); + drop?.setAttribute("title", `${name(i)} 지우기`); + drop?.setAttribute("aria-label", `${name(i)} 지우기`); }); syncEditor?.(); return; From 74a6afcbc4bde8ab4bcaf2dae1b6aebcecbf0401 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Thu, 19 Nov 2026 00:48:32 +0900 Subject: [PATCH 6/6] =?UTF-8?q?fix(859-8):=20D04=20=EB=B9=88=20=ED=91=9C?= =?UTF-8?q?=20=C2=B7=20=EB=AA=BB=20=EC=9D=BD=EC=9D=8C=20=C2=B7=20=EC=97=85?= =?UTF-8?q?=EC=B2=B4=20=EC=B9=B8=20=EC=9E=98=EB=A6=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 저장된 노선이 없으면 표에 「예정노선 [저장] 전」 한 줄(빈 머리줄만 보이던 것) - 요약을 못 읽으면(다른 회사 프로젝트 등) 본문에 까닭 띠 · 단추 걷음(빈 화면 + 잠깐 토스트뿐이던 것) - 업체 칸 최소 폭 10 → 15 rem — 안내 글 「업체(등록 회사 찾기 또는 이름)」 끝이 잘리던 것 Co-Authored-By: Claude Opus 5.5 --- D04_PlanConfirm/D04_PlanConfirm_UI_Page.ts | 9 +++++++-- D04_PlanConfirm/D04_PlanConfirm_UI_Style.css | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/D04_PlanConfirm/D04_PlanConfirm_UI_Page.ts b/D04_PlanConfirm/D04_PlanConfirm_UI_Page.ts index 83d97cd86..133c8d82f 100644 --- a/D04_PlanConfirm/D04_PlanConfirm_UI_Page.ts +++ b/D04_PlanConfirm/D04_PlanConfirm_UI_Page.ts @@ -27,7 +27,7 @@ import { import { createBanner } from "@ui/ui_template_banner"; import { createCheckbox } from "@ui/ui_template_checkbox"; import { createPanelCard } from "@ui/ui_template_collapsible"; -import { tableRow, tableShell, type Column } from "@ui/ui_template_table"; +import { emptyRow, tableRow, tableShell, type Column } from "@ui/ui_template_table"; import { t } from "@ui/ui_template_locale"; import { stationLabel } from "../common_util/common_util_station"; import { clearState, readState, writeState } from "../A00_Common/b_page_state"; @@ -291,6 +291,7 @@ export async function renderD04PlanConfirm(root: HTMLElement): Promise { if (row.piece_id) tr.dataset.piece = row.piece_id; tbody.append(tr); } + if (!summary.pieces.length) tbody.append(emptyRow(columns, t("D04_NotSaved"))); const notes = draft() ? [createBanner({ tone: "warning", text: t("D04_Dirty") })] : []; notes[0]?.classList.add("d04-confirm__dirty"); const broken = summary.pieces @@ -386,6 +387,10 @@ export async function renderD04PlanConfirm(root: HTMLElement): Promise { pickCard.hidden = finalizeButton.hidden = saveButton.hidden = !editable; await load(); } catch (error) { - showToast(error instanceof Error ? error.message : String(error), "error"); + const text = error instanceof Error ? error.message : String(error); + showToast(text, "error"); + // 못 읽음(권한 · 없는 프로젝트) — 빈 화면 대신 까닭 · 단추는 걷음 + main.replaceChildren(createBanner({ tone: "danger", text })); + pickCard.hidden = exportButton.hidden = finalizeButton.hidden = saveButton.hidden = true; } } diff --git a/D04_PlanConfirm/D04_PlanConfirm_UI_Style.css b/D04_PlanConfirm/D04_PlanConfirm_UI_Style.css index 53c4fb41b..e8dce47ea 100644 --- a/D04_PlanConfirm/D04_PlanConfirm_UI_Style.css +++ b/D04_PlanConfirm/D04_PlanConfirm_UI_Style.css @@ -20,7 +20,7 @@ } .d04-confirm__input { - min-width: 10rem; + min-width: 15rem; /* 업체 칸 안내 글 「업체(등록 회사 찾기 또는 이름)」 이 다 보이게 */ } .d04-confirm__picks {