Skip to content

Conversation

@wingertandrew
Copy link

No description provided.

wingertandrew and others added 6 commits November 30, 2025 14:56
Implemented fixes for 8 identified edge cases and incomplete features:

1. **Merge validation**: Added convertedCurrencyCode validation to prevent
   incorrect multi-currency transaction merges

2. **PDF preview**: Fixed MAX_PAGES configuration to properly limit preview
   generation and prevent resource exhaustion

3. **Import batch status**: Added distinction between completed and
   completed_with_errors status for better error visibility

4. **Required fields**: Implemented validation enforcement for required
   fields at transaction create/update time

5. **Currency parsing**: Added overflow protection with bounds checking
   (max $100B) and safe integer validation

6. **Duplicate CSV detection**: Added content hash tracking to detect and
   warn about duplicate imports with metadata

7. **Undo merged matches**: Implemented undoMatchAction to allow reverting
   auto-merged or reviewed matches

8. **Audit log pagination**: Added pagination support to prevent performance
   issues with large audit histories (default 50 logs)

Database changes:
- Added contentHash field to ImportBatch with index
- Migration: 20251210061937_add_content_hash_to_import_batch

All changes maintain backward compatibility and add safety guards for
local server deployments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants