fix(M02): 자동 커밋에 남은 합치기 충돌 표시 풂 — 도면 카드(31-4) · 엑셀 카드(31-3) 둘 다 살림

- ItemCards: 글 · 옵션 · 손잡이 합침 · 떠날 때 물음은 도면 + 엑셀 카드 · saveAll · 안 쓰는 hideToolbar 뺌
- Structure: saveCards · dirty 한 벌
- UI_Main: busy() 로 물음
- 시험 test_m02_drawing_card 모양 맞춤

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KYNJBegcapQYMwkKAf8D7S
This commit is contained in:
2026-09-30 20:34:55 +09:00
co-authored by Claude Opus 5.5
parent 99a514d9b8
commit 8b2473af6e
4 changed files with 8 additions and 50 deletions
@@ -199,21 +199,13 @@ export function createMain(
const guard = (event: BeforeUnloadEvent): void => {
if (!root.isConnected) return window.removeEventListener("beforeunload", guard);
<<<<<<< HEAD
if (!dirty && !panel?.dirty()) return;
=======
if (!busy()) return;
>>>>>>> origin/sub_laptop_8
event.preventDefault();
event.returnValue = "";
};
window.addEventListener("beforeunload", guard);
const confirmLeave = async (): Promise<boolean> => {
<<<<<<< HEAD
if (!dirty && !panel?.dirty()) return true; // 도면 카드 고침(31-4)도 같은 물음
=======
if (!busy()) return true;
>>>>>>> origin/sub_laptop_8
if (!(await showConfirmDialog(L("M02_DiscardConfirm")))) {
// 취소 — 초점을 시트(고른 칸 입력 자리) · 집계표 · 도면으로 돌려 키보드 그대로
host