From 13af9a62e8077010d4f311a83505a4dcf9b8ca3a Mon Sep 17 00:00:00 2001 From: SeongHyun Kim Date: Wed, 26 Nov 2025 17:22:39 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=88=98=EC=A3=BC=EA=B4=80=EB=A6=AC=20?= =?UTF-8?q?=EB=82=A9=EA=B8=B0=EC=9D=BC=20DATE=20=ED=98=95=EC=8B=9D=20?= =?UTF-8?q?=EC=A0=80=EC=9E=A5=20=EB=B0=8F=20=EC=84=A4=EC=A0=95=20=ED=8C=A8?= =?UTF-8?q?=EB=84=90=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 프론트엔드: EditModal 날짜 정규화 함수 추가 (YYYY-MM-DD) - 백엔드: convertValueForPostgreSQL에서 DATE 타입 문자열 유지 - 백엔드: 날짜 변환 로직에서 YYYY-MM-DD 문자열 변환 제거 - 프론트엔드: ModalRepeaterTableConfigPanel prop 이름 통일 (onChange) - OrderItemRepeaterTable 필드명 수정 (delivery_date → item_due_date) closes #납기일-TIMESTAMP-저장-이슈 #설정패널-prop-오류 --- .../ModalRepeaterTableConfigPanel.tsx | 8 ++++++-- .../registry/components/text-input/TextInputComponent.tsx | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/frontend/lib/registry/components/modal-repeater-table/ModalRepeaterTableConfigPanel.tsx b/frontend/lib/registry/components/modal-repeater-table/ModalRepeaterTableConfigPanel.tsx index a8068c92..348ae045 100644 --- a/frontend/lib/registry/components/modal-repeater-table/ModalRepeaterTableConfigPanel.tsx +++ b/frontend/lib/registry/components/modal-repeater-table/ModalRepeaterTableConfigPanel.tsx @@ -15,7 +15,8 @@ import { cn } from "@/lib/utils"; interface ModalRepeaterTableConfigPanelProps { config: Partial; - onConfigChange: (config: Partial) => void; + onChange: (config: Partial) => void; + onConfigChange?: (config: Partial) => void; // 하위 호환성 } // 소스 컬럼 선택기 (동적 테이블별 컬럼 로드) @@ -124,8 +125,11 @@ function ReferenceColumnSelector({ export function ModalRepeaterTableConfigPanel({ config, + onChange, onConfigChange, }: ModalRepeaterTableConfigPanelProps) { + // 하위 호환성: onConfigChange가 있으면 사용, 없으면 onChange 사용 + const handleConfigChange = onConfigChange || onChange; // 초기 설정 정리: 계산 규칙과 컬럼 설정 동기화 const cleanupInitialConfig = (initialConfig: Partial): Partial => { // 계산 규칙이 없으면 모든 컬럼의 calculated 속성 제거 @@ -241,7 +245,7 @@ export function ModalRepeaterTableConfigPanel({ const updateConfig = (updates: Partial) => { const newConfig = { ...localConfig, ...updates }; setLocalConfig(newConfig); - onConfigChange(newConfig); + handleConfigChange(newConfig); }; const addSourceColumn = () => { diff --git a/frontend/lib/registry/components/text-input/TextInputComponent.tsx b/frontend/lib/registry/components/text-input/TextInputComponent.tsx index ffbd7cac..8c545fe0 100644 --- a/frontend/lib/registry/components/text-input/TextInputComponent.tsx +++ b/frontend/lib/registry/components/text-input/TextInputComponent.tsx @@ -717,7 +717,7 @@ export const TextInputComponent: React.FC = ({ } disabled={componentConfig.disabled || false} required={componentConfig.required || false} - readOnly={componentConfig.readonly || (testAutoGeneration.enabled && testAutoGeneration.type !== "none")} + readOnly={componentConfig.readonly || false} className={cn( "box-border h-full w-full max-w-full rounded-md border px-3 py-2 text-sm shadow-sm transition-all duration-200 outline-none", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",