mirror of
https://github.com/vas3k/TaxHacker.git
synced 2026-05-15 20:01:38 -05:00
a7c4528e03
* feat: add transaction deduplication with side-by-side comparison modal * feat: implement three-way duplicate resolution logic - Add Row-Level check (Merchant/Total/Currency/Date) to Transaction model. - Implement side-by-side comparison modal with Older/Newer/Both options. - Update AI and CSV workflows to intercept duplicates. Closes #92 * fix: include currency code and fallback in transaction deduplication check Closes #92 * refactor(transactions): separate deduplication logic from creation model - Extracted duplicate checking into a dedicated `findDuplicateTransaction` method in `models/transactions.ts` - Restored `createTransaction` to a pure, atomic database insertion to remove unexpected side effects - Updated all server actions (createTransactionAction, saveInvoice, saveFile, saveTransactions) to orchestrate the duplication check before calling the creation model Addresses reviewer feedback to separate concerns and maintain clean model methods.