-
Notifications
You must be signed in to change notification settings - Fork 527
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
Completed/ongoing story strings should be separate text views rather than a combined string #3843
Comments
Hi, can I work on this issue, I have worked in this repo before, but its been long time, so I want to start again to contribute, so this will be a good re-starting point for me. |
Hi @jkugsiya , can you give a brief description of how you are tackling this? What files have you changed, what is the actual cause of the issue? Feel free to post your approach here and if it looks like it is in the right direction, we can assign this to you. Thanks! |
Hi @MohitGupta121, the way I want to tackle this is to create two separate views to display the text, I would like to have assistance in approaching the same. |
Okay Thanks @jkugsiya Please go ahead. |
Hi @MohitGupta121, where can I ask questions regarding this as I am starting again and want to re-gain the concepts. Or can you please brief me through this as what to be implemented. Thanks and apologies for this much delay. |
@jkugsiya Totally fine, You can ask your queries in the Github-discussion Tab of oppia-android. |
Unassigning @jkugsiya due to inactivity |
@adhiamboperes I would like to work on this issue |
@dev-divyansh Feel free to post your approach here and if it looks good, we will assign this to you. Thanks! |
@adhiamboperes Sorry , for the late reply was busy with other stuff. |
@adhiamboperes on checking the code for welcome viewmodel and its layout what i saw is that there are already two seperate textviews for both the texts welcome and name. |
@adhiamboperes what u say ?? |
Feel free to put up a PR showing your proposed solution. |
This issue requests changes in |
## Explanation Fix #3843 Instead of using 1 textview to display a concatenated string, now have 1 textview for story progress, 1 for bar separator, and 1 for topic progress. ## Essential Checklist <!-- Please tick the relevant boxes by putting an "x" in them. --> - [x] The PR title and explanation each start with "Fix #bugnum: " (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".) - [x] Any changes to [scripts/assets](https://github.com/oppia/oppia-android/tree/develop/scripts/assets) files have their rationale included in the PR explanation. - [x] The PR follows the [style guide](https://github.com/oppia/oppia-android/wiki/Coding-style-guide). - [x] The PR does not contain any unnecessary code changes from Android Studio ([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#undo-unnecessary-changes)). - [x] The PR is made from a branch that's **not** called "develop" and is up-to-date with "develop". - [x] The PR is **assigned** to the appropriate reviewers ([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#clarification-regarding-assignees-and-reviewers-section)). ## For UI-specific PRs only <!-- Delete these section if this PR does not include UI-related changes. --> If your PR includes UI-related changes, then: - Add screenshots for portrait/landscape for both a tablet & phone of the before & after UI changes - For the screenshots above, include both English and pseudo-localized (RTL) screenshots (see [RTL guide](https://github.com/oppia/oppia-android/wiki/RTL-Guidelines)) - Add a video showing the full UX flow with a screen reader enabled (see [accessibility guide](https://github.com/oppia/oppia-android/wiki/Accessibility-A11y-Guide)) - Add a screenshot demonstrating that you ran affected Espresso tests locally & that they're passing |LTR|RTL| |---|---| |![Screenshot_20230913_170309](https://github.com/oppia/oppia-android/assets/74568012/5d10ee41-41cb-46f1-b37d-b368e247c108)|![Screenshot_20230913_170148](https://github.com/oppia/oppia-android/assets/74568012/d5ee32ce-1899-4e5c-825c-3070f5e132ad)| |![Screenshot_20230913_165312](https://github.com/oppia/oppia-android/assets/74568012/4435074e-41b3-4b0b-9dd1-7cfc1b3bfd72)|![Screenshot_20230913_170218](https://github.com/oppia/oppia-android/assets/74568012/476060ea-15b8-4636-afa0-89fdb130d05b)| ## Tests ![Screenshot 2023-09-15 101749](https://github.com/oppia/oppia-android/assets/74568012/2ee79906-22e8-42a0-b3b6-b71676b50f92) --------- Co-authored-by: Adhiambo Peres <[email protected]>
After #3795, NavigationDrawerHeaderViewModel combines two strings (for ongoing & completed stories) into a single one. String concatenation should never be used for display purposes since it can be wrong in LTR/RTL situations. Instead, there should be separate text views or a single string to represent the text.
The text was updated successfully, but these errors were encountered: