Fix: Phone number user shows @expensify.sms on Reports#78418
Fix: Phone number user shows @expensify.sms on Reports#78418marcaaron merged 4 commits intoExpensify:mainfrom
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@bernhardoj 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] |
|
@bernhardoj it seems like the SMS domain on
Also, regarding the company card list, should we use |
@nyomanjyotisa Let's use the |
Got it, PR updated |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid.mp4Android: mWeb Chromeandroid.mweb.mp4iOS: HybridAppios.mp4iOS: mWeb Safariios.mweb.mp4MacOS: Chrome / Safariweb.mp4 |
| const hasFromSender = !!item?.from && !!item?.from?.accountID && !!item?.from?.displayName; | ||
| const hasToRecipient = !!item?.to && !!item?.to?.accountID && !!item?.to?.displayName; | ||
| const participantFromDisplayName = item?.from?.displayName ?? item?.from?.login ?? translate('common.hidden'); | ||
| const participantToDisplayName = item?.to?.displayName ?? item?.to?.login ?? translate('common.hidden'); |
There was a problem hiding this comment.
I'm confused about why we got rid of the common.hidden translation here.
There was a problem hiding this comment.
The formattedFrom and formattedTo uses getDisplayNameOrDefault which already handle the hidden logic.
Lines 709 to 710 in a1fa8dc
This is also consistent with TransactionItemRow component which is being used on the large screen.
|
@marcaaron ready to merge |
|
✋ 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/marcaaron in version: 9.3.0-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.3.0-8 🚀
|

Explanation of Change
UserInfoAndActionButtonRowandExpenseReportListItemRowto use the existingformattedFromandformattedToprop for the display nameStr.removeSMSDomainoncardholder.loginandcardholder.displayNameinWorkspaceCompanyCardsTableItemFixed Issues
$ #78114
PROPOSAL: #78114 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Precondition:
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))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.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-Native.mp4
Android: mWeb Chrome
Android-mWeb.Chrome.mp4
iOS: Native
iOS-Native.mp4
iOS: mWeb Safari
iOS-mWeb.Safari.mp4
MacOS: Chrome / Safari
MacOS-Chrome.mp4