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/#64] 회원가입 ViewModel 작업 #70

Merged
merged 3 commits into from
Jan 24, 2025

Conversation

sayyyho
Copy link
Member

@sayyyho sayyyho commented Jan 22, 2025

Related issue 🛠

Work Description 📝

  • AnimatedProgressBar 수정
  • 뷰 모델 상태관리

Screenshot 📸

Screen_Recording_20250123-015035_With-Suhyeon.1.mp4

Uncompleted Tasks 😅

To Reviewers 📢

회원가입 뷰모델 작업 완료했습니다! API 연결 가볼게요~

@sayyyho sayyyho added ⭐ [FEAT] 새로운 기능 구현 🔧 [FIX] 버그 및 오류 해결 🐬 세호 sayyyho labels Jan 22, 2025
@sayyyho sayyyho self-assigned this Jan 22, 2025
Copy link
Collaborator

@yskim6772 yskim6772 left a comment

Choose a reason for hiding this comment

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

굿 !! 고생하셨습니다 .... 프로그래스바도 완벽하게 수정되었네요 !!
이제 api 연결 홧팅합시다 💪🏻

import com.sopt.withsuhyeon.ui.theme.WithSuhyeonTheme.colors
import com.sopt.withsuhyeon.ui.theme.WithSuhyeonTheme.typography

@Composable
fun FinishRoute(
padding: PaddingValues,
navigateToNext: () -> Unit
navigateToNext: () -> Unit,
viewModel: SignUpViewModel
Copy link
Collaborator

Choose a reason for hiding this comment

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

= hiltViewModel() 붙여줍시다 !

Comment on lines +104 to +106
LaunchedEffect(Unit) {
viewModel.updateProgress(state.progress + 1f / 7)
}
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
Collaborator

Choose a reason for hiding this comment

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

굿굿!!

@@ -129,6 +142,7 @@ fun SelectProfileScreen(
.alpha(if (profileImage == profileType.titleResId) 1f else 0.3f)
.noRippleClickable {
profileImage = profileType.titleResId
viewModel.updateProfileImage("image${index+1}")
Copy link
Collaborator

Choose a reason for hiding this comment

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

와 깔끔하다 !

@@ -78,7 +82,8 @@ fun NavGraphBuilder.onBoardingNavGraph(
onNavigateToPostProfileImage: () -> Unit,
onNavigateToSelectLocation: () -> Unit,
onNavigateToFinish: () -> Unit,
onNavigateToHome: () -> Unit
onNavigateToHome: () -> Unit,
getBackStackUploadViewModel: @Composable (NavBackStackEntry) -> SignUpViewModel
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
Collaborator

@serioushyeon serioushyeon left a comment

Choose a reason for hiding this comment

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

수많은 억까사이를 잘 이겨내셨어요.. ㅜㅜ 고생하셨습니다!! 뷰모델 사용이 익숙치않을텐데 넘 잘해주셨어용 고생하셨습니다!!! 👍

@@ -96,6 +100,16 @@ fun MainNavHost(
onNavigateToSelectLocation = navigator::navigateToSelectLocation,
onNavigateToFinish = navigator::navigateToOnboardingFinish,
onNavigateToHome = navigator::navigateToHome,
getBackStackUploadViewModel = { navBackStackEntry ->
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 +104 to +106
LaunchedEffect(Unit) {
viewModel.updateProgress(state.progress + 1f / 7)
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

굿굿!!

@@ -58,21 +65,22 @@ fun SelectLocationScreen(
)
}
val subLocationList = remember {
Copy link
Collaborator

Choose a reason for hiding this comment

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

지역 가져오는 것만 제거랑 추후에 합치면 좋을 것 같아요 넘 잘하셨습니다 ㅎㅎ

)
}
composable<OnboardingFinishRoute> {
FinishRoute(
navigateToNext = onNavigateToHome,
padding = padding
padding = padding,
viewModel = getBackStackUploadViewModel(it)
Copy link
Collaborator

Choose a reason for hiding this comment

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

공유 뷰모델때문에 너무 고생하셨어요 ㅜㅡㅜ

@yskim6772 yskim6772 merged commit 352c73e into develop Jan 24, 2025
@yskim6772 yskim6772 deleted the feat/#64-onboarding-viewmodel branch January 24, 2025 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐ [FEAT] 새로운 기능 구현 🐬 세호 sayyyho 🔧 [FIX] 버그 및 오류 해결
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] 회원가입 뷰모델 작업
3 participants