You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-04-25] [$500] Workspace - The user can skip validation of the first name field on the Personal info tab #38920
Navigate to Workspace settings - Bank account - Connect online with Plaid
Choose Regions bank
Continue until legal name is asked
Leave the first name blank and input "Charleson" to the last name
Tap on the "Next" button
Tap on the "back" button
Tap on the "Next" button
Continue the flow until you get the "firstName is invalid or missing" error
Expected Result:
The field should be validated.
Actual Result:
The user can skip validation of the first name field on the Personal info tab. "Bank account can't be created, firstName is invalid or missing" error message appears later in the flow.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
If the first name and last name are empty, we will show the legal name form. However, if we fill in the last name, it will be saved to the draft and we check for both draft and server value
changed the title [-]Workspace - The user can skip validation of the first name field on the Personal info tab[/-][+][$500] Workspace - The user can skip validation of the first name field on the Personal info tab[/+]on Apr 1, 2024
I'm not sure how this fits into any of our existing initiatives, but this feels like either an oversight or a regression if the user can skip ahead of entering their first name in the form.
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:
[@sobitneupane] The PR that introduced the bug has been identified. Link to the PR:
[@sobitneupane] 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:
[@sobitneupane] 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:
[@sobitneupane] Determine if we should create a regression test for this bug.
Yes.
[@sobitneupane] 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.
Activity
melvin-bot commentedon Mar 25, 2024
Triggered auto assignment to @johncschuster (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.izarutskaya commentedon Mar 25, 2024
We think this issue might be related to the #collect project.
bernhardoj commentedon Mar 25, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
The user can skip the legal name form after filling the last name, go back and reconfirm the routing number again.
What is the root cause of that problem?
We have
getInitialSubstepForPersonalInfoto decide the sub-step index to show to the user.App/src/pages/ReimbursementAccount/utils/getInitialSubstepForPersonalInfo.ts
Lines 9 to 16 in 4bc6744
If the first name and last name are empty, we will show the legal name form. However, if we fill in the last name, it will be saved to the draft and we check for both draft and server value
App/src/pages/ReimbursementAccount/PersonalInfo/PersonalInfo.tsx
Line 47 in 4bc6744
and the condition will fail because it needs both fields to be empty.
What changes do you think we should make in order to solve the problem?
Show the legal name form if one of the first or last names is empty.
What alternative solutions did you explore? (Optional)
Don't check for the draft data.
App/src/pages/ReimbursementAccount/PersonalInfo/PersonalInfo.tsx
Line 47 in 4bc6744
OR
Always starts from 0 (the legal name form).
App/src/pages/ReimbursementAccount/PersonalInfo/PersonalInfo.tsx
Line 54 in 4bc6744
melvin-bot commentedon Apr 1, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01c8adbf72aee79603
[-]Workspace - The user can skip validation of the first name field on the Personal info tab[/-][+][$500] Workspace - The user can skip validation of the first name field on the Personal info tab[/+]melvin-bot commentedon Apr 1, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane (
External)johncschuster commentedon Apr 1, 2024
I'm not sure how this fits into any of our existing initiatives, but this feels like either an oversight or a regression if the user can skip ahead of entering their first name in the form.
27 remaining items
johncschuster commentedon Apr 26, 2024
@sobitneupane, can you complete the BZ Checklist above? Thank you!
melvin-bot commentedon Apr 30, 2024
@johncschuster, @sobitneupane, @grgia, @bernhardoj Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
johncschuster commentedon Apr 30, 2024
Waiting on the BZ Checklist to be completed 👍
melvin-bot commentedon May 2, 2024
@johncschuster, @sobitneupane, @grgia, @bernhardoj Eep! 4 days overdue now. Issues have feelings too...
sobitneupane commentedon May 7, 2024
#31121
#31121 (comment)
Yes.
#38920 (comment)
sobitneupane commentedon May 7, 2024
Regression Test Proposal
sobitneupane commentedon May 8, 2024
Requested payment in newDot.
#38920 (comment)
JmillsExpensify commentedon May 12, 2024
$500 approved for @sobitneupane