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/#357] Profile / 프로필 수정 뷰 중고딩 부분 구현 #366

Merged
merged 23 commits into from
Feb 5, 2024

Conversation

Marchbreeze
Copy link
Member

⛳️ Work Description

  • 대딩, 중고딩 서버통신 설정
  • 카톡 프로필 동기화 서버통신 설정
  • 프로필 수정 가능 서버통신 설정
  • 프로필 조회 뷰 하나로 통합
  • 검색 바텀시트 무한스크롤 적용

📸 Screenshot

KakaoTalk_Video_2024-02-02-18-28-09.mp4

📢 To Reviewers

  • 구현 영상은 프로필 수정 가능 여부 확인 주석처리 달아두고 햇삼요~
  • 민주도 제 바텀시트 참고해서 온보딩 학교 검색에 무한스크롤 달면 좋을듯 ~~~

@Marchbreeze Marchbreeze added FEAT ✨ 새로운 기능 구현 PULL REQUEST 🚀 pull reqeust 날리기 상호 🍀 Sangho's Task labels Feb 2, 2024
@Marchbreeze Marchbreeze added this to the 3차 스프린트 개발 milestone Feb 2, 2024
@Marchbreeze Marchbreeze self-assigned this Feb 2, 2024
@Marchbreeze Marchbreeze requested a review from a team as a code owner February 2, 2024 09:29
Copy link
Contributor

@minju1459 minju1459 left a comment

Choose a reason for hiding this comment

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

대학생 부분이랑 전반적인 흐름이 비슷하네용 무한 스크롤 부분 참고하겠습니당 LGTM ~~~~~

object Success : ImageChangeState()
object NotChanged : ImageChangeState()
object Error : ImageChangeState()
}
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.

커스텀 스테이트 굿굿티비!!!

Copy link
Member

@b1urrrr b1urrrr left a comment

Choose a reason for hiding this comment

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

굿굿티비 고생하셨습니다!!!

object Success : ImageChangeState()
object NotChanged : ImageChangeState()
object Error : ImageChangeState()
}
Copy link
Member

Choose a reason for hiding this comment

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

커스텀 스테이트 굿굿티비!!!

if (viewModel.grade.value != grade.toString()) {
viewModel.grade.value = grade.toString()
viewModel.isChanged = true
(activity as SchoolProfileModActivity).checkIsGradeTextNone()
Copy link
Member

Choose a reason for hiding this comment

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

저도 이전 앱잼 멘토분께 받았던 피드백인데, as를 활용하여 강제 타입 변환을 시키는 것은 crash를 야기할 수 있어 위험할 수 있는 습관이라고 합니다! 대체할 수 있는 방법을 생각해보면 어떨까요?

EX) 고차함수, 공유 뷰모델

Copy link
Member Author

Choose a reason for hiding this comment

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

이것도 리팩토링하면서 고쳐보겠습니다 ! 액티비티를 액티비티로 타임 지정을 해주는 방법이라 괜찮다고 생각했는데, 혹시 모를 오류가 발생할 수도 있겠군요..!

_getSchoolListState.value = UiState.Empty
}

fun getUserDataFromServer() {
Copy link
Member

Choose a reason for hiding this comment

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

민주 PR에도 달았던 코리를 데려왔습니다!
뷰모델은 리포지토리의 함수가 서버 통신과 관련되었는지 로컬 디비와 관련되었는지 알 필요가 없기 때문에 네이밍에도 FromServer 같은 건 빼주는 게 추상화의 효과도 극대화되고 유지보수성이 향상되지 않을까요?

꼭 써주고 싶다면 차라리 리포지토리 함수에 명시하는 게 좋을 것 같다는 생각입니다...

Copy link
Member Author

Choose a reason for hiding this comment

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

아핫...! 함수 만들때 우리 서버랑 카카오랑 구분하려고 사용하던 습관이었슴니닷
담에 한번에 쏵 리팩토링 해볼겡요 ㅎㅎ

@Marchbreeze Marchbreeze merged commit f683d65 into develop Feb 5, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FEAT ✨ 새로운 기능 구현 PULL REQUEST 🚀 pull reqeust 날리기 상호 🍀 Sangho's Task
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[FEAT] Profile / 프로필 수정 뷰 중고딩 부분 구현
3 participants