-
Notifications
You must be signed in to change notification settings - Fork 1
[MPDX-8759/MPDX-8764] Load and modify goal calculations #1413
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
Conversation
Preview branch generated at https://8759-load-goal-calculations.d3dytjb8adxkk5.amplifyapp.com |
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.
Great work on this
update: (cache) => { | ||
cache.evict({ id: `GoalCalculation:${goal.id}` }); | ||
cache.gc(); | ||
}, | ||
}); | ||
setDeleting(false); |
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.
Lets add snackbar to this so the user is updated if it's successful or there is an error
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.
Quoting my other comment:
The GraphQL client automatically shows a snackbar message if there was an error. I know in some places we show a snackbar message on errors, but that actually results in 2 snackbar messages popping up.
I'm not strongly opposed to adding a success message. Although my initial thought is that seeing the goal calculation disappear from the list is sufficient to tell the user that it was deleted.
Bundle sizes [mpdx-react]Compared against e8281a8
|
Description
Update the goals list and cards to use real data from the GraphQL API.
The starred / primary is in the design, but it is a post-MVP feature, so I removed the star from being rendered for now. I kept in the codebase so that it's possible to test and so that it's easy to turn back on when we're ready.
It also renders the date as the title since we don't have a name field for goal calculations yet (Zach is working on this).
Depends on https://github.com/CruGlobal/mpdx_api/pull/2969 and https://github.com/CruGlobal/mpdx_api/pull/2983
MPDX-8759 and MPDX-8764
Checklist: