-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2023-12-28][$500][Theme Switching] 🐛 Android - Track distance - The inscription in the pop-up window is hardly visible in light mode #33136
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
Triggered auto assignment to @jasperhuangg ( |
@grgia looks like this is related to themes, do you think you could get a fix up? |
At least for the workspace reimburse view portion of this issue–it seems like the bug is coming from us not passing theme styles into these components: App/src/pages/workspace/reimburse/WorkspaceRateAndUnitPage.js Lines 182 to 205 in 4592a7c
@grgia do you know what styles we're supposed to be passing here? |
@jasperhuangg if we pass the {color: theme.textLight} we can make the text white for now on both platforms (or textReversed depending on what this looks like on dark mode) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Track distance - The inscription in the pop-up window is hardly visible in light mode What is the root cause of that problem?All these errors are because of the The text is hardcoded to be always white here: App/src/components/Picker/BasePicker.tsx Line 168 in 4592a7c
What changes do you think we should make in order to solve the problem?We should make sure the color: theme.textLight For Base Picker BackgroundWe should pass the App/src/components/AddPlaidBankAccount.js Lines 246 to 255 in 4592a7c
App/src/pages/workspace/reimburse/WorkspaceRateAndUnitPage.js Lines 199 to 204 in 4592a7c
App/src/pages/ReimbursementAccount/CompanyStep.js Lines 233 to 241 in 4592a7c
backgroundColor={theme.componentBG} AlternativelyWe can remove the backgroundColor prop and set it according to theme inside the |
@neonbhai I like setting this in the base picker, any reason why you made that your alternative solution? |
All of these are same issues:
We should make native alert modal and picker background to white in light mode |
@Julesssss Hey, was wondering if it wasn't done already for a reason. Setting it in base picker itself is a cleaner solution! |
@situchan I agree with that, we should fix those in one PR |
Goin
Will try test, but I think it will depend on system theme. If we should match with app theme, there should be way to communicate between RN and native so if user preference is updated in RN, it should send to native so that native modals update theme properly. |
Thank you, I think if we go this route, we should try to match the theme. I guess the alternative is using one modal color style on all devices since it only affects android. Let me check with design @situchan |
This one specifically has a secondary problem as the text color is being set to text (?) so at least we should pass the correct text color for both themes |
@situchan if you're able to test the solution, I think for now if we fix the text color to white so it's at least readable then we can remove the deploy blocker and fix the modals pending the convo in slack. If @neonbhai's proposal addresses the text color so it works on the 4 cases (OS Dark/Dark, OS Dark/Light OS Light/Dark OS Light/Light), then let's move forward with that- even if the modal remains dark theme on android light |
App/src/components/Picker/BasePicker.tsx Lines 167 to 168 in 4592a7c
@neonbhai that color was also hardcoded intentionally to fix windows picker issue |
I think we should use platform specific code for this. |
App/src/styles/theme/themes/light.ts Line 68 in 655c06c
@situchan the pickerOptionsTextColor is set to a light color on light mode |
@neonbhai can you share your test branch? |
@neonbhai and @situchan - to prepare for the payment process, please apply for the job here: https://www.upwork.com/jobs/~01ee03b399c3458856 I'm OOO starting on Friday and want to make sure that this one is ready for payment next week. Thanks! |
Hi @alexpensify, Thank you! Looks like I'll have to buy upwork connects to apply. Please send an invite if possible! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.14-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-12-28. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue: |
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
I've confirmed that offers have been sent via Upwork to @situchan and @neonbhai. @situchan please complete the checklist. It looks like the payment date changed to December 28. Heads up, I'm OOO until January 4, but I will log in on Friday, December 29 to complete this payment process pending no regression. |
Waiting for BZ checklists and payments here, not expecting payments to be complete until 12/29. |
Closing - Thank you everyone for your patience here. I've completed the payment process in Upwork and closed this job. Happy New Year! @situchan please complete the checklist when you get a chance, thanks! |
Happy new year! We can skip checklist as regression came from theme switching (which won't happen again in the future) and bug was caught by QA team |
Noted and thank you. |
Thanks @alexpensify, wishing you a Happy New Year! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.13-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Precondition: user turns on light mode on the app
Expected Result:
The inscription in the pop-up window is good visible
Actual Result:
The inscription in the pop-up window is hardly visible
The same behavior happens with pop-up windows during connecting bank account
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @alexpensifyUpwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: