Skip to content
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

Fix/igw 64/127 고용주필수입력사항적용 #156

Merged
merged 13 commits into from
Jan 20, 2025

Conversation

MrMirror21
Copy link
Contributor

@MrMirror21 MrMirror21 commented Jan 19, 2025

Related issue 🛠

#127

Work Description ✏️

  • 유학생/고용주 서류작성 관련 QC 중
    • 공고 등록 및 계약서 작성 시 시급 입력 불가 오류 수정
    • 누락된 사업자등록번호 입력 ui 변경 적용
    • 서류 최종 6단계 이후 서류 확인하러 이동 시 재제출이 가능했던 현상 수정
    • 한글 관련 파일 코드 제거
    • 서류작성 중 고용주가 작성 내용이 없어도 유학생에게 제출이 가능했던 현상 수정
  • 최저시급 2025년 기준으로 업데이트, 시급 입력 시 최저시급 미만일 경우 시각적 표시

Uncompleted Tasks 😅

  • 유학생이 이미 수정했던 문서에 대해 재수정을 요청했을때 생기는 서버 에러를 백엔드 측이 작업중
  • 시급 유효성 검사로 인한 Input style 변경이 불안정함

To Reviewers 📢

@MrMirror21 MrMirror21 added 🐞 BugFix Something isn't working ✨ Feature New feature or request 🎨 Html&CSS Markup & Styles 📭 API Server API communication labels Jan 19, 2025
@MrMirror21 MrMirror21 requested a review from naarang January 19, 2025 20:15
@MrMirror21 MrMirror21 self-assigned this Jan 19, 2025
Copy link
Contributor

@naarang naarang left a comment

Choose a reason for hiding this comment

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

수고하셨습니다~!!

@@ -18,6 +18,7 @@ type InputProps = {
placeholder: string; // 플레이스홀더 텍스트
value: string | null; // 입력 필드의 현재 값
onChange: (value: string) => void; // 입력값 변경 시 호출될 함수
onBlur?: (value: string) => void; // 입력 필드에서 포커스가 빠져나갈 때 호출될 함수 (선택적)
Copy link
Contributor

Choose a reason for hiding this comment

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

props가 점점 많아지는게 웃프네요😂

Copy link
Contributor Author

Choose a reason for hiding this comment

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

안그래도 요즘 스터디에서 컴포넌트나 모듈 분리의 기준에 대한 내용을 진행했었는데, 적절하지 않은 예시가 딱 이 컴포넌트더라구요.. 🥲 좀 더 세부적인 레벨의 요소들로 분리해서 재조립해야하나 싶어요

Copy link
Contributor

Choose a reason for hiding this comment

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

이 부분 한 번 얘기해보죠!!ㅎㅎㅎ 관련 스터디 내용도 나중에 알려주세용!😉

@@ -86,7 +88,7 @@ export const validateEmployerInformation = (
// 시급 유효성 검사(0이 아닌지)
if (
!info.hourly_rate ||
extractNumbersAsNumber(String(info.hourly_rate)) === 0
extractNumbersAsNumber(String(info.hourly_rate)) < MINIMUM_HOURLY_RATE
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
Contributor Author

Choose a reason for hiding this comment

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

저도 연도마다 시급이 변해야하다보니 상수화가 좋다고 생각했습니다~👍

setWarning,
}: {
value: string;
setWarning: React.Dispatch<React.SetStateAction<boolean>>;
Copy link
Contributor

Choose a reason for hiding this comment

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

제가 알기로 React.Dispatch 이렇게 바로 넘기는 것보다 (value:string) => void 형식의 함수를 넘기는 것이 더 안정적이다고 알고 있어요!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

이전엔 단순히 작성하기 쉬워서 순수 함수 타입을 넘긴다고 생각했는데, 가독성이나 결합도 측면에서도 확실히 더 좋은 방식이었네요. 수정하겠습니다~

@MrMirror21 MrMirror21 merged commit 17911e8 into main Jan 20, 2025
@MrMirror21 MrMirror21 deleted the fix/IGW-64/127-고용주필수입력사항적용 branch January 24, 2025 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📭 API Server API communication 🐞 BugFix Something isn't working ✨ Feature New feature or request 🎨 Html&CSS Markup & Styles
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants