-
Notifications
You must be signed in to change notification settings - Fork 1
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
[MPDX-8542] Show support goal history in donations graph #1269
base: health-indicator
Are you sure you want to change the base?
Conversation
Preview branch generated at https://8542-hi-support-goal-history.d3dytjb8adxkk5.amplifyapp.com |
Bundle sizes [mpdx-react]Compared against 480abb5
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking great! Good work. I have a few questions.
- The coaching graph looked different than the other graph's, the goal was just a straight line rather being a dot with a line.
- It appears the goal on the graph is set to $6000, but the monthly goal is set to $7000. Is this correct?
src/components/Dashboard/DonationHistories/DonationHistories.tsx
Outdated
Show resolved
Hide resolved
I removed the dots from the line.
Yes, this is correct. It is graphing the @dr-bizz I also made some additional fixes and changes:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks awesome. Thank you for the improvments!
src/components/Dashboard/DonationHistories/DonationHistories.test.tsx
Outdated
Show resolved
Hide resolved
635201b
to
74948b1
Compare
96e2a30
to
2d34b21
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for making these improvements. I reviewed it again, and it looks great.
I have 1 question. It looks like when I removed the goal, the machine-calculated goal isn't showing on the graph. It should be the same currency, so it should show correct? This s probably me not understanding it correctly.

The blue line is the staff-entered goal for each of the months in 2024. Because it has a staff-entered goal in the health indicator data it is using that and not falling back to the machine-calculated goal. The months in 2025 have no data because there is no health indicator data for them. I should extrapolate from the last known machine-calculated goal though to fill in those missing months. |
Description
Show the historical support goal in the donations graph.
Testing
Testing is a little bit complex because the donations graph shows up in multiple places and each place loads the data independently (it isn't loaded by the graph component itself), so we need to test each place the donations graph is rendered as a HI user and a non-HI user.
MPDX-8542
Checklist: