-
Notifications
You must be signed in to change notification settings - Fork 2
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] 3차 스프린트 QA 수정사항 반영 #249
Conversation
[신규 단체 개설] 단체명 중복 검사 후 안내 페이지 갔다가 다시 오면 중복확인 풀려있음 Screen_recording_20240312_082021.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
쏘 굿! 안 되는 건 이제 확인할게염
viewModel.joinGroupCodeEditText.observe(this) { editText -> | ||
viewModel.joinGroupCodeEditText.flowWithLifecycle(lifecycle).onEach { editText -> | ||
binding.btnJoinGroupCodeNext.isEnabled = editText.isNotEmpty() | ||
} | ||
}.launchIn(lifecycleScope) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
collectData로 옮겨주세요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
어머어머 제가 바꿔놓고 까먹었네요 키키
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
중복확인 후 안내 페이지 띄웠을 때 중복확인 버튼이 비활성화 안 되어 있는 문제
-> onResume에 btnEditTextCheck.isEnabled 값 세팅해주기
if (newGroupViewModel.newGroupKeywordValue.value.isNotEmpty()) { | ||
for (i in 0 until binding.cgNewGroupKeyword.childCount) { | ||
val childChip = binding.cgNewGroupKeyword.getChildAt(i) as Chip | ||
if (childChip.text == newGroupViewModel.newGroupKeywordValue.value) { | ||
childChip.isChecked = true | ||
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with(newGroupViewModel.newGroupKeywordValue.value) {
if (isNotEmpty()) {
binding.cgNewGroupKeyword.forEach { childChip ->
(childChip as Chip).let { chip ->
if (chip.text == this) chip.isChecked = true
}
}
}
}
스코프 함수를 활용해 이렇게 변경할 수도 있을 것 같습니둥
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
와옹 코드가 엄청 깔끔해지네요 짱이다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오홍 이래서 코틀린 문법을 공부해야하는군여....
3번까지 다 되면 머지 ㄱㄱ 해도 될 것 같아요. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨어요ㅜ 근데 [ 온보딩(기존단체입장) - 직접 입력할 때 → 흰색, 복사할 때 → 검정색 ] 이게 진짜 먼 뜻이져??
SNACKBAR_BOTTOM_MARGIN, | ||
SnackbarType.WARNING | ||
newGroupViewModel.newGroupCheckNameState.flowWithLifecycle(lifecycle) | ||
.distinctUntilChanged() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기서도 distinctUntilChange를 안 쓰면 안 되는 문제가 생겼었나 보네요,, 무슨 문제였나요??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 지도뷰랑 같은 문제염 ㅜㅜ 위에 액티비티 떴다가 사라지면 값이 같은데도 방출쓰
if (newGroupViewModel.newGroupKeywordValue.value.isNotEmpty()) { | ||
for (i in 0 until binding.cgNewGroupKeyword.childCount) { | ||
val childChip = binding.cgNewGroupKeyword.getChildAt(i) as Chip | ||
if (childChip.text == newGroupViewModel.newGroupKeywordValue.value) { | ||
childChip.isChecked = true | ||
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
와옹 코드가 엄청 깔끔해지네요 짱이다
} | ||
|
||
private fun loadSplashScreen() { | ||
lifecycleScope.launch { | ||
delay(SPLASH_SCREEN_DELAY_TIME) | ||
navigateToAuth() | ||
if (authViewModel.isLocalToken()) { | ||
if (authViewModel.isLocalGroupId()) navigateToMain() else authViewModel.getUserInfo() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저는 여기 authViewModel.getUserInfo() 다음에 navigateToOnboarding()을 넣어주는 방식으로 구현했었는데
collectData에서 서버통신 성공여부 검사하고 넘어가는 게 훨씬 안정적이네요! 좋은 로직 같아용
override fun onResume() { | ||
super.onResume() | ||
|
||
binding.etNewGroupInputGroupName.btnEditTextCheck.isEnabled = | ||
newGroupViewModel.isNewGroupBtnCheckName.value | ||
} | ||
|
||
private fun addListeners() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
좋네요 ~
Related issue 🛠
Work Description ✏️
Screenshot 📸
Uncompleted Tasks 😅
저빼고 된다니깐 넘어갈게요! 제 실기기 문제인가봐요 ㅠ
To Reviewers 📢