-
Notifications
You must be signed in to change notification settings - Fork 520
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 #4845: Dark mode support to Equations Text #4866
Conversation
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.
@rt4914 PTAL on the darkmode of equation-text if there is any changes.
@BenHenning I updated the Colors as we discuss in last meeting. Only now I left with kotlitex PR.
The workflow Tests are failing as the library is not updated as per my changes but I raised PR for that changes directly into kotlitex library. |
@BenHenning I make PR for Kotlitex Library Please first review and merge that to avoid build and workflow tests failures oppia/kotlitex#1 |
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 @MohitGupta121. oppia/kotlitex#1 is now merged, so this PR can be updated to point to the new latest commit to the fork.
Beyond that, is there also a way to add tests to verify that the correct color is being passed to the span for day/night modes? I think we can set this in Robolectric tests via config.
utility/src/main/java/org/oppia/android/util/parser/html/MathTagHandler.kt
Outdated
Show resolved
Hide resolved
utility/src/main/java/org/oppia/android/util/parser/math/MathBitmapModelLoader.kt
Outdated
Show resolved
Hide resolved
About the tests we need to done that in this PR itself, I think tests will blocking this issue to clear. Just a suggestion. |
Sorry I'm not sure that I'm following--what exactly is blocking adding tests? |
Okay sure, I'll add tests for that also. Only blocking is that I have not have clear idea about that tests but I try in this so that it helps me in future issues also. |
@BenHenning I not understand why this https://github.com/oppia/oppia-android/actions/runs/4110540436/jobs/7093464931#step:13:1542 tests is failing as in my local |
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 @MohitGupta121! Took another pass--PTAL.
utility/src/main/java/org/oppia/android/util/parser/math/BUILD.bazel
Outdated
Show resolved
Hide resolved
utility/src/main/java/org/oppia/android/util/parser/html/MathTagHandler.kt
Outdated
Show resolved
Hide resolved
utility/src/main/java/org/oppia/android/util/parser/math/MathBitmapModelLoader.kt
Outdated
Show resolved
Hide resolved
utility/src/test/java/org/oppia/android/util/parser/html/MathTagHandlerTest.kt
Outdated
Show resolved
Hide resolved
utility/src/test/java/org/oppia/android/util/parser/html/MathTagHandlerTest.kt
Outdated
Show resolved
Hide resolved
utility/src/main/java/org/oppia/android/util/parser/math/MathBitmapModelLoader.kt
Show resolved
Hide resolved
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.
For codeowner files.
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.
@BenHenning PTAL, I make all changes as per review.
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 @MohitGupta121. This LGTM!
Updating from develop & enabling auto-merge. |
Also @MohitGupta121 please note the edits I made to your PR title & description for the correct verb tenses to use when referring to the issues being fixed. Part of this is to make sure GitHub closes the issues being fixed correctly, and the other is for consistency with other PRs (which is ultimately based on a Git best practice when referring to issues being fixed). |
Unassigning @BenHenning since they have already approved the PR. |
Hi @MohitGupta121, this PR is ready to be merged. Please address any remaining comments prior to merging, and feel free to ask someone to merge your PR once the CI checks pass and you're happy with it. Thanks! |
@BenHenning Yes Thanks, noted the changes that you made. Yes the issue is also closed now. |
<!-- READ ME FIRST: Please fill in the explanation section below and check off every point from the Essential Checklist! --> ## Explanation Fixes oppia#4845 : Dark mode support to Equations Text <!-- - Explain what your PR does. If this PR fixes an existing bug, please include - "Fixes #bugnum:" in the explanation so that GitHub can auto-close the issue - when this PR is merged. --> ## 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 ### Equation Text Screenshots <img src="https://user-images.githubusercontent.com/76530270/216761443-21a973e8-20f9-4fbb-a19d-595530dfebb9.jpg" height="400" style="max-width: 100%"> <img src="https://user-images.githubusercontent.com/76530270/216761463-b4a49932-7b9c-4b2a-b3e6-96a5a693f058.jpg" height="400" style="max-width: 100%"> ### Equation Text Screen Recording https://user-images.githubusercontent.com/76530270/216761782-027744b7-a0df-41ca-8547-2e7f52eaea0c.mp4 ## Equation Color Test #### Day Mode Test ![image](https://user-images.githubusercontent.com/76530270/222653431-05f7e726-c8f0-4677-a48e-8ca37c5ea8e4.png) #### Night Mode Test ![image](https://user-images.githubusercontent.com/76530270/222653513-458e25ce-9508-480e-bdfc-a4ede5e8a0ed.png) <!-- 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 --------- Co-authored-by: Ben Henning <ben@oppia.org>
Explanation
Fix #4845 : Dark mode support to Equations Text
Essential Checklist
For UI-specific PRs only
Equation Text Screenshots
Equation Text Screen Recording
Equation.Dark.Mode.mp4
Equation Color Test
Day Mode Test
Night Mode Test
If your PR includes UI-related changes, then: