From 5b94f0ac64dc8e585e0b0be44e9b5e37cd2780be Mon Sep 17 00:00:00 2001 From: seonghobae <8172694+seonghobae@users.noreply.github.com> Date: Sun, 16 Aug 2026 21:39:53 +0000 Subject: [PATCH 1/8] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20[=ED=85=8C?= =?UTF-8?q?=EC=9D=B4=EB=B8=94=20=EC=82=AD=EC=A0=9C=20=EC=8B=9C=20=ED=99=95?= =?UTF-8?q?=EC=9D=B8=EC=B0=BD=20=EC=B6=94=EA=B0=80]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - `EditTableModal.tsx` 내 테이블 삭제 버튼 클릭 시 `window.confirm` 알림창을 추가하여 의도치 않은 데이터 손실 방지 - 연관된 `ModalCoverage.test.tsx` 테스트 코드 업데이트 및 `vi.spyOn` 모의 추가 - `.jules/palette.md` 파일에 배운 점 및 액션 아이템 기록 --- .jules/palette.md | 3 +++ frontend/src/components/modals/EditTableModal.tsx | 5 ++++- frontend/src/components/modals/ModalCoverage.test.tsx | 8 ++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.jules/palette.md b/.jules/palette.md index bd0f73248..44b78834b 100644 --- a/.jules/palette.md +++ b/.jules/palette.md @@ -57,3 +57,6 @@ ## 2026-07-30 - Add window.confirm for destructive actions **Learning:** Destructive actions like deleting groups and edge relationships previously occurred immediately without user confirmation. **Action:** Always wrap delete operations with window.confirm() dialogs and ensure corresponding tests successfully mock window.confirm. +## 2024-08-16 - 파괴적 액션에 대한 사용자 확인 추가 +**Learning:** 테이블 편집 모달 내 '테이블 삭제'와 같은 파괴적인 액션이 사용자 확인 없이 즉시 실행되어, 의도치 않은 데이터 손실을 초래할 수 있었습니다. +**Action:** 파괴적인 작업을 수행하는 버튼의 이벤트 핸들러에는 항상 `window.confirm`을 사용하여 사용자의 명시적인 확인을 받도록 개선했습니다. diff --git a/frontend/src/components/modals/EditTableModal.tsx b/frontend/src/components/modals/EditTableModal.tsx index 998929d44..0eac269a9 100644 --- a/frontend/src/components/modals/EditTableModal.tsx +++ b/frontend/src/components/modals/EditTableModal.tsx @@ -189,7 +189,10 @@ export function EditTableModal({