codeforbtv / cvoeo-app

The "Money on My Mind" app helps CVOEO's Reach-Up clients stay on track with their personal finance coaching.
Apache License 2.0
11 stars 4 forks source link

Show progress toward savings goal with speedometer #29

Open kmeyersvt opened 5 years ago

kmeyersvt commented 5 years ago

Goal: As a user, I want to see my progress toward my savings goal. Why: to motivate the user to continue saving DoD:

This will be updated when we have the data file to work with and can be specific about the triggers.

doub1ejack commented 5 years ago

@jbpayne asked

I have a question about the speedometer Is that just for matched savings, or total incentives? Will we be relying on Outcome Tracker for the number, or will we allow the user to update, or both?

Good question. For the MVP we are not implementing the Matched Savings yet. But we will probably be adding that very soon. So let's handle it this way:

  1. Make a function that adds all the incentives for completed goals together and returns the incentivesEarned
  2. Make a constant called incentivesAvailable
  3. Have the Dashboard screen call use the incentivesEarned and incentivesAvailable to update the speedometer.

Now when we want to add the Matched Savings feature, we won't have to touch the speedometer in the view. We can just modify the function that returns incentivesEarned and update the incentivesAvailable const.