Skip to content

Donate privacy upstream - #32

Closed
Username-Matilda wants to merge 3 commits into
UFO-101:mainfrom
Username-Matilda:donate-privacy-upstream
Closed

Donate privacy upstream#32
Username-Matilda wants to merge 3 commits into
UFO-101:mainfrom
Username-Matilda:donate-privacy-upstream

Conversation

@Username-Matilda

Copy link
Copy Markdown
Collaborator

Summary

Adds a donations page wired to Stripe, a privacy policy, and a cookie consent banner, with Donate/Privacy surfaced in the nav and footer. Built on the current site structure (dropdown nav, sub-page footer, shared styles.css).

New pages

  • /donate — wired to Stripe Payment Links (no backend, no secrets):
    • Monthly: preset amounts £3 / £5 / £10 / £25 / £50 / £100 / £250 / £500, each redirecting to its own recurring Payment Link (Bacs Direct Debit + Card).
    • One-off: the amount grid hides on this tab; a single CTA redirects to a "customer chooses price" Payment Link where the donor sets the amount on Stripe (no double entry).
    • Includes an "other ways to give" section (bank transfer / major one-off gifts) and a transparency block with the Safe AI Alliance Ltd disclosure.
  • /privacy — UK GDPR notice with split controllers: Safe AI Alliance Ltd for donation data, Stichting PauseAI for sign-up/volunteer/newsletter data and analytics. Links out to Stichting PauseAI's policy for the data they control.

Cookie banner + analytics (please review carefully)

  • Google Analytics was hard-coded into the <head> of each page that had it, with no consent. It's now loaded only after the visitor accepts a cookie banner, via a consent loader in script.js (choice stored in localStorage; a "Cookie settings" footer link re-opens it).
  • This gates GA site-wide and extends consent-gated analytics to the chapter pages too (they previously had none). Net effect: more compliant, but analytics only fire post-consent.
  • The donate page is intentionally analytics- and banner-free (<body data-no-analytics>).
  • Friendly banner copy: "Cookies help PauseAI UK understand how this site is used, so we can make it work better for you…"

Nav & footer

  • "Donate" pill added to the nav on every page. "Join" was restyled from filled to outline so Donate reads as the primary CTA — happy to revert to two filled pills if you'd prefer.
  • "Donate", "Privacy", and "Cookie settings" links added to footers.

Notes

  • Privacy contact uses hello@pauseai.uk to match the site's general contact.
  • The donate hero photo is a placeholder community shot — swap anytime.
  • Stripe Payment Link URLs are hard-coded in site/donate/donate.js (they're public URLs — no secrets in the repo).
  • When Bacs Direct Debit activates on the Stripe account, the monthly links will automatically start offering it alongside Card — no code change needed.
  • The privacy policy is a careful draft, not legal advice; worth a human check.

Test plan

  • /donate renders; each Monthly preset redirects to its Stripe link with the right amount + recurring frequency
  • On One-off, the amount grid hides; the CTA goes to the "customer chooses price" Stripe link
  • /privacy renders; all links resolve
  • Cookie banner appears on first visit; Accept loads GA, Decline doesn't; choice persists; "Cookie settings" re-opens it
  • No banner / no analytics on /donate
  • Donate + Privacy appear in nav/footer across pages; existing pages otherwise unchanged

claude added 3 commits May 26, 2026 17:37
- Extend the amount ladder with £250 and £500 (cheap to process as
  monthly Direct Debit, and makes larger regular gifts one-click)
- Reword 'other ways to give' to cover bank transfer and large one-off
  gifts rather than a blanket 'above £500', which would have
  contradicted the new £500 button
- Monthly preset buttons each redirect to their amount's Stripe link
  (£3, £5, £10, £25, £50, £100, £250, £500)
- One-off (any amount) redirects to the 'customer chooses price' link
  where the donor confirms the amount on Stripe's secure page
- Hide the 'Other' amount when Monthly is selected (Payment Links are
  fixed for recurring); snap back to the £5 preset if 'Other' was
  active when switching to Monthly
- Drop the stubbed alert / TODO comments
The one-off Stripe link is 'customer chooses price', so showing preset
amount buttons on our page would make the donor enter the amount twice.
When One-off is selected, hide the whole amount selector and let the
single CTA ('Donate one-off →') go straight to the Stripe page where
the amount is entered once. Monthly is unchanged.
@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

🔍 Preview: https://pauseai.uk/preview/donate-privacy-upstream/

Home — Lighthouse scores:

Category Preview Baseline
Performance 🟠 63 (⚠️ -35) 🟢 98
Accessibility 🟢 96 (±0) 🟢 96
Best Practices 🟠 77 (±0) 🟠 77
SEO 🟢 100 (±0) 🟢 100

Performance metrics:

Metric Preview Baseline
FCP 3.2 s (⚠️ +1.74s) 1.5 s
LCP 12.7 s (⚠️ +10.32s) 2.4 s
TBT 200 ms (⚠️ +0.20s) 0 ms
Speed Index 4.9 s (⚠️ +3.41s) 1.5 s
TTI 12.9 s (⚠️ +10.53s) 2.4 s
CLS 0 (⚠️ 0.000) 0

@UFO-101

UFO-101 commented Jun 3, 2026

Copy link
Copy Markdown
Owner

oh dear. I'm really sorry Matilda, this PR conflicts with #31 which migrates us to Next.js

That's my bad, I should have told you we had the other PR pending.

So I'm going to close this and we'll have to make these changes again once that PR is merged.

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.

3 participants