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

moneymong-520 feat: 회원가입 플로우 개선 작업 #42

Merged
merged 8 commits into from
Dec 30, 2024

Conversation

eunseo0105
Copy link
Member

요약

회원가입 플로우 개선하였습니다.

작업내용

  • [0] 기능개발
  • 버그개선
  • 리팩토링
  • 핫픽스
  • 빌드 파일 수정
  • 기타

스크린샷

## 기타

@eunseo0105 eunseo0105 added the medium💛 until 3days(72hours) label Dec 9, 2024
@eunseo0105 eunseo0105 assigned jhg3410 and eunseo0105 and unassigned jhg3410 Dec 9, 2024
Copy link
Member

@jhg3410 jhg3410 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 300 to 316
Text(
modifier = Modifier
.fillMaxWidth()
.noRippleClickable {
viewModel.eventEmit(
SignUpSideEffect.CreateUniversityApi(
state.selectedUniv,
state.gradeInfor
)
)
navigateToAgency()
},
textAlign = TextAlign.Center,
text = "총무에게 초대받았어요",
style = Body3,
color = Blue04
)
Copy link
Member

Choose a reason for hiding this comment

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

은서님 "총무에게 초대받았어요" 버튼 클릭한 뒤 소속 검색화면으로 가면 대학 정보가 없다는 에러가 뜹니다!

로그를 찍어보니 viewModel 에 있는 함수가 실행되기 전에 navigateToAgency() 로 화면이 이동되면서 대학 정보를 만들지 않는 것으로 추측돼요!

Comment on lines 180 to 190

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
)
Copy link
Member

Choose a reason for hiding this comment

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

여기 paddingvertical 에만 들어가야 합니다!

Comment on lines 174 to 179
SignUpTitleView(
modifier = Modifier
.fillMaxWidth()
.padding(top = 8.dp),
subTitleState = state.subTitleState
.height(89.dp)
.padding(top = 12.dp, bottom = 12.dp),
)
Copy link
Member

Choose a reason for hiding this comment

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

height 고정적으로 부여하면 디바이스 글자 크기에 따라 화면에 잘릴 수 있어요!

Comment on lines 118 to 125
content = {
SignUpContent(
modifier = Modifier.padding(innerPadding),
navigateToSignComplete = navigateToSignComplete,
navigateToLedger = navigateToLedger,
navigateToSignUpUniversity = navigateToSignUpUniversity,
navigateToAgency = navigateToAgency,
viewModel = viewModel,
state = state
)
Copy link
Member

Choose a reason for hiding this comment

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

TopBar 영역과 content 영역이 구분되지 않고 있어요!

content 람다에 제공되는 파라미터인 padding 값을 SignUpContentModifier에 제공해야 TopBar 영역만큼 padding 이 부여돼요!

content = { paddingValues ->
    SignUpContent(
        modifier = Modifier.padding(paddingValues),
        navigateToLedger = navigateToLedger,
        navigateToSignUpUniversity = navigateToSignUpUniversity,
        navigateToAgency = navigateToAgency,
        viewModel = viewModel,
        state = state
    )
}

Comment on lines 45 to 55
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
)
Copy link
Member

Choose a reason for hiding this comment

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

이미 MDSButtonsize 파라미터로 디자인 시스템에서 지정한 vertical padding 이 지정되어 있어요! 그래서 Modifer 에 있는 height 값은 의미가 없어보여요!

Comment on lines 261 to 263
SignUpButtonView(
modifier = Modifier.fillMaxWidth()
.padding(horizontal = if (state.editTextFocused) 0.dp else MMHorizontalSpacing),
Copy link
Member

Choose a reason for hiding this comment

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

editTextFocused 되었을 때 corner radius 값도 수정되어야 해요!
MDSButton의 파라미터에 radius 값을 추가하는 방식으로 해도 좋을 것 같아요!

현재는 아래처럼 보여요!

Comment on lines 109 to 117
content = {
SignUpUniversityContent(
navigateToLedger = navigateToLedger,
agencyName = agencyName,
agencyType = agencyType,
viewModel = viewModel,
state = state
)
}
Copy link
Member

@jhg3410 jhg3410 Dec 16, 2024

Choose a reason for hiding this comment

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

"어디 학교 교내 동아리인가요?" Text 가 TopBar 에 가려져서 보이지 않아요!
Scaffold 에서 제공하는 padding 값을 제공하지 않아서 겹치는 것으로 확인됩니다!!

Suggested change
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
)
}

Comment on lines 205 to 220
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
)
Copy link
Member

Choose a reason for hiding this comment

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

등록하기 버튼의 paddingcorner radius 값이 디자인과 달라요

현재 디자인

color = Gray06
)

SearchUnivView(
Copy link
Member

Choose a reason for hiding this comment

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

대학 아이템 목록에서 다음과 같은 버그가 있어요!

  1. 선택 안 된 다른 학교 클릭 -> 등록하기 disabled 됨
  2. 이미 선택된 학교 클릭 -> 계속 선택된 학교로 표시
KakaoTalk_Video_2024-12-16-20-34-50.mp4

Comment on lines 49 to 57
@Composable
fun SignUpUniversity(
navigateToLedger : () -> Unit,
navigateToAgency : () -> Unit,
navigateUp : () -> Unit,
agencyName : String,
agencyType: AgencyType,
viewModel: SignUpUniversityViewModel = hiltViewModel()
){
Copy link
Member

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

Copy link
Member

@jhg3410 jhg3410 left a comment

Choose a reason for hiding this comment

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

확인했습니다!

아래의 내용을 추가로 커밋해서 넣었습니다. 확인 한 번만 해주세요!

  • 마이몽 학년 제거
  • [대학 검색 화면] "총무에게 초대받았어요"(소속 검색 이동) 보이도록 수정
  • [대학 검색 화면] 등록하기 버튼 edit Text(대학 검색) 포커스에 따라 변하도록 수정
  • [회원가입 화면] 중복된 padding 제거(소속 유형과 소속 이름 사이)

@eunseo0105 eunseo0105 changed the base branch from master to develop December 30, 2024 12:47
@eunseo0105 eunseo0105 merged commit fc6d538 into develop Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium💛 until 3days(72hours)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants