[Payment due @Eskalifer1] Correctly format phone numbers for PersonalDetails updates - #96911
Conversation
buildSetPersonalDetailsAndShipExpensifyCardsParams
|
@Eskalifer1 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp96911-android-native.movAndroid: mWeb Chrome96911-android-web.moviOS: HybridApp96911-ios-native.moviOS: mWeb Safari96911-ios-web.movMacOS: Chrome / Safari96911-web.mov |
|
@Beamanator Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
🎯 @Eskalifer1, thanks for reviewing and testing this PR! 🎉 A payment issue will be created for your review once this PR is deployed to production. If payment is not needed (e.g., regression PR review fix etc), react with 👎 to this comment to prevent the payment issue from being created. |
|
🚧 Beamanator has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/Beamanator in version: 9.4.45-0 🚀
|
Help site review — no changes requiredI reviewed the changes in this PR against the help site articles under Conclusion: No help site changes are required, so I did not create a draft PR. Why:
Since no doc updates are needed, there is no linked help site PR to review. @chuckdries — if you believe a user-facing behavior change here should be reflected in the help site (for example, guidance on accepted phone number formats), let me know and I'll draft the doc PR. |
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.4.45-14 🚀
Bundle Size Analysis (Sentry): |
|
🤖 Payment issue created: #97377 |
Explanation of Change
We were sending phone numbers as "whatever the user typed, with a country code tacked to the front", but our WAF only allows E.164 (country code, no dashes) or US customary (dashes, no country code), so if did a US style phone number with a country code, i.e.
+1480-555-5555, it would be stripped by the WAF and you'd get an error. This PR uses existing helpers to normalize phone numbers to the internationally compatible E.164 formatFixed Issues
$ https://github.com/Expensify/Expensify/issues/663612
PROPOSAL:
Tests
+1480-555-5555(make sure it's numerically different from the existing value if you already have one, otherwise you won't be able to tell whether it worked)Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)Avatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
MacOS: Chrome / Safari
phone.number.works.with.dashes.mp4