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
[HOLD for payment 2024-02-07] [$500] Reimbursement - Reimbursement message is not copied with "Copy to clipboard" #34045
Version Number: 1.4.22-0 Reproducible in staging?: Y Reproducible in production?: N If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:
Action Performed:
[User A] Request money from User B
[User B] Pay the request
[User A] Go to the paid IOU report
[User A] Right click on reimbursement message > Copy to clipboard
[User A] Paste the content
Expected Result:
The reimbursement message is copied successfully
Actual Result:
The reimbursement message is not copied
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
👋 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:
Identify the pull request that introduced this issue and revert it.
But instead of handling it case by case, we can make it a general case. So, in addition to messageHtml, we can create messageText which is the result of all the messages' concatenation. Then, we will use it as the last fallback.
changed the title [-] Reimbursement - Reimbursement message is not copied with "Copy to clipboard"[/-][+][$500] Reimbursement - Reimbursement message is not copied with "Copy to clipboard"[/+]on Jan 6, 2024
Issue is ready for payment but no BZ is assigned. @muttmuure you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks!
@muttmuure Hi, I was scanning through my pending payment and saw that I haven't been paid yet on this one. Here is the offer that I was checking, could you kindly check it on your side?
Activity
github-actions commentedon Jan 5, 2024
👋 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:
melvin-bot commentedon Jan 5, 2024
Triggered auto assignment to @tylerkaraszewski (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.namhihi237 commentedon Jan 5, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Can not copy message reimbursement
What is the root cause of that problem?
We do not have a logic for copying the type "MARKEDREIMBURSED" of message in here
What changes do you think we should make in order to solve the problem?
We should add logic like this
What alternative solutions did you explore? (Optional)
gijoe0295 commentedon Jan 5, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Reimbursement message is not copied with "Copy to clipboard"
What is the root cause of that problem?
We did not cover the case of
MARKEDREIMBURSEDhere.What changes do you think we should make in order to solve the problem?
We should add the check to cover reimbursement message type:
We should cover other cases of reimbursement messages like
REIMBURSEMENTDEQUEUEDorREIMBURSEMENTQUEUEDas well.What alternative solutions did you explore? (Optional)
I also notice that the TS definition here is insufficient. We should supplement all types of messages to avoid type errors.
bernhardoj commentedon Jan 5, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Copying reimbursed system message copies nothing.
What is the root cause of that problem?
The reimbursed system message object only contains

textproperty and nothtml.When we press copy to clipboard, we only take the last message
html.App/src/pages/home/report/ContextMenu/ContextMenuActions.tsx
Lines 33 to 36 in a8acf44
App/src/pages/home/report/ContextMenu/ContextMenuActions.tsx
Line 298 in a8acf44
So, the copy to clipboard fails to copy the message.
What changes do you think we should make in order to solve the problem?
Previously, we had a similar issue for SUBMITTED action and the solution is to concat all message
text.App/src/pages/home/report/ContextMenu/ContextMenuActions.tsx
Lines 324 to 327 in a8acf44
But instead of handling it case by case, we can make it a general case. So, in addition to
messageHtml, we can createmessageTextwhich is the result of all the messages' concatenation. Then, we will use it as the last fallback.melvin-bot commentedon Jan 6, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01143d94d68559e19a
[-] Reimbursement - Reimbursement message is not copied with "Copy to clipboard"[/-][+][$500] Reimbursement - Reimbursement message is not copied with "Copy to clipboard"[/+]52 remaining items
melvin-bot commentedon Feb 7, 2024
Issue is ready for payment but no BZ is assigned. @muttmuure you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks!
melvin-bot commentedon Feb 7, 2024
Payment Summary
Upwork Job
BugZero Checklist (@muttmuure)
fedirjh commentedon Feb 7, 2024
@muttmuure C+ payment should be issued to @0xmiroslav as he has fully reviewed the PR.
muttmuure commentedon Feb 9, 2024
Invited @0xmiroslav and @bernhardoj
melvin-bot commentedon Feb 12, 2024
@tylerkaraszewski, @fedirjh, @muttmuure, @bernhardoj Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
muttmuure commentedon Feb 12, 2024
Offer sent to @bernhardoj
muttmuure commentedon Feb 12, 2024
Waiting for @0xmiroslav to accept
muttmuure commentedon Feb 13, 2024
Going to close for now, @0xmiroslav please reopen when you'd like to be paid
bernhardoj commentedon Apr 9, 2024
@muttmuure Hi, I was scanning through my pending payment and saw that I haven't been paid yet on this one. Here is the offer that I was checking, could you kindly check it on your side?
mallenexpensify commentedon Apr 9, 2024
Contributor: @bernhardoj paid $500 via Upwork
Sorry we missed that @bernhardoj
bernhardoj commentedon Apr 10, 2024
@mallenexpensify Thanks!