-
Notifications
You must be signed in to change notification settings - Fork 2
refactor: QA 텍스트 수정 #330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: QA 텍스트 수정 #330
Changes from all commits
d3bdb80
d603705
4fcb531
a613b97
f481401
0df1cbb
74d0ecb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| "use client"; | ||
|
|
||
| import Txt from "@/components/common/Txt.component"; | ||
| import { MAX_TEXT_LENGTH } from "@/src/constants"; | ||
| import { | ||
| ApplicationNode, | ||
| ApplicationTextarea, | ||
|
|
@@ -15,11 +14,11 @@ interface ApplicationTextareaProps { | |
|
|
||
| const ApplicationTexarea = ({ data }: ApplicationTextareaProps) => { | ||
| const textData = data as ApplicationTextarea; | ||
| const maxLength = ['deep', 'restoration', 'studyPlan'].includes(textData.name) ? 500 : 800; | ||
| const maxLength = ['deep', 'failure', 'studyPlan'].includes(textData.name) ? 500 : 800; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| const [value, setValue] = useLocalStorage(textData.name, ""); | ||
|
|
||
| const onInput = (e: FormEvent<HTMLTextAreaElement>) => { | ||
| setValue(e.currentTarget.value.slice(0, MAX_TEXT_LENGTH)); | ||
| setValue(e.currentTarget.value.slice(0, maxLength)); | ||
| }; | ||
|
|
||
| return ( | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -129,7 +129,6 @@ export const APPLICATION: ApplicationQuestion[] = [ | |
| }, | ||
| { | ||
| id: 3, | ||
|
|
||
| title: "전공을 입력해주세요.", | ||
| subtitle: "복수 전공과 부전공은 선택 입력사항입니다.", | ||
| direction: "horizontal", | ||
|
|
@@ -169,7 +168,7 @@ export const APPLICATION: ApplicationQuestion[] = [ | |
| title: | ||
| "학업 외에 병행하고 있거나 향후 계획 중에 있는 활동이 있으시다면 ‘꼭’ 서술해 주세요.", | ||
| subtitle: | ||
| "(동아리, 연구실, 아르바이트, 스터디, 교환학생 등), 없을 경우, 없음으로 기재해 주세요. 기재하지 않고 추후 적발시 최종 합불 논의에 불이익이 있을 수 있습니다.)", | ||
| "(동아리, 연구실, 아르바이트, 스터디, 교환학생 등)\n 없을 경우, 없음으로 기재해 주세요. 기재하지 않고 추후 적발시 최종 합불 논의에 불이익이 있을 수 있습니다.", | ||
| }, | ||
| { | ||
| name: "channel", | ||
|
|
@@ -201,16 +200,16 @@ export const APPLICATION_TIMELINE: ApplicationTimeline = { | |
| seperate: 30, | ||
| time: [ | ||
| { | ||
| startTime: new Date(2025, 8, 15, 10, 0, 0), | ||
| endTime: new Date(2025, 8, 15, 20, 30, 0), | ||
| startTime: new Date(2026, 2, 17, 10, 0, 0), | ||
| endTime: new Date(2026, 2, 17, 20, 30, 0), | ||
| }, | ||
| { | ||
| startTime: new Date(2025, 8, 16, 10, 0, 0), | ||
| endTime: new Date(2025, 8, 16, 20, 30, 0), | ||
| startTime: new Date(2026, 2, 18, 10, 0, 0), | ||
| endTime: new Date(2026, 2, 18, 20, 30, 0), | ||
| }, | ||
| { | ||
| startTime: new Date(2025, 8, 17, 10, 0, 0), | ||
| endTime: new Date(2025, 8, 17, 20, 30, 0), | ||
| startTime: new Date(2026, 2, 19, 10, 0, 0), | ||
| endTime: new Date(2026, 2, 19, 20, 30, 0), | ||
| }, | ||
|
Comment on lines
201
to
213
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| ], | ||
| disableTime: [], | ||
|
|
@@ -226,8 +225,8 @@ export const APPLICATION_TIMELINE: ApplicationTimeline = { | |
| * @property {number} seconds - 1차 모집 시작 시간(초) (0-59) | ||
| */ | ||
| export const START_DATE = { | ||
| year: 2025, | ||
| month: 9, | ||
| year: 2026, | ||
| month: 3, | ||
| date: 1, | ||
| hours: 0, | ||
| minutes: 0, | ||
|
|
@@ -244,8 +243,8 @@ export const START_DATE = { | |
| * @property {number} seconds - 1차 모집 마감 시간(초) (0-59) | ||
| */ | ||
| export const END_DATE = { | ||
| year: 2025, | ||
| month: 9, | ||
| year: 2026, | ||
| month: 3, | ||
| date: 10, | ||
| hours: 23, | ||
| minutes: 59, | ||
|
|
@@ -259,9 +258,9 @@ export const END_DATE = { | |
| * @property {number} date - 1차 합격자 공지 일 (1-31) | ||
| */ | ||
| export const FIRST_NOTIFICATION_DATE = { | ||
| year: 2025, | ||
| month: 9, | ||
| date: 12, | ||
| year: 2026, | ||
| month: 3, | ||
| date: 14, | ||
| }; | ||
|
|
||
| /** | ||
|
|
@@ -271,7 +270,7 @@ export const FIRST_NOTIFICATION_DATE = { | |
| * @property {number} date - 최종 모집 마감 일 (1-31) | ||
| */ | ||
| export const FINAL_DATE = { | ||
| year: 2025, | ||
| month: 9, | ||
| date: 22, | ||
| year: 2026, | ||
| month: 3, | ||
| date: 23, | ||
| }; | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -176,7 +176,7 @@ export const needValidatePath = [ | |||||
| "/kanban", | ||||||
| ]; | ||||||
|
|
||||||
| export const MAX_TEXT_LENGTH = 1000; | ||||||
| export const MAX_BOOLEAN_TEXT_LENGTH = 800; | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| export const CHARACTERS = { | ||||||
| DOUBLE_QUOTE: '"', | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
템플릿 리터럴을 사용하면 여러 줄의 문자열과 변수를 더 쉽게 조합할 수 있어 가독성이 향상됩니다. 현재 문자열 연결(+) 방식 대신 템플릿 리터럴을 사용하는 것을 제안합니다.