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

[HOLD for payment 2024-01-25] [$500] Bank account - Missing white background when Plaid modal is rendering #32685

Closed
2 of 6 tasks
kbecciv opened this issue Dec 7, 2023 · 38 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented Dec 7, 2023

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


Version Number: 1.4.9.2
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:

  1. Go to staging.new.expensify.com.
  2. Go to Settings > Workspaces > any workspace.
  3. Go to Bank account.
  4. Click Connect online with Plaid.

Expected Result:

When Plaid modal is rendering, a white background will appear with a spinner (PROD behavior).

Actual Result:

When Plaid modal is rendering, the background is transparent instead of white., which now looks like having two spinners on the same page.

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

Staging

Bug6304618_1701964176410.20231207_063505.mp4

Production

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0190435a1b9eb3175f
  • Upwork Job ID: 1732815115354394624
  • Last Price Increase: 2023-12-07
  • Automatic offers:
    • alitoshmatov | Reviewer | 28064602
    • tienifr | Contributor | 28064603
Issue OwnerCurrent Issue Owner: @muttmuure
@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Dec 7, 2023
Copy link
Contributor

github-actions bot commented Dec 7, 2023

👋 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 Dec 7, 2023

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

@neil-marcellini
Copy link
Contributor

Taking a look 👀

@neil-marcellini
Copy link
Contributor

Nothing really jumps out to me from the list of PRs in this release, but maybe the theme switching has to do with it. I'll do a little investigation locally now.

@neil-marcellini
Copy link
Contributor

Shoot, I'm really not sure what's going on here. The view is rendered by react-plaid-link in an iframe. I was able to pause and inspect the page by setting a debugger below this line, but I haven't figure out the root cause. My guess is that we somehow broke this when changing some of the root styles of the app. I'll ask for help in the Slack open source channel.

image

@neil-marcellini
Copy link
Contributor

Posted in Slack here

@neil-marcellini neil-marcellini added Daily KSv2 External Added to denote the issue can be worked on by a contributor and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Dec 7, 2023
@melvin-bot melvin-bot bot changed the title Bank account - Missing white background when Plaid modal is rendering [$500] Bank account - Missing white background when Plaid modal is rendering Dec 7, 2023
Copy link

melvin-bot bot commented Dec 7, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0190435a1b9eb3175f

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 7, 2023
Copy link

melvin-bot bot commented Dec 7, 2023

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

@ZhenjaHorbach
Copy link
Contributor

ZhenjaHorbach commented Dec 7, 2023

The problem is related to this PR #32259
I added these lines and the background returned)

https://github.com/Expensify/App/pull/32259/files#diff-8f62b6ced28d3396b501d2e89a2e7cb761d16cd7dc977aebece03d4a5da5c24eL34-L36

@neil-marcellini
Copy link
Contributor

This issue isn't really a big deal so it shouldn't block the deploy

@grgia
Copy link
Contributor

grgia commented Dec 7, 2023

We cannot use root styling anymore, so we will need to handle this another way

@grgia
Copy link
Contributor

grgia commented Dec 7, 2023

cc @chrispader

@tienifr
Copy link
Contributor

tienifr commented Dec 7, 2023

Proposal

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

When Plaid modal is rendering, the background is transparent instead of white., which now looks like having two spinners on the same page.

What is the root cause of that problem?

We don't have color-scheme: dark !important; on :root any more so this happens.

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

Add color-scheme: dark !important; in CSS to target the iframe of Plaid. We've done similar things with Onfido as well.

What alternative solutions did you explore? (Optional)

We can make the color scheme dynamic based on theme.colorScheme as well, but still targeting the iframe of Plaid.

@grgia
Copy link
Contributor

grgia commented Dec 7, 2023

@tienifr we cannot add that line back because we are adding a light theme to App

@tienifr
Copy link
Contributor

tienifr commented Dec 7, 2023

@grgia we add it back but only targeting the Plaid iframe, it won't affect other components, or do you mean there'll be light theme for the Plaid background as well?

@grgia
Copy link
Contributor

grgia commented Dec 7, 2023

I more mean I think we should avoid any hardcoded colors via CSS and use a ColorSchemeWrapper instead. But you're correct that that would work for this specific case if we only target the iframe

@tienifr
Copy link
Contributor

tienifr commented Dec 7, 2023

@grgia yeah but Plaid is 3rd party code so it won't work with our custom components, unless we ask the library authors to add a prop like colorScheme to their exposed hook, which I'm not sure they'll agree to.

I think it's better we treat it as 3rd party code and have a CSS file like we did for Onfido here, and make sure it doesn't impact other components, which will of course follow our color scheme pattern.

cc @chrispader

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production labels Jan 18, 2024
@melvin-bot melvin-bot bot changed the title [$500] Bank account - Missing white background when Plaid modal is rendering [HOLD for payment 2024-01-25] [$500] Bank account - Missing white background when Plaid modal is rendering Jan 18, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jan 18, 2024
Copy link

melvin-bot bot commented Jan 18, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Jan 18, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.26-2 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 2024-01-25. 🎊

For reference, here are some details about the assignees on this issue:

@alitoshmatov
Copy link
Contributor

This is ready for payment

@alitoshmatov
Copy link
Contributor

I think there is no bugzero member assigned to handle payment here

cc: @grgia @neil-marcellini

@melvin-bot melvin-bot bot added the Overdue label Feb 6, 2024
@neil-marcellini
Copy link
Contributor

Yep thanks, assigning one

@melvin-bot melvin-bot bot removed the Overdue label Feb 7, 2024
@neil-marcellini neil-marcellini added Bug Something is broken. Auto assigns a BugZero manager. Help Wanted Apply this label when an issue is open to proposals by contributors External Added to denote the issue can be worked on by a contributor and removed Help Wanted Apply this label when an issue is open to proposals by contributors External Added to denote the issue can be worked on by a contributor labels Feb 7, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 7, 2024
Copy link

melvin-bot bot commented Feb 7, 2024

Current assignee @alitoshmatov is eligible for the External assigner, not assigning anyone new.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Feb 7, 2024
@neil-marcellini neil-marcellini added Weekly KSv2 and removed Daily KSv2 Help Wanted Apply this label when an issue is open to proposals by contributors labels Feb 7, 2024
Copy link

melvin-bot bot commented Feb 7, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Feb 7, 2024
@muttmuure
Copy link
Contributor

Handling

@muttmuure
Copy link
Contributor

Everyone is paid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
No open projects
Development

No branches or pull requests

7 participants