Repository navigation
Open
Labels
line:campaignsProduct line: campaignspo:agyOwned by Antigravity PO (mutual-exclusion parallel PO label)
Description
Goal
Reduce friction for new organizers starting a campaign on /start by offering curated Vietnamese starter templates (title hint, campaign type, suggested goal, category, summary, story outline, and starter FAQs) alongside the blank option.
Scope (App-only — DOS/Give)
- Template Catalog (
apps/web/src/lib/campaign-templates.ts+ tests):- Curated Vietnamese templates (
medical_emergency,education_community,relief_environment,creative_product,blank) mapped to verified seededgive.categoriesslugs (healthcare,education-charity,disaster-relief,technology, etc.). - Safe allowlisted
getCampaignTemplate(id)lookup; no user-controlled SQL/template injection.
- Curated Vietnamese templates (
- Interactive
/startTemplate Picker (apps/web/src/app/start/StartCampaignForm.tsx,page.tsx+ tests):- Template cards before/above the creation form that pre-fill
type, suggestedgoal_amount, and a hiddentemplate_idinput, while preserving seamless zero-JS submission and existing organizer setup gate.
- Template cards before/above the creation form that pre-fill
- Draft Pre-fill Action (
apps/web/src/app/start/actions.ts+ tests):- Extend
createCampaignto accept optionaltemplate_id, insert the draft campaign as today, and best-effort prefill templatesummary,story, resolvedcategory_id, and starter FAQs using authenticateddbAs(session.accessToken)(respecting column grants/RLS; never blocking draft creation/redirect if optional template extras fail).
- Extend
Acceptance Criteria
- Inspect exact
give.campaignscolumn grants andsave_campaign_faqcontracts first; escalate if any DB grant is missing (do not hack withdbService()unless proven required and planned). - Existing
start/page.test.tsandstart/actions.test.tsremain green alongside thorough template coverage. pnpm --filter @give/web test,typecheck,lint, andbuildpass cleanly, with two independent reviews.
Metadata
Metadata
Assignees
Labels
line:campaignsProduct line: campaignspo:agyOwned by Antigravity PO (mutual-exclusion parallel PO label)
Activity
feat(start): quick-start Vietnamese campaign templates (Refs #338) (#343
JOY commentedon Nov 23, 2026
Merged to dev (PR #343) — live on beta.give.vn, awaiting Production promotion.
docs(changelog): sync CHANGELOG.md for Give v3 (#334-#338) (#345)
docs: sync README, CHANGELOG, Platform-Roadmap & Give docs (#334-#338) (