-
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
[HOLD for payment 2024-04-15] [$500] BA - On the phone number page, user can not enter data as the placeholder shows #37723
Comments
Triggered auto assignment to @mallenexpensify ( |
@mallenexpensify 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. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The user can not enter the phone number as the placeholder shows. What is the root cause of that problem?We already have the logic to check the phone number is valid or not in here but it's not really correct since it can cause some confused cases: #34766 so we added the additional logic to check phone number in App/src/libs/ValidationUtils.ts Line 287 in ffa731a
but and that doesn't cover other format like What changes do you think we should make in order to solve the problem?
Here's the possible format: significant: 4404589784 so we can use the following regex:
What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.Phone number in the format (440)458-9784 is marked as invalid What is the root cause of that problem?Issue is within the function When the input is in phormat like: (440)458-9784 App/src/libs/ValidationUtils.ts Lines 287 to 289 in 5787691
will turn: regionCode: US and !Str.isValidPhone(phone): true Then the execution will exit without approving the phone number What changes do you think we should make in order to solve the problem?We need to fix this condition App/src/libs/ValidationUtils.ts Lines 285 to 289 in 5787691
It's built to fix an issue as mentioned in the comment:
Currently we use What alternative solutions did you explore? (Optional)We can fix the function |
I think this should be closed, as seen in the video, we don't enter space as specified in the placeholder and hence we face error as the regex doesn't match |
Job added to Upwork: https://www.upwork.com/jobs/~01f2cb151e80502fdb |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Pujan92 ( |
📣 @waleedj1! 📣
|
This issue is due to Validation For Phone Number Input Field Is Failing, Due To Some Issue In The Regex, We can solve this by improving our regex Contributor details |
Yes @mallenexpensify , I am able to reproduce here and for enable wallet screen too as both uses the same common function. Do we need to allow users to enter in placeholder format( |
Thanks for testing @Pujan92 . I've added this to the wave-collect project as Polish.
Are there other examples of where a phone number is entered and accepted in multiple formats? Ideally want input to be consistent with otheres (and... to also allow for multiple formats, if possible). |
Earlier it used to be working with this format( |
@Pujan92 my proposal allows multiple formats |
Thanks @dragnoir , I will review the proposals tomorrow. |
@Pujan92 I updated my proposal to support multiple formats: |
All proposals RCA are correct, I like the @tienifr's proposal as it is more detailed and agree with the fact that 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @grgia, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.60-13 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-04-15. 🎊 For reference, here are some details about the assignees on this issue: |
@Pujan92 the new regex fails with a common US phone number like "1 212 555 0194". But it's valid with Also, the new function is called Pls think again about this #37723 (comment) |
Payment Summary
BugZero Checklist (@mallenexpensify)
|
Checking on something, will issue payment shortly |
@mallenexpensify I've applied, thank you |
@mallenexpensify applied. Thank you |
@Pujan92 , @tienifr , @dragnoir can you please accept the job and reply here once you have? |
Accepted |
Accepted! |
Contributor: @dragnoir paid $200 via Upwork 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: @Pujan92 , can you please fill out the BZ checklist? One wasn't auto posted, so pasting below.
|
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:
Regression Test Steps
Do you agree 👍 or 👎 |
Thanks @Pujan92 |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v1.4.47-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): [email protected]
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Action Performed:
Pre-requisite: user must be logged in and have created a workspace.
Expected Result:
The user should be able to enter the phone number as the placeholder shows.
Actual Result:
The user can not enter the phone number as the placeholder shows.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6402382_1709617407384.bandicam_2024-03-04_23-44-34-559.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @mallenexpensifyThe text was updated successfully, but these errors were encountered: