Skip to content

Commit e39995f

Browse files
authored
회고 이름 및 설명 입력 길이 확장 (depromeet#843)
* chore: depromeet#842 회고 명 글자수 제한 10 -> 30로 수정 * fix: depromeet#842 빌드에러 수정 * chore: depromeet#842 회고 한 줄 설명 제한 글자수 20 -> 50 * fix: depromeet#842 빌드에러 수정
1 parent b7a6c39 commit e39995f

6 files changed

Lines changed: 12 additions & 12 deletions

File tree

apps/web/src/app/desktop/component/retrospectCreate/steps/MainInfo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ export function MainInfo() {
2929

3030
<InputLabelContainer id="name">
3131
<Label>회고 이름</Label>
32-
<Input value={title} onChange={handleNameChange} maxLength={10} count placeholder="회고 이름을 적어주세요" />
32+
<Input value={title} onChange={handleNameChange} maxLength={30} count placeholder="회고 이름을 적어주세요" />
3333
</InputLabelContainer>
3434

3535
<Spacing size={4} />
3636

3737
<InputLabelContainer id="name">
3838
<Label>한 줄 설명</Label>
39-
<TextArea value={introduction} onChange={handleDescriptionChange} maxLength={20} count placeholder="회고에 대한 한 줄 설명을 적어주세요" />
39+
<TextArea value={introduction} onChange={handleDescriptionChange} maxLength={50} count placeholder="회고에 대한 한 줄 설명을 적어주세요" />
4040
</InputLabelContainer>
4141

4242
<TipCard

apps/web/src/app/test/Staging.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ export default function Staging() {
8080
<br />
8181
<InputLabelContainer id={"retro"}>
8282
<Label order={1}>회고 이름</Label>
83-
<Input ref={inputRef} onChange={handleChangeName} value={layerName} maxLength={10} count validations={["NO_SPECIAL_CHARS"]} />
83+
<Input ref={inputRef} onChange={handleChangeName} value={layerName} maxLength={30} count validations={["NO_SPECIAL_CHARS"]} />
8484
</InputLabelContainer>
8585

8686
<InputLabelContainer id={"description"}>
8787
<Label>한 줄 설명</Label>
88-
<TextArea onChange={handleChangeDescription} value={description} maxLength={20} count validations={["NO_SPECIAL_CHARS"]} />
88+
<TextArea onChange={handleChangeDescription} value={description} maxLength={50} count validations={["NO_SPECIAL_CHARS"]} />
8989
</InputLabelContainer>
9090

9191
<BottomSheet

apps/web/src/component/common/Tooltip/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ const Tooltip = ({ children, placement = "top", delay = 200, disabled = false }:
5959
const [isOpen, setIsOpen] = useState(false);
6060
const triggerRef = useRef<HTMLElement>(null);
6161
const contentRef = useRef<HTMLDivElement>(null);
62-
const timeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
62+
const timeoutRef = useRef<number | null>(null);
6363

6464
const open = useCallback(() => {
6565
if (disabled) return;
6666
if (timeoutRef.current !== null) {
6767
clearTimeout(timeoutRef.current);
6868
}
69-
timeoutRef.current = setTimeout(() => {
69+
timeoutRef.current = window.setTimeout(() => {
7070
setIsOpen(true);
7171
}, delay);
7272
}, [disabled, delay]);

apps/web/src/component/retrospect/template/card/TemplateCardManageToggleMenu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export function ModifyRetrospect(props: {
250250
<Spacing size={2} />
251251
<InputLabelContainer id="title">
252252
<Label>회고 명</Label>
253-
<Input name="title" value={title} onChange={handleChangeTitle} maxLength={10} count placeholder="회고 이름을 적어주세요" />
253+
<Input name="title" value={title} onChange={handleChangeTitle} maxLength={30} count placeholder="회고 이름을 적어주세요" />
254254
</InputLabelContainer>
255255
<Spacing size={3} />
256256
<InputLabelContainer id="introduction">
@@ -259,7 +259,7 @@ export function ModifyRetrospect(props: {
259259
name="introduction"
260260
value={introduction}
261261
onChange={handleChangeIntroduction}
262-
maxLength={20}
262+
maxLength={50}
263263
count
264264
placeholder="회고에 대한 한 줄 설명을 적어주세요"
265265
/>

apps/web/src/component/retrospectCreate/steps/MainInfo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function MainInfo() {
4040
>
4141
<InputLabelContainer id="name">
4242
<Label>회고 명</Label>
43-
<Input value={title} onChange={handleNameChange} maxLength={10} count placeholder="회고 이름을 적어주세요" />
43+
<Input value={title} onChange={handleNameChange} maxLength={30} count placeholder="회고 이름을 적어주세요" />
4444
</InputLabelContainer>
4545

4646
<div>
@@ -49,7 +49,7 @@ export function MainInfo() {
4949
<TextArea
5050
value={introduction}
5151
onChange={handleDescriptionChange}
52-
maxLength={20}
52+
maxLength={50}
5353
count
5454
placeholder="회고에 대한 한 줄 설명을 적어주세요"
5555
/>

apps/web/src/component/space/view/RetrospectEditModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export function RetrospectEditModal({ spaceId, retrospectId, defaultValue, isAna
7171
>
7272
<InputLabelContainer id={`retro-title-${retrospectId}`}>
7373
<Label>회고 명</Label>
74-
<Input value={title} onChange={handleTitleChange} count maxLength={10} />
74+
<Input value={title} onChange={handleTitleChange} count maxLength={30} />
7575
</InputLabelContainer>
7676
<InputLabelContainer id={`retro-intro-${retrospectId}`}>
7777
<Label>한 줄 설명</Label>
@@ -80,7 +80,7 @@ export function RetrospectEditModal({ spaceId, retrospectId, defaultValue, isAna
8080
onChange={handleIntroductionChange}
8181
placeholder="회고에 대한 한 줄 설명을 적어주세요"
8282
count
83-
maxLength={20}
83+
maxLength={50}
8484
/>
8585
</InputLabelContainer>
8686
{!isAnalyzed ? (

0 commit comments

Comments
 (0)