Start and end balance breakdown in activity view #2466

Merged
zachgoll merged 13 commits from zachgoll/maybe-911-update-activity-view-to-show-breakdown-of-balance-changes into main 2025-07-19 05:56:25 +08:00
zachgoll commented 2025-07-19 03:13:18 +08:00 (Migrated from github.com)

A much more intuitive experience for viewing the account "Activity View".

We now show a "reconciliation" of how we got from the start-of-day balance to the end of day balance, including "adjustments":

CleanShot 2025-07-18 at 17 13 00

Future considerations

It would probably be worth adding the following fields to the balances table and populating them during background data syncs. This would reduce some of the complexity for these balance reconciliations; especially on days with "Valuations" where we lose information about how much of which component changed:

  • balance.cash_change_amount - how much of the balance change came from cash movements (transactions, trades)
  • balance.non_cash_change_amount - how much of the balance change came from holding value changes, or in the case of a non-cash Loan account, how much the balance changed from principal paydowns
  • balance.adjustment_amount - how much of balance change was from the Valuation adjustment
A much more intuitive experience for viewing the account "Activity View". We now show a "reconciliation" of how we got from the start-of-day balance to the end of day balance, including "adjustments": <img width="992" height="884" alt="CleanShot 2025-07-18 at 17 13 00" src="https://github.com/user-attachments/assets/c3cbe04e-7935-45eb-9596-d5d5eeed2725" /> ## Future considerations It would probably be worth adding the following fields to the `balances` table and populating them during background data syncs. This would reduce some of the complexity for these balance reconciliations; especially on days with "Valuations" where we lose information about how much of which component changed: - `balance.cash_change_amount` - how much of the balance change came from cash movements (transactions, trades) - `balance.non_cash_change_amount` - how much of the balance change came from holding value changes, or in the case of a non-cash Loan account, how much the balance changed from principal paydowns - `balance.adjustment_amount` - how much of balance change was from the `Valuation` adjustment
Sign in to join this conversation.