[Part 17] Remove Onyx.connect from LocalePhoneNumber - #96771
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@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] |
JmillsExpensify
left a comment
There was a problem hiding this comment.
No product review required.
Reviewer Checklist
Screenshots/VideosScreen.Recording.2026-07-24.at.11.33.44.PM.mov |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 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 🚀
|
|
🤖 I reviewed this PR against the help site articles under Why: This is an internal code refactor. It swaps the deprecated The help site documents product behavior and workflows, none of which change here, so there is nothing to update. @marufsharifi, if you believe a specific article does need updating as a result of this change, let me know which flow/behavior changed for users and I'll draft the docs PR. |
|
🚀 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 set of deprecated phone-number formatter usages tied to
LocalePhoneNumber.The travel legal-name flow and new task confirmation helpers now use the active
formatPhoneNumberfromuseLocalize()instead of importing the formatter directly from@libs/LocalePhoneNumber.User-facing behavior should stay the same. Legal-name submission still passes the formatter into
updateLegalName(), and task assignee/share destination display text should render as before. The purpose is to keep moving phone-number formatting toward the localized hook-based path so we can eventually remove the module-levelOnyx.connect()forONYXKEYS.COUNTRY_CODE.Fixed Issues
$ #66327
PROPOSAL:
Tests
Offline tests
QA Steps
Case One: Travel Legal Name Submission
Case Two: New Task Confirmation Display
// 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
Case One: Travel Legal Name Submission
Screencast.From.2026-07-22.22-42-44.webm
Case Two: New Task Confirmation Display
Screencast.From.2026-07-22.22-46-44.webm