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-11-13] [HOLD for payment 2024-11-11] [Workspace Feeds] Handle manual bank account verification before provisioning cards #49472

Closed
mountiny opened this issue Sep 19, 2024 · 65 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Design NewFeature Something to build that is a new item. Weekly KSv2

Comments

@mountiny
Copy link
Contributor

mountiny commented Sep 19, 2024

### Problem

In some cases, when policy admin is adding a VBBA, the bank account cannot be auto-approved, and we need to do manual checks to verify the bank account can be used for reimbursements and expensive cards. If that is the case, we need to make sure the user is not able to start issuing cards and they are aware a manual checks are happening. They receive a concierge message, which is easy to miss as currently they can just freely enter the Issue new card flow.

### Solution

When the VBBA account is added but is added to the waitlist for manual verification, let the user know in the Expensify cards modal that the card is still being manually verified and Concierge will notify them about the successful verification or if they need to provide any more details.

At the same time, disable the issue new card button, as until the bank account is verified, we cannot create new cards.

image

Issue OwnerCurrent Issue Owner: @sonialiap
@mountiny mountiny added Daily KSv2 NewFeature Something to build that is a new item. Design labels Sep 19, 2024
Copy link

melvin-bot bot commented Sep 19, 2024

Current assignee @dubielzyk-expensify is eligible for the Design assigner, not assigning anyone new.

Copy link

melvin-bot bot commented Sep 19, 2024

Triggered auto assignment to @sonialiap (NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details. Please add this Feature request to a GH project, as outlined in the SO.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Sep 19, 2024
Copy link

melvin-bot bot commented Sep 19, 2024

⚠️ It looks like this issue is labelled as a New Feature but not tied to any GitHub Project. Keep in mind that all new features should be tied to GitHub Projects in order to properly track external CAP software time ⚠️

Copy link

melvin-bot bot commented Sep 19, 2024

Current assignee @dubielzyk-expensify is eligible for the NewFeature assigner, not assigning anyone new.

@mountiny
Copy link
Contributor Author

@dubielzyk-expensify Can you please help mock how we should show this on the empty expensify cards page? Also just for completeness how the New card button should look disabled.

@trjExpensify
Copy link
Contributor

Discussing here for the breadcrumbs.

@trjExpensify trjExpensify changed the title Handle manual bank account verification before provisioning cards [Workspace Feeds] Handle manual bank account verification before provisioning cards Sep 19, 2024
@dubielzyk-expensify
Copy link
Contributor

So shall we go for this then?

image

@trjExpensify
Copy link
Contributor

trjExpensify commented Sep 20, 2024

Yep! Asking the team who wants it.

@koko57
Copy link
Contributor

koko57 commented Sep 20, 2024

I can help with this one 🙂

@trjExpensify
Copy link
Contributor

Thanks! ❤️

@koko57
Copy link
Contributor

koko57 commented Sep 20, 2024

For what bankAccount property should I look for to display the text and the buttons conditionally?

cc @sonialiap @mountiny

@koko57
Copy link
Contributor

koko57 commented Sep 20, 2024

ok, UI is done, I drafted the PR, now I'm waiting for confirmation on this condition to display the buttons and the text. Also I'm asking for approving Spanish translation

@mountiny
Copy link
Contributor Author

Commented in the PR

@koko57
Copy link
Contributor

koko57 commented Sep 23, 2024

@mountiny I followed the steps you shared to get account in VERIFIED state, but I don't have this account in bankAccountList so I'm still having Continue Modal displayed and "Finish Setup" as the button text
bc of this line const isSetupUnfinished = isEmptyObject(bankAccountList) && reimbursementAccountStatus && reimbursementAccountStatus !== CONST.BANK_ACCOUNT.STATE.OPEN;

Screenshot 2024-09-23 at 13 38 57

@koko57
Copy link
Contributor

koko57 commented Sep 23, 2024

So I guess I need to figure out another condition

@mountiny
Copy link
Contributor Author

@koko57 ok, so you have the private_expensifyCardSettings NVP locally, and it only has the paymentAccountID linked, but that bank account is not in Onyx? Or what is the state of the Onyx variables after you added the bank account?

It seems like it's not exactly the same thing as what @ishpaul777 ran into as they had the card "provisioned" after adding the bank account

@koko57
Copy link
Contributor

koko57 commented Oct 31, 2024

ok, we can do it here - but I'm ooo till Monday, so will take care of it then 🙂

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 31, 2024
@melvin-bot melvin-bot bot changed the title [Workspace Feeds] Handle manual bank account verification before provisioning cards [HOLD for payment 2024-11-11] [Workspace Feeds] Handle manual bank account verification before provisioning cards Nov 4, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 4, 2024
Copy link

melvin-bot bot commented Nov 4, 2024

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

Copy link

melvin-bot bot commented Nov 4, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.56-9 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-11-11. 🎊

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

  • @koko57 does not require payment (Contractor)
  • @DylanDylann requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Nov 4, 2024

BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@DylanDylann] Please propose regression test steps to ensure the new feature will work correctly on production in further releases.
  • [@sonialiap] Link the GH issue for creating/updating the regression test once above steps have been agreed upon.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Nov 6, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-11-11] [Workspace Feeds] Handle manual bank account verification before provisioning cards [HOLD for payment 2024-11-13] [HOLD for payment 2024-11-11] [Workspace Feeds] Handle manual bank account verification before provisioning cards Nov 6, 2024
Copy link

melvin-bot bot commented Nov 6, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.57-10 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-11-13. 🎊

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

  • @koko57 does not require payment (Contractor)
  • @DylanDylann requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Nov 6, 2024

BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

@DylanDylann
Copy link
Contributor

DylanDylann commented Nov 12, 2024

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

[@DylanDylann] The PR that introduced the bug has been identified. Link to the PR: New Feature
[@DylanDylann] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment: NA
[@DylanDylann] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: NA
[@DylanDylann] Determine if we should create a regression test for this bug. Yes
[@DylanDylann] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.

Regression Test Proposal

  1. Go to a workspace, enable Expensify Card in More Features
  2. Go to Expensify Card, click Issue New Card, add a new bank account if you don't have any
  3. Choose the bank account from the list
  4. After successful verification you should the Empty State screen
  5. Repeat steps 1-3, choose the same bank account as in the previous workspace
  6. You should see the Empty State screen with the title "Verification in progress..." and the description "We're verifying a few details. Concierge will let you know when Expensify Cards are ready to issue." And the buttons "Issue Card" and "Settings" should not be displayed.

Do we agree 👍 or 👎

@mountiny
Copy link
Contributor Author

@DylanDylann @koko57 I dont think that test covers exactly what we need. We should check for the different copy on the modal for the second time

@DylanDylann
Copy link
Contributor

@mountiny Thanks. I updated

Copy link

melvin-bot bot commented Nov 13, 2024

Payment Summary

Upwork Job

  • Contributor: @koko57 is from an agency-contributor and not due payment
  • ROLE: @DylanDylann paid $(AMOUNT) via Upwork (LINK)

BugZero Checklist (@sonialiap)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@mountiny
Copy link
Contributor Author

$250 to @DylanDylann

@melvin-bot melvin-bot bot added the Overdue label Nov 14, 2024
@sonialiap
Copy link
Contributor

Payment summary:

https://www.upwork.com/ab/applicants/1857030956887168073/hired

@melvin-bot melvin-bot bot removed the Overdue label Nov 14, 2024
@DylanDylann
Copy link
Contributor

@sonialiap Accepted, TY!

@sonialiap
Copy link
Contributor

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 Design NewFeature Something to build that is a new item. Weekly KSv2
Development

No branches or pull requests

10 participants