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

[$500] Chat - Address bar color does not match dark theme when using deeplink #37276

Closed
2 of 6 tasks
izarutskaya opened this issue Feb 27, 2024 · 24 comments
Closed
2 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@izarutskaya
Copy link

izarutskaya commented Feb 27, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Found when validating PR : #34409

Version Number: 1.4.44-0
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal Team

Action Performed:

  1. Go to ND and log in
  2. Open any report and copy the report link
  3. Paste the report link in a new tab
  4. Reload the page

Expected Result:

The address bar color matches the dark theme.

Actual Result:

The address bar color is the default one and does not match the dark theme.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6393660_1709015261691.video_2024-02-27_01-26-11.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~014b2a30780568c7e7
  • Upwork Job ID: 1767254668467286016
  • Last Price Increase: 2024-03-11
  • Automatic offers:
    • alitoshmatov | Reviewer | 0
    • tienifr | Contributor | 0
@izarutskaya izarutskaya added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Feb 27, 2024
Copy link

melvin-bot bot commented Feb 27, 2024

Triggered auto assignment to @CortneyOfstad (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@izarutskaya
Copy link
Author

@CortneyOfstad I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

@izarutskaya
Copy link
Author

We think that this bug might be related to #vip-vsb
CC @quinthar

@CortneyOfstad
Copy link
Contributor

I waas able to recreate this myself 👍 Going to post in the room in Slack

@CortneyOfstad
Copy link
Contributor

Asked here

@melvin-bot melvin-bot bot added the Overdue label Mar 1, 2024
Copy link

melvin-bot bot commented Mar 4, 2024

@CortneyOfstad Eep! 4 days overdue now. Issues have feelings too...

Copy link

melvin-bot bot commented Mar 5, 2024

@CortneyOfstad 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

Copy link

melvin-bot bot commented Mar 6, 2024

@CortneyOfstad Still overdue 6 days?! Let's take care of this!

Copy link

melvin-bot bot commented Mar 7, 2024

@CortneyOfstad Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!

@CortneyOfstad CortneyOfstad added External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors labels Mar 11, 2024
@melvin-bot melvin-bot bot changed the title Chat - Address bar color does not match dark theme when using deeplink [$500] Chat - Address bar color does not match dark theme when using deeplink Mar 11, 2024
Copy link

melvin-bot bot commented Mar 11, 2024

Job added to Upwork: https://www.upwork.com/jobs/~014b2a30780568c7e7

Copy link

melvin-bot bot commented Mar 11, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov (External)

@melvin-bot melvin-bot bot removed the Overdue label Mar 11, 2024
@CortneyOfstad
Copy link
Contributor

Was OoO — but working to get eyes on this 👍

If we do not have any proposals before EOW, will reach out to CS or SM to keep this rolling 👍

@tienifr
Copy link
Contributor

tienifr commented Mar 12, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

The address bar color is the default one and does not match the dark theme.

What is the root cause of that problem?

We're not currently setting the backgroundColor of app (aka the StatusBar color) when we deeplink into the page.

We're assuming the initial status bar background color is splashBG here, then it will change to appBG here in the first render. The problem is in dark mode the splashBG will be the same color as the appBG, so we detect no change and never set the status bar background color.

What changes do you think we should make in order to solve the problem?

If this is false (does not meet the condition for changing to appBG), in the else, we'll check that it's the first render that updateStatusBarStyle is called (using similar approach as this), if yes, we'll update the backgroundColor to theme.appBG, to make sure the app's background color is correct in the first render.

updateStatusBarAppearance({backgroundColor: theme.appBG});

Alternatively, in here, we can just add an useEffect to set background color when deeplinking to the page (first render)

useEffect(() => {
    updateStatusBarAppearance({backgroundColor: theme.appBG});
}, []);

(Or use theme.splashBG)

We can isolate this logic to only on web if we want to.

What alternative solutions did you explore? (Optional)

We can make the currentBackgroundColor a state, similar to statusBarStyle here, it will be undefined initially so when comparing here, it will be different and the initial backgroundColor will be set.

Copy link

melvin-bot bot commented Mar 12, 2024

@CortneyOfstad @alitoshmatov 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!

@melvin-bot melvin-bot bot added the Overdue label Mar 13, 2024
@CortneyOfstad
Copy link
Contributor

@alitoshmatov thoughts on the proposal here? If you can provide feedback by EOD that would be great 👍

@melvin-bot melvin-bot bot removed the Overdue label Mar 14, 2024
@ishpaul777

This comment was marked as outdated.

@alitoshmatov
Copy link
Contributor

Thank you @tienifr for your proposal. Your RCA is correct.

Alternatively, in here, we can just add an useEffect to set background color when deeplinking to the page (first render)

I think this would be the best approach here. But can you make sure that it won't cause any flashing and change current behavior. As far as my research it is working as intended.

We can go with @tienifr 's proposal. Specifically 2nd solution
C+ reviewed 🎀 👀 🎀

Copy link

melvin-bot bot commented Mar 15, 2024

Triggered auto assignment to @francoisl, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 15, 2024
Copy link

melvin-bot bot commented Mar 15, 2024

📣 @alitoshmatov 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Mar 15, 2024

📣 @tienifr 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot added the Overdue label Mar 18, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Overdue Daily KSv2 labels Mar 18, 2024
@tienifr
Copy link
Contributor

tienifr commented Mar 18, 2024

PR ready for review #38460.

@CortneyOfstad
Copy link
Contributor

PR was merged yesterday but has not gone to production, so going to keep an eye on this 👍

@tienifr
Copy link
Contributor

tienifr commented Apr 1, 2024

@CortneyOfstad PR hit production 5 days ago. Payment due should be on April 03.

@CortneyOfstad
Copy link
Contributor

@tienifr — sorry for the delay here! Payments have been completed!

Payment Summary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
No open projects
Status: CRITICAL
Development

No branches or pull requests

6 participants