-
Notifications
You must be signed in to change notification settings - Fork 4
GT-3017 Onboarding Localization #4405
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
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
d525bcb
Add pop result to app language screen to track result
tjohnson009 cbdb020
Modify popResult names and add for presenter
tjohnson009 245496c
Add pop result to navigator.pop in UiEvents
tjohnson009 67dda2d
Modify tests to reflect newly added pop result
tjohnson009 f080a4d
Add result interface for pop results to send to presenter
tjohnson009 183d025
Receive newly added pop results in UiEvents
tjohnson009 1c5eb1e
Sync pager to presenter page state via LaunchedEffect and disable swi…
tjohnson009 c31fb61
Add answering navigators and Next event for language/country flow in …
tjohnson009 9f93416
Add initial state and Next event tests to OnboardingPresenterTest
tjohnson009 161af25
Change event passed to prevent block from continue onboarding
tjohnson009 aabf990
Change test to pass with the previous dismiss select language event b…
tjohnson009 d7434bd
Change tense of the result type for consistency in country settings a…
tjohnson009 7527bc7
Update pagerState from UiState
tjohnson009 5a09c2f
Remove currentPage param from UiState and derive it from newly added …
tjohnson009 4d107ac
Change test to derive current page from pagerState
tjohnson009 9c8be9a
Fix import to match new file structure
tjohnson009 eadfda1
Fix import order and change import to reflect file structure
tjohnson009 a65e959
Add hasSeenCountrySettings flag; Route onboarding based on language a…
tjohnson009 e7cd7e7
Change onboarding to use eventSink for every nextPage action
tjohnson009 3469ea9
Remove duplicate logic for navigateing pages; Simplify UiEvent.Next e…
tjohnson009 247fa4c
Apply suggestion from @frett
frett File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
8 changes: 7 additions & 1 deletion
8
app/src/main/kotlin/org/cru/godtools/ui/settings/country/CountrySettingsScreen.kt
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,13 @@ | ||
| package org.cru.godtools.ui.settings.country | ||
|
|
||
| import com.slack.circuit.runtime.screen.PopResult | ||
| import com.slack.circuit.runtime.screen.Screen | ||
| import kotlinx.parcelize.Parcelize | ||
|
|
||
| @Parcelize | ||
| data object CountrySettingsScreen : Screen | ||
| data object CountrySettingsScreen : Screen { | ||
| sealed interface Result : PopResult { | ||
| @Parcelize data object CountrySelected : Result | ||
| @Parcelize data object Dismissed : Result | ||
| } | ||
| } |
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
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
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
8 changes: 7 additions & 1 deletion
8
ui/base/src/main/kotlin/org/cru/godtools/base/ui/circuit/screen/AppLanguageScreen.kt
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,13 @@ | ||
| package org.cru.godtools.base.ui.circuit.screen | ||
|
|
||
| import com.slack.circuit.runtime.screen.PopResult | ||
| import com.slack.circuit.runtime.screen.Screen | ||
| import kotlinx.parcelize.Parcelize | ||
|
|
||
| @Parcelize | ||
| data object AppLanguageScreen : Screen | ||
| data object AppLanguageScreen : Screen { | ||
| sealed interface Result : PopResult { | ||
| @Parcelize data object LanguageSelected : Result | ||
| @Parcelize data object Dismissed : Result | ||
| } | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.