-
Notifications
You must be signed in to change notification settings - Fork 122
Pending detection, FX metadata, Pending UI badge. #374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Pending detection, FX metadata, Pending UI badge. #374
Conversation
…vior via ENV. - Enhance debug logging for SimpleFin API requests and raw payloads. - Refine pending flag handling in `SimplefinEntry::Processor` based on provider data and inferred conditions. - Improve FX metadata processing for transactions with currency mismatches. - Add new tests for pending detection, FX metadata, and edge cases involving `posted` values. - Add pending indicator UI to transaction view.
WalkthroughAdds pending-transaction detection and FX metadata extraction to Simplefin entry processing, makes importer pending inclusion driven by ENV or explicit flag and adds raw-payload debug logging, shows a Pending badge in transaction views, and includes unit tests and documentation updates. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
✅ Files skipped from review due to trivial changes (2)
🧰 Additional context used🧠 Learnings (10)📚 Learning: 2025-11-24T16:55:43.069ZApplied to files:
📚 Learning: 2025-11-24T16:56:30.669ZApplied to files:
📚 Learning: 2025-11-24T16:54:59.198ZApplied to files:
📚 Learning: 2025-11-24T16:55:43.069ZApplied to files:
📚 Learning: 2025-11-24T16:55:43.069ZApplied to files:
📚 Learning: 2025-11-24T16:55:43.069ZApplied to files:
📚 Learning: 2025-09-13T11:36:45.479ZApplied to files:
📚 Learning: 2025-11-24T16:54:59.198ZApplied to files:
📚 Learning: 2025-09-13T11:40:26.913ZApplied to files:
📚 Learning: 2025-09-13T11:36:45.479ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
I don't have pending transactions to try and test this with ... do they happen often for you, @luckyPipewrench? |
|
I have a bunch. Some providers don't send pending txs in the raw json at all though, eg capitalone. |
|
Did we decide to leave pending out for now, then? Probably good to document in the |
…SimpleFIN and Plaid integrations. Add debug flags for troubleshooting.
|
I'd like to have the pending feature in. It’s passive and only surfaces when the provider includes signals ( |

◦ Pending detection: honor provider pending: true; infer when posted blank/0 and transacted_at present. Avoid epoch by treating zero posted as missing.
◦ FX metadata: record extra.simplefin.fx_from and fx_date (prefers transacted_at, fallback posted) when tx currency != account currency.
◦ UI: subtle, uniform “Pending” badge when either extra.simplefin.pending or extra.plaid.pending is true.
◦ Debugging: optional SIMPLEFIN_INCLUDE_PENDING and SIMPLEFIN_DEBUG_RAW, both default‑off.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.