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
[$250] Distance - Replace receipt zone is present when dragging an image over distance expense RHP #65629
Version Number: 9.1.77-1 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from TestRail:#65327 Email or phone of affected tester (no customers):applausetester+0700798kh@applause.expensifail.com Issue reported by: Applause Internal Team Device used: Mac 15.5 / Chrome App Component: Money Requests
Action Performed:
Precondition:
Log in with Expensifail account.
Go to staging.expensify.com
Go to workspace chat.
Create two distance expenses to the workspace chat.
Open transaction thread of any distance expense.
Drag and drop an image to Replace receipt zone on the expense thread RHP.
Expected Result:
Replace receipt zone should not appear when dragging an image over distance expense RHP.
Actual Result:
Replace receipt zone is present when dragging an image over distance expense RHP.
App shows error after dropping the image on Replace receipt zone on distance RHP.
Please re-state the problem that we are trying to solve in this issue.
Distance - Replace receipt zone is present when dragging an image over distance expense RHP
What is the root cause of that problem?
We are using DualDropZone in ReportActionsCompose and we show it when shouldDisplayDualDropZone is true. But while calculating the shouldDisplayDualDropZone we are not considering the distance transaction which makes shouldDisplayDualDropZone as true for distance expenses as well.
What changes do you think we should make in order to solve the problem?
We need to check if it is a distance expense and if it is a distance expense we don't need to show the dualDropZone, For that we need to make the change here
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)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
Please re-state the problem that we are trying to solve in this issue.
Distance - Replace receipt zone is present when dragging an image over distance expense RHP
What is the root cause of that problem?
The issue arises because we display the "Replace receipt" drop zone unconditionally, without verifying whether the user has permission to edit the receipt. This check is already in place on the Transaction Receipt page but is missing here.
changed the title [-]Distance - Replace receipt zone is present when dragging an image over distance expense RHP[/-][+][$250] Distance - Replace receipt zone is present when dragging an image over distance expense RHP[/+]on Jul 9, 2025
Activity
melvin-bot commentedon Jul 8, 2025
Triggered auto assignment to @alexpensify (
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.Burhan-Rashid commentedon Jul 8, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Distance - Replace receipt zone is present when dragging an image over distance expense RHP
What is the root cause of that problem?
We are using DualDropZone in ReportActionsCompose and we show it when
shouldDisplayDualDropZoneis true. But while calculating theshouldDisplayDualDropZonewe are not considering the distance transaction which makes shouldDisplayDualDropZone as true for distance expenses as well.App/src/pages/home/report/ReportActionCompose/ReportActionCompose.tsx
Lines 223 to 235 in e8ee21b
What changes do you think we should make in order to solve the problem?
We need to check if it is a distance expense and if it is a distance expense we don't need to show the dualDropZone, For that we need to make the change here
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)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
truph01 commentedon Jul 8, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Distance - Replace receipt zone is present when dragging an image over distance expense RHP
What is the root cause of that problem?
The issue arises because we display the "Replace receipt" drop zone unconditionally, without verifying whether the user has permission to edit the receipt. This check is already in place on the Transaction Receipt page but is missing here.
App/src/pages/home/report/ReportActionCompose/ReportActionCompose.tsx
Line 639 in e8ee21b
App/src/pages/home/report/ReportActionCompose/ReportActionCompose.tsx
Lines 223 to 235 in e8ee21b
What changes do you think we should make in order to solve the problem?
We should apply the same permission logic in
ReportActionCompose.tsxto determine whether the user can edit receipts.canEditReceiptvariable:canEditReceiptas a prop to theDualDropZonecomponent.3.a. Use
canEditReceiptto conditionally render the "Replace receipt" drop zone inDualDropZone.tsx:App/src/components/DropZone/DualDropZone.tsx
Line 44 in e8ee21b
3.b. If
isEditing: trueandcanEditReceipt: true, display the "Replace receipt". Otherwise, display the "Scan receipt".What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional)
shouldDisplayDualDropZoneso that it will be:[-]Distance - Replace receipt zone is present when dragging an image over distance expense RHP[/-][+][$250] Distance - Replace receipt zone is present when dragging an image over distance expense RHP[/+]melvin-bot commentedon Jul 9, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021942739303022790580
melvin-bot commentedon Jul 9, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @akinwale (
External)alexpensify commentedon Jul 9, 2025
@akinwale, when you get a chance, please review if one of these proposals will fix the issue? Thanks!
akinwale commentedon Jul 9, 2025
It should remain possible to update receipts for distance expenses, so @truph01's proposal works here.
🎀👀🎀 C+ reviewed.
melvin-bot commentedon Jul 9, 2025
Triggered auto assignment to @MarioExpensify, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
8 remaining items
truph01 commentedon Jul 12, 2025
@akinwale @MarioExpensify I can't reproduce the issue since the PR is just merged 3 days ago.
akinwale commentedon Jul 13, 2025
In this case, 50% compensation would be due here based on the guidelines.
cc @alexpensify
alexpensify commentedon Jul 14, 2025
This week, I will review the payment request here
alexpensify commentedon Jul 18, 2025
Still on my list to review the payment steps
melvin-bot commentedon Jul 21, 2025
@alexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
alexpensify commentedon Jul 22, 2025
Payment Summary
Contributor: @truph01 paid $125 via Upwork
Contributor+: @akinwale due $125 via NewDot-- please submit a request in Chat, thanks!
Reason: Partial payment since this one went through the assignment phase
JmillsExpensify commentedon Jul 31, 2025
$125 approved for @akinwale
isabelastisser commentedon Aug 5, 2025
@akinwale has submitted payment for this report on ND [[here]
SO: https://stackoverflowteams.com/c/expensify/questions/7582
Vendor found in VML: True. Status: Active
Amount requested: $125.00 (Matches the payment summary[ here.]
I am not already the BZ assignee. I have approved this payment.