You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2025-04-10] [$250] Workspace - "@expensify.sms" is added for a phone number account as a workspace owner #58864
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: 9.1.16-1 Reproducible in staging?: Y Reproducible in production?: Y If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Issue reported by: Applause - Internal Team
🚨 Edited by proposal-police: This proposal was edited at 2025-03-20 21:28:44 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Workspace - "@expensify.sms" is added for a phone number account as a workspace owner
What is the root cause of that problem?
When a user is created, we append the @expensify.sms suffix to their phone number. However on the workspaces page we display the phone number without removing the suffix.
What changes do you think we should make in order to solve the problem?
We can use the formatPhoneNumber function to display the phone number in the correct format. Note that if the number is from the same country as the user, then this country's local format will be used, otherwise international.
{formatPhoneNumber(ownerDetails.login??'')}
This approach is already used in many other places, such as on the members page
Hey team! I am heading OoO this afternoon — March 28 to April 7. If any action is needed by BZ during that time, please reapply the label or reach out in Slack, otherwise I will review when I get back. Thanks!
changed the title [-][$250] Workspace - "@expensify.sms" is added for a phone number account as a workspace owner[/-][+][Due for payment 2025-04-10] [$250] Workspace - "@expensify.sms" is added for a phone number account as a workspace owner[/+]on Apr 3, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.22-10 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@ikevin127@CortneyOfstad@ikevin127 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Log into a valid phone number account without any email as a secondary contact.
Create a workspace.
Navigate to Settings - Workspaces.
Verify that the owner's phone number is displayed without the @expensify.sms domain.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Mar 20, 2025
Triggered auto assignment to @CortneyOfstad (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.andriivitiv commentedon Mar 20, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-03-20 21:28:44 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Workspace - "@expensify.sms" is added for a phone number account as a workspace owner
What is the root cause of that problem?
When a user is created, we append the
@expensify.smssuffix to their phone number. However on the workspaces page we display the phone number without removing the suffix.What changes do you think we should make in order to solve the problem?
We can use the
formatPhoneNumberfunction to display the phone number in the correct format. Note that if the number is from the same country as the user, then this country's local format will be used, otherwise international.This approach is already used in many other places, such as on the members page
App/src/pages/workspace/WorkspaceMembersPage.tsx
Line 427 in 7672888
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
None, UI bug
What alternative solutions did you explore? (Optional)
Or use the
removeSMSDomainfunctionApp/src/pages/workspace/WorkspacesListRow.tsx
Line 240 in 7672888
Result
melvin-bot commentedon Mar 24, 2025
@CortneyOfstad Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
melvin-bot commentedon Mar 26, 2025
@CortneyOfstad Eep! 4 days overdue now. Issues have feelings too...
CortneyOfstad commentedon Mar 26, 2025
Was able to confirm, so getting eyes!
CortneyOfstad commentedon Mar 26, 2025
Auto-assigner is not working so going to try again
25 remaining items
CortneyOfstad commentedon Mar 28, 2025
Hey team! I am heading OoO this afternoon — March 28 to April 7. If any action is needed by BZ during that time, please reapply the label or reach out in Slack, otherwise I will review when I get back. Thanks!
[-][$250] Workspace - "@expensify.sms" is added for a phone number account as a workspace owner[/-][+][Due for payment 2025-04-10] [$250] Workspace - "@expensify.sms" is added for a phone number account as a workspace owner[/+]melvin-bot commentedon Apr 3, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Apr 3, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.22-10 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2025-04-10. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Apr 3, 2025
@ikevin127 @CortneyOfstad @ikevin127 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
ikevin127 commentedon Apr 4, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment: https://github.com/Expensify/App/pull/32817/files#r2029276963.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
@expensify.smsdomain.Do we agree 👍 or 👎.
CortneyOfstad commentedon Apr 10, 2025
Payment Summary
@ikevin127 — paid $250 via Upwork
@CyberAndrii — paid $250 via Upwork
Regression Test
https://github.com/Expensify/Expensify/issues/489610