[White label] Substitute "HCB" for Organization name on donation page
When white labeling is enabled, it should do the following on the donation page:
- Instead of saying "HCB", it should just have the organization name.
- Anywhere on the page
- The page title
- Don't worry about the code itself or any non-visible text (e.g. HTML)
- Remove the "fiscally sponsored by" message at the bottom of the page.
Make this an organization setting.
Implementation
This is really important. The rails app should have a nice way to determine:
- Whether this page is white-labeled or not (which depends on the organization)
- If the page is white-labeled, it should know what name to use. If not white-labeled, fallback to "HCB'.
In other words, abstract out the logic for this so we don't need to handle it in every view. Here's a very simple non-production-ready version of what I'm talking about:
module ApplicationHelper
def white_labeled?
@white_label && @event&.white_label?
end
def platform_name(fallback: "HCB")
white_labeled? ? @event.name : fallback
end
end
class DonationController
before_action { @white_label = true }
end
Donation page by <%= platform_name %>
I think we need to be transparent about a nonprofit's legal status when people are making donations:
Remove the "fiscally sponsored by" message at the bottom of the page.
If anyone is planning to take this on, before writing code for this ticket, please chat with me first so we have a solid plan on what the UX will look like. As Sam said, we need to make sure some legal information is clear.
Imma drop the Beginner Friendly tag because there are a lot of product decisions to be made here. It may be a bit difficult for beginners to understand what needs to be built without those decisions already made and agreed upon.