Track retirement contributions and stock plan grants
Adds contribution history for retirement and other tax-advantaged accounts, showing principal and growth separately from the account balance. Adds a Stock plan subtype with equity grants, vesting schedules, and estimated upcoming values.
Both tabs support manual entry, CSV imports with templates, and AI extraction from uploaded PDF statements. Grant and vest summaries convert prices to the account currency before adding them; unavailable exchange rates display an unknown total. Re-reading a PDF replaces its extracted vests atomically while preserving manual/CSV entries and records from other statements.
Migration notes: creates account_contributions, equity_grants, and equity_vests, including optional statement references. No account-balance backfill or changes to transaction history.
Validation: full Rails suite (16,884 tests, 107,446 assertions, zero failures/errors; 9 skips); focused controller, extraction, and provider tests; 14 browser tests covering contribution entry, mixed-currency grants, and existing account-management flows (zero failures/errors); RuboCop, ERB lint, Biome, and Brakeman. Additional account-management browser tests use Capybara keyboard clearing to avoid an input-replacement failure reproduced on unmodified upstream main with Chromium 156. New content and commit history were checked for PII and secrets; examples and screenshots use synthetic data.
Screenshots:


Summary by cubic
Adds contribution tracking for retirement and other tax-advantaged accounts, plus a new Stock plan investment subtype for equity grants. Contribution and grant records live apart from entries, so account balance history and transaction history are unchanged.
New Features
- Tax-advantaged investment accounts get a Contributions tab showing principal, growth, and return, with principal drawn as a dashed line on the balance chart.
- The Stock plan subtype adds a Grants tab for RSU/option grants with vesting schedules, one-step repeating vest entry, and estimated values for upcoming vests based on the latest known price.
- Both tabs support manual entry, CSV import with downloadable templates, and AI extraction from uploaded PDF statements; re-reading a PDF replaces only its extracted records, preserving manual and CSV entries.
- Grant and contribution values in foreign currencies are converted to the account currency; unavailable exchange rates show an unknown total.
Migration
- Creates
account_contributions,equity_grants, andequity_vests. No balance backfill is performed.
Summary by CodeRabbit
- New Features
- Investment accounts can track contributions and withdrawals, review principal and earnings summaries, and compare contributed amounts with account growth on balance charts.
- Stock plan accounts can manage equity grants and vesting schedules, with estimated values displayed in the account currency.
- Add investment records manually or import them from CSV files. PDF statements can also be uploaded for data extraction when available.
- Import templates and record histories help you review contributions, grants, and vesting activity.