-
Notifications
You must be signed in to change notification settings - Fork 0
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
moneymong-520 feat: 회원가입 플로우 개선 작업 #42
The head ref may contain hidden characters: "feature/moneymong-520-\uD50C\uB85C\uC6B0-\uAC1C\uC120\uC791\uC5C5"
Conversation
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.
바쁘실텐데 고생하셨습니다!
Text( | ||
modifier = Modifier | ||
.fillMaxWidth() | ||
.noRippleClickable { | ||
viewModel.eventEmit( | ||
SignUpSideEffect.CreateUniversityApi( | ||
state.selectedUniv, | ||
state.gradeInfor | ||
) | ||
) | ||
navigateToAgency() | ||
}, | ||
textAlign = TextAlign.Center, | ||
text = "총무에게 초대받았어요", | ||
style = Body3, | ||
color = Blue04 | ||
) |
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.
|
||
Box( | ||
Column( | ||
modifier = Modifier | ||
.padding(top = 40.dp) | ||
.padding(top = 28.dp, end = 28.dp) | ||
.fillMaxWidth() | ||
) { | ||
if (!state.isSelected) { | ||
SearchUnivView( | ||
isFilled = state.isFilled, | ||
isFilledChanged = { isFilled -> viewModel.isFilledChanged(isFilled) }, | ||
isListVisible = state.isListVisible, | ||
isListVisibleChanged = { isListVisible -> | ||
viewModel.isListVisibleChanged( | ||
isListVisible | ||
) | ||
}, | ||
isItemSelectedChanged = { isItemSelected -> | ||
viewModel.isItemSelectedChanged( | ||
isItemSelected | ||
) | ||
}, | ||
isItemSelected = state.isItemSelected, | ||
textValue = state.textValue, | ||
universityResponse = state.universityResponse, | ||
onClick = { | ||
viewModel.isSelectedChanged(true) | ||
viewModel.selectedUnivChanged(it) | ||
}, | ||
onChange = { viewModel.textValueChanged(it) }, | ||
onSearchIconClicked = { | ||
viewModel.eventEmit(SignUpSideEffect.UniversitiesApi(it)) | ||
}, | ||
value = state.textValue, | ||
isButtonVisibleChanged = { isButtonVisible -> viewModel.isButtonVisibleChanged(isButtonVisible)} | ||
Text( | ||
text = "소속 유형", | ||
style = Body2, | ||
color = Color.Black | ||
) |
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.
여기 padding
이 vertical
에만 들어가야 합니다!
SignUpTitleView( | ||
modifier = Modifier | ||
.fillMaxWidth() | ||
.padding(top = 8.dp), | ||
subTitleState = state.subTitleState | ||
.height(89.dp) | ||
.padding(top = 12.dp, bottom = 12.dp), | ||
) |
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.
height
고정적으로 부여하면 디바이스 글자 크기에 따라 화면에 잘릴 수 있어요!
content = { | ||
SignUpContent( | ||
modifier = Modifier.padding(innerPadding), | ||
navigateToSignComplete = navigateToSignComplete, | ||
navigateToLedger = navigateToLedger, | ||
navigateToSignUpUniversity = navigateToSignUpUniversity, | ||
navigateToAgency = navigateToAgency, | ||
viewModel = viewModel, | ||
state = state | ||
) |
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.
TopBar 영역과 content 영역이 구분되지 않고 있어요!
content 람다에 제공되는 파라미터인 padding
값을 SignUpContent
의 Modifier
에 제공해야 TopBar
영역만큼 padding
이 부여돼요!
content = { paddingValues ->
SignUpContent(
modifier = Modifier.padding(paddingValues),
navigateToLedger = navigateToLedger,
navigateToSignUpUniversity = navigateToSignUpUniversity,
navigateToAgency = navigateToAgency,
viewModel = viewModel,
state = state
)
}
MDSButton( | ||
modifier = Modifier.fillMaxWidth(), | ||
modifier = Modifier.fillMaxWidth() | ||
.height(56.dp), | ||
onClick = { | ||
onCreateUniversity() | ||
if(agencyType == AgencyType.GENERAL || pageType == 2) onCreateUniversity() else if (agencyType != AgencyType.GENERAL && pageType == 1) navigateToSignUpUniversity(agencyName, agencyType) | ||
}, | ||
text = "가입하기", | ||
text = if(agencyType == AgencyType.GENERAL || pageType == 2) "등록하기" else "다음으로", | ||
type = MDSButtonType.PRIMARY, | ||
size = MDSButtonSize.LARGE, | ||
enabled = isEnabled | ||
) |
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.
이미 MDSButton
의 size 파라미터
로 디자인 시스템에서 지정한 vertical padding
이 지정되어 있어요! 그래서 Modifer
에 있는 height
값은 의미가 없어보여요!
SignUpButtonView( | ||
modifier = Modifier.fillMaxWidth() | ||
.padding(horizontal = if (state.editTextFocused) 0.dp else MMHorizontalSpacing), |
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.
content = { | ||
SignUpUniversityContent( | ||
navigateToLedger = navigateToLedger, | ||
agencyName = agencyName, | ||
agencyType = agencyType, | ||
viewModel = viewModel, | ||
state = state | ||
) | ||
} |
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.
"어디 학교 교내 동아리인가요?" Text 가 TopBar 에 가려져서 보이지 않아요!
Scaffold 에서 제공하는 padding 값을 제공하지 않아서 겹치는 것으로 확인됩니다!!
content = { | |
SignUpUniversityContent( | |
navigateToLedger = navigateToLedger, | |
agencyName = agencyName, | |
agencyType = agencyType, | |
viewModel = viewModel, | |
state = state | |
) | |
} | |
content = { paddingValues -> | |
SignUpUniversityContent( | |
modifier = Modifier.padding(paddingValues), | |
navigateToLedger = navigateToLedger, | |
agencyName = agencyName, | |
agencyType = agencyType, | |
viewModel = viewModel, | |
state = state | |
) | |
} |
SignUpButtonView( | ||
modifier = Modifier.fillMaxWidth(), | ||
isEnabled = state.isItemSelected, | ||
visiblePopUpError = state.visiblePopUpError, | ||
popUpErrorMessage = state.popUpErrorMessage, | ||
visiblePopUpErrorChanged = { visiblePopUpError -> | ||
viewModel.visiblePopUpErrorChanged(visiblePopUpError) | ||
}, | ||
onCreateUniversity = { | ||
viewModel.createUniv(state.selectedUniv, state.gradeInfor) | ||
}, | ||
navigateToSignUpUniversity = { agencyName, agencyType -> }, | ||
agencyName = agencyName, | ||
agencyType = agencyType, | ||
pageType = 2 | ||
) |
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.
color = Gray06 | ||
) | ||
|
||
SearchUnivView( |
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.
대학 아이템 목록에서 다음과 같은 버그가 있어요!
- 선택 안 된 다른 학교 클릭 -> 등록하기 disabled 됨
- 이미 선택된 학교 클릭 -> 계속 선택된 학교로 표시
KakaoTalk_Video_2024-12-16-20-34-50.mp4
@Composable | ||
fun SignUpUniversity( | ||
navigateToLedger : () -> Unit, | ||
navigateToAgency : () -> Unit, | ||
navigateUp : () -> Unit, | ||
agencyName : String, | ||
agencyType: AgencyType, | ||
viewModel: SignUpUniversityViewModel = hiltViewModel() | ||
){ |
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.
해당 화면에서 동아리 or 학생회를 등록할 때 다음과 같은 버그가 있어요!
KakaoTalk_Video_2024-12-16-20-47-59.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.
확인했습니다!
아래의 내용을 추가로 커밋해서 넣었습니다. 확인 한 번만 해주세요!
- 마이몽 학년 제거
- [대학 검색 화면] "총무에게 초대받았어요"(소속 검색 이동) 보이도록 수정
- [대학 검색 화면] 등록하기 버튼 edit Text(대학 검색) 포커스에 따라 변하도록 수정
- [회원가입 화면] 중복된 padding 제거(소속 유형과 소속 이름 사이)
요약
회원가입 플로우 개선하였습니다.
작업내용
스크린샷
## 기타