Skip to content

[Donations] Adding donation tiers #10676

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

Draft
wants to merge 42 commits into
base: main
Choose a base branch
from
Draft

[Donations] Adding donation tiers #10676

wants to merge 42 commits into from

Conversation

manuthecoder
Copy link
Contributor

This PR introduces the initial implementation of donation tiers as an optional feature for organizations on Hack Club Bank.

Core Features

  • Customizable Tiers
    Organizations can define multiple tiers, each with:

    • A name
    • Short description
    • Monthly donation amount
  • Improved Organizer UI
    Organizers can see a clear breakdown of donors by tier, making it easier to track recurring support.

Goals

  • Increase overall donation engagement by offering structured giving options.

  • Lay the foundation for future features like:

    • Tier-specific perks (e.g. exclusive newsletters, event invites)
    • Tier visibility on public pages

Inspiration

See #9492

@manuthecoder manuthecoder linked an issue Jun 24, 2025 that may be closed by this pull request
Comment on lines 37 to 41
<% end %>>
<h1 class="mt-0 mb0 border-none center <%= "smoke drop-shadow-lg" if @has_header_image %>">
<span class="h3 caps block <%= @has_header_image ? "muted" : "secondary" %>"><%= defined?(lead) ? lead : "Donate to" %></span>
<div class="flex justify-center items-center mt1">
<%= render "donations/logo" %>
<span class="ml2"><%= @event.name %></span>
<div class="container flex items-center <%= yield.present? ? '' : 'w-full' %>">
<div>
<h1 class="mt-0 mb0 border-none <%= (content_for?(:yield) || yield.present?) ? "" : "center" %> <%= "smoke drop-shadow-lg" if @has_header_image %>">
<span class="h3 caps block <%= @has_header_image ? "muted" : "secondary" %>"><%= defined?(lead) ? lead : "Donate to" %></span>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<% end %>>
<h1 class="mt-0 mb0 border-none center <%= "smoke drop-shadow-lg" if @has_header_image %>">
<span class="h3 caps block <%= @has_header_image ? "muted" : "secondary" %>"><%= defined?(lead) ? lead : "Donate to" %></span>
<div class="flex justify-center items-center mt1">
<%= render "donations/logo" %>
<span class="ml2"><%= @event.name %></span>
<div class="container flex items-center <%= yield.present? ? '' : 'w-full' %>">
<div>
<h1 class="mt-0 mb0 border-none <%= (content_for?(:yield) || yield.present?) ? "" : "center" %> <%= "smoke drop-shadow-lg" if @has_header_image %>">
<span class="h3 caps block <%= @has_header_image ? "muted" : "secondary" %>"><%= defined?(lead) ? lead : "Donate to" %></span>
<% end %>>
<div class="container flex items-center <%= yield.present? ? "" : "w-full" %>">
<div>
<h1 class="mt-0 mb0 border-none <%= content_for?(:yield) || yield.present? ? "" : "center" %> <%= "smoke drop-shadow-lg" if @has_header_image %>">
<span class="h3 caps block <%= @has_header_image ? "muted" : "secondary" %>"><%= defined?(lead) ? lead : "Donate to" %></span>

Comment on lines 47 to 50
}
}">
<div class="field">
}"
>
<div class="field <%= "hidden" if @tier %>">
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
}
}">
<div class="field">
}"
>
<div class="field <%= "hidden" if @tier %>">
}
}">
<div class="field <%= "hidden" if @tier %>">

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.

[Donations] Adding donation tiers
1 participant