Skip to content

prefill purpose and instructions with respective url params - #15215

Open
Cybdo wants to merge 1 commit into
hackclub:mainfrom
Cybdo:prefill-card-grant-purpose
Open

Cybdo wants to merge 1 commit into
hackclub:mainfrom
Cybdo:prefill-card-grant-purpose

Conversation

@Cybdo

@Cybdo Cybdo commented Oct 2, 2026

Copy link
Copy Markdown

Summary of the problem

Only email and amount_cents can be prefilled via URL params when creating a card grant.

Describe your changes

Allow prefilling a card grant's purpose and instructions with url parameters purpose and instructions respectively in CardGrantsController#new.

eg: https://hcb.hackclub.com/organisation/card-grants/new/?email=orpheus@hackclub.com&instructions=please+only+use+to+buy+an+iPad&purpose=iPad+Grant

@Cybdo
Cybdo requested a review from a team October 2, 2026 10:30

This branch has not been deployed

No deployments
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.

1 participant