Skip to content
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

Merged
merged 36 commits into from
Mar 21, 2023
Merged

Fix #4845: Dark mode support to Equations Text #4866

merged 36 commits into from
Mar 21, 2023

Conversation

MohitGupta121
Copy link
Member

@MohitGupta121 MohitGupta121 commented Feb 4, 2023

Explanation

Fix #4845 : Dark mode support to Equations Text

Essential Checklist

  • 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: ...".)
  • Any changes to scripts/assets files have their rationale included in the PR explanation.
  • The PR follows the style guide.
  • The PR does not contain any unnecessary code changes from Android Studio (reference).
  • The PR is made from a branch that's not called "develop" and is up-to-date with "develop".
  • The PR is assigned to the appropriate reviewers (reference).

For UI-specific PRs only

Equation Text Screenshots

Equation Text Screen Recording

Equation.Dark.Mode.mp4

Equation Color Test

Day Mode Test

image

Night Mode Test

image

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)
  • Add a video showing the full UX flow with a screen reader enabled (see accessibility guide)
  • Add a screenshot demonstrating that you ran affected Espresso tests locally & that they're passing

Copy link
Member Author

@MohitGupta121 MohitGupta121 left a 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.

@MohitGupta121
Copy link
Member Author

MohitGupta121 commented Feb 4, 2023

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.
So please ignore the test failing for now.

@MohitGupta121
Copy link
Member Author

MohitGupta121 commented Feb 6, 2023

@BenHenning I make PR for Kotlitex Library Please first review and merge that to avoid build and workflow tests failures oppia/kotlitex#1

Copy link
Member

@BenHenning BenHenning left a 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.

@MohitGupta121
Copy link
Member Author

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.

About the tests we need to done that in this PR itself, I think tests will blocking this issue to clear. Just a suggestion.
What you think?

@BenHenning
Copy link
Member

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.

About the tests we need to done that in this PR itself, I think tests will blocking this issue to clear. Just a suggestion. What you think?

Sorry I'm not sure that I'm following--what exactly is blocking adding tests?

@MohitGupta121
Copy link
Member Author

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.

@MohitGupta121
Copy link
Member Author

@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 R is getting from utility and it's working fine.

Copy link
Member

@BenHenning BenHenning left a 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.

Copy link
Contributor

@rt4914 rt4914 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For codeowner files.

@rt4914 rt4914 removed their assignment Mar 11, 2023
Copy link
Member Author

@MohitGupta121 MohitGupta121 left a 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.

Copy link
Member

@BenHenning BenHenning left a 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!

@BenHenning
Copy link
Member

BenHenning commented Mar 20, 2023

Updating from develop & enabling auto-merge.

@BenHenning BenHenning changed the title Fixed #4845 : Dark mode support to Equations Text Fix #4845: Dark mode support to Equations Text Mar 20, 2023
@BenHenning
Copy link
Member

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).

@BenHenning BenHenning enabled auto-merge (squash) March 20, 2023 23:59
@oppiabot
Copy link

oppiabot bot commented Mar 21, 2023

Unassigning @BenHenning since they have already approved the PR.

@oppiabot oppiabot bot added the PR: LGTM label Mar 21, 2023
@oppiabot
Copy link

oppiabot bot commented Mar 21, 2023

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 BenHenning merged commit 0b26c24 into oppia:develop Mar 21, 2023
@MohitGupta121 MohitGupta121 deleted the darkmode-equations branch March 21, 2023 03:26
@MohitGupta121
Copy link
Member Author

@BenHenning Yes Thanks, noted the changes that you made. Yes the issue is also closed now.

Uticodes pushed a commit to Uticodes/oppia-android that referenced this pull request Mar 23, 2023
<!-- 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add dark mode support to Equations Text
3 participants