-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix: Phone number user shows @expensify.sms on Reports #78418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused about why we got rid of the common.hidden translation here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The formattedFrom and formattedTo uses getDisplayNameOrDefault which already handle the hidden logic.
Lines 709 to 710 in a1fa8dc
| const fromName = getDisplayNameOrDefault(from); | |
| const formattedFrom = formatPhoneNumber(fromName); |
This is also consistent with TransactionItemRow component which is being used on the large screen.
| displayName={transactionItem.formattedFrom ?? transactionItem.from.displayName ?? ''} |

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