hcb icon indicating copy to clipboard operation
hcb copied to clipboard

[White label] Substitute "HCB" for Organization name on donation page

Open garyhtou opened this issue 11 months ago • 1 comments

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:

  1. Whether this page is white-labeled or not (which depends on the organization)
  2. 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 %>

garyhtou avatar Mar 13 '25 21:03 garyhtou

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.

sampoder avatar Mar 13 '25 21:03 sampoder

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.

garyhtou avatar Oct 20 '25 04:10 garyhtou

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.

garyhtou avatar Oct 21 '25 15:10 garyhtou