-
Notifications
You must be signed in to change notification settings - Fork 526
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
Fix #4072 and Fix Part of #4938: Revised profile chooser UI #5468
Open
adhiamboperes
wants to merge
402
commits into
develop
Choose a base branch
from
new-profile-chooser-ui-views
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 250 commits
Commits
Show all changes
402 commits
Select commit
Hold shift + click to select a range
bcc2cbf
Add tests for migrated login routes
adhiamboperes 6c1a28f
Add tests for migrated login routes
adhiamboperes 822e1fb
Log onboarding started event
adhiamboperes d71ed56
Update test initialization for onboarding v2 off
adhiamboperes 1e9c136
Update test initialization for onboarding v2 off
adhiamboperes 72624f5
Merge branch 'develop' into new-onboarding-screen
adhiamboperes 13d9ac5
Merge branch 'new-onboarding-screen' into onboarding-profile-type-screen
adhiamboperes f0d0c57
Merge branch 'onboarding-profile-type-screen' into create-profile-screen
adhiamboperes 199447d
Merge branch 'create-profile-screen' into onboarding-learner-intro-sc…
adhiamboperes a0fc7d6
Merge branch 'onboarding-learner-intro-screen' into onboarding-audio-…
adhiamboperes 9c2e1d6
Merge branch 'onboarding-audio-language-screen' into onboarding-profi…
adhiamboperes 485dc54
Replace Lifecycle.State check with activity.isFinishing
adhiamboperes 33624d7
Flatten layout
adhiamboperes 2b10f80
Resolve merge conflicts
adhiamboperes 1ade253
Merge branch 'onboarding-profile-type-screen' into create-profile-screen
adhiamboperes 49586cc
Adjust profile picture prompt
adhiamboperes 2d5d438
Add assertions for image loaded
adhiamboperes 41dea0b
Replace Lifecycle.State check with activity.isFinishing
adhiamboperes e6a1b24
Addressed reviewer comments
adhiamboperes 85081cc
Merge branch 'create-profile-screen' into onboarding-learner-intro-sc…
adhiamboperes 4e91b89
Merge branch 'onboarding-learner-intro-screen' into onboarding-audio-…
adhiamboperes 66f8fac
Fix tests
adhiamboperes c10ba82
Fix failing tests
adhiamboperes c386024
Add missing test initialization
adhiamboperes 0b74249
Merge branch 'onboarding-audio-language-screen' into onboarding-profi…
adhiamboperes db36244
Fix merge conflict
adhiamboperes 35a839e
Add missing bazel dependency
adhiamboperes 59c4665
Complete login migration route tests
adhiamboperes ab36c03
Fix tests/flows broken by changes
adhiamboperes c327be9
Add tests for end profile onboarding event log
adhiamboperes fccac67
Add tests for profile creation errors
adhiamboperes 4cd3918
General cleanup
adhiamboperes 2c33188
General cleanup
adhiamboperes 026ff1d
Revert breaking change
adhiamboperes 7304449
Add kdoc
adhiamboperes 2cb0469
Fix static check failures
adhiamboperes c32d2e9
Fix failing event log events
adhiamboperes cb8b21e
Fix failing app deprecation tests
adhiamboperes c827a68
Refactor the app startup state
adhiamboperes 5a570b2
Fix event logs
adhiamboperes 381c883
Revert changes to app init
adhiamboperes bdcf5c1
Enforce v2 onboarding flow
adhiamboperes 0a59cfc
Enforce conditional profile exit for sole learner
adhiamboperes 5ee3a20
Revert unnecessary test file changes
adhiamboperes df789ea
Fix proto field case
adhiamboperes a1b0964
Fix SplashActivityTests
adhiamboperes 1bb7508
Merge branch 'develop' into onboarding-profile-type-screen
adhiamboperes 6e0401f
Update test_file_exemptions to the new format
adhiamboperes 2f84098
Fix indent
adhiamboperes d979d1b
Merge branch 'onboarding-profile-type-screen' into create-profile-screen
adhiamboperes 2d83378
Update test_file_exemptions
adhiamboperes 3f5c8c2
Merge branch 'create-profile-screen' into onboarding-learner-intro-sc…
adhiamboperes e3565b5
Address reviewer comment
adhiamboperes 3641559
Merge branch 'onboarding-learner-intro-screen' into onboarding-audio-…
adhiamboperes b19014c
Address reviewer comments
adhiamboperes 2412618
Populate the language dropdown list
adhiamboperes 8d8ab17
Merge branch 'onboarding-audio-language-screen' into onboarding-profi…
adhiamboperes 61a7724
Fix test file exemption path
adhiamboperes 5512216
Add missing bazel dep
adhiamboperes a0fe5c6
Add dropdown view id
adhiamboperes 2bf2eda
Hook up app language options
adhiamboperes 04acfa9
Merge branch 'develop' into onboarding-profile-type-screen
adhiamboperes 223150b
Replace png images with svgs
adhiamboperes 90428af
Add exemptions for new svgs
adhiamboperes e248fb1
Pull upstream and fix conflicts
adhiamboperes 9fd9fbc
Change default avatar bg in v2
adhiamboperes 2ec249d
Fix profile prompt background
adhiamboperes 988ab47
Merge branch 'develop' into create-profile-screen
adhiamboperes af6ed95
Fix deprecated api
adhiamboperes 53e7b9b
Merge branch 'create-profile-screen' into onboarding-learner-intro-sc…
adhiamboperes 05d02c3
Fix kdoc
adhiamboperes ce9660d
Merge branch 'create-profile-screen' into onboarding-learner-intro-sc…
adhiamboperes ce46838
Merge remote-tracking branch 'upstream/onboarding-learner-intro-scree…
adhiamboperes 86416a1
Fix test_file_exemption
adhiamboperes b3b7d6c
Merge branch 'develop' into onboarding-audio-language-screen
adhiamboperes 29eb9d5
Replace ConstraintLayout with FrameLayout
adhiamboperes fbe6ac3
Add dropdown view id
adhiamboperes 264f827
Hook up app language options
adhiamboperes 320fc14
Create language dropdown list and the default selection
adhiamboperes d96d29e
Make otter graphic respond to rtl layouts
adhiamboperes 9073e8c
Add mechanisms to check if a default profile exists: wip
adhiamboperes 31fb8f5
Pass the created profileId and update profile details
adhiamboperes d65b9f8
Refactored IntroFragment arguments to proto, and decorated with the p…
adhiamboperes cf138ab
Prime AudioLanguageActivity to receive a profileId args
adhiamboperes b0e47c9
Fix merge conflicts
adhiamboperes 866fff4
Refactor to the new central hasProtoExtra
adhiamboperes 8d96257
Remove redundant non-null assertion
adhiamboperes 470a476
Fix duplicating default profile creation
adhiamboperes 89d5c67
Bind audiolanguage pre-selection to the dropdown
adhiamboperes c901f9d
Fix persist selection on config change
adhiamboperes b71d6bd
Setup audio language pre-selection logic
adhiamboperes 682355d
Fix lint errors
adhiamboperes 185d8d4
Cleanup language selection and profile creation
adhiamboperes a0884c8
Fix missing kdocs
adhiamboperes efe460e
Update profile error message view
adhiamboperes 0be7286
Refactor IntroActivity intent creation
adhiamboperes 8508ea5
Update intent tests to reflect new intent extras
adhiamboperes beb6f7c
Add tests for language switching
adhiamboperes e653a7b
Add helper for creating a default empty profile
adhiamboperes 4d2c48d
Update updateNewProfileDetails() kdocs
adhiamboperes 002cc38
Helper for creating the default empty profile in tests
adhiamboperes eff4cbb
Tests for the new profile update api
adhiamboperes d6423c2
Additional tests for the profile creation flow
adhiamboperes 7730225
Add tests for language selection
adhiamboperes af11961
Fix missing kdoc
adhiamboperes 4d81441
Fix self-review pass issues.
adhiamboperes d08df8b
Exempt OnboardingFragmentTest from locale checks
adhiamboperes 0932981
Fix failing tests
adhiamboperes d76307b
Revert conflicting/already implemented UI layer code
adhiamboperes 844c0e2
Temporary comments
adhiamboperes 9ba0b9b
Merge branch 'onboarding-language-domain-config' into onboarding-prof…
adhiamboperes 36f3cf6
Fix leftover refactor issue
adhiamboperes de5783c
Complete the sole learner onboarding flow
adhiamboperes fc85e9d
Update admin profile profileType in v2
adhiamboperes 7564eba
Merge branch 'onboarding-language-domain-config' into onboarding-prof…
adhiamboperes 56f668a
Destroy onboarding activities after onboarding completed.
adhiamboperes 7a97741
Fix failing SplashActivityTests
adhiamboperes 8efa8b9
Fix failing SplashActivityTests + finish migration pathways
adhiamboperes 318334f
Onboard existing learner profiles
adhiamboperes 0bf61cc
Toggle homescreen with multiple classrooms flag
adhiamboperes b00217a
General cleanup
adhiamboperes 5f01efb
Merge branch 'develop' into onboarding-language-domain-config
adhiamboperes cd25696
Merge branch 'onboarding-language-domain-config' into onboarding-prof…
adhiamboperes eb64975
General cleanup
adhiamboperes e7ee78a
Fix failing test
adhiamboperes 7e0e044
Rename ProfileChooserFragmentPresenter.kt
adhiamboperes 23f9ce0
Separate v1 and 2 impls
adhiamboperes 63e0901
add profile selection resources
adhiamboperes 905834d
Create the new profile selection screen
adhiamboperes 8c0db18
Cleanup UI
adhiamboperes a18c45c
Add tests
adhiamboperes f4f652e
Merge branch 'develop' into onboarding-language-domain-config
adhiamboperes 2c7b33f
Add landscape carousel
adhiamboperes 08f67c6
Address part of reviewer comments
adhiamboperes e942263
Merge branch 'develop' into onboarding-language-domain-config
adhiamboperes 9a8024b
Merge branch 'onboarding-language-domain-config' into onboarding-prof…
adhiamboperes e67f67b
Fix lint errors
adhiamboperes ac6b501
Merge branch 'onboarding-language-domain-config' of github.com:oppia/…
adhiamboperes ef1fd91
Merge branch 'onboarding-language-domain-config' into onboarding-prof…
adhiamboperes 666ad36
Create test suite for TextInputLayoutBindingAdapters
adhiamboperes 9ad283a
Address more reviewer comments.
adhiamboperes ee841fa
Merge branch 'develop' of github.com:oppia/oppia-android into onboard…
adhiamboperes 4e6a2a6
Create test suite for TextInputLayoutBindingAdapters
adhiamboperes 5389819
Address more reviewer comments.
adhiamboperes 4b37f24
Fixed static check failures
adhiamboperes 5503aee
Merge branch 'onboarding-language-domain-config' into onboarding-prof…
adhiamboperes d62af40
Merge branch 'onboarding-profile-domain-config' into new-profile-choo…
adhiamboperes 0417789
Fix leftover accidental refactor
adhiamboperes a0fbe95
Fix profile picture upload error
adhiamboperes 3ad68ab
Fix static check failures
adhiamboperes 36de7a5
Fix static check failures
adhiamboperes 294ffd3
Fix bazel build errors
adhiamboperes da1787b
Fix empty strings assertion
adhiamboperes 3e068bb
Addressed test comments
adhiamboperes 990dc5a
Use proto for app language
adhiamboperes 30cf1db
Refactor language binding logic
adhiamboperes 9193b4a
Allow user to progress on continue clicked.
adhiamboperes bc140c5
Fix failing test
adhiamboperes 6635c0d
Fix failing audio language tests
adhiamboperes d604e53
Fix failing profile creation tests
adhiamboperes 622edb3
Temporarily remove failing adapter tests
adhiamboperes 0133cd0
Merge branch 'onboarding-language-domain-config' into onboarding-prof…
adhiamboperes dcf6ab3
Merge branch 'onboarding-profile-domain-config' into new-profile-choo…
adhiamboperes bf77525
Rename variables for clarity
adhiamboperes 1f00658
Cleanup PR
adhiamboperes b684996
Remove kdoc exemption
adhiamboperes f838bab
Merge branch 'develop' into onboarding-language-domain-config
adhiamboperes dd03357
Update profile creation exceptions and tests
adhiamboperes da2fb5f
Properly set up binding adapter tests
adhiamboperes d982d06
Merge branch 'onboarding-language-domain-config' into onboarding-prof…
adhiamboperes 0fc0078
Fix self review issues
adhiamboperes 7589da6
Remove unused code
adhiamboperes ded1640
Fix nit
adhiamboperes b2084e6
Merge branch 'develop' into onboarding-language-domain-config
adhiamboperes e06d28f
Merge branch 'onboarding-language-domain-config' into onboarding-prof…
adhiamboperes 6cf179f
Remove duplicate exemption
adhiamboperes 7f56064
Merge branch 'onboarding-profile-domain-config' into new-profile-choo…
adhiamboperes 1cc21bb
Remove leftover profile audiolanguage
adhiamboperes 4c578e1
Fix landscape scrolling behaviour
adhiamboperes 99913bb
Fix admin profile creation error
adhiamboperes 982d6f5
Fix broken test
adhiamboperes f89ed7a
Merge branch 'develop' into onboarding-language-domain-config
adhiamboperes 946c79b
Merge branch 'onboarding-language-domain-config' into onboarding-prof…
adhiamboperes ca334d6
Integrate classrooms and onboarding
adhiamboperes 831fa1c
Fix Admin profile creation and onboarding
adhiamboperes b94a0f8
Add missing argument proto
adhiamboperes 5518816
Merge branch 'onboarding-profile-domain-config' into new-profile-choo…
adhiamboperes b3d6ee3
Update broken tests
adhiamboperes daea15f
Fix profile migration bugs
adhiamboperes 2de3784
Merge branch 'onboarding-profile-domain-config' into new-profile-choo…
adhiamboperes 34e8da5
Hide step count for additional learners onboarding
adhiamboperes c249066
Fix profile pic upload issue
adhiamboperes 72f8eb1
Fix failing test
adhiamboperes 0397de7
Fix failing audio language tests
adhiamboperes 9993552
Add test for arabic inTextInputLayoutBindingAdaptersTest
adhiamboperes dea8c06
Refactor formatting
adhiamboperes 47af3d1
Address reviewer comment
adhiamboperes cc7147a
Cleanup language selection impl
adhiamboperes 7c713c6
Merge branch 'develop' of github.com:oppia/oppia-android into onboard…
adhiamboperes 063b97a
Address general comments
adhiamboperes 73105a0
Nit
adhiamboperes fac0a95
Nit
adhiamboperes 1a4d82d
Merge branch 'onboarding-language-domain-config' into onboarding-prof…
adhiamboperes 0ceb9fc
Fix failing tests
adhiamboperes 28d2742
Fix failing tests
adhiamboperes 6ae7968
Merge branch 'onboarding-profile-domain-config' of github.com:oppia/o…
adhiamboperes 6a5634e
remove unused import
adhiamboperes 7d2c1a7
Refactor event log management
adhiamboperes 6d90cd2
Merge branch 'develop' of github.com:oppia/oppia-android into onboard…
adhiamboperes 59df467
Refactor function
adhiamboperes 45719dd
Merge branch 'develop' into onboarding-language-domain-config
adhiamboperes 41c6a68
Merge branch 'develop' into onboarding-language-domain-config
adhiamboperes 9961d00
Merge branch 'develop' into onboarding-language-domain-config
adhiamboperes 4ff4680
Refactor language selection to use supported languages only
adhiamboperes 9d60f13
Merge branch 'onboarding-language-domain-config' of github.com:oppia/…
adhiamboperes 0047916
Merge branch 'onboarding-language-domain-config' into onboarding-prof…
adhiamboperes e6f821a
Refactor test to use existing eventlog util function
adhiamboperes 21c85a9
Null check and readability improvements
adhiamboperes 6fbea02
Refactor test setup
adhiamboperes b30dd7e
Merge branch 'develop' of github.com:oppia/oppia-android into onboard…
adhiamboperes fd3a10c
Fix failing tests
adhiamboperes a57310e
Fix failing profile chooser tests
adhiamboperes 943aa87
Resolve merge conflicts
adhiamboperes 8d5a78d
Refactor backpress callback
adhiamboperes b200e0f
Merge branch 'develop' of github.com:oppia/oppia-android into onboard…
adhiamboperes 7a52213
Fix synchronisation issues caused by createEmptyComposeRule()
adhiamboperes 241d58e
Revert formatting changes
adhiamboperes 537b6b9
Refactor callback code
adhiamboperes 4899492
Revert formatting only changes
adhiamboperes a133e6d
Add missing tests
adhiamboperes 885a193
Pull latest changes
adhiamboperes ae0b30a
Merge branch 'onboarding-profile-domain-config' into new-profile-choo…
adhiamboperes 8d294c7
Fix merge issues
adhiamboperes f2b3b83
Merge branch 'onboarding-profile-domain-config' into new-profile-choo…
adhiamboperes 67089ab
Fix lint error
adhiamboperes c34c134
Fix missing import
adhiamboperes 7b68ee3
Merge branch 'develop' into new-profile-chooser-ui-views
adhiamboperes b18b6d2
Merge remote-tracking branch 'upstream/develop' into new-profile-choo…
adhiamboperes 26a3fc1
Merge branch 'develop' into new-profile-chooser-ui-views
adhiamboperes 0c7b755
Merge branch 'develop' of github.com:oppia/oppia-android into new-pro…
adhiamboperes ca44c57
Addressed reviewer comments
adhiamboperes deca5a2
Addressed more reviewer comments
adhiamboperes 0420039
Addressed more reviewer comments
adhiamboperes 8debfbd
Fix failing test
adhiamboperes d6dcd68
Fix scroll issue
adhiamboperes 4900d4e
Merge branch 'develop' into new-profile-chooser-ui-views
adhiamboperes 2b66c3b
Merge branch 'develop' of github.com:oppia/oppia-android into new-pro…
adhiamboperes 810817e
Address reviewer comments.
adhiamboperes 204147b
Merge branch 'new-profile-chooser-ui-views' of github.com:oppia/oppia…
adhiamboperes 5159570
Address more reviewer comments
adhiamboperes 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 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 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 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 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 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 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 |
---|---|---|
|
@@ -7,6 +7,7 @@ import androidx.appcompat.app.AppCompatActivity | |
import androidx.fragment.app.Fragment | ||
import org.oppia.android.R | ||
import org.oppia.android.app.model.AudioLanguage | ||
import org.oppia.android.app.model.IntroActivityParams | ||
import org.oppia.android.app.model.ProfileId | ||
import org.oppia.android.app.options.AudioLanguageActivity | ||
import org.oppia.android.app.translation.AppLanguageResourceHandler | ||
|
@@ -29,7 +30,8 @@ class IntroFragmentPresenter @Inject constructor( | |
inflater: LayoutInflater, | ||
container: ViewGroup?, | ||
profileNickname: String, | ||
profileId: ProfileId | ||
profileId: ProfileId, | ||
parentScreen: IntroActivityParams.ParentScreen | ||
): View { | ||
binding = LearnerIntroFragmentBinding.inflate( | ||
inflater, | ||
|
@@ -43,6 +45,10 @@ class IntroFragmentPresenter @Inject constructor( | |
|
||
profileManagementController.markProfileOnboardingStarted(profileId) | ||
|
||
if (parentScreen == IntroActivityParams.ParentScreen.PROFILE_CHOOSER_SCREEN) { | ||
binding.onboardingStepsCount?.visibility = View.GONE | ||
} | ||
Comment on lines
+48
to
+50
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are both possibilities of this conditional covered in intro fragment tests? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added a test for the |
||
|
||
binding.onboardingNavigationBack.setOnClickListener { | ||
activity.finish() | ||
} | ||
|
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Slight doc rewording suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.