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

[fix] 3차 스프린트 QA 수정사항 반영 #249

Merged
merged 12 commits into from
Mar 12, 2024

Conversation

DoReMinWoo
Copy link
Member

@DoReMinWoo DoReMinWoo commented Mar 11, 2024

Related issue 🛠

Work Description ✏️

  • 스플래시 - 로그인 이후 앱 재실행시 (온보딩X) 입장방식선택으로 가야됌
  • 온보딩(기존단체입장) - 단체 키워드 정렬 안되어있음(왼쪽에 붙어있어요)
  • 온보딩(신규단체개설) - 안내페이지 갔다 돌아오면 중복확인 스낵바 나옴..
  • 온보딩(신규단체개설) - 안내페이지, 뒤로가기 시 chip 선택해제 등 데이터 저장..
  • 전체적으로 단체명 2줄 확인
  • 데이터 텍소노미 스크롤 시점으로 변경

Screenshot 📸

Uncompleted Tasks 😅

  • 온보딩(기존단체입장) - 직접 입력할 때 → 흰색, 복사할 때 → 검정색
    저빼고 된다니깐 넘어갈게요! 제 실기기 문제인가봐요 ㅠ

To Reviewers 📢

@DoReMinWoo DoReMinWoo added this to the 3차 스프린트 QA milestone Mar 11, 2024
@DoReMinWoo DoReMinWoo self-assigned this Mar 11, 2024
@DoReMinWoo DoReMinWoo requested a review from a team as a code owner March 11, 2024 17:55
@DoReMinWoo DoReMinWoo linked an issue Mar 11, 2024 that may be closed by this pull request
7 tasks
@jihyunniiii
Copy link
Collaborator

[신규 단체 개설] 단체명 중복 검사 후 안내 페이지 갔다가 다시 오면 중복확인 풀려있음

Screen_recording_20240312_082021.mp4

Copy link
Collaborator

@jihyunniiii jihyunniiii 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 64 to 66
viewModel.joinGroupCodeEditText.observe(this) { editText ->
viewModel.joinGroupCodeEditText.flowWithLifecycle(lifecycle).onEach { editText ->
binding.btnJoinGroupCodeNext.isEnabled = editText.isNotEmpty()
}
}.launchIn(lifecycleScope)
Copy link
Collaborator

Choose a reason for hiding this comment

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

collectData로 옮겨주세요

Copy link
Member Author

Choose a reason for hiding this comment

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

어머어머 제가 바꿔놓고 까먹었네요 키키

Copy link
Collaborator

Choose a reason for hiding this comment

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

중복확인 후 안내 페이지 띄웠을 때 중복확인 버튼이 비활성화 안 되어 있는 문제
-> onResume에 btnEditTextCheck.isEnabled 값 세팅해주기

Comment on lines 33 to 41
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
}
}
}
}
Copy link
Collaborator

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
                    }
                }
            }
        }

스코프 함수를 활용해 이렇게 변경할 수도 있을 것 같습니둥

Copy link
Collaborator

Choose a reason for hiding this comment

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

와옹 코드가 엄청 깔끔해지네요 짱이다

Copy link
Member Author

Choose a reason for hiding this comment

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

오홍 이래서 코틀린 문법을 공부해야하는군여....

@jihyunniiii
Copy link
Collaborator

  1. 온보딩(기존단체입장) - 직접 입력할 때 → 흰색, 복사할 때 → 검정색 지은이 실기기에서도 안 되나 확인 -> 잘 되면 넘어갑시둥 ㅋㅋ
  2. 코드리뷰 반영
  3. 단체 키워드 정렬 수정 -> 요거 뭔지 저한테 알려주세요,,

3번까지 다 되면 머지 ㄱㄱ 해도 될 것 같아요.

Copy link
Collaborator

@HAJIEUN02 HAJIEUN02 left a 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()
Copy link
Collaborator

Choose a reason for hiding this comment

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

여기서도 distinctUntilChange를 안 쓰면 안 되는 문제가 생겼었나 보네요,, 무슨 문제였나요??

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 33 to 41
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
}
}
}
}
Copy link
Collaborator

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()
Copy link
Collaborator

Choose a reason for hiding this comment

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

저는 여기 authViewModel.getUserInfo() 다음에 navigateToOnboarding()을 넣어주는 방식으로 구현했었는데
collectData에서 서버통신 성공여부 검사하고 넘어가는 게 훨씬 안정적이네요! 좋은 로직 같아용

Comment on lines +35 to 42
override fun onResume() {
super.onResume()

binding.etNewGroupInputGroupName.btnEditTextCheck.isEnabled =
newGroupViewModel.isNewGroupBtnCheckName.value
}

private fun addListeners() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

좋네요 ~

@jihyunniiii jihyunniiii merged commit efc0c25 into develop Mar 12, 2024
1 check passed
@jihyunniiii jihyunniiii deleted the fix-3rd-sprint-qa-minwoo branch March 12, 2024 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[fix] 3차 스프린트 QA 수정사항 반영
3 participants