-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Due for payment 2025-05-23] [$250] LHN - When paying someone, chat preview shows "You" and also user name before payment info. #59566
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 @lydiabarclay ( |
🚨 Edited by proposal-police: This proposal was edited at 2025-04-02 20:19:52 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.LHN - When paying someone, chat preview shows "You" and also user name before payment info. What is the root cause of that problem?This is causing due to Lines 651 to 653 in 9a58e7d
That cause to have the "You" as well as payer name in alternate text What changes do you think we should make in order to solve the problem?We should add add and update this logic Line 649 in 9a58e7d
like this if (isDM(report) && (lastActorDisplayName !== translateLocal('common.you') || lastAction?.actionName === CONST.REPORT.ACTIONS.TYPE.REPORT_PREVIEW)) { This will ensure we only have payer name in alternateText instead of 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)If we want to keep the Line 4135 in 9a58e7d
we pass the update the logic like this const payer = isReportPreviewAction(originalReportAction) && isDM(parentReport) && translatePhraseKey === 'iou.payerPaidAmount' ? '' : payerDisplayName;
return translateLocal(translatePhraseKey, {amount: formattedAmount, payer: payer}); This will keep the |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
Lines 651 to 655 in 851cb43
Line 4135 in 9a58e7d
This creates confusion by repeating the sender’s identity when it's already implied by the "You" prefix. What changes do you think we should make in order to solve the problem?
instead of:
Line 4135 in 9a58e7d
Here’s the proposed update: const parentReport = getReport(report?.parentReportID, allReports);
const payerText = isDM(parentReport) && translatePhraseKey === 'iou.payerPaidAmount' ? '' : payerDisplayName;
return translateLocal(translatePhraseKey, {amount: formattedAmount, payer: payerText});
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional) |
@dannymcclain is this expected behavior or a bug? unsure |
@lydiabarclay It will be fixed in My proposal, now we just need to make sure what we want to keep.
|
Yeah what we currently have is definitely not what we want. @Expensify/design what do you think about these options? I think I lean towards the second option
because that feels the most consistent with everything else? But let's get some confirmation before proceeding. |
@dannymcclain FYI, we have a long discussion about the expected behavior #58271 (comment):
|
That sounds weird
So, this is best option here as suggested by @dannymcclain
|
Agree with @dannymcclain that the option feels most consistent with the rest 👍 |
Hmm for DMs, we never show the other user's name before their message preview So I actually think this is the most consistent personally:
Because you would alway see the other party's name above the preview line (or to the left in focus mode) so I think it totally works fine. |
Yes, that's what you mentioned here: |
Love to see my consistency 🤣 |
Well for a workspace chat, it's technically a room, and in rooms, we always prepend the sender name in the preview. For a paid action, that actually comes from an individual and not the workspace. So let's say Jason is a payer in my workspace chat. I would expect the preview to look something like:
|
@shawnborton @dubielzyk-expensify FYI, the scope of this issue is about the 1:1 DM |
Yup, understood. Just trying to explain how the "system" works to help us better understand our decisions about the DM. |
Yeah, fair point 👍 Happy to go with that |
@lydiabarclay Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Agree with everything above! I was also not in the |
@shawnborton @dubielzyk-expensify Yeah, that was pretty straightforward, but i was missing poc.mp4 |
Job added to Upwork: https://www.upwork.com/jobs/~021909271368184447116 |
Actually, we didn’t realize that PR was merged after our PR was approved and waiting to be merge. I think we need to rework this one based on the new logic from #59778 |
@thelullabyy The new condition makes the logic consistent with OptionsListUtils. Could you please provide an update for this one? |
This comment has been minimized.
This comment has been minimized.
After this change: App/src/libs/OptionsListUtils.ts Line 580 in cbada04
the actual result in #59566 has changed. Previously, the chat preview on the LHN after sending a payment showed: However, following that PR (which removed "You") and our PR (which removed the "username"), the current behavior is: Since both PRs were merged simultaneously, the final output differs from the original expectation. I’d like to clarify the next steps here. Using
Let me know your thoughts on which direction we should take. |
I believe 2nd option is correct. |
I agree that the issue was caused by the PRs working simultaneously, so we have to find another solution to fix the issue Option 2: would go against this comment. Option 3: doesn't make sense because of this comment. |
@shawnborton Can you help them here please? |
Part of me thinks for the IOU case, we should always just show the full IOU title... like Then we always retain the existing logic for when we should or shouldn't show the |
I agree with this. The next step we can revert our PR and keep the current logic, after removing the last actor name in the IOU case from this PR cc: @mountiny |
@suneox will you just confirm here once the PR is fully reverted so that I may begin another 7-day count before payment? |
@suneox Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@suneox 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
We're still waiting for the PR to be reverted. cc: @thelullabyy |
Sorry, was ooo, ok lets revert the PR, please @thelullabyy or @suneox do so |
@thelullabyy @suneox can you please confirm once this is reverted? |
Not yet, @thelullabyy could you help create a revert PR? |
Beginning new 7-day count before payment due to regression |
@suneox Thanks for helping me create PR |
Thanks |
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.1.22-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Motorola MotoG60 - Android 12 - Chrome / Windows 10 - Chrome
App Component: Left Hand Navigation (LHN)
Action Performed:
Expected Result:
After sending a payment to another user, chat preview on LHN, should only display the name of the user who sent the payment, before the amount information.
Actual Result:
After sending a payment to another user, chat preview on LHN shows "You" and also the name of the user before the payment information.
Workaround:
Unknown
Platforms:
Screenshots/Videos
bug.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @suneoxThe text was updated successfully, but these errors were encountered: