-
Notifications
You must be signed in to change notification settings - Fork 0
[Feature] 앱 초기 튜토리얼 화면 #29
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UI Layer로 이동
- 각 컴포넌트를 조합하여 온보딩 화면을 구현하였습니다. - createAnnotatedText() 함수를 통해 \n 이후 텍스트를 강조합니다. - stringResource를 통해 페이지 별 타이틀을 string.xml에서 가져옵니다.
OnboardingScreen의 UI 레이아웃을 수정하여 상태바와 네비게이션 바 영역을 고려하도록 변경했습니다. `systemBarsPadding()` 대신 `WindowInsets`를 사용하여 직접 패딩을 계산하고 적용했습니다.
온보딩 완료 상태를 저장하고 조회하는 `OnboardingPreferences` 클래스를 추가했습니다. 이를 통해 앱 최초 실행 시 온보딩 화면 표시 여부를 결정할 수 있습니다.
- 온보딩 버튼에 로딩 상태를 추가했습니다. - 로딩 중일 때는 버튼이 비활성화됩니다.
- OnboardingViewModel에 UiState 및 Effect 추가 - OnboardingScreen에서 UiState 관찰 및 Effect 처리 로직 구현 - 온보딩 완료 시 로딩 상태 표시 및 에러 처리 추가
- 온보딩 완료 여부 저장 및 조회 기능을 위한 `OnBoardingRepository` 인터페이스와 `OnBoardingRepositoryImpl` 구현체를 추가했습니다. - `OnboardingViewModel`이 `OnboardingPreferences` 대신 `OnBoardingRepository`를 사용하도록 수정했습니다. - `RepositoryModule`에 `OnBoardingRepository` 관련 의존성 주입 설정을 추가했습니다.
- `title` 필드를 `String`에서 `@StringRes` 어노테이션을 사용하는 `Int` 타입의 `titleResId`로 변경했습니다. - 이에 따라 `OnboardingScreen`에서 `title`을 참조하는 부분을 `stringResource`를 사용하도록 수정했습니다.
- MainViewModel에 onBoardingRepository를 주입하여 온보딩 완료 여부를 확인합니다. - MainActivity, NearApp, NearNavHost에서 로그인 상태(isLoggedIn) 대신 시작 화면(startDestination)을 사용하도록 수정했습니다. - MainUiState에 isOnboardingCompleted와 startDestination 필드를 추가했습니다. - 앱 시작 시 온보딩 완료 여부와 로그인 상태를 확인하여 적절한 화면(온보딩, 홈, 로그인)으로 이동하도록 MainViewModel의 checkAppStatus 로직을 수정했습니다. - TODO 각 루트의 타입이 다르기에 Any로 설정하였습니다. 나중에 하나의 루트로 두면 좋을 것 같습니다
…/onboarding-pages # Conflicts: # Near/app/src/main/java/com/alarmy/near/presentation/feature/main/NearNavHost.kt
- values/strings.xml에서 중복된 온보딩 관련 문자열 리소스를 삭제했습니다.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
작업 내용
확인 방법
참고 사항
관련 이슈