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

Feature refactor signup #157

Merged
merged 24 commits into from
Jul 19, 2023
Merged

Feature refactor signup #157

merged 24 commits into from
Jul 19, 2023

Conversation

jihyeonAnAn
Copy link
Contributor

이슈 코드

📸 스크린샷

🍀 관련 이슈

우선 navigation으로 변경했고 navigation viewmodel 사용하면서 추가 수정 예정

@jihyeonAnAn jihyeonAnAn added 🐣 안지현 안지현이 했다 ✨ Feature 기능 개발 labels Jul 14, 2023
@jihyeonAnAn jihyeonAnAn requested a review from a team as a code owner July 14, 2023 02:07
Copy link
Member

@l2hyunwoo l2hyunwoo left a comment

Choose a reason for hiding this comment

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

아직 수정중인 것 같은데...리뷰 답니당

app/build.gradle.kts Outdated Show resolved Hide resolved
@@ -16,98 +23,167 @@ import dagger.hilt.android.AndroidEntryPoint
class SignUpActivity : AppCompatActivity() {

private val binding by viewBinding(ActivitySignUpBinding::inflate)
//TODO 수정 필요
Copy link
Member

Choose a reason for hiding this comment

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

👍🏻

@l2hyunwoo
Copy link
Member

아직 코드 수정중인 것 같아서 Draft 걸겠습니다 @jihyeonAnAn

@l2hyunwoo l2hyunwoo marked this pull request as draft July 14, 2023 02:13
Copy link
Member

@kez-lab kez-lab 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 82 to 58
when (currentFragment) {
SIGN_UP_FIRST_FRAGMENT -> {
navController.navigate(R.id.action_signUpFirstFragment_to_signUpSecondFragment)
}
SIGN_UP_SECOND_FRAGMENT -> {
navController.navigate(R.id.action_signUpSecondFragment_to_signUpThirdFragment)
}
SIGN_UP_THIRD_FRAGMENT -> {
val intent = Intent(this, StartPophoryActivity::class.java)
startActivity(intent)
}
}
Copy link
Member

Choose a reason for hiding this comment

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

워후 enum과 when문이라니 이젠 절정 고수의 반열에 들었구나 지현아...

Copy link
Contributor

Choose a reason for hiding this comment

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

미쳤다 돌았따

@@ -66,6 +67,7 @@ class SignUpFirstFragment : Fragment() {
doAfterTextChanged {

signUpViewModel.setRealName(it.toString())
signUpViewModel.setButtonState(!binding.editTvName.text.isNullOrEmpty() && !binding.tvErrorMessage.isVisible)
Copy link
Member

Choose a reason for hiding this comment

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

여기 Boolean값을 반환하는 함수로 따로 빼면 가독성이 더 좋아질 것 같아요

Copy link
Contributor

@librarywon librarywon 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 82 to 58
when (currentFragment) {
SIGN_UP_FIRST_FRAGMENT -> {
navController.navigate(R.id.action_signUpFirstFragment_to_signUpSecondFragment)
}
SIGN_UP_SECOND_FRAGMENT -> {
navController.navigate(R.id.action_signUpSecondFragment_to_signUpThirdFragment)
}
SIGN_UP_THIRD_FRAGMENT -> {
val intent = Intent(this, StartPophoryActivity::class.java)
startActivity(intent)
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

미쳤다 돌았따

Comment on lines 97 to 96
companion object {
const val SIGN_UP_FIRST_FRAGMENT = "SignUpFirstFragment"
const val SIGN_UP_SECOND_FRAGMENT = "SignUpSecondFragment"
const val SIGN_UP_THIRD_FRAGMENT = "SignUpThirdFragment"
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Fragment관리 멋져요!

android:id="@+id/viewpager"
<androidx.fragment.app.FragmentContainerView
android:id="@+id/nav_host_fragment"
Copy link
Contributor

Choose a reason for hiding this comment

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

nav_sign_up_fragment는 어떤가요?

Comment on lines 46 to 50
//다음 버튼
setOnClickNextButton()
//툴바 뒤로 가기 버튼
setOnToolbarBackPressed()
//기기 뒤로 가기 버튼
Copy link
Contributor

Choose a reason for hiding this comment

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

친절한 주석 때문에 가독성이 진짜 좋아지는 것 같습니다!

@jihyeonAnAn jihyeonAnAn marked this pull request as ready for review July 14, 2023 08:09
@jihyeonAnAn jihyeonAnAn force-pushed the feature_refactor_signup branch 3 times, most recently from 49d7fcc to 6fc971a Compare July 19, 2023 11:10
Copy link
Member

@l2hyunwoo l2hyunwoo left a comment

Choose a reason for hiding this comment

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

한번만 더 수정해봅시다

fun setSignUpButtonInterface(buttonState: OnButtonStateChangeListener) {
this.buttonState = buttonState
private fun setEditTextState(
background: Int,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
background: Int,
@DrawableRes background: Int,

@@ -10,7 +10,7 @@ import com.teampophory.pophory.feature.signup.SignUpThirdFragment

class SignUpViewPagerAdapter(
fragmentActivity: FragmentActivity,
private val buttonState: OnButtonStateChangeListener
//private val buttonState: OnButtonStateChangeListener
Copy link
Member

Choose a reason for hiding this comment

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

안 사용하면 삭제 부탁드립니다

@@ -19,13 +19,13 @@ class SignUpViewPagerAdapter(
return when (position) {
0 -> {
SignUpFirstFragment().apply {
setSignUpButtonInterface(buttonState)
//setSignUpButtonInterface(buttonState)
Copy link
Member

Choose a reason for hiding this comment

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

안 사용하면 삭제 고고

}
}

1 -> {
SignUpSecondFragment().apply {
setSignUpButtonInterface(buttonState)
//setSignUpButtonInterface(buttonState)
Copy link
Member

Choose a reason for hiding this comment

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

위에도 그렇고 이것도 보니까 그냥 apply 삭제해도 될듯?

Copy link
Member

@l2hyunwoo l2hyunwoo left a comment

Choose a reason for hiding this comment

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

고생했어 지현아

@jihyeonAnAn jihyeonAnAn merged commit c52f30d into develop Jul 19, 2023
@jihyeonAnAn jihyeonAnAn deleted the feature_refactor_signup branch July 19, 2023 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature 기능 개발 🐣 안지현 안지현이 했다
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] signup navigation으로 수정
4 participants