This commit introduces a new onboarding screen to the application.
Key changes: - Created `OnboardingScreen.kt` with a `HorizontalPager` to display onboarding information. - Added `OnboardingViewModel.kt` to manage the UI state and navigation for the onboarding flow. - Updated `AppNavHost.kt` to include the `OnboardingScreen` in the navigation graph. - Added new image assets (`DIGITAL_LIBRARY`, `WORKS_OFFLINE`, `DATA_REPORTING`, `ASSIGNMENTS`) for the onboarding slides. - Updated `RespectImage.kt` and its Android implementation to include these new images. - Added new string resources for onboarding titles and descriptions. - Modified `AcknowledgementViewModel.kt` to navigate to the `Onboarding` screen instead of `GetStartedScreen` or `RespectAppLauncher`. - Registered `OnboardingViewModel` in `AppKoinModule.kt`. - Added `Onboarding` route to `AppRoutes.kt`. (commit: 1291dd2)
This commit introduces a new onboarding screen to the application.
Key changes: - Created `OnboardingScreen.kt` with a `HorizontalPager` to display onboarding information. - Added `OnboardingViewModel.kt` to manage the UI state and navigation for the onboarding flow. - Updated `AppNavHost.kt` to include the `OnboardingScreen` in the navigation graph. - Added new image assets (`DIGITAL_LIBRARY`, `WORKS_OFFLINE`, `DATA_REPORTING`, `ASSIGNMENTS`) for the onboarding slides. - Updated `RespectImage.kt` and its Android implementation to include these new images. - Added new string resources for onboarding titles and descriptions. - Modified `AcknowledgementViewModel.kt` to navigate to the `Onboarding` screen instead of `GetStartedScreen` or `RespectAppLauncher`. - Registered `OnboardingViewModel` in `AppKoinModule.kt`. - Added `Onboarding` route to `AppRoutes.kt`. (commit: 6735ad8)
Refactor: Navigate to RespectAppLauncher if account exists
This commit updates the navigation logic in `AcknowledgementViewModel.kt`.
If a user account exists (`accountManager.selectedAccount != null`), the app will navigate to `RespectAppLauncher` after the acknowledgement screen. Otherwise, it will navigate to the `Onboarding` screen. (commit: e6a1725)
This commit updates the onboarding screen with new image assets and modifies the login navigation.
Key changes: - Updated image asset names in `RespectImage.android.kt` for onboarding (`digital_library_1`, `works_offline_1`, `data_reporting_1`, `assignments_1`). - Added new drawable resources for the updated onboarding images. - Modified `LoginViewModel.kt` to clear the back stack when navigating to `RespectAppLauncher` after a successful passkey credential retrieval. - Increased image size and added padding to images in `OnboardingScreen.kt`. Removed vertical centering for the column layout. (commit: 9567203)
This commit updates the `OnboardingScreen.kt` to enhance the visual presentation of onboarding text.
Key changes: - Applied `MaterialTheme.typography.titleMedium` to the onboarding title text for better emphasis. - Applied `MaterialTheme.typography.bodyMedium` to the onboarding description text for improved readability. - Added padding to the title text. - Removed an unnecessary blank line. (commit: 6bd203b)
Refactor: Update image assets to PNG and remove WebP
This commit updates the image assets used in the application. The WebP versions of the images have been removed, and the PNG files have been renamed to remove the `_1` suffix.
Key changes: - Renamed `assignments_1.png` to `assignments.png`. - Renamed `data_reporting_1.png` to `data_reporting.png`. - Renamed `digital_library_1.png` to `digital_library.png`. - Renamed `works_offline_1.png` to `works_offline.png`. - Deleted `assignments.webp`, `data_reporting.webp`, `digital_library.webp`, and `works_offline.webp`. - Updated `RespectImage.android.kt` to reflect the new image file names. (commit: ab4474c)
Refactor: Rename OnboardingPage to OnboardingItem and adjust padding
This commit renames the `OnboardingPage` data class to `OnboardingItem` for better clarity. It also adjusts padding within the `OnboardingScreen` composable for improved layout.
Key changes: - Renamed `OnboardingPage` data class to `OnboardingItem` in `OnboardingScreen.kt`. - Updated variable names and references from `pages` to `onboardingItem`. - Removed the overall `padding(24.dp)` from the root `Column` in `OnboardingScreen`. - Added `padding(bottom = 32.dp)` to the inner `Column` containing title and description text. - Added `padding(bottom = 32.dp)` to the "Get Started" `Button`. (commit: 9ea6489)