[Part 20] Remove Onyx.connect from LocalePhoneNumber - #96973
Conversation
|
@shubham1206agra 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] |
Reviewer Checklist
Screenshots/VideosScreen.Recording.2026-07-26.at.8.38.19.AM.mov |
|
@marufsharifi Update the test
|
|
@marufsharifi Fix the tests |
|
@shubham1206agra, Thanks for the review! I updated the test cases accordingly and verified that all actions are passing after merging the latest main. Could you please take another look when you have a moment? Thanks! |
|
🚧 danieldoglas 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/danieldoglas in version: 9.4.45-0 🚀
|
Help site review: no docs changes requiredI reviewed the changes in this PR and no updates to Expensify's help site ( Why: This is an internal code refactor — [Part 20] of the ongoing effort to remove As the PR description itself states, user-facing behavior stays the same — payee display names and SMS logins in the split confirmation "Paid by" row still render formatted correctly. There are no new features, no UI/label/button/tab changes, and no workflow changes that a help article would need to document. The only additions are unit tests covering the injected formatter. Since there is nothing customer-facing to document, I have not created a docs draft PR. If you believe a specific article should still be updated, let me know which behavior it should cover and I'll draft it. @marufsharifi, since no help site changes were needed, there is no linked docs PR to review. If you disagree, reply and I'll take another look. |
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.4.45-14 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
This PR removes another focused
LocalePhoneNumber.formatPhoneNumberdependency from the IOU confirmation payee option path.getIOUConfirmationOptionsFromPayeePersonalDetailno longer imports/uses the module-level formatter indirectly throughOptionsListUtils. Instead, the Money Request confirmation hooks pass the localizedformatPhoneNumberfromuseLocalize()into the helper when building the split request “Paid by” payee row.User-facing behavior should stay the same. Payee display names and SMS logins in the split confirmation flow should still render formatted correctly, but this path now uses the active localized formatter so we can continue moving toward removing
Onyx.connect()fromLocalePhoneNumber.Fixed Issues
$ #66327
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, 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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screencast.From.2026-07-27.17-32-08.webm