Open lanitochka17 opened 1 week ago
Triggered auto assignment to @kevinksullivan (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
@kevinksullivan FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
Not here page shows up when clicking add bank account
Add bank account page is not accessible for non verified user and we don't disable the "Add bank account" button if the user is not validated here, like we did in the wallet page
Disable the "Add bank account" button if the user is not validated here
const [isUserValidated] = useOnyx(ONYXKEYS.USER, {selector: (user) => !!user?.validated});
...
<Button
success
style={[styles.w100, styles.requestPreviewBox]}
text={translate('bankAccount.addBankAccount')}
onPress={() => BankAccounts.openPersonalBankAccountSetupView(Navigation.getTopmostReportId() ?? linkedReport?.reportID)}
pressOnEnter
large
isDisabled={!isUserValidated}
/>
When non validated account click "Add bank account" button, display a modal that inform the user is not validated yet so they cant add bank account, with 2 button: "Validate account" & "Cancel"
Once "Validate account" clicked navigate to default contact method page, to verify
Once verification success navigate back to that expense report page
Edited by proposal-police: This proposal was edited at 2024-09-11 08:56:21 UTC.
Hmm not here page shows up. We should open validate code page first before executing the add bank account flow.
We show not found page when user is not validated:
ValidateCodeActionModal
just like we did in NewContactMethodPage
:const handleSubmitForm = useCallback((validateCode: string) => {
User.validateSecondaryLogin(loginList, account?.primaryLogin ?? '', validateCode);
}, [loginList, account]);
<ValidateCodeActionModal
handleSubmitForm={handleSubmitForm}
isVisible={isValidateCodeActionModalVisible}
/>
useEffect(() => {
if (!isUserValidated && !isValidateCodeActionModalVisible) {
setIsValidateCodeActionModalVisible(true);
}
}, []);
isUserValidated
, we show the page main content:@kevinksullivan Eep! 4 days overdue now. Issues have feelings too...
@kevinksullivan Please proceed this one.
@kevinksullivan 6 days overdue. This is scarier than being forced to listen to Vogon poetry!
@kevinksullivan Can you reassign BZ here since you're heading OOO?
I'd put this in collect since it's the mainline reimbursement flow. Also looping in another BZ as I am going OOO
Job added to Upwork: https://www.upwork.com/jobs/~021834204861349531229
Triggered auto assignment to @greg-schroeder (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts (External
)
Thanks for the proposals everyone. I think @mkzie2's proposal is better, since disabling the button straight away would just cause confusion to the user. Let's also confirm with the design team if this is something we need to do here.
@Expensify/design can you please weigh in?
Definitely agree that we don't want to just disable the button. @shawnborton can correct me if I'm wrong, but I thought we recently talked about just making the magic code validation the very first step of the add bank account flow for unvalidated users. Does that sound right?
^^ that sounds like it could be a decent improvement instead of that kinda' bulky error text at the bottom we use in places for this 😅 So here, they'd click Add bank account
and get a magic code sent to them and land on a magic code input page, right?
but I thought we recently talked about just making the magic code validation the very first step of the add bank account flow for unvalidated users. Does that sound right?
Indeed that does sound correct from my understanding.
Updated my proposal to reflect the latest expectations.
So here, they'd click Add bank account and get a magic code sent to them and land on a magic code input page, right?
Yes. They'd land on the magic code validation page in the RHP, and it would essentially act as the first step of the add bank account flow. I think Shawn had recently worked on this for adding a VBBA if I'm remembering correctly.
They'd land on the magic code validation page in the RHP, and it would essentially act as the first step of the add bank account flow.
Kewl.
I think Shawn had recently worked on this for adding a VBBA if I'm remembering correctly.
Got it, I don't think I've seen that. It's not in prod either.
Given that we have an agreement that we should show the magic code validation page if the user is not validated, @mkzie2's proposal makes the most sense then. Let's go with them.
🎀 👀 🎀 C+ reviewed
Triggered auto assignment to @MariaHCD, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
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.28-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: N/A Email or phone of affected tester (no customers): testpayment935@gmail.com Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
User gets navigated to validate their account first
Actual Result:
Hmm not here page shows up
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/user-attachments/assets/72d7893a-36bd-47e1-b3ff-3922ea760ca1
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @allroundexperts