Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@leeJooHaem
Copy link
Collaborator

@leeJooHaem leeJooHaem commented Feb 27, 2023

  • 브랜치명, 브랜치 알맞게 설정
  • Reviewer, Assignees, Label, Milestone, Issue(PR 작성 후에) 붙이기
  • PR이 승인된 경우 해당 브랜치는 삭제하기

📌 내용

3h

join

  • 에러 처리에 필요한 변수명들을 상수화 해놨습니다.
  • Feat 이전으로 돌아가도 정보가 남아있습니다. (defualt 값 설정 :: 이메일, 비밀번호, 프로필사진, 닉네임, 생일, 성별)

join/user-profile

  • Fix 닉네임 중복 이후에 다음 단계로 넘어갈 수 있습니다.

join/agree

  • Feat 동의 페이지에서, 필수 조건들에 기본적으로 체크 처리를 해놓았습니다. (토스 앱에서 "필수"인 값에 먼저 체크를 해놓고, "선택" 부분만 사용자가 체크하도록 UI/UX를 구성해놓았는데, 편리한 것 같아서 해봤어요 하하😇😇 이거는 dev 반영 이후에 기획측 확인을 받으려구요!!)
  • Fix 회원가입 POST 통신이 안됐는데(창을 나갔다와서 값이 사라진 상황이라던가 하는... , 로그인 페이지로 넘어가는 현상이 있어서, alert로 에러 메시지를 띄워주도록 구성했어요. 이것도 이후에 기획측 확인을 받을게요!!
    • recoil persist 같은 로컬스토리지 저장이 필요할까도 싶어요.)

📸 스크린샷

@leeJooHaem leeJooHaem requested a review from NYeonK February 27, 2023 03:31
@leeJooHaem leeJooHaem linked an issue Feb 27, 2023 that may be closed by this pull request
7 tasks
@leeJooHaem leeJooHaem changed the title Fix/#215 keep join infos Feat/#215 keep join infos Feb 27, 2023
@leeJooHaem leeJooHaem changed the title Feat/#215 keep join infos Fix/#215 keep join infos Feb 27, 2023
Copy link
Contributor

@NYeonK NYeonK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

믓찌다오빠야!!!!!!!!!!!!!!!!

Comment on lines 30 to 37
if (year === time.getFullYear() && monthResult >= time.getMonth() + 1 && day >= time.getDate()) {
errorMsg("birthValid");
handleErrorMsg(JOIN_ERROR_KEY.birth.valid);
} else if (year > time.getFullYear()) {
errorMsg("birthValid");
handleErrorMsg(JOIN_ERROR_KEY.birth.valid);
} else if (age < 14) {
errorMsg("birthCheck");
handleErrorMsg(JOIN_ERROR_KEY.birth.check);
} else {
errorMsg("");
handleErrorMsg(JOIN_ERROR_KEY.Okay);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

에러메세지가 상수로 넣으니까 보기에 더 깔끔해진 것 같아요!!

<St.NickNameInputForm
id="nickname"
placeholder="홍길동"
defaultValue={nickName}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

변하는 값이면 defaultValue을 써야하는구나?!@!@ 처음 알았다!!!

Comment on lines +3 to +11
nickName: {
input: "nickNameInput",
// check: "닉네임 중복 확인을 해주세요",
valid: "nickNameValid",
fail: "nickNameFail",
// success: "사용가능한 닉네임입니다",
},
birth: {
// input: "생년월일을 입력해주세요",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요기 주석 필요해서 남겨둔걸까요!?!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ALERT_MESSAGE 랑 키가 align 되어야 어색하지 않으려나 했는데,
일단 해당 라인들은 제거할게요 !!


<St.SubTitle>성별(선택)</St.SubTitle>
<ProfileGender isSelected={isSelected} setIsSelected={setIsSelected} />
<ProfileGender gender={gender} setGender={setGender} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isSelected보다 더 좋은 변수명이네요ㅎㅎ

});

const [isPickedItems, setIsPickedItems] = useState<boolean[]>([false, false, false, false, false]);
const [isPickedItems, setIsPickedItems] = useState<boolean[]>([false, true, true, true, false]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이건 너무 센스있다~!~!!! ><

Comment on lines +21 to +32
<Outlet
context={{
userInfoFormDataForPost: userInfoFormData,
formDataEmailValue: userInfoFormData.get(JOIN_FORM_DATA_KEY.Email) ?? "",
formDataPasswordValue: userInfoFormData.get(JOIN_FORM_DATA_KEY.Password) ?? "",
formDataNicknameValue: userInfoFormData.get(JOIN_FORM_DATA_KEY.Nickname) ?? "",
formDataBirthdayValue: userInfoFormData.get(JOIN_FORM_DATA_KEY.Birthday) ?? "",
formDataGenderValue: userInfoFormData.get(JOIN_FORM_DATA_KEY.Gender) ?? "",
formDataImgFile: userInfoFormData.get(JOIN_FORM_DATA_KEY.ImgFile),
setUserInfoFormData,
}}
/>
Copy link
Contributor

@NYeonK NYeonK Feb 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아쥬 굿!~!! formData.get도 배워갑니다아ㅎㅎ

@joohaem joohaem merged commit 1bb2333 into release/1.3 Feb 28, 2023
@joohaem joohaem deleted the feat/#215-keep_join_infos branch February 28, 2023 12:52
@joohaem joohaem mentioned this pull request Feb 28, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ Join ] 회원가입 로직 수정

4 participants