Skip to content

Dragging a PDF onto an Expense Without a Receipt Does Not Offer "Replace Receipt" Option #65691

Description

@m-natarajan

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number:
Reproducible in staging?:
Reproducible in production?:
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: @shawnborton
Slack conversation (hyperlinked to channel name): #Expensify Bugs

Action Performed:

  1. Open a report that contains a single expense without a receipt
  2. Drag a PDF receipt onto that expense within the one-expense report view
  3. Observe the drop zones that appear.

Expected Result:

If the user is dragging a receipt onto a specific expense (especially over the thumbnail area), the "Replace receipt" drop zone should activate—similar to how it works in OldDot.
Drop zones should dynamically adjust based on context:
Over receipt thumbnail: Replace receipt.
Over composer: Add attachment.
Elsewhere on report: Add new expense (scan receipt).

Actual Result:

The drop zones do not allow the user to attach the PDF directly as the receipt for that specific expense.
The UI behaves as if the file is being added as a new expense to the report, not attached to the selected expense.

Workaround:

Unknown

Platforms:

Select the officially supported platforms where the issue was reproduced:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop
Platforms Tested: On which of our officially supported platforms was this issue tested:
  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

View all open jobs on GitHub

Metadata

Metadata

Assignees

Labels

BugSomething is broken. Auto assigns a BugZero manager.NewFeatureSomething to build that is a new item.

Fields

No fields configured for Feature.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions