-
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
[$500] mWeb - Magic link - "Open in app" banner is dark themed on magic code page in light mode #33476
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01f555a808f6be075d |
Triggered auto assignment to @dylanexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @cubuspl42 ( |
This comment was marked as outdated.
This comment was marked as outdated.
ProposalRoot cause:When logged out, the preferred theme from storage isn't set and defaults to dark mode. App/src/hooks/useThemePreference.ts Lines 13 to 17 in 760c67c
Solutioncc: @grgia @chrispader I'm pretty sure this is the expected behavior? |
ProposalPlease re-state the problem that we are trying to solve in this issue.Smart App Banner is always in dark mode. What is the root cause of that problem?The problem here is the inconsistency. The validate code page is supposed to always have dark mode (just like In What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)NA |
@rushatgabhane Please stick to the proposal template, read the contributing guidelines for more details. 😎 |
Can we? Would you share some details? |
@rushatgabhane is right about the persistence of the Having said that, the current issue can be fixed independent of that one because this one is regarding the system default theme logic compared to the other issue which is regarding the persistence of a chosen theme. ProposalPlease re-state the problem that we are trying to solve in this issueThe "Open in app" banner is in dark mode even if the app is in light mode. It happens for all
What is the root cause of that problem?The root cause is that we hardcoded the theme to dark for the SignInPage App/src/pages/signin/SignInPage.js Lines 288 to 291 in 862b0ea
Therefore the What changes do you think we should make in order to solve the problem?To preserve the This way when the user reaches the above mentioned screens while in light mode, the background of the "Open in app" banner will use the correct theme. Changed codefunction SignInPage(props) {
return (
<ThemeProvider theme={CONST.THEME.DARK}>
<ThemeStylesProvider>
<ColorSchemeWrapper>
+ {/* Re-wrap CustomStatusBarAndBackground to override the hardcoded dark theme set above to system default or onyx `preferredTheme` (if existing) */ }
+ <ThemeProvider>
+ <CustomStatusBarAndBackground isNested />
+ </ThemeProvider>
... What alternative solutions did you explore? (Optional)Moving Below I added videos for both cases - when system default theme is light or dark showing both the issue screen and sign in screen. I cannot get the banner to show on local development - it will only be seen once the fix is deployed to staging. Note: When the theme is light, the status bar of the
VideosiOS: mWeb SafariScreen.Recording.2023-12-22.at.19.05.09.mov |
Instead of this, we can also just move the
|
@cubuspl42, @dylanexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@cubuspl42, @dylanexpensify Eep! 4 days overdue now. Issues have feelings too... |
@grgia Would you comment on the Rushat's question? |
Yes, if (previously) logged out all the data will be cleared and the default theme should be |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@cubuspl42, @dylanexpensify Huh... This is 4 days overdue. Who can take care of this? |
@dylanexpensify I think we should close this one. It's more like a design discussion than an apparent bug. Also, the impact seems to be negligible. The dark banner, arguably, composes well with the system bar. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@cubuspl42 @dylanexpensify this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@cubuspl42, @dylanexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
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.15-1
Reproducible in staging?: Y
Reproducible in production?: Y
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:
Expected Result:
The "Open in app" banner should be in light mode
Actual Result:
The "Open in app" banner is in dark mode even if the app is in light mode.
It also happens if the app has 2FA enabled and on the "Magic code expired" page
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
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: