Validate different phone number formats#38993
Conversation
|
done some tests +1 800-123-4567: ✅ Valid |
|
@tienifr Need to resolve conflicts |
|
@Pujan92 All done. |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandt2.webmAndroid: mWeb Chromeandt1.webmiOS: NativeSimulator.Screen.Recording.-.iPhone.15.Pro.-.2024-04-02.at.21.44.40.mp4iOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.15.Pro.-.2024-04-02.at.21.37.53.mp4MacOS: Chrome / SafariScreen.Recording.2024-04-02.at.21.29.08.movMacOS: DesktopScreen.Recording.2024-04-02.at.21.47.43.mov |
|
Performance Tests are failing, @tienifr can you merge the main again. |
|
@tienifr Seeing conflicts again |
|
@Pujan92 Thanks, updated! |
|
Bump @grgia in case you missed this. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.60-13 🚀
|
Details
expensify-common'sisValidPhoneonly validates E.164 format numbers. We need to:isValidPhonetoisValidE164Phoneand add a new functionisValidPhoneto validate phone numbers in general in Validate phone numbers in different formats expensify-common#672Fixed Issues
$ #37723
PROPOSAL: #37723 (comment)
Tests
(xxx) xxx-xxxx, e.g., "(440) 458-9784"Offline tests
NA
QA Steps
(xxx) xxx-xxxx, e.g., "(440) 458-9784"PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2024-03-26.at.18.48.35-compressed.mov
Android: mWeb Chrome
Screen.Recording.2024-03-26.at.18.46.27-compressed.mov
iOS: Native
Screen.Recording.2024-03-26.at.18.47.34-compressed.mov
iOS: mWeb Safari
Screen.Recording.2024-03-26.at.18.49.05-compressed.mov
MacOS: Chrome / Safari
Screen.Recording.2024-03-26.at.18.32.42-compressed.mov
MacOS: Desktop
Screen.Recording.2024-03-26.at.18.32.42-compressed.mov