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

✨ [FEAT] 회원가입 UI + API 수정 (+ 로그인 UI) #462

Merged
merged 28 commits into from
Sep 20, 2022

Conversation

dev-jungbin
Copy link
Member

@dev-jungbin dev-jungbin commented Sep 13, 2022

🍎 관련 이슈

closed #459

🍎 변경 사항 및 이유

  • 서울여대, 중앙대 추가 및 학교 선택할 시 선택되었던 전공 초기화
  • 전공정보 기입 뷰(SignUpMajorInfoVC) 함수 일부를 Rx로 리팩토링 + UI 최적화(for iPhone SE..)
  • HalfModalVC를 상속받아 회원가입 시에만 사용하는 SignUpModalVC 생성
  • 학교에 따른 이메일 도메인 받아오는 api 연결 및 회원정보 기입 뷰에 적용
  • SignAPI 리팩토링(judge 삭제)
  • 로그인 뷰 아이디 textField placeholder 수정 (고대 이메일 삭제)
  • 안 쓰는 파일 및 주석 정리

🍎 PR Point

HalfModalVC를 상속받아 회원가입 시에만 사용하는 SignUpModalVC 생성

을 진행하면서 HalfModalVC에 있던 프로퍼티들 중에 private을 없앤 게 좀 있는데 은주언니 뭔가 문제될 거 있으면 말해조요!!

  • 진짜 .,. 앱잼 초반에 했던 개똥같은 코드들 ............. 이해하느라 오래걸림 ㅎ
  • 회원가입 및 로그인 관련은 이걸로 끝입니다 우하하

📸 ScreenShot

RPReplay_Final1663073965-1.mov

@dev-jungbin dev-jungbin added 📡 Network 네트워크 통신 시 사용합니다. 📱 View 뷰 개발(디자이닝)시 사용합니다. 🍎 Feature 새로운 기능 개발시 사용합니다. 💡 Refactor 코드 리펙토링 시 사용합니다. ❤️ 정빈걸 ❤️ 정빈이 연 pr, issue에 사용 labels Sep 13, 2022
@dev-jungbin dev-jungbin self-assigned this Sep 13, 2022
Copy link
Member

@hwangJi-dev hwangJi-dev left a comment

Choose a reason for hiding this comment

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

정빈아 고생했어! Rx 사용해서 리펙토링 한거 멋지당 ㅎㅎ

Copy link
Member

@jane1choi jane1choi left a comment

Choose a reason for hiding this comment

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

브랜치 이동해서 스토리보드 확인했는데, IBAction연결 따로 해주면 굳이 SignUpModalVC를 생성해서 HalfModalVC내부를 바꿔주지 않아도 될 것 같아요!
조금 귀찮은 작업이더라도 제가 만든 파일의 용도와 다르게 사용되고 있어서 바꿔주시면 감사하겠습니다!!!
필요하다면 타이틀 변경 메서드는 HalfModalVC()에 만들어두겠습니다!!

Copy link
Member

@jane1choi jane1choi 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 +124 to 127
func setMajorNameLabel(data: String) {
majorNameLabel.text = data
}
}
Copy link
Member

Choose a reason for hiding this comment

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

굳굳!!

Comment on lines +81 to +96
@IBAction func tapFirstMajorSelectBtn(_ sender: Any) {
showMajorSelectModal(enterType: .firstMajor)
}

@IBAction func tapFirstMajorStartBtn(_ sender: Any) {
showMajorSelectModal(enterType: .firstMajorStart)
}

@IBAction func tapSecondMajorSelectBtn(_ sender: Any) {
showMajorSelectModal(enterType: .secondMajor)
}

@IBAction func tapSecondMajorStartBtn(_ sender: Any) {
showMajorSelectModal(enterType: .secondMajorStart)
}

Copy link
Member

Choose a reason for hiding this comment

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

아주 조아용

Comment on lines +107 to +110
case .firstMajor, .secondMajor:
slideVC.vcType = .search
case .firstMajorStart, .secondMajorStart:
slideVC.vcType = .basic
Copy link
Member

Choose a reason for hiding this comment

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

분기처리 와웅..

Comment on lines +44 to +53
private var startList: [String] = []
private var majorList: [MajorInfoModel] = []
private var filteredList: [MajorInfoModel] = []
private var dataSourceForMajor: UITableViewDiffableDataSource<Section, MajorInfoModel>?
private var snapshotForMajor: NSDiffableDataSourceSnapshot<Section, MajorInfoModel>?
private var dataSourceForStart: UITableViewDiffableDataSource<Section, String>?
private var snapshotForStart: NSDiffableDataSourceSnapshot<Section, String>?
var selectMajorDelegate: SendUpdateModalDelegate?
var vcType: ModalType = .basic
var cellType: MajorCellType = .basic
Copy link
Member

Choose a reason for hiding this comment

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

확인했어염~

Comment on lines +93 to +107
private func setMajorTableViewDataSource() {
switch enterType {
case .firstMajor, .secondMajor:
self.dataSourceForMajor = UITableViewDiffableDataSource<Section, MajorInfoModel>(tableView: self.majorTV) { (tableView, indexPath, data) -> UITableViewCell? in
guard let cell = tableView.dequeueReusableCell(withIdentifier: MajorTVC.className, for: indexPath) as? MajorTVC else { preconditionFailure() }
cell.cellType = self.cellType
cell.setData(majorName: data)
return cell
}
case .firstMajorStart, .secondMajorStart:
self.dataSourceForStart = UITableViewDiffableDataSource<Section, String>(tableView: self.majorTV) { (tableView, indexPath, data) -> UITableViewCell? in
guard let cell = tableView.dequeueReusableCell(withIdentifier: MajorTVC.className, for: indexPath) as? MajorTVC else { preconditionFailure() }
cell.cellType = self.cellType
cell.setMajorNameLabel(data: data)
return cell
Copy link
Member

Choose a reason for hiding this comment

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

굳굳~

@dev-jungbin dev-jungbin merged commit eeff855 into develop Sep 20, 2022
@dev-jungbin dev-jungbin deleted the feature/#459-SIgnUp-UI-API branch September 20, 2022 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❤️ 정빈걸 ❤️ 정빈이 연 pr, issue에 사용 🍎 Feature 새로운 기능 개발시 사용합니다. 📡 Network 네트워크 통신 시 사용합니다. 💡 Refactor 코드 리펙토링 시 사용합니다. 📱 View 뷰 개발(디자이닝)시 사용합니다.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

✨ [FEAT] 회원가입 UI + API 수정
3 participants