Skip to content

[NewDot Manual Merging] Implement the frontend section #65574

@youssef-lr

Description

@youssef-lr

Part of the Manual Expense Merging in NewDot project

Main issue: https://github.com/Expensify/Expensify/issues/496985
Doc section: https://docs.google.com/document/d/1RXJyOVsX2AgKWNViLSxNm3PH2bSnJCuo6K_jcOxUGuo/edit?tab=t.0#bookmark=id.d4udct66dw0x
Project:

Feature Description

Implement the frontend section of the design doc allowing manually merging two expenses from the expense view, report view, and the Reports page.

Manual Test Steps

https://docs.google.com/document/d/1bQM6A13GZsrzsx7H9Q6wmbbf-1cwcu2qBM1HXpWABzw/edit?tab=t.0#heading=h.x1tkdmajx2wc

Automated Tests

  1. Add tests for making the API call and verifying optimistic data have been set properly. Mock data for MERGE_TRANSACTION{transactionID} key, mock the API call and then verify:
  • Original transaction is updated
  • If single expense report, the report was deleted
  • Other transaction is deleted
  • Violations of original transaction are deleted
  1. Update test of ReportSecondaryActionUtilsTest by adding test cases of:
  • Merging two cash expenses: merge option should show up
  • Merging two card expenses: merge option should not show up
  • Merging cash/card expenses: merge option should show up
Issue OwnerCurrent Issue Owner: @alexpensify
Issue OwnerCurrent Issue Owner: @alexpensify

Metadata

Metadata

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions