From 707148ed0fa441eeca88cdaf14736004b9f831d8 Mon Sep 17 00:00:00 2001 From: sangwook yoo Date: Tue, 2 Jun 2026 18:27:06 +0900 Subject: [PATCH] =?UTF-8?q?chore(low-pitch):=20LOW-PITCH-DIAG=20=EC=9E=84?= =?UTF-8?q?=EC=8B=9C=20=EC=A7=84=EB=8B=A8=20=EB=A1=9C=EA=B7=B8=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /api/debug 라우트가 구현된 적이 없어 debugCapture.log 호출이 매번 404 를 유발하던 콘솔 노이즈를 제거한다. 해당 진단은 주석에 "검증 후 제거"로 표시된 임시 코드였다(앱 동작에는 무영향). - PlacementShapeSetting.jsx, useRoofAllocationSetting.js 에서 debugCapture import 과 LOW-PITCH-DIAG 호출 3건 제거 - 진단 전용으로만 쓰이던 isLowPitchRestricted·LOW_PITCH_RESTRICTED_ROOF_IDS import 도 함께 제거(notifyLowPitchRestrictionForRoofs 실기능 import 는 유지) Co-Authored-By: Claude Opus 4.8 (1M context) --- .../placementShape/PlacementShapeSetting.jsx | 13 +-------- .../roofcover/useRoofAllocationSetting.js | 28 +------------------ 2 files changed, 2 insertions(+), 39 deletions(-) diff --git a/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx b/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx index 55af57f0..ab628a98 100644 --- a/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx +++ b/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx @@ -28,9 +28,7 @@ import { logger } from '@/util/logger' import { QcastContext } from '@/app/QcastProvider' // [LOW-PITCH-WARN 2026-05-06] 저구배 + 특정 기와 사용 시 시공 매뉴얼 안내 alert import { useSwal } from '@/hooks/useSwal' -import { notifyLowPitchRestrictionForRoofs, isLowPitchRestricted, LOW_PITCH_RESTRICTED_ROOF_IDS } from '@/util/roof-pitch-warning' -// [LOW-PITCH-DIAG 2026-05-06 TEMP] 진단용 — 검증 후 import + 호출 함께 제거 -import { debugCapture } from '@/util/debugCapture' +import { notifyLowPitchRestrictionForRoofs } from '@/util/roof-pitch-warning' const INPUT_MODE = { SIZE_ROOF: '1', @@ -399,15 +397,6 @@ export default function PlacementShapeSetting({ id, pos = { x: 50, y: 180 }, pla index: 0, } - // [LOW-PITCH-DIAG 2026-05-06 TEMP] 진단용 — 검증 후 제거 - debugCapture.log('LOW-PITCH-DIAG handleSaveBtn', { - roofMatlCd: roofInfo.roofMatlCd, - pitch: roofInfo.pitch, - angle: roofInfo.angle, - idMatched: LOW_PITCH_RESTRICTED_ROOF_IDS.has(roofInfo.roofMatlCd), - restricted: isLowPitchRestricted(roofInfo), - }) - // [LOW-PITCH-WARN 2026-05-06] 6종 기와 + (2 ≤ 寸 < 2.5 OR 11.31 ≤ 度 < 14.04) 일 때 안내 alert. OK 누르면 저장 진행 await notifyLowPitchRestrictionForRoofs([roofInfo], swalFire, getMessage) diff --git a/src/hooks/roofcover/useRoofAllocationSetting.js b/src/hooks/roofcover/useRoofAllocationSetting.js index 33b512b2..2d56c025 100644 --- a/src/hooks/roofcover/useRoofAllocationSetting.js +++ b/src/hooks/roofcover/useRoofAllocationSetting.js @@ -33,9 +33,7 @@ import { useText } from '@/hooks/useText' import { QLine } from '@/components/fabric/QLine' import { calcLineActualSize2 } from '@/util/qpolygon-utils' // [LOW-PITCH-WARN 2026-05-06] 저구배 + 특정 기와 사용 시 시공 매뉴얼 안내 alert -import { notifyLowPitchRestrictionForRoofs, isLowPitchRestricted, LOW_PITCH_RESTRICTED_ROOF_IDS } from '@/util/roof-pitch-warning' -// [LOW-PITCH-DIAG 2026-05-06 TEMP] 진단용 — 검증 후 import + 호출 함께 제거 -import { debugCapture } from '@/util/debugCapture' +import { notifyLowPitchRestrictionForRoofs } from '@/util/roof-pitch-warning' import { logger } from '@/util/logger' export function useRoofAllocationSetting(id) { @@ -312,18 +310,6 @@ export function useRoofAllocationSetting(id) { * 선택한 지붕재로 할당 */ const handleSave = async () => { - // [LOW-PITCH-DIAG 2026-05-06 TEMP] 진단용 — 검증 후 제거 - debugCapture.log('LOW-PITCH-DIAG handleSave', { - count: currentRoofList?.length, - list: currentRoofList?.map((r) => ({ - roofMatlCd: r.roofMatlCd, - pitch: r.pitch, - angle: r.angle, - idMatched: LOW_PITCH_RESTRICTED_ROOF_IDS.has(r.roofMatlCd), - restricted: isLowPitchRestricted(r), - })), - }) - // [LOW-PITCH-WARN 2026-05-06] 등록된 모든 지붕재에 대해 6종+저구배 검사 후 안내 alert. OK 누르면 저장 진행 await notifyLowPitchRestrictionForRoofs(currentRoofList, swalFire, getMessage) @@ -366,18 +352,6 @@ export function useRoofAllocationSetting(id) { * 지붕재 오른쪽 마우스 클릭 후 단일로 지붕재 변경 필요한 경우 */ const handleSaveContext = async () => { - // [LOW-PITCH-DIAG 2026-05-06 TEMP] 진단용 — 검증 후 제거 - debugCapture.log('LOW-PITCH-DIAG handleSaveContext', { - count: currentRoofList?.length, - list: currentRoofList?.map((r) => ({ - roofMatlCd: r.roofMatlCd, - pitch: r.pitch, - angle: r.angle, - idMatched: LOW_PITCH_RESTRICTED_ROOF_IDS.has(r.roofMatlCd), - restricted: isLowPitchRestricted(r), - })), - }) - // [LOW-PITCH-WARN 2026-05-06] 등록된 모든 지붕재에 대해 6종+저구배 검사 후 안내 alert. OK 누르면 저장 진행 await notifyLowPitchRestrictionForRoofs(currentRoofList, swalFire, getMessage)