Add glow background and URL-driven steps to donate page #4

Merged
barnabas merged 1 commit from feature/donate-glow-flow into main 2026-10-24 09:57:23 +00:00
Owner

Summary

  • Replace the donate page wave canvas with a WebGL glow (src/components/donate-glow.tsx) that matches the home page's grain and gradient style.
  • The glow colour follows the visitor's choices: green on the landing and intent steps, then per intent (rank, upgrade, patron, custom) and per rank tier.
  • Colour changes ease in with a short swell. Reduced motion draws one still frame and does not animate.
  • Drive the donate flow from the URL: /donate is the landing screen and /donate?step=<name> is each step, so browser Back and Forward walk the flow.
  • The in-page Back button now appears on every step. It pops a history entry it pushed, or replaces the URL on a deep link.
  • Reloads and deep links resolve to the first unanswered step. ?step=payment without a live checkout session falls back to confirm.
  • Changing an answer clears any pending checkout session, so Forward cannot open a payment for stale answers.
  • Remove src/components/wave-pattern.tsx, which is no longer used.

Testing

  • Type-check and lint pass for the changed files. The remaining any type errors elsewhere in the repo were already there before this change.
  • Browser history: Back and Forward move between steps in both directions, and the in-page Back button returns to the landing screen from the first step.
  • Gift branch: gift → giftTo → confirm, and gift → confirm for "For me".
  • Validation: Next with an empty username stays on the username step.
  • Reload on the confirm step keeps the visitor there, using the saved draft.
  • Deep links: ?step=gift with no username redirects to ?step=username. An unknown step name goes to the first unanswered step.
  • Not run: pushing to ?step=payment after a real Stripe checkout session is created. This needs the Stripe API and should be checked by hand.
  • Not run: the glow on the live site across browsers, and the reduced-motion setting.
  • Note: the landing screen now renders on the client behind a Suspense boundary, so it may be blank for a moment on first load.
## Summary - Replace the donate page wave canvas with a WebGL glow (`src/components/donate-glow.tsx`) that matches the home page's grain and gradient style. - The glow colour follows the visitor's choices: green on the landing and intent steps, then per intent (rank, upgrade, patron, custom) and per rank tier. - Colour changes ease in with a short swell. Reduced motion draws one still frame and does not animate. - Drive the donate flow from the URL: `/donate` is the landing screen and `/donate?step=<name>` is each step, so browser Back and Forward walk the flow. - The in-page Back button now appears on every step. It pops a history entry it pushed, or replaces the URL on a deep link. - Reloads and deep links resolve to the first unanswered step. `?step=payment` without a live checkout session falls back to confirm. - Changing an answer clears any pending checkout session, so Forward cannot open a payment for stale answers. - Remove `src/components/wave-pattern.tsx`, which is no longer used. ## Testing - Type-check and lint pass for the changed files. The remaining `any` type errors elsewhere in the repo were already there before this change. - Browser history: Back and Forward move between steps in both directions, and the in-page Back button returns to the landing screen from the first step. - Gift branch: `gift → giftTo → confirm`, and `gift → confirm` for "For me". - Validation: Next with an empty username stays on the username step. - Reload on the confirm step keeps the visitor there, using the saved draft. - Deep links: `?step=gift` with no username redirects to `?step=username`. An unknown step name goes to the first unanswered step. - Not run: pushing to `?step=payment` after a real Stripe checkout session is created. This needs the Stripe API and should be checked by hand. - Not run: the glow on the live site across browsers, and the reduced-motion setting. - Note: the landing screen now renders on the client behind a `Suspense` boundary, so it may be blank for a moment on first load.
barnabas added 1 commit 2026-10-24 09:51:36 +00:00
- Add DonateGlow WebGL gradient that shifts colour per donation intent and rank
- Drive donate steps from URL query params so browser back/forward work
- Clear pending checkout session when an answer changes
- Remove the unused wave-pattern canvas background
barnabas merged commit 76d5173bc4 into main 2026-10-24 09:57:23 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: frg/accesscodes#4
No description provided.