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/#45] Argument 친구 목록 재사용 추가 #80

Merged
merged 15 commits into from
Jan 23, 2024

Conversation

Mnseo
Copy link
Collaborator

@Mnseo Mnseo commented Jan 23, 2024

📌 개요

✨ 작업 내용

  • mypage -> recommend navGraph에 id argument 추가

user(사용자) 의 id는 0이고 0이 아닌 다른 id는 다른 사용자로 인식됩니다

  • 다른 사용자의 mypage & recommend 추가
  • 다른 사용자의 api 전부 연결 완료
  • editCard flowRow() 추가
  • signUpActivity의 Fragment로 이동하여 원래 존재하는 interest 선택된 상태로 init 추가

📸 스크린샷/동영상

…into feature/#24-moimcreate-ui

# Conflicts:
#	core/data/src/main/java/com/teumteum/data/repository/UserRepositoryImpl.kt
#	core/data/src/main/java/com/teumteum/data/service/UserService.kt
#	core/domain/src/main/java/com/teumteum/domain/repository/UserRepository.kt
@Mnseo Mnseo self-assigned this Jan 23, 2024
@Mnseo Mnseo added 민서 FEAT 새로운 기능 구현 FIX 버그 및 오류 해결 labels Jan 23, 2024
Copy link
Collaborator

@unam98 unam98 left a comment

Choose a reason for hiding this comment

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

고생했슈

val userInfoState by viewModel.userInfoState.collectAsState()

val topbarText = when (val state = userInfoState) {
is UserInfoUiState.Success -> "${state.data.name}의 소개서"
Copy link
Collaborator

Choose a reason for hiding this comment

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

이 부분 스트링 리소스로 빼면 좋을 것 같아요!

Comment on lines +45 to +48
viewModel.loadFriendInfo(userId.toLong())
viewModel.getUserOpenMeeting(userId.toLong())
viewModel.getUserClosedMeeting(userId.toLong())
viewModel.loadFriends(userId.toLong())
Copy link
Collaborator

Choose a reason for hiding this comment

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

run 쓰면 더 깔끔해질 수 있을 것 같아요~!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

저도 같은걸 두번씩 써야하나 싶었는데 run이 있었군요 🫡 감삼다

if (userId != -1L) {
viewModelScope.launch {
settingRepository.getMyPageOpenMeeting(userId)
.onSuccess { meetings ->
Copy link
Collaborator

Choose a reason for hiding this comment

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

여기 "mettings"는 쓰이는 곳이 없는 것 같은데 맞나요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

아하 정답이네용 왜냐면 이전에 했던걸 긁어온건데 거기랑 돌아오는 result 값이 달랐거든요 . . .수정하도록 하겠습니다

@Mnseo Mnseo merged commit 1911808 into main Jan 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FEAT 새로운 기능 구현 FIX 버그 및 오류 해결 민서
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants