feat: Link Amazon orders to Monarch transactions in info modal#59
Merged
Conversation
When viewing a Monarch/YNAB transaction with an Amazon-like merchant name (contains "amazon" or "amzn"), pressing "I" now searches local Amazon profile databases for matching orders by amount and date. Features: - New AmazonLinker service to find and match Amazon orders - Matches by order total (sum of items) within $0.02 tolerance - Matches by date within 7 days of transaction date - Shows matched orders at top of transaction detail modal - Displays order ID, date, items with quantities, and totals - Shows "No matching orders found" when searched but no matches Bug fix: - Fixed Amazon mode failing with "encryption key not set" error - Cache manager now only created when encryption key is available Tests (30 new tests): - AmazonLinker matching logic and edge cases - TransactionDetailScreen with Amazon matches - Regression tests for Amazon mode without encryption 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Fix ruff formatting issues in test_amazon_linker.py - Add rule: AI must NEVER amend commits unless explicitly asked 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Document the new feature that links Monarch/YNAB transactions to Amazon orders when pressing 'i' (Info) on Amazon-like merchants. Includes matching criteria, example output, and requirements. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1416e2a to
ab693d2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When viewing a Monarch/YNAB transaction with an Amazon-like merchant name (contains "amazon" or "amzn"), pressing "I" now searches local Amazon profile databases for matching orders by amount and date.
Features:
Bug fix:
Tests (30 new tests):
🤖 Generated with Claude Code