[Part 1]: Remove usage of Onyx.connect for ONYXKEYS.COUNTRY_CODE#66745
[Part 1]: Remove usage of Onyx.connect for ONYXKEYS.COUNTRY_CODE#66745danieldoglas merged 22 commits intoExpensify:mainfrom
Onyx.connect for ONYXKEYS.COUNTRY_CODE#66745Conversation
|
@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] |
|
@allgandalf You can use a different approach. First, fix the |
|
SMART!!!!! |
|
will do now! |
…nd revert previous usage of useOnyx
|
@shubham1206agra some context for you: Please check the above PR, i added a helper kind of function, there is more to refactor that it meets the eye, so till we migrate all instances we need to keep My Next PR would be for util functions |
|
@shubham1206agra ready for your review! |
countryCodeByIPOnyx.connect for ONYXKEYS.COUNTRY_CODE
Onyx.connect for ONYXKEYS.COUNTRY_CODEOnyx.connect for ONYXKEYS.COUNTRY_CODE
Co-authored-by: Shubham Agrawal <58412969+shubham1206agra@users.noreply.github.com>
NAB: @tgolen I noticed difference in account switcher text and in security settings about the number format |
|
is it a regression from this PR or already exists on prod? |
Prod issue |
Reviewer Checklist
Screenshots/Videos |
| ownerName: getDisplayNameForParticipant({accountID: policy?.ownerAccountID}), | ||
| }); | ||
| }, [selectedEmployees, translate, policy, currentUserAccountID]); | ||
| }, [selectedEmployees, translate, policy, currentUserAccountID, formatPhoneNumber]); |
There was a problem hiding this comment.
for my own knowledge here, why are we passing formatPhoneNumber as a part of the memo function here?
danieldoglas
left a comment
There was a problem hiding this comment.
Code LGTM overall, just a small question related to how useMemo works before I can merge it.
|
✋ 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 staging by https://github.com/danieldoglas in version: 9.1.85-2 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.1.85-5 🚀
|







Explanation of Change
Fixed Issues
$ #66327
PROPOSAL:
Tests
Offline tests
QA Steps
1. User Profile – Display Name Check
2. Contact Method Field
3. View Profile Picture
4. Add Delegate Flow
5. Delegate Login Info – Security Settings
6. New Task Creation
7. Remove Member from Workspace
8. Assign Expensify Card
9. Assign Company Card
10. Workflow Page – Approvers/Members
11. User Chat – Hover to View Name
12. Workspace Members Table
13. Chat Mention – Display Name
@username) and send the message13. Workspace
Go to any Workspace chat
Submit an expense
✅ Verify that the submitter name is displayed correctly in report preview
Verify that no errors appear in the JS console
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2025-07-19.at.2.07.39.AM.mov
MacOS: Desktop