-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[PAY 8/19] Fix how validation displays in UI #2934
Comments
Triggered auto assignment to @alexpensify ( |
Triggered auto assignment to @mallenexpensify ( |
Unassigning @alexpensify , I don't believe triage is needed :D |
This comment has been minimized.
This comment has been minimized.
Triggered auto assignment to @Beamanator ( |
Hello Client! |
Proposal 📄Front-end validation should catch obviously invalid phone numbers, and display the error message "Please enter a phone number including the country code e.g +447814266907" instead of a clickable OptionRow. Like this: Approach 👨🏼💻File of concern :
UUID: "66998340-d01b-49a5-8e6e-92fefad0b531"
code: 666
data: []
htmlMessage: ""
jsonCode: 402
message: "I couldn't validate the phone number, please try again with the country code (e.g. +15005550006)."
requestID: "0a0e4344a600003c13200a6000000001"
title: ""
type: "Expensify\\Error\\User\\InvalidPhoneNumber" If it’s valid then we can show the
// en.js
error {
message: "Please enter a phone number including the country code e.g +447814266907"
}
// usage
translate("error.message") Testing Strategy🧪We can mock the call and purposely fail/invalidate the input and then check for the relevant error message text to have been rendered. Expected Delivery TimeApprox 2 Days. Previous Experience |
@alev374 Thanks for your proposal! Although I believe I understand where you're going with your proposal, I can't quite tell how you plan to solve this issue. Next time, please clarify exactly how you plan to implement the fix. More specifically, "This can be done in each component or customized component" is not clear enough. Additionally, "It will not affect to the redux action, so it will not require to change the business logic" makes me wonder if you've looked through our code much, as we currently don't use the Next time, please try to be more specific with your approach, and maybe think about formatting your thoughts in an easily-consumable format like Pranshu. |
@pranshuchittora Thanks for your proposal as well! Thanks for clearly defining the file(s) you plan to change, and the steps you'll take. As you may have noticed, we split the debouncing enhancement into a new issue (found here: #2936) so if you could please adjust your proposal to remove that plan. Additionally, if an invalid phone number is entered, see in the original post that we want to see the error message Please let me know when you have adjusted your proposal :) |
Thanks for the feedback @Beamanator. I have updated my proposal. |
Thanks for the quick update @pranshuchittora ! Your proposal looks great, please make sure you also submitted a proposal in Upwork so @mallenexpensify can assign you the job, then please submit a PR when you have time :) |
Contrib linked PR (draft for now), changing to Weekly |
@Beamanator Pullerbear didn't assign you to review the PR and I think I might need some help/inputs from you there. Can you take a look at it when you have time? |
PR was merged but @rdjuric agreed there's one final fix needed, he said he'll open up a PR soon (see this comment) |
Follow-up PR is ready for review 😃 |
Aaand merged 💪 |
Will pay onn 8/19 if no regressions |
@rdjuric or @Beamanator I'm still able to reproduce this issue. Untitled.mov
Also, in the below expression |
@Beamanator Validation expression should be like below, Similar to what I proposed earlier here #2934 (comment), where I suggested The reason I suggest |
@Santhosh-Sellavel did you try clicking on the "new chat" option (+911223233) at the end of your video? If so, you should have seen the "I couldn't validate the phone number, please try again" error -> that's the main fix for this issue. Improving the regex is part of a different issue that I plan to write the requirements for early next week |
Yes, I'm seeing that error on click, Sorry, I am unaware of the requirement change here! Thanks for the clarity mate! @Beamanator |
Wrong button 😅 glad we're on the same page now @Santhosh-Sellavel , sorry for the confusion 👍 |
Hi @mallenexpensify! Is there any job in Upwork for this issue? I wasn't hired yet and can't find one |
@rdjuric lotta action in here, let's assume I messed something up.
|
@mallenexpensify That's me! Thanks. |
Hired @rdjuric in Upwork! |
Paid in Upwork! |
Great! Looks like it's time to close this out :D |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Expected Result:
Front-end validation should catch obviously invalid phone numbers, and display the error message
"Please enter a phone number including the country code e.g +447814266907"
instead of a clickableOptionRow
. Like this:Actual Result:
No visual feedback given to user when
OptionRow
with invalid phone number is clicked, only an error is shown in the console:Action Performed:
7777
)OptionRow
that shows up:Workaround:
No workaround (other than making sure you enter valid phone numbers), but not a deploy-blocking issue.
Platform:
Where is this issue occurring?
Version Number: 1.0.46.0
Notes/Photos/Videos:
Enhancements that can we worked on concurrently by the assigned engineer of this issue or worked on a week after this closes by someone else #2936
Expensify/Expensify Issue URL: https://github.com/Expensify/Expensify/issues/159892
View all open jobs on Upwork
The text was updated successfully, but these errors were encountered: