From 56bf3233b9fbc27fc32deb8acc6c5390b5703c94 Mon Sep 17 00:00:00 2001 From: jaeml06 Date: Mon, 1 Dec 2025 15:26:26 +0900 Subject: [PATCH 1/4] =?UTF-8?q?fix:=20=EB=B0=9C=EC=96=B8=EC=9E=90=20?= =?UTF-8?q?=EA=B8=80=EC=9E=90=EC=88=98=20=EA=B2=80=EC=A6=9D=EC=9D=B4=20CUS?= =?UTF-8?q?TOM=20=EC=9C=A0=ED=98=95=EC=97=90=EC=84=9C=EB=A7=8C=20=EB=8F=99?= =?UTF-8?q?=EC=9E=91=ED=95=98=EB=8D=98=20=EB=AC=B8=EC=A0=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TimerCreationContent/TimerCreationContent.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/page/TableComposition/components/TimerCreationContent/TimerCreationContent.tsx b/src/page/TableComposition/components/TimerCreationContent/TimerCreationContent.tsx index 2a2363a7..89158fe2 100644 --- a/src/page/TableComposition/components/TimerCreationContent/TimerCreationContent.tsx +++ b/src/page/TableComposition/components/TimerCreationContent/TimerCreationContent.tsx @@ -307,14 +307,15 @@ export default function TimerCreationContent({ // SpeechType에 맞게 문자열 매핑 let speechTypeToSend: string; let stanceToSend: Stance; + if (speaker.trim().length > 5) { + errors.push('발언자는 최대 5자까지 입력할 수 있습니다.'); + } + if (currentSpeechType === 'CUSTOM') { // 텍스트 길이 유효성 검사 if (speechTypeTextValue.length > 10) { errors.push('발언 유형은 최대 10자까지 입력할 수 있습니다.'); } - if (speaker.length > 5) { - errors.push('발언자는 최대 5자까지 입력할 수 있습니다.'); - } // 발언시간 유효성 검사 if ( From a91e4c430cb7558581f746317334e3859cd9136d Mon Sep 17 00:00:00 2001 From: jaeml06 Date: Mon, 1 Dec 2025 15:27:16 +0900 Subject: [PATCH 2/4] =?UTF-8?q?fix:=20input=EC=97=90=20=EB=B0=9C=EC=96=B8?= =?UTF-8?q?=EC=9E=90=20=EC=9E=85=EB=A0=A5=20=EA=B0=92=EC=9D=84=20=EC=A0=9C?= =?UTF-8?q?=ED=95=9C=ED=95=98=EB=8F=84=EB=A1=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/TimerCreationContent/TimerCreationContent.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/page/TableComposition/components/TimerCreationContent/TimerCreationContent.tsx b/src/page/TableComposition/components/TimerCreationContent/TimerCreationContent.tsx index 89158fe2..2276b9d9 100644 --- a/src/page/TableComposition/components/TimerCreationContent/TimerCreationContent.tsx +++ b/src/page/TableComposition/components/TimerCreationContent/TimerCreationContent.tsx @@ -599,7 +599,8 @@ export default function TimerCreationContent({ value={speaker} onChange={(e) => setSpeaker(e.target.value)} onClear={() => setSpeaker('')} - placeholder="N번 토론자" + maxLength={5} + placeholder="N번" disabled={ stance === 'NEUTRAL' || currentSpeechType === 'TIMEOUT' } From 27cb2a0f7cf8e1f0859c718bec46c0854c5a488a Mon Sep 17 00:00:00 2001 From: jaeml06 Date: Tue, 2 Dec 2025 13:32:40 +0900 Subject: [PATCH 3/4] =?UTF-8?q?refactor:=20=EB=B0=9C=EC=96=B8=EC=9E=90=20?= =?UTF-8?q?=EA=B8=B8=EC=9D=B4=20=EC=A0=9C=ED=95=9C=20=EC=88=AB=EC=9E=90?= =?UTF-8?q?=EB=A5=BC=20=EC=83=81=EC=88=98=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TimerCreationContent/TimerCreationContent.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/page/TableComposition/components/TimerCreationContent/TimerCreationContent.tsx b/src/page/TableComposition/components/TimerCreationContent/TimerCreationContent.tsx index 2276b9d9..414441bf 100644 --- a/src/page/TableComposition/components/TimerCreationContent/TimerCreationContent.tsx +++ b/src/page/TableComposition/components/TimerCreationContent/TimerCreationContent.tsx @@ -95,6 +95,7 @@ interface BellInputConfig { count: number; } +const MAX_SPEAKER_LEN = 5; export default function TimerCreationContent({ beforeData, initData, @@ -307,8 +308,8 @@ export default function TimerCreationContent({ // SpeechType에 맞게 문자열 매핑 let speechTypeToSend: string; let stanceToSend: Stance; - if (speaker.trim().length > 5) { - errors.push('발언자는 최대 5자까지 입력할 수 있습니다.'); + if (speaker.trim().length > MAX_SPEAKER_LEN) { + errors.push(`발언자는 최대 ${MAX_SPEAKER_LEN}자까지 입력할 수 있습니다.`); } if (currentSpeechType === 'CUSTOM') { @@ -599,7 +600,7 @@ export default function TimerCreationContent({ value={speaker} onChange={(e) => setSpeaker(e.target.value)} onClear={() => setSpeaker('')} - maxLength={5} + maxLength={MAX_SPEAKER_LEN} placeholder="N번" disabled={ stance === 'NEUTRAL' || currentSpeechType === 'TIMEOUT' From c4e7e715cfe810eaa16f13cf941990ca51088ba2 Mon Sep 17 00:00:00 2001 From: jaeml06 Date: Sun, 7 Dec 2025 16:21:47 +0900 Subject: [PATCH 4/4] =?UTF-8?q?fix:=20=EC=9E=85=EB=A0=A5=205=EC=9E=90?= =?UTF-8?q?=EA=B9=8C=EC=A7=80=EB=A7=8C=20=EB=93=A4=EC=96=B4=EA=B0=80?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=ED=95=98=EB=8A=94=20=EB=8F=99=EC=9E=91=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/TimerCreationContent/TimerCreationContent.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/page/TableComposition/components/TimerCreationContent/TimerCreationContent.tsx b/src/page/TableComposition/components/TimerCreationContent/TimerCreationContent.tsx index 414441bf..1557f2b1 100644 --- a/src/page/TableComposition/components/TimerCreationContent/TimerCreationContent.tsx +++ b/src/page/TableComposition/components/TimerCreationContent/TimerCreationContent.tsx @@ -598,7 +598,9 @@ export default function TimerCreationContent({ setSpeaker(e.target.value)} + onChange={(e) => + setSpeaker(e.target.value.slice(0, MAX_SPEAKER_LEN)) + } onClear={() => setSpeaker('')} maxLength={MAX_SPEAKER_LEN} placeholder="N번"