Add highcontrast btn in signin page and sync it with server values#92117
Conversation
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running: npx ts-node ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
Co-authored-by: Rushat Gabhane <rushatgabhane@gmail.com>
|
@Eskalifer1 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@Krishna2323 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7f87a7e0d3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
Actually i can reproduce probably the same bug on staging, so it's now related to our changes 2026-06-03.13.13.44.mov |
|
Let's merge main to fix eslint+ts |
|
What should we do about this bug? Should we just ignore it here, or is this actually the expected behavior and supposed to be that way? If we don't fix this here, within the scope of this PR, then I haven't found any other issues |
we do theme reconciliation when the user signs in - and not when they click sign in button (this is session only) maybe there is an easy fix. but i don't think we should block on it |
|
@Eskalifer1 all yours! thank you for the extensive review |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 490dc31164
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
Eskalifer1
left a comment
There was a problem hiding this comment.
LGTM!
I'm going to be OOO all next week. So wi will not be able to do smth with regressions if they appear...
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #92049 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
🚧 @luacmartins has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.4.0-0 🚀
Bundle Size Analysis (Sentry): |
|
🤖 Reviewed this PR for help site impact under Help site changes are required. This PR adds an Enable high contrast button to the logged-out sign-in screen (above the language selector), letting users turn on high contrast mode before signing in. The existing Account Settings article only documented enabling high contrast from I created a draft help site PR: #92805
@rushatgabhane, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
Deploy Blocker #92824 was identified to be related to this PR. |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.4.0-7 🚀
|
| const icons = useMemoizedLazyExpensifyIcons(['Moon']); | ||
|
|
||
| const currentTheme = preferredTheme ?? CONST.THEME.DEFAULT; | ||
| const isHighContrast = isHighContrastTheme(currentTheme); |
There was a problem hiding this comment.
The button state should be consistent with the UI, which takes the user's intended theme into account:
App/src/pages/signin/SignInPage.tsx
Line 365 in 48de65f
Fixed via #92978.



Explanation of Change
Fixed Issues
$ #92049
PROPOSAL:
Tests
Tests: high contrast on sign-in
Post login
Offline tests
N/A
QA Steps
Same as QA
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-05-29.at.23.23.48.mov