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] BA - When page is reloaded in any form page, "Open in app" banner turns dark mode #34154

Closed
1 of 6 tasks
lanitochka17 opened this issue Jan 9, 2024 · 52 comments
Closed
1 of 6 tasks
Assignees
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Jan 9, 2024

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.23-0
Reproducible in staging?: Y
Reproducible in production?: Cannot test on prod
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:

Pre-requisite: user must have New Expensify app installed and set light mode

  1. Go to Settings > Workspace > Bank account
  2. Start the add bank account flow
  3. In any form page, reload the page

Expected Result:

The "Open in app" banner should remain in light mode

Actual Result:

The "Open in app" banner turns to dark mode

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

Add any screenshot/video evidence

Bug6336784_1704813052853.Cumh5666_1_.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01b0434639aab4eb51
  • Upwork Job ID: 1745355229456834560
  • Last Price Increase: 2024-01-11
  • Automatic offers:
    • ishpaul777 | Contributor | 28094255
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Jan 9, 2024
Copy link
Contributor

github-actions bot commented Jan 9, 2024

👋 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:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Jan 9, 2024

Triggered auto assignment to @bondydaa (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@ishpaul777
Copy link
Contributor

ishpaul777 commented Jan 9, 2024

Proposal

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

When page is reloaded in any form page, "Open in app" banner turns dark mode

What is the root cause of that problem?

if (newStatusBarStyle !== statusBarStyle) {
updateStatusBarAppearance({statusBarStyle: newStatusBarStyle});
setStatusBarStyle(newStatusBarStyle);
}

☝️ here the status bar color is only changes when newStatusBarStyle !== statusBarStyle which seems to be wrong conditional

offending PR- #33200

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

Change it back to what it was before:

           if (newStatusBarStyle === statusBarStyle) {
                updateStatusBarAppearance({backgroundColor: currentScreenBackgroundColor});
            } else {
                updateStatusBarAppearance({backgroundColor: currentScreenBackgroundColor, statusBarStyle: newStatusBarStyle});
                setStatusBarStyle(newStatusBarStyle);
            }

I am available to raise a quick PR as this is a Deploy blocker

@aimane-chnaif
Copy link
Contributor

@ishpaul777 the proposal makes sense (not tested) but how can you show smart banner in dev?

@ishpaul777
Copy link
Contributor

ishpaul777 commented Jan 9, 2024

this is reporducable for status bar on simulator, smart banner just uses status bar color

Screenshot 2024-01-10 at 2 10 26 AM

@aimane-chnaif
Copy link
Contributor

@ishpaul777's proposal looks good and tests well.
cc: @bondydaa

Simple repro step:

  1. Be in light mode
  2. Open any chat
  3. Refresh app

@bondydaa
Copy link
Contributor

bondydaa commented Jan 9, 2024

if this was caused by #33200 then it's not a blocker b/c that was deployed to prod it looks like.

I posted on on that issue to get @roryabraham and @situchan 's 👀 on it but going to remove the blocker for now.

@bondydaa bondydaa added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Jan 9, 2024
@aimane-chnaif
Copy link
Contributor

right, already in production

Reproducible in production?: Cannot test on prod - this is the only reason for marking as deploy blocker I think

@aimane-chnaif
Copy link
Contributor

cc: @chrispader since you removed backgroundColor in status bar

@ishpaul777
Copy link
Contributor

ishpaul777 commented Jan 9, 2024

This is reproducible on production also, so I think this can be treated as usual bug

trim.431911ED-6803-4DE6-8D89-52814790F05A.MOV

@roryabraham
Copy link
Contributor

I think @ishpaul777's proposal looks good.

@roryabraham roryabraham added the External Added to denote the issue can be worked on by a contributor label Jan 11, 2024
@melvin-bot melvin-bot bot changed the title BA - When page is reloaded in any form page, "Open in app" banner turns dark mode [$500] BA - When page is reloaded in any form page, "Open in app" banner turns dark mode Jan 11, 2024
Copy link

melvin-bot bot commented Jan 11, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01b0434639aab4eb51

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

melvin-bot bot commented Jan 11, 2024

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

Copy link

melvin-bot bot commented Jan 11, 2024

📣 @ishpaul777 🎉 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 📖

@ishpaul777
Copy link
Contributor

Thanks for assignment. PR will be up within 24hrs

@roryabraham roryabraham added the Weekly KSv2 label Feb 16, 2024
@roryabraham
Copy link
Contributor

Looks like @parasharrajat will be back next week, and I think we can wait until then for this PR

@melvin-bot melvin-bot bot added the Overdue label Feb 19, 2024
Copy link

melvin-bot bot commented Feb 19, 2024

@parasharrajat, @roryabraham, @ishpaul777 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@roryabraham
Copy link
Contributor

Looks like @parasharrajat is back and should get to the PR soon

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Feb 20, 2024
@roryabraham
Copy link
Contributor

I see review activity in the last 12 hours, so review is ongoing

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Feb 23, 2024
@parasharrajat
Copy link
Member

PR close to merge.

@melvin-bot melvin-bot bot removed the Overdue label Feb 26, 2024
@roryabraham
Copy link
Contributor

PR merged 🚀

@melvin-bot melvin-bot bot added the Overdue label Feb 29, 2024
Copy link

melvin-bot bot commented Mar 1, 2024

@parasharrajat, @roryabraham, @ishpaul777 Whoops! This issue is 2 days overdue. Let's get this updated quick!

@ishpaul777
Copy link
Contributor

PR is merged and deployed to prod

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Mar 1, 2024
@ishpaul777
Copy link
Contributor

not overdue

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Mar 4, 2024
@abekkala abekkala self-assigned this Mar 7, 2024
@melvin-bot melvin-bot bot removed the Overdue label Mar 7, 2024
@abekkala
Copy link
Contributor

abekkala commented Mar 7, 2024

self-assigning to get payments sent now that regression period is over.

@abekkala
Copy link
Contributor

abekkala commented Mar 7, 2024

PAYMENT SUMMARY:

@abekkala
Copy link
Contributor

abekkala commented Mar 7, 2024

@ishpaul777 payment sent and contract ended - thank you! 🎉

@parasharrajat
Copy link
Member

@abekkala Feel free to close it. I will request later. Thanks.

@abekkala abekkala closed this as completed Mar 7, 2024
@parasharrajat
Copy link
Member

Payment requested as per #34154 (comment)

@JmillsExpensify
Copy link

$500 approved for @parasharrajat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
None yet
Development

No branches or pull requests

10 participants