Strip @expensify.sms suffix from category/tag approver display#86303
Strip @expensify.sms suffix from category/tag approver display#86303
Conversation
…tings Apply formatPhoneNumber to approver display names in CategorySettingsPage, TagSettingsPage, and WorkspaceMembersSelectionList so phone number users show clean formatted numbers instead of raw SMS logins. Co-authored-by: huult <huult@users.noreply.github.com>
|
I created this PR from an upstream branch since I don't have push access to your fork. To take ownership of this branch and be able to push updates, run: Then you can close this PR and open a new one from your fork. |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@MelvinBot I didn’t see the issue in WorkspaceMembersSelectionList, so could you revert the changes in WorkspaceMembersSelectionList? |
Co-authored-by: huult <huult@users.noreply.github.com>
|
Reverted the changes in |
|
@MelvinBot Please mark it as "Ready for review" |
|
PR has been marked as Ready for review as requested. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-03-25.at.15.29.36.mp4Android: mWeb ChromeScreen.Recording.2026-03-25.at.15.30.46.mp4iOS: HybridAppScreen.Recording.2026-03-25.at.15.34.32.mp4iOS: mWeb SafariScreen.Recording.2026-03-25.at.15.35.15.mp4MacOS: Chrome / SafariScreen.Recording.2026-03-25.at.15.24.46.mp4 |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #86243 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
🚧 @inimaga 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! 🧪🧪
|
|
✋ 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/inimaga in version: 9.3.44-0 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to staging by https://github.com/inimaga in version: 9.3.47-0 🚀
Bundle Size Analysis (Sentry): |
|
🚀 Deployed to production by https://github.com/grgia in version: 9.3.48-2 🚀
|
Explanation of Change
When a phone number user is set as a category or tag approver, the approver name displays the raw
@expensify.smssuffix (e.g.,+15857527441@expensify.sms). This happens becauseCategorySettingsPage,TagSettingsPage, andWorkspaceMembersSelectionListusedisplayNamedirectly without stripping the SMS domain.This PR wraps the approver display text with
formatPhoneNumber()(fromuseLocalize) to strip the@expensify.smssuffix and format the phone number in a locale-aware way. This is consistent with howWorkspaceCategoriesPageandWorkspaceTagsPagealready handle the same approver display names.Fixed Issues
$ #86243
PROPOSAL: #86243 (comment)
Tests
@expensify.smssuffix)Offline tests
N/A — this is a display-only change that formats data already available locally.
QA Steps
@expensify.sms@expensify.smsPR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari