Skip to content
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

Merged
merged 6 commits into from
Jan 20, 2025

Conversation

bdsl
Copy link
Contributor

@bdsl bdsl commented Jan 17, 2025

Also allowing regular giving & ad-hoc to be mixed in the same grid

image

image

image

…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;
Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines 70 to 72
@for (campaign of individualCampaigns; track campaign.id) {
<div>
@if (campaign.isRegularGiving) {
Copy link
Contributor Author

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

bdsl added 5 commits January 17, 2025 16:54
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)
@bdsl bdsl marked this pull request as ready for review January 17, 2025 17:56
Copy link
Contributor

@dorota-joanna dorota-joanna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bdsl bdsl merged commit 0a6c7d2 into develop Jan 20, 2025
4 checks passed
@bdsl bdsl deleted the DON-1014-move-total-raised-to-right branch January 20, 2025 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants