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/#35] BottomSheet 구현 #41

Merged
merged 23 commits into from
Jan 15, 2024
Merged

[FEAT/#35] BottomSheet 구현 #41

merged 23 commits into from
Jan 15, 2024

Conversation

blueme0
Copy link
Member

@blueme0 blueme0 commented Jan 15, 2024

📌 개요

✨ 작업 내용

  • Single List BottomSheet 구현
  • Double List BottomSheet 구현
  • MBTI BottomSheet 구현

✨ PR 포인트

  • 나머지 회원가입 ui 올리기 이전에 머지 필요합니당

📸 스크린샷/동영상

단일 바텀시트

bottomsheet-single-1.mp4
bottomsheet-single-2.mp4

지역선택 바텀시트

bottomsheet-area.mp4

MBTI 선택 바텀시트

bottomsheet-mbti.mp4

@blueme0 blueme0 self-assigned this Jan 15, 2024
@blueme0 blueme0 added 세연 FEAT 새로운 기능 구현 UI UI 관련 작업 labels Jan 15, 2024
Copy link
Collaborator

@Mnseo Mnseo 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 32 to 38

private fun initBottomSheet() {
communityList.addAll(arrayOf("직장인", "학생", "취업준비생"))

val listener: (String) -> Unit = { item ->
viewModel.updateCommunity(item)
bottomSheet?.dismiss()
Copy link
Collaborator

Choose a reason for hiding this comment

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

요기 하드 코딩을 필요시에는 data class로 빼거나 resource로 관리하면 좋을것 같다는 생각이 듭니다 🫡

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

@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.

수고하셨습니다~!

}

private inline fun <reified T : Fragment> navigateTo() {
binding.btnNext.isEnabled = false
inline fun <reified T : Fragment> navigateTo() {
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 202 to 203
if (_signUpProgress.value == SignUpProgress.CurrentJob && _community.value == "직장인"
|| _signUpProgress.value == SignUpProgress.ReadyJob && _community.value == "취업준비생")
Copy link
Collaborator

Choose a reason for hiding this comment

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

조건문이 길어져 가독성이 떨어지는 것 같은데 각각을 BooleanType local 변수로 선언해서 넣어보는 건 어떨까요?

Copy link
Member Author

Choose a reason for hiding this comment

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

좋아요! 아래 코멘트 함께 반영해 수정했습니다 🙃

Comment on lines 95 to 99
jobDetailClassBottomSheet = SingleModalBottomSheet.newInstance("직군 입력", jobDetailList, jobDetailClassListener)
jobDetailClassBottomSheet?.setFocusedImageView(ivShowWhat)
jobDetailClassBottomSheet?.setSelectedItem(viewModel.jobDetailClass.value)
jobDetailClassBottomSheet?.show(childFragmentManager, SingleModalBottomSheet.TAG)
ivShowWhat.setImageResource(R.drawable.ic_arrow_up_l)
Copy link
Collaborator

Choose a reason for hiding this comment

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

apply 함수 써보면 가독성에 좋을 것 같아요

Comment on lines +7 to +11
<data>
<variable
name="vm"
type="com.teumteum.teumteum.presentation.signup.SignUpViewModel" />
</data>
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.

그으랬나요?... BindingFragment에 DataBindingUtil 사용되어 있어서 일단 적용하긴 했습니담 기억이 잘 .. ㅠㅠ

&& _community.value == COMMUNITY_WORKER
val isTraineeInReadyJob = _signUpProgress.value == SignUpProgress.ReadyJob
&& _community.value == COMMUNITY_TRAINEE
if (isWorkerInCurrentJob || isTraineeInReadyJob) _currentStep.value++
Copy link
Collaborator

Choose a reason for hiding this comment

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

굿 저는 개인적으로 선호하는 방향입니다 :)

@blueme0 blueme0 merged commit 61aed84 into main Jan 15, 2024
1 check passed
@yenniekim
Copy link

왕 진짜 짱 멋져요 우리팀 짱 😆 🤍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FEAT 새로운 기능 구현 UI UI 관련 작업 세연
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] BottomSheet 구현
4 participants