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

[NEEDS CHECKLIST?] [$500] [MEDIUM] Bank account - Next button is not disabled when Plaid modal is loading #36505

Closed
6 tasks done
lanitochka17 opened this issue Feb 14, 2024 · 18 comments
Assignees
Labels
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 Reviewing Has a PR in review

Comments

@lanitochka17
Copy link

lanitochka17 commented Feb 14, 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!


Version Number: .4.41-3
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 workspace settings from the bottom
  3. Go to any workspace > Bank account
  4. Click Connect online with Plaid
  5. Click Next button

Expected Result:

Next button should be disabled or not appear because it serves no purpose

Actual Result:

Next button is clickable, which leads to an error

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

Bug6379345_1707915482988.bandicam_2024-02-14_13-33-02-940.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~012116e37edfd28ced
  • Upwork Job ID: 1758164914508275712
  • Last Price Increase: 2024-02-15
  • Automatic offers:
    • akinwale | Reviewer | 0
    • Pujan92 | Contributor | 0
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Feb 14, 2024
Copy link
Contributor

👋 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 Feb 14, 2024

Triggered auto assignment to @MariaHCD (Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@lanitochka17
Copy link
Author

We think that this bug might be related to #wave5
CC @dylanexpensify

@mountiny mountiny assigned akinwale and mountiny and unassigned MariaHCD Feb 14, 2024
@mountiny mountiny added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Feb 14, 2024
@mountiny
Copy link
Contributor

Not a blocker, we can follow up easily, users are not blocked in any way

@ghost
Copy link

ghost commented Feb 15, 2024

Proposal

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

Bank account - Next button is not disabled when Plaid modal is loading.

What is the root cause of that problem?

The root cause of the issue is that we are showing the Next button on the Plaid Modal, which is not needed as discussed mentioned above.

<FormProvider
formID={ONYXKEYS.FORMS.REIMBURSEMENT_ACCOUNT_FORM}
validate={validate}
onSubmit={handleNextPress}
scrollContextEnabled
submitButtonText={translate('common.next')}
style={[styles.mh5, styles.flexGrow1]}
>

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

We can just pass a prop called isSubmitButtonVisible = {false} in the above code, this will not show Next button on the Plaid Modal.

What alternative solutions did you explore? (Optional)

N/A

Result

The Next button, will not appear on the Plaid Modal.

Screen.Recording.2024-02-15.at.1.41.59.PM.mp4

@Pujan92
Copy link
Contributor

Pujan92 commented Feb 15, 2024

Proposal

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

Next button is displayed when plaid is loading

What is the root cause of that problem?

Seems it(isSubmitButtonVisible) is removed from this commit, but we require isSubmitButtonVisible to hide the next button initially.
cc: @MrMuzyk

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

We need to re-add isSubmitButtonVisible, if not fully we need to partially consider the bankAccounts length. I mentioned partially bcoz for the account picker we do have validation so we don't need to re-add condition !!selectedPlaidAccountID

isSubmitButtonVisible={(plaidData?.bankAccounts ?? []).length > 0}
Result
test2.mov

@MrMuzyk
Copy link
Contributor

MrMuzyk commented Feb 15, 2024

@mountiny

If hiding the button when we're initialising Plaid is accepted solution here than @Pujan92 proposal will work well here

@akinwale
Copy link
Contributor

We can move forward with @Pujan92's proposal here.

🎀👀🎀 C+ reviewed.

Copy link

melvin-bot bot commented Feb 15, 2024

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

@mountiny mountiny added the External Added to denote the issue can be worked on by a contributor label Feb 15, 2024
@melvin-bot melvin-bot bot changed the title Bank account - Next button is not disabled when Plaid modal is loading [$500] Bank account - Next button is not disabled when Plaid modal is loading Feb 15, 2024
Copy link

melvin-bot bot commented Feb 15, 2024

Job added to Upwork: https://www.upwork.com/jobs/~012116e37edfd28ced

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

melvin-bot bot commented Feb 15, 2024

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

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

melvin-bot bot commented Feb 15, 2024

📣 @akinwale 🎉 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

@mountiny
Copy link
Contributor

@osrry for the ping Monil, handling this one

Copy link

melvin-bot bot commented Feb 15, 2024

📣 @Pujan92 🎉 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 Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Feb 15, 2024
@greg-schroeder greg-schroeder changed the title [$500] Bank account - Next button is not disabled when Plaid modal is loading [$500] [MEDIUM] Bank account - Next button is not disabled when Plaid modal is loading Feb 15, 2024
@greg-schroeder greg-schroeder changed the title [$500] [MEDIUM] Bank account - Next button is not disabled when Plaid modal is loading [$500] [MEDIUM] Bank account - Next button is not disabled when Plaid modal is loading Feb 15, 2024
@mountiny mountiny added the Bug Something is broken. Auto assigns a BugZero manager. label Mar 4, 2024
@mountiny
Copy link
Contributor

mountiny commented Mar 4, 2024

Payment for @akinwale will be handled here #22901 (comment)

Copy link

melvin-bot bot commented Mar 4, 2024

Triggered auto assignment to @jliexpensify (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 Mar 4, 2024
@mountiny mountiny changed the title [$500] [MEDIUM] Bank account - Next button is not disabled when Plaid modal is loading [HOLD for payment 2024-03-05] [$500] [MEDIUM] Bank account - Next button is not disabled when Plaid modal is loading Mar 4, 2024
@jliexpensify
Copy link
Contributor

Cancelled contract with @akinwale, paid @Pujan92 and closed job.

@akinwale does the checklist need to be completed?

@jliexpensify jliexpensify changed the title [HOLD for payment 2024-03-05] [$500] [MEDIUM] Bank account - Next button is not disabled when Plaid modal is loading [NEEDS CHECKLIST?] [$500] [MEDIUM] Bank account - Next button is not disabled when Plaid modal is loading Mar 6, 2024
@akinwale
Copy link
Contributor

akinwale commented Mar 8, 2024

@jliexpensify This doesn't need a checklist as it's essentially a follow-up issue for a new feature.

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. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review
Projects
Archived in project
Development

No branches or pull requests

8 participants