Skip to content

feat: Sadaqah donation page with on-chain transparency and SEP-7 QR payments#96

Merged
zeemscript merged 2 commits into
devfrom
feat/stellar-deep
Jul 14, 2026
Merged

feat: Sadaqah donation page with on-chain transparency and SEP-7 QR payments#96
zeemscript merged 2 commits into
devfrom
feat/stellar-deep

Conversation

@zeemscript

Copy link
Copy Markdown
Collaborator

What

Deepens the platform's Stellar integration on the client side:

  1. Sadaqah donation page (/dashboard/sadaqah, added to the dashboard nav): donate USDC to the scholarship fund with the connected wallet (Freighter/xBull/Albedo). Shows live, Horizon-backed fund transparency — pool balance, total donated, donation count, and recent donations with stellar.expert links.
  2. useStellarDonation hook mirroring useStellarPayment: initialize → sign in wallet → submit, with the same error taxonomy (insufficient balance, missing trustline, user cancelled).
  3. SEP-7 payment QR codes (Sep7QrCode component, qrcode.react): scan-to-pay with a Stellar mobile wallet, shown in the donation flow and as an optional 'Pay by QR' section in PaymentModal when the API returns sep7Uri (no-op when absent).

Depends on

The dnb-backend feat/stellar-deep PR (donation endpoints + sep7Uri in initialize responses). This UI degrades gracefully until then: stats show an error/unconfigured state, and the QR section simply doesn't render. Merge the backend PR first.

Testing

  • npm run lint and npm run build pass; /dashboard/sadaqah in the route manifest
  • Lockfile regenerated with npm 10 and verified against npm ci (CI's npm)
  • All UI states handled: wallet not connected, API error, 503 unconfigured, user cancels signing

@vercel

vercel Bot commented Jul 14, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
dnb-frontend Ready Ready Preview, Comment Jul 14, 2026 1:25pm

@zeemscript
zeemscript merged commit 091f817 into dev Jul 14, 2026
3 checks passed
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