[Part 25] Remove Onyx.connect from LocalePhoneNumber - #97680
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.
|
@shubham1206agra, could you please take a look at this pr when you get a chance? thanks. the failure actions are not related to our changes. BTW |
|
@marufsharifi Please fix the errors |
|
@shubham1206agra, fixed. could you please take another look. thanks. |
|
@shubham1206agra, Gentle bump. thanks. |
Reviewer Checklist
Screenshots/VideosScreen.Recording.2026-08-08.at.12.00.54.AM.mov |
mountiny
left a comment
There was a problem hiding this comment.
@marufsharifi can you please fix the spell check
|
@mountiny, that doesn't seems to be related to our changes. thanks. |
|
@marufsharifi it is not failing on main, can you sync with main then? thanks |
|
@mountiny, it also fail locally on the latest |
|
@mountiny, I’ve addressed your suggestions, and all actions are now passing. When you get a chance, could you please take another look? Thanks! |
|
✋ 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.53-0 🚀
|
|
🤖 I reviewed the changes in this PR and no help site changes are required. This is a purely internal refactor: it removes the direct There is no user-facing behavior change — phone-number recipients are still formatted the same way in new-chat optimistic personal details. The PR adds no new features, settings, tabs, buttons, or UI copy, so there is nothing to document or update under Because no documentation update is needed, I did not create a draft help site PR. |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.4.53-10 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
This change removes the direct
@libs/LocalePhoneNumberformatter dependency from the money-request optimistic data builder.MoneyRequestBuildernow requiresformatPhoneNumberthrough its money-request params and uses that injected formatter when creating optimistic personal details for new money-request chats.The formatter is threaded through the existing localized money-request flows, including request money, duplicate, per diem, split, split transaction updates, track expense conversion, add existing expense, delete transactions, and share submit details. Tests and fixtures were updated to pass the shared test formatter, and a focused regression assertion verifies that a new-chat optimistic personal detail display name is formatted through the injected function.
Fixed Issues
$ #66327
PROPOSAL:
Tests
Offline tests
QA Steps
$10.00.// 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-08-03.16-23-46.webm