Skip to content

release(prod): promote Give v2 / Sprint 5 (#313-#320, CHANGELOG) - #330

Merged
JOY (JOY) merged 9 commits into
mainfrom
dev
Nov 22, 2026
Merged

JOY (JOY) merged 9 commits into
mainfrom
dev

Conversation

@JOY

@JOY JOY (JOY) commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Production Promotion — Give v2 / Sprint 5 (2026-11-23)

Owner-approved Production promotion (promotion_po: any, JOY popup approval on 2026-11-23 01:03+07:00).

Prerequisite Step 1 — Production DB (DOS/DOS.Me main) VERIFIED GREEN

  • PR: DOS/DOS.Me#1890 (selective-promotion, true merge commit 66da2c4a4a85ecf516c1483b991c01f428d6d30d)
  • Production Supabase (gulptwduchsjcsbndmua): Supabase Preview — COMPLETED / SUCCESS (2026-11-22T18:37:01Z)
  • Consolidated monotonic late-apply migration (20261202150000_give_sprint5_consolidated_late_apply.sql, DOS/DOS.Me#1889 dbb82263) atomically applied all 7 Sprint 5 Give migrations (#314–#320) above main 20261202100000 in exact dependency order:
    • 20261201110000_give_transparency_summary_and_impact_reports.sql (DOS/DOS.Me#1881, Refs #314)
    • 20261201120000_give_follows_prelaunch_and_donor_impact.sql (DOS/DOS.Me#1880, Refs #315)
    • 20261201160000_give_campaign_faqs_and_duplicate_draft.sql (DOS/DOS.Me#1882, Refs #316)
    • 20261202110000_give_early_bird_reward_tiers.sql (DOS/DOS.Me#1885, Refs #317)
    • 20261202120000_give_discovery_v2_filters.sql (DOS/DOS.Me#1886, Refs #318)
    • 20261202130000_give_campaign_ambassadors.sql (DOS/DOS.Me#1887, Refs #319)
    • 20261202140000_give_donor_wishes_and_hearts.sql (DOS/DOS.Me#1888, Refs #320)

Included DOS/Give dev Commits (9 commits ahead of main 9493c5ea)

  • 4c1b736 feat(viral): Dynamic OG card, downloadable QR poster, and thank-you card (#321, Refs #313)
  • d194a8f feat(web): 3-second transparency summary, milestone evidence timeline, and closing impact reports (#322, Refs #314)
  • 56274cf feat(web): campaign/organizer follows, pre-launch "Sắp ra mắt", and donor impact summary (#323, Refs #315)
  • 5ef3bb1 feat(web): structured campaign FAQ and owner-only duplicate campaign draft (#324, Refs #316)
  • 522730d feat(back): Early Bird reward tiers (#325, Refs #317)
  • d71631c feat(discovery): Discovery 2.0 filters & home highlight strips (#326, Refs #318)
  • 8fb20d3 feat(ambassadors): peer-to-peer ?ref= links, fail-open attribution & opt-in leaderboard (#327, Refs #319)
  • 9995e7e feat(wishes): moderated donor wishes wall, heart reactions & /admin/reports/wishes (#328, Refs #320)
  • 871a5c6 docs(changelog): sync CHANGELOG.md for Sprint 5 / Give v2 (#329)

Rollback Plan

  • Instant Vercel Production rollback to 9493c5ea4350d4de6a1317e19b63d489a8e63124 if any post-deploy smoke check regresses; all 7 consolidated DB migrations are additive and backwards-compatible.
  • Merge strategy: --merge (true merge commit; dev preserved as parent 2, no back-merge needed).

📌 TL;DR

This PR introduces a comprehensive suite of community engagement and transparency features, including a moderated donor wishes wall, peer-to-peer ambassador referral tracking, and enhanced campaign discovery filters. It also adds administrative moderation tools for reported content, viral sharing capabilities (QR posters/OG cards), and structured campaign FAQs.

🎯 Type of Change

  • 🚀 New feature
  • 🐛 Bugfix
  • 🧹 Refactor
  • ⚡ Performance
  • 📚 Documentation
  • ⚙️ CI / Configuration

🔍 Changes Walkthrough

File Summary of Changes
CHANGELOG.md Documents new features: Donor Wishes Wall, Ambassador Referrals, Discovery 2.0 filters, Campaign FAQs, Follows/Pre-launch teasers, Transparency summaries, and Early Bird reward tiers.
apps/web/src/app/(public)/donations/[code]/page.tsx Integrates ThankYouCardButton logic, passing donor display names and campaign status to enable shareable "I contributed" cards for public campaigns.
apps/web/src/app/(public)/donations/[code]/page.test.ts Adds tests to verify the thank-you card button visibility based on donation status (hidden for awaiting_transfer, visible for received).
apps/web/src/app/(public)/donations/actions.ts Updates donate action to enforce live campaign status and pass sanitized ambassador_ref to the create_donation RPC for referral attribution.
apps/web/src/app/(public)/donations/actions.test.ts Adds tests for pre-launch campaign rejection and ambassador ref sanitization (fail-open behavior for invalid refs).
apps/web/src/app/admin/reports/wishes/page.tsx New admin page for moderating reported donor wishes. Includes status filtering, anonymous donor masking, and actions to hide/restore/dismiss reports.
apps/web/src/app/admin/reports/wishes/actions.ts New server action moderateReportedWish that calls moderate_contribution_message RPC with staff JWT, handling hide/restore/dismiss logic.
apps/web/src/app/admin/reports/wishes/page.test.ts Tests for the admin wishes page, verifying XSS safety, anonymous masking, and correct RPC parameter passing.
apps/web/src/app/admin/reports/wishes/actions.test.ts Tests for the moderation action, verifying input validation, error mapping, and path revalidation.
apps/web/src/app/admin/reports/page.tsx Adds navigation link to the new /admin/reports/wishes page.
apps/web/src/app/admin/reports/comments/page.tsx Adds navigation link to the new /admin/reports/wishes page.
apps/web/src/app/campaigns/[slug]/DonateForm.tsx Updates donation form to include hidden ambassador_ref input and displays a banner if the user arrived via an ambassador link. Updates message field label to "Lời chúc" (Wish).
apps/web/src/app/campaigns/[slug]/DonorWishesWall.tsx New component rendering the public donor wishes wall. Handles pagination, heart reactions, reporting, and hidden wishes display for authorized users.
apps/web/src/app/campaigns/[slug]/DonorWishesWall.test.ts Tests for the wishes wall component, verifying XSS escaping, anonymous masking, and guest vs. signed-in UI states.

📊 Architectural Flow

sequenceDiagram
    participant User as User (Browser)
    participant Web as Next.js App
    participant Supabase as Supabase (PostgREST)
    participant DB as PostgreSQL

    Note over User,Web: Donor Wishes & Ambassador Flow

    User->>Web: Visit /campaigns/[slug]?ref=CODE
    Web->>Supabase: get_my_campaign_ambassador(CODE)
    Supabase->>DB: SELECT from campaign_ambassadors
    DB-->>Supabase: Ambassador Data
    Supabase-->>Web: Ambassador Info
    Web-->>User: Render DonateForm with Ambassador Banner

    User->>Web: Submit Donation (with ambassador_ref)
    Web->>Web: sanitizeAmbassadorRef()
    Web->>Supabase: rpc: create_donation(p_ambassador_ref)
    Supabase->>DB: INSERT into contributions (with ref)
    DB-->>Supabase: Success
    Supabase-->>Web: Donation ID
    Web-->>User: Redirect to /donations/[code]

    Note over User,Web: Moderation Flow

    User->>Web: Report Wish on /campaigns/[slug]
    Web->>Supabase: rpc: report_contribution_message
    Supabase->>DB: INSERT into contribution_message_reports
    DB-->>Supabase: Success
    Supabase-->>Web: Success

    participant Admin as Admin (Staff)
    Admin->>Web: Visit /admin/reports/wishes
    Web->>Supabase: rpc: list_reported_contribution_messages
    Supabase->>DB: SELECT reported wishes
    DB-->>Supabase: Report List
    Supabase-->>Web: Report Data
    Web-->>Admin: Render Moderation Queue

    Admin->>Web: Hide/Restore Wish
    Web->>Supabase: rpc: moderate_contribution_message
    Supabase->>DB: UPDATE contributions (hide/restore)
    DB-->>Supabase: Success
    Supabase-->>Web: Success
    Web-->>Admin: Confirmation
Loading

@JOY JOY (JOY) added the po:agy Owned by Antigravity PO (mutual-exclusion parallel PO label) label Nov 22, 2026

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization has no extra usage available to pay for this review.

If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.

Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.

@vercel

vercel Bot commented Nov 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
give Ready Ready Preview Nov 22, 2026 6:38pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 132 files, which is 32 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

CodeRabbit couldn't verify your organization's usage billing state, so no usage-priced review was started. Retry after the billing service recovers.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7b6208df-2121-4c05-9866-3308567cd90d
Commits

Reviewing files that changed from the base of the PR and between 9493c5e and 871a5c6.

Files ignored due to path filters: 2

  • apps/web/src/assets/fonts/BeVietnamPro-Bold.ttf is excluded by !**/*.ttf
  • apps/web/src/assets/fonts/BeVietnamPro-Regular.ttf is excluded by !**/*.ttf
Files selected for processing: 132

  • CHANGELOG.md
  • apps/web/src/app/(public)/donations/[code]/page.test.ts
  • apps/web/src/app/(public)/donations/[code]/page.tsx
  • apps/web/src/app/(public)/donations/actions.test.ts
  • apps/web/src/app/(public)/donations/actions.ts
  • apps/web/src/app/admin/reports/comments/page.tsx
  • apps/web/src/app/admin/reports/page.tsx
  • apps/web/src/app/admin/reports/wishes/actions.test.ts
  • apps/web/src/app/admin/reports/wishes/actions.ts
  • apps/web/src/app/admin/reports/wishes/page.test.ts
  • apps/web/src/app/admin/reports/wishes/page.tsx
  • apps/web/src/app/campaigns/[slug]/DonateForm.tsx
  • apps/web/src/app/campaigns/[slug]/DonorWishesWall.test.ts
  • apps/web/src/app/campaigns/[slug]/DonorWishesWall.tsx
  • apps/web/src/app/campaigns/[slug]/ambassador-actions.test.ts
  • apps/web/src/app/campaigns/[slug]/ambassador-actions.ts
  • apps/web/src/app/campaigns/[slug]/follow-actions.test.ts
  • apps/web/src/app/campaigns/[slug]/follow-actions.ts
  • apps/web/src/app/campaigns/[slug]/monthly-actions.test.ts
  • apps/web/src/app/campaigns/[slug]/monthly-actions.ts
  • apps/web/src/app/campaigns/[slug]/opengraph-image.test.ts
  • apps/web/src/app/campaigns/[slug]/opengraph-image.tsx
  • apps/web/src/app/campaigns/[slug]/page.test.ts
  • apps/web/src/app/campaigns/[slug]/page.tsx
  • apps/web/src/app/campaigns/[slug]/pledge/PledgeForm.test.ts
  • apps/web/src/app/campaigns/[slug]/pledge/PledgeForm.tsx
  • apps/web/src/app/campaigns/[slug]/pledge/actions.test.ts
  • apps/web/src/app/campaigns/[slug]/pledge/actions.ts
  • apps/web/src/app/campaigns/[slug]/pledge/page.test.ts
  • apps/web/src/app/campaigns/[slug]/pledge/page.tsx
  • apps/web/src/app/campaigns/[slug]/wish-actions.test.ts
  • apps/web/src/app/campaigns/[slug]/wish-actions.ts
  • apps/web/src/app/campaigns/page.test.ts
  • apps/web/src/app/campaigns/page.tsx
  • apps/web/src/app/me/campaigns/[id]/FaqSection.test.ts
  • apps/web/src/app/me/campaigns/[id]/FaqSection.tsx
  • apps/web/src/app/me/campaigns/[id]/ImpactReportSection.test.ts
  • apps/web/src/app/me/campaigns/[id]/ImpactReportSection.tsx
  • apps/web/src/app/me/campaigns/[id]/PrelaunchSection.test.ts
  • apps/web/src/app/me/campaigns/[id]/PrelaunchSection.tsx
  • apps/web/src/app/me/campaigns/[id]/RewardTiersSection.test.ts
  • apps/web/src/app/me/campaigns/[id]/RewardTiersSection.tsx
  • apps/web/src/app/me/campaigns/[id]/TeamTab.tsx
  • apps/web/src/app/me/campaigns/[id]/disbursements/actions.test.ts
  • apps/web/src/app/me/campaigns/[id]/disbursements/actions.ts
  • apps/web/src/app/me/campaigns/[id]/disbursements/page.tsx
  • apps/web/src/app/me/campaigns/[id]/fulfillment/page.test.ts
  • apps/web/src/app/me/campaigns/[id]/impact-report-actions.test.ts
  • apps/web/src/app/me/campaigns/[id]/impact-report-actions.ts
  • apps/web/src/app/me/campaigns/[id]/page.tsx
  • apps/web/src/app/me/campaigns/actions.test.ts
  • apps/web/src/app/me/campaigns/actions.ts
  • apps/web/src/app/me/campaigns/faq-actions.test.ts
  • apps/web/src/app/me/campaigns/faq-actions.ts
  • apps/web/src/app/me/campaigns/page.test.ts
  • apps/web/src/app/me/campaigns/page.tsx
  • apps/web/src/app/me/campaigns/reward-actions.test.ts
  • apps/web/src/app/me/campaigns/reward-actions.ts
  • apps/web/src/app/me/contributions/DonorImpactCard.test.ts
  • apps/web/src/app/me/contributions/DonorImpactCard.tsx
  • apps/web/src/app/me/contributions/page.test.ts
  • apps/web/src/app/me/contributions/page.tsx
  • apps/web/src/app/me/page.test.ts
  • apps/web/src/app/me/page.tsx
  • apps/web/src/app/page.test.ts
  • apps/web/src/app/page.tsx
  • apps/web/src/app/u/[handle]/actions.test.ts
  • apps/web/src/app/u/[handle]/actions.ts
  • apps/web/src/app/u/[handle]/page.test.ts
  • apps/web/src/app/u/[handle]/page.tsx
  • apps/web/src/assets/fonts/OFL.txt
  • apps/web/src/components/CampaignCard.test.ts
  • apps/web/src/components/CampaignCard.tsx
  • apps/web/src/components/DonationStatus.tsx
  • apps/web/src/components/FollowButton.test.ts
  • apps/web/src/components/FollowButton.tsx
  • apps/web/src/components/QrPosterButton.test.ts
  • apps/web/src/components/QrPosterButton.tsx
  • apps/web/src/components/RewardTiers.test.ts
  • apps/web/src/components/RewardTiers.tsx
  • apps/web/src/components/ThankYouCardButton.test.ts
  • apps/web/src/components/ThankYouCardButton.tsx
  • apps/web/src/components/campaign/AmbassadorLeaderboard.test.ts
  • apps/web/src/components/campaign/AmbassadorLeaderboard.tsx
  • apps/web/src/components/campaign/AmbassadorLinkModal.test.ts
  • apps/web/src/components/campaign/AmbassadorLinkModal.tsx
  • apps/web/src/components/campaign/CampaignFaqAccordion.test.ts
  • apps/web/src/components/campaign/CampaignFaqAccordion.tsx
  • apps/web/src/components/campaign/ClosingImpactReport.test.ts
  • apps/web/src/components/campaign/ClosingImpactReport.tsx
  • apps/web/src/components/campaign/MilestoneList.test.ts
  • apps/web/src/components/campaign/MilestoneList.tsx
  • apps/web/src/components/campaign/TransparencySummaryBox.test.ts
  • apps/web/src/components/campaign/TransparencySummaryBox.tsx
  • apps/web/src/components/campaign/WishHeartButton.tsx
  • apps/web/src/components/forms.tsx
  • apps/web/src/components/me/MyAmbassadorLinksSection.test.ts
  • apps/web/src/components/me/MyAmbassadorLinksSection.tsx
  • apps/web/src/components/ui/ModalDialog.tsx
  • apps/web/src/components/ui/icons.tsx
  • apps/web/src/lib/ambassadors.test.ts
  • apps/web/src/lib/ambassadors.ts
  • apps/web/src/lib/campaign-faqs.test.ts
  • apps/web/src/lib/campaign-faqs.ts
  • apps/web/src/lib/campaigns.test.ts
  • apps/web/src/lib/campaigns.ts
  • apps/web/src/lib/canvas-cards.ts
  • apps/web/src/lib/donor-wishes.test.ts
  • apps/web/src/lib/donor-wishes.ts
  • apps/web/src/lib/errors.test.ts
  • apps/web/src/lib/errors.ts
  • apps/web/src/lib/follows.test.ts
  • apps/web/src/lib/follows.ts
  • apps/web/src/lib/notices.test.ts
  • apps/web/src/lib/notices.ts
  • apps/web/src/lib/organizer-profile.test.ts
  • apps/web/src/lib/organizer-profile.ts
  • apps/web/src/lib/pledges.test.ts
  • apps/web/src/lib/pledges.ts
  • apps/web/src/lib/reward-tiers.test.ts
  • apps/web/src/lib/reward-tiers.ts
  • apps/web/src/lib/statement.test.ts
  • apps/web/src/lib/statement.ts
  • apps/web/src/lib/transparency.test.ts
  • apps/web/src/lib/transparency.ts
  • apps/web/src/lib/validation.ts
  • apps/web/src/lib/viral-sharing.test.ts
  • apps/web/src/lib/viral-sharing.ts
  • apps/web/src/server/contributions/index.ts
  • apps/web/src/server/pledges/index.ts
  • apps/web/src/server/viral-sharing.test.ts
  • apps/web/src/server/viral-sharing.ts

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@JOY

Copy link
Copy Markdown
Contributor Author

PO acceptance: merge at 871a5c6

JOY approved Step 2 Production promotion (dev -> main) for Give v2 / Sprint 5 (#313-#320).

  • Step 1 Production DB (DOS/DOS.Me#1890, merge commit 66da2c4a4a85ecf516c1483b991c01f428d6d30d, 20261202150000_give_sprint5_consolidated_late_apply.sql) confirmed COMPLETED/SUCCESS on Production Supabase (gulptwduchsjcsbndmua) at 2026-11-22T18:37:01Z.
  • All checks green (Verify build/Lint, Verify build/Build all apps, Vercel Preview), mergeStateStatus CLEAN.
  • Merging via --merge (dev preserved).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

po:agy Owned by Antigravity PO (mutual-exclusion parallel PO label)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant