-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[$250] LHN - Email is displayed instead of user name on LHN message preview #59812
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
Comments
Triggered auto assignment to @lschurr ( |
Triggered auto assignment to @rlinoz ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
@lschurr FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors. |
Dupe of #59566 |
@nlemma why reproducible in production is N/A in this case? If it is really a dupe as @samranahm is saying I think this should be reproducible in prod. |
@rlinoz we have a bit different behabour for |
@samranahm Can you explain how this is a duplicate and how a proposal for that issue would fix this one? |
@jasperhuangg Sorry my bad that was similar one but for another translation |
🚨 Edited by proposal-police: This proposal was edited at 2025-04-12 11:58:53 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.LHN - Email is displayed instead of user name on LHN message preview What is the root cause of that problem?Line 4200 in 9eb3655
We pass the formattedLogin cause the email to display in alternate text Lines 648 to 649 in 9eb3655
What changes do you think we should make in order to solve the problem?Here Line 4200 in 9eb3655
We should explicitly check if the report is DM and in such case pass an empty string for payer to 'iou.payerOwesAmount'
return translateLocal('iou.payerOwesAmount', {payer: isDM(parentReport) ? '' : (payerName ?? ''), amount: formattedAmount, comment}); What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional)To prevent the potential regression we can utilize return isDM(report) && isForListPreview
? translateLocal('iou.payerOwesAmount', {payer: '', amount: formattedAmount, comment})
: translateLocal('iou.payerOwesAmount', {payer: payerName ?? '', amount: formattedAmount, comment}); |
LHN-812.mp4 |
Right, I think we can demote this one and get it fixed. I think the problem is just not showing up in prod because we are not showing the IOU as the last message for some reason in prod. |
@rlinoz no it's to return the display names instead of the emails in |
@rlinoz, @Ollyws, @lschurr, @thelullabyy Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@rlinoz Any new update from BE side? |
This looks like a simple change, I will check internally if there is any reason this should not be changed and will post back. |
@thelullabyy Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
PRs are up actually, probably deployed early next week. |
@thelullabyy Still overdue 6 days?! Let's take care of this! |
@thelullabyy this is in staging |
@Ollyws After this PR. The behavior related to Bug 2 is changed. With that new change, we never show the "You". What should we do in this situation? App/src/libs/OptionsListUtils.ts Line 582 in ce695b6
|
Hmm good question, that PR does seem to violate the expected behaviour as detailed in this comment: #59812 (comment) |
From what I can tell that PR is just trying to avoid showing |
@thelullabyy Eep! 4 days overdue now. Issues have feelings too... |
Hmm well #60307 has removed |
Yeah, actually cc @Expensify/design on this one. When you create a report and we are showing the report preview message in the LHN, how should it be displayed?
|
I'm honestly getting a little lost in all these—personally, I think it would be best to create the least amount of exceptions as possible, and have them all work as similarly as possible. Definitely want to hear others' thoughts who maybe have more understanding of how all these work though. |
I think we need to first determine if we think a workspace chat should behave like a DM between two people (we never show |
I agree workspace chats are more like rooms and it would be best to have the same pattern.
So I guess we can go on with this @Ollyws @thelullabyy |
Thanks, I opened PR here |
Uh oh!
There was an error while loading. Please reload this page.
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: v9.1.24-2
Reproducible in staging?: Yes
Reproducible in production?: N/A
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: #59252
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: MacOS Chrome, Desktop
App Component: Left Hand Navigation (LHN)
Action Performed:
Expected Result:
'User's display name owes amount' message should be displayed on LHN of the user you have requested money from
Actual Result:
'User's email owes amount' message is displayed on LHN. And the message is changed to 'User's display name owes amount' when opening the chat
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6795782_1744098119397.Screen_Recording_2025-04-08_at_10.29.59_in_the_morning.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @thelullabyyThe text was updated successfully, but these errors were encountered: