EthanCloin / financial-forecast

1 stars 0 forks source link

User Balances - First Data Collection Page #8

Closed EthanCloin closed 8 months ago

EthanCloin commented 8 months ago

Summary

Allow user to submit information for their current account balances to construct a Net Worth

Tasks

Decisions

How should I store balances? The underlying data is a list of dicts like :

{
  balances: [
      {
          name: "checking",
          balance: 1000.93
      },
      {
          name: "saving",
          balance: 4000
      },
      {
          name: "emergency",
          balance: 200.44
      },
      {
          name: "investments",
          balance: 0
      }
  ]
}

current datastore is json form, i can probably just add balances, networth, netincome, debts as properties on the user. there is no expectation for a large quantity of data here.

EthanCloin commented 8 months ago

thinking about how i want to structure the Q + A portions of this app.

i should make a consistent pattern here. i need to support all four inquiries: balances, income, spending, debt.

user balances can include up to four values. each represents a different kind of account, but all will include a name and balance value.

  1. i could have a single page where i have a purpose summary for each account type. showing one at a time and replacing the summary and input fields after user hits 'next'.
  2. i could have all three input fields there with the label including an ℹ️ that shows summary text on hover (click on mobile)

option 2 seems cleaner to me and fewer interactions to worry about.

Screenshot 2024-01-20 at 1 12 40 PM