-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[PAID] [$250] Wallet empty state has disabled "Add bank account" button for new, unvalidated accounts #48041
Comments
Triggered auto assignment to @miljakljajic ( |
Edited by proposal-police: This proposal was edited at 2024-08-27 17:11:58 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Wallet empty state has disabled "Add bank account" button for new, unvalidated accounts What is the root cause of that problem?New Feature What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)NA |
Edited by proposal-police: This proposal was edited at 2024-08-27 17:13:03 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Wallet empty state has disabled "Add bank account" button for new unvalidated accounts What is the root cause of that problem?New refactor What changes do you think we should make in order to solve the problem?
In SETTINGS_CONTACT_METHOD_DETAILS, we add a note to that explains why we need to validate for that particular feature like this: "This feature requires you to validate your account" as suggested #48041 (comment). We need a condition to determine when to display this note, so it won't be shown in every case. We can choose to display the note based on the backTo parameter Output: Screen98.movWhat alternative solutions did you explore? (Optional)Optionally, we can also show an announcement to the user with two choices: either navigating to SETTINGS_CONTACT_METHOD_DETAILS, and sign in again |
ProposalPlease re-state the problem that we are trying to solve in this issue.Wallet empty state has disabled "Add bank account" button for new, unvalidated accounts What is the root cause of that problem?Improvement What changes do you think we should make in order to solve the problem?
const [isValidateModalOpen, setIsValidateModalOpen] = useState(false);
<ConfirmModal
title="Account not validated"
isVisible={isValidateModalOpen}
onConfirm={() => {
const backTo = Navigation.getActiveRouteWithoutParams();
Navigation.navigate(ROUTES.SETTINGS_CONTACT_METHOD_DETAILS.getRoute(user.login ?? '', backTo));
setIsValidateModalOpen(false);
}}
onCancel={() => setIsValidateModalOpen(false)}
prompt="Please validate you account before connecting a bank account."
confirmText="Validate"
cancelText={translate('common.cancel')}
/>
<MenuItem
onPress={() => {
if (!isUserValidated) {
setIsValidateModalOpen(true);
return;
}
onPress();
}}
What alternative solutions did you explore? (Optional)enable_bank_account_btn.mp4 |
Proposal Updated
|
@Krishna2323 rather than throwing an error modal, I was thinking we could show the validate UI in the RHP. |
Actually looks like @cretadn22 already proposed that. |
@shawnborton, I thought it would be odd to directly push users to the validate page without providing any information. That's why I suggested showing a modal. |
I think it would be simpler if we just added some text in that RHP view that explains why we need to validate for that particular feature. |
base on this comment |
@shawnborton my proposal is first and @cretadn22's proposal is same as mine |
I like what you're proposing Shawn. Keeps you in the flow and doesn't derail you, but still gets you to validate. |
Samesies! ^^ |
Dig it. Would it be a bit clearer if we have the header say "Validate your account" instead of the email address? |
@dubielzyk-expensify yeah totally agree with that, I just grabbed a quick example from the contact methods flow since that is the only spot (I think?) that has this kind of in-product account validation thus far. |
@miljakljajic Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@miljakljajic Still overdue 6 days?! Let's take care of this! |
Job added to Upwork: https://www.upwork.com/jobs/~019c85c6a0fbfa60c9 |
Triggered auto assignment to @strepanier03 ( |
Heading out on my parental leave - reassigning to another BZ team member: thank you @strepanier03! |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.44-12 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-10-11. 🎊 For reference, here are some details about the assignees on this issue:
|
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:
|
❓ Question regarding the new verification screen in RHP ( ℹ️ For context, I'm asking because we held issue #49523 until the PR for this one was merged, I observed this behaviour while testing our PR and wanted to confirm that being logged out is the correct behaviour. |
@ikevin127 I'm not quite understand what you're saying, does it mean the user is logged out after entering the magic code, instead of navigating back to the supposed route? |
Yes, the user is logged out instead of opening the Add bank account page, here's a video: Screen.Recording.2024-10-05.at.00.41.53.movI'm trying to figure out if this is a regression of this issue's implementation or we didn't use your implementation correctly and the regression is on our issue's side. From what I can see, your PR is using the route with redirect to add BA:
whereas in our PR, the author did not pass anything:
which might be the cause of the logout issue 🤔 I tested using:
like you used, but it still logs me out: Screen.Recording.2024-10-05.at.00.56.31.movAny ideas why the route you implemented would behave like this in our case ? 🤔 |
@ikevin127 Looks like when validating account, BE send Onyx data that changes session's And then FE calls I'm not sure if this bug is either from this issue or #49523 though. |
@daledah Thanks for looking into the root cause! 🚀 Are you experiencing the logout upon validation as well in this issue's flow testing ? This is definitely weird, I mean it makes sense that when you validate an unvalidated account the Given this behaviour I'm leaning towards the scenario where none of the issues (this or ours) is the direct cause of the logout, but rather because the logic we implemented, we revealed that the FE logic wasn't designed to account for the edge case of transitioning between unvalidated to validated account and changing In this case I'm not sure who should handle a fix for this edge case in a follow-up 🤔 Tagging the assigned CME's of both issues for visibility ⏬ cc @arosiclair from this issue |
Thanks for looking into the issue @daledah @ikevin127. Is this reproducible in staging or |
Read through the above and it sounds like I can still pay this as normal on 10-11 correct? |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
Yeah that's correct. |
Hey @strepanier03 I don't get payment via New Expensify request, only Upwork |
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: 9.0.25-0
Reproducible in staging?: y
Reproducible in production?: y
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: @shawnborton
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1724687808309139
Action Performed:
Expected Result:
Step 2 and 3"Add bank account" should be enabled
Actual Result:
"Add bank account" is disabled and grayed out
For the new unvalidated account, we'd mimic something like this where we just ask you to verify your account:
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @strepanier03The text was updated successfully, but these errors were encountered: