Commit 096b2fd
[1단계 - 페이먼츠] 카멜(진나영) 미션 제출합니다. (woowacourse#435)
* feat: 페어 프로그래밍 초기 세팅
Co-authored-by: dev-dino22 <[email protected]>
* docs: 미션의 기능목록, 설계 구조 등 작성
Co-authored-by: dev-dino22 <[email protected]>
* style: 전역 스타일링 적용
Co-authored-by: dev-dino22 <[email protected]>
* feat: Input 컴포넌트 생성
Co-authored-by: dev-dino22 <[email protected]>
* feat: InputForm 컴포넌트 생성
Co-authored-by: dev-dino22 <[email protected]>
* feat: 카드 번호 입력 컴포넌트 작성
Co-authored-by: dev-dino22 <[email protected]>
* feat: 카드 유효기간 입력 컴포넌트 작성
Co-authored-by: dev-dino22 <[email protected]>
* feat: 카드 CVC 입력 컴포넌트 작성
Co-authored-by: dev-dino22 <[email protected]>
* feat: 카드 입력 form 컴포넌트 작성
Co-authored-by: dev-dino22 <[email protected]>
* refactor: InputForm이 Input을 children으로 받도록 리팩토링
Co-authored-by: dev-dino22 <[email protected]>
* style: 전역 변수로 관리하는 색상 추가
Co-authored-by: dev-dino22 <[email protected]>
* feat: 카드 브랜드 로고 이미지 생성
Co-authored-by: dev-dino22 <[email protected]>
* style: 카드 입력 form 컴포넌트 스타일 적용
Co-authored-by: dev-dino22 <[email protected]>
* style: 기본 스타일을 초기화하는 파일 수정
Co-authored-by: dev-dino22 <[email protected]>
* style: 카드 입력 컴포넌트의 스타일 수정
Co-authored-by: dev-dino22 <[email protected]>
* feat: 카드 정보를 입력하는 UI를 렌더링하는 함수 생성
Co-authored-by: dev-dino22 <[email protected]>
* style: 카드 정보를 입력하는 UI에 스타일 추가
Co-authored-by: dev-dino22 <[email protected]>
* style: 카드 입력 form의 스타일 조정
Co-authored-by: dev-dino22 <[email protected]>
* feat: 사용자가 입력한 카드 정보를 프리뷰에 렌더링하는 기능 구현
Co-authored-by: dev-dino22 <[email protected]>
* feat: 카드 번호와 유효기간 정보를 상태관리 하도록 코드 추가
Co-authored-by: dev-dino22 <[email protected]>
* refactor: 사용자 카드 정보 등록 페이지가 렌더링되도록 app 수정
Co-authored-by: dev-dino22 <[email protected]>
* feat: 사용자 입력값의 예외 처리 로직 생성
Co-authored-by: dev-dino22 <[email protected]>
* feat: 사용자 입력값에 대한 피드백 메시지 렌더링 로직 추가
Co-authored-by: dev-dino22 <[email protected]>
* refactor: 유효기간 검증 로직 수정
Co-authored-by: dev-dino22 <[email protected]>
* feat: 카드 유효기간 검증 로직 추가
Co-authored-by: dev-dino22 <[email protected]>
* feat: 카드 CVC 검증 로직 추가
Co-authored-by: dev-dino22 <[email protected]>
* feat: 카드 번호 검증 로직 추가
Co-authored-by: dev-dino22 <[email protected]>
* docs: 구현한 기능 목록 체크
* refactor: 상태 변경 함수의 타입 추가
* style: storybook에 css 적용
Co-authored-by: dev-dino22 <[email protected]>
* refactor: 불필요한 props 제거
Co-authored-by: dev-dino22 <[email protected]>
* test: storybook 비주얼 테스트 추가
Co-authored-by: dev-dino22 <[email protected]>
* fix: 웹 배포 환경에 따라 이미지 경로 수정
* refactor: 불필요한 fragment 제거
* refactor: 카드 정보 상수 분리
* refactor: checkBrand 조건문 startsWith()로 가독성 개선
* refactor: 다시 유효한 값 입력 시 오류 스타일 삭제
* refactor: 유효기간 month, year로 나누고 전용 validator 분리
* refactor: 전역 상태 대신 ref로 유효기간 검증 관리
* refactor: 카드 유효기간입력 컴포넌트의 inputs를 map 함수 렌더링으로 변경
* refactor: CardExpirationDateInput 의 onChangeHandler 함수/상수 분리 및 추상화
* refactor: 카드프리뷰의 let 을 사용한 함수 내 상태관리에서 useMemo()훅 활용
* refactor: Input 컴포넌트에서 이제 불필요한 forwardRef 제거 및 props 전개 방식으로 변경
* chore: Input컴포넌트 폴명 파스칼케이스 수정을 위한 중간임시 폴더명
* feat: input 폴더명 카멜케이스 수정
* refactor: validateCardInput.ts 의 숫자문자열 검사 메서드명 수정
* refactor: validateCardInput.ts의 반환값 에러결과불리언객체로 통일
* refactor: Input 컴포넌트는 isValid 프롭을 전달받고 각 유효 상태를 사용처에서 제어하도록 변경 및 에러메세지 상수분리와 에러메세지 함수 작성
* chore: 불필요한 import 문 제거
---------
Co-authored-by: Jeongeun Lee <[email protected]>
Co-authored-by: dev-dino22 <[email protected]>1 parent bd4402c commit 096b2fd
File tree
23 files changed
+804
-0
lines changed- .storybook
- src
- components
- common/inputForm
- input
- paymentInputPage
- cardInputForm
- cardInput
- constants
- validator
- cardPreview
- constants
- stories
23 files changed
+804
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
0 commit comments