-
Notifications
You must be signed in to change notification settings - Fork 514
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 #3930 Greeting text on home screen should be a single TextView #5131
Fix #3930 Greeting text on home screen should be a single TextView #5131
Conversation
@adhiamboperes am I going the right way? |
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.
Thanks @ShubhadeepKarmakar!
I have left some comments inline.
Here is a resource on Localization in android thet might help.
Now just need to customize corresponding tests? |
Yes please, make sure the tests pass. Also please address, in your PR description, the concerns raised in the issue description regarding LTR and the underline text. |
@adhiamboperes please check it. |
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.
Thanks @ShubhadeepKarmakar!
I have one comment to help fix your failing test.
Once all your CI checks pass, please assign this PR to Ben by @ mentioning him with "(@)Ben Henning, PTAL".
@adhiamboperes can you help me to get out of these 4 failed checks? |
@ShubhadeepKarmakar actually your one of the Robolectric test is failing as String in Arabic is not matching with exact text. You have to change the text as per the log excepted here in this test. For more details go through this wiki |
@MohitGupta121 thanks but still two checks failed. |
Hi @ShubhadeepKarmakar, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue. |
app/src/sharedTest/java/org/oppia/android/app/home/HomeActivityTest.kt
Outdated
Show resolved
Hide resolved
Hi @ShubhadeepKarmakar, please let me know if you need any further assistance with this PR. |
Hi @ShubhadeepKarmakar, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue. |
…e this test work on Espresso & Robolectric.
…://github.com/ShubhadeepKarmakar/oppia-android into greeting-text-on-home-page-to-single-textview
@ShubhadeepKarmakar please re-assign this PR to me once you have addressed all the comments. |
Then there will be no space between greeting and profile name. |
There will be, if you put a space between the two %s in the template. Have you tried the solution? |
Thanks @adhiamboperes. Sorry it was my fault, I changed the welcome() function like you said. |
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.
Thanks @ShubhadeepKarmakar, LGTM.
Assigning @BenHenning for code owner reviews. Thanks! |
Hi @ShubhadeepKarmakar, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue. |
Explanation
Removes
profile_name_text_view
and combines the greeting text and profile name using one string template,welcome_profile_name
inWelcomeViewModel.computeWelcomeText()
In the
testHomeActivity_initialArabicContext_displaysStringsInArabic
test, unicode characters\u200F\u202A...\u202C\u200F!
are introduced to allow bidirectional reading.Essential Checklist
For UI-specific PRs only
If your PR includes UI-related changes, then:
RTL:
LTR: