-
Notifications
You must be signed in to change notification settings - Fork 3
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
DON-1014: Move total raised right on regular giving campaign summary … #1828
Conversation
…card Also allowing regular giving & ad-hoc to be mixed in the same grid
@@ -1,5 +1,6 @@ | |||
export type CampaignSummary = { | |||
percentRaised?: number|string; | |||
isRegularGiving: boolean; |
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 needs to be added in SF where we send these summaries. Doesn't actually have to be done before this is deployed to prod as long as there are no regular giving campaigns in prod since undefined is falsy.
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.
done
@for (campaign of individualCampaigns; track campaign.id) { | ||
<div> | ||
@if (campaign.isRegularGiving) { |
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.
I think I'm likely to extract everything inside this if soon to go into a new Angular component to re-use in charity.component.html
This reverts commit 1f288d2.
This reverts commit 7092a70. I couldn't get the layout quite right on the explore page with the new campaign-card component - it wasn't filling the full height of the space in the grid when it was shorter than other cards (e.g. not having a percentage raised or having a single line title)
…ore, metacampaign & charity pages
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.
LGTM
Also allowing regular giving & ad-hoc to be mixed in the same grid