-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2024-12-25] [$250] Room-On inviting a phone contact via suggestions in room chat, expensify.sms shown in details #53003
Comments
Triggered auto assignment to @garrettmknight ( |
Edited by proposal-police: This proposal was edited at 2024-11-23 13:57:15 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.When inviting a phone contact via suggestions in the room chat, What is the root cause of that problem?We do not remove the SMS domain ( App/src/pages/RoomMemberDetailsPage.tsx Line 50 in 93c573b
What changes do you think we should make in order to solve the problem?We should use the The proposed implementation would look like this: const displayName = getDisplayNameOrDefault(details); What alternative solutions did you explore? (Optional)An alternative proposal is to use const displayName = getDisplayNameOrDefault(details); |
Proposal updatedSame approach but rephrased the proposal. |
ProposalPlease re-state the problem that we are trying to solve in this issue.On inviting a phone contact via suggestions in room chat, expensify.sms shown in details What is the root cause of that problem?the display name was not retrieved with the usual considerations including removing any sms domain and formatting the phone number What changes do you think we should make in order to solve the problem?we should change the following code from App/src/pages/RoomMemberDetailsPage.tsx Line 50 in 93c573b
into
RESULTWhat alternative solutions did you explore? (Optional)None |
Job added to Upwork: https://www.upwork.com/jobs/~021861102829467266920 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jayeshmangwani ( |
Edited by proposal-police: This proposal was edited at 2024-11-26 11:50:34 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.When inviting a memeber to a room the displaed name shows the full phone number including exepnsify.sms. What is the root cause of that problem?When we invite a user by phone number both If we click on the invited user on the message we then get the correct information from the BE and In the frontend we rely only on the App/src/pages/RoomMemberDetailsPage.tsx Line 50 in 93c573b
What changes do you think we should make in order to solve the problem?Option 1. We can add a front end fix to format the displayName if it is an sms login by changing the line where we read the displayName into this:
I added
Option 2.
And change the App/src/libs/PersonalDetailsUtils.ts Line 63 in 084a711
We could modify this to:
which would provide a consistent handling of the display name across the app instead of having to do another transformation on top of the displayName when we have a phone number. We need this now for example in the What alternative solutions did you explore? (Optional) |
Updated proposal #53003 (comment) due to premature click on the submit button and also added another option while I was at it :D |
@klajdipaja the test is already done in App/src/libs/LocalePhoneNumber.ts Lines 25 to 28 in c7c7690
formatPhoneNumber will not format the text if it is not a phone number |
@Kalydosos yes I am aware of that. IMO making that explicit check adds valuable information for the developer reading that line. We are formatting the displayName as a phone number because we expect it that sometimes it can be a phone number. I also don't like that the |
Proposal updated #53003 (comment). Added |
@jayeshmangwani can you give a look at our proposals ? |
@klajdipaja Then your proposal will be the same as this one #53003 (comment), right? |
@Kalydosos What difference will it make if we use We can simply use |
@jayeshmangwani No it's very different. Assume I have this phone number as my login method: Both my first option and the proposal from @Kalydosos use the My Option 2. takes that a step further because as you just did in your thinking we assume that |
Thanks for the info, @klajdipaja. After inviting the user to the workspace, we are displaying the formatted phone number for the user on the Members page. IMO, we should also show it the same way on the Details page. App/src/pages/RoomMembersPage.tsx Line 237 in f810ac6
If that’s the case, then we should implement |
@jayeshmangwani using formatPhoneNumber is absolutely necessary because that's the only way to display the phone number in a local and user-friendly format and to maintain consistency with all the other screens as you can see in the images and videos below it is used in the room page to reformat the invite phone numberreformating1.mp4it is used in the room members list screen and when not used in the member detail page the display is inconsistentwithnoformating.mp4just like in the issue demo videoso its usage is absolutely necessary. It is used in the members list screen here also (as you have pointed out indeed) App/src/pages/RoomMembersPage.tsx Line 237 in f810ac6
|
@jayeshmangwani I completely agree that we need to format the phone number and that @Kalydosos proposal is good for that. What I would like to point out is that the RCA for this issue manifests in bugs in many places and we need to look at this specific bug in a more holistic approach. Recoding 1. Invited a new user to the transaction thread. Notice how the phone number when you have contains the country code and once you visit the profile it does not anymore: Screen.Recording.2024-11-27.at.10.59.50.AM.movRecording 2. Submit expense to a new user by phone number. Once the report is created notice all the displayed names include the country code as well and when you visit the profile everything changes. Screen.Recording.2024-11-27.at.11.01.27.AM.mov |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test Proposal
Do we agree 👍 or 👎 |
no update on the payment. Is it because the ticket is closed ? |
No, but it seems that due to the holiday season, Garrett is OOO until December 30. |
Ok i see, thx for the info @jayeshmangwani 👍 |
@garrettmknight please let me know if there is anything i must do for the payment process, thx |
I'm not sure why the merge commit closed this issue, but we're still missing payment here. |
Current assignee @jayeshmangwani is eligible for the External assigner, not assigning anyone new. |
📣 @Kalydosos 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Payment Summary:
|
@garrettmknight offer accepted, thanks a lot 👍 |
@garrettmknight do you need anything from me to finalize the process on upwork ? please let me know, thx |
Nope! Just needed you to accept the offer. All paid up - @jayeshmangwani please request in ND when you're ready. |
Confirming payment summary:
|
$250 approved for @jayeshmangwani |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9. 0.66-0
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
Action Performed:
Expected Result:
Expensify.sms must not be shown with phone number in details page when inviting a phone contact via suggestions in room chat
Actual Result:
Expensify.sms is shown with phone number in details page when inviting a phone contact via suggestions in room chat
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6673857_1732338819810.Screenrecorder-2024-11-23-10-34-39-415_compress_1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @The text was updated successfully, but these errors were encountered: