Skip to content

QR Scan + Branta Verify#276

Merged
spe1020 merged 3 commits intomainfrom
branta-qr-scan
Mar 26, 2026
Merged

QR Scan + Branta Verify#276
spe1020 merged 3 commits intomainfrom
branta-qr-scan

Conversation

@spe1020
Copy link
Copy Markdown
Contributor

@spe1020 spe1020 commented Mar 26, 2026

Summary

  • Add QR code scanning to the Send Payment flow (camera-based via jsqr)
  • Display Branta-verified platform logo and name in a clickable card on the verification badge
  • Support QR-based Branta verification with branta_id/branta_secret params

Replaces #275 (rebased onto main, resolved conflicts, addressed Copilot review feedback).

Changes from #275

  • Fix startQrCamera race condition (await tick() before accessing conditionally-rendered video element)
  • Clean up camera stream on error to prevent leaked media tracks
  • Reuse canvas/context across scanQrFrame calls to reduce GC churn
  • Add aria-label to icon-only QR scan and close buttons
  • Fix QrCodeIcon import indentation

Test plan

  • Open wallet Send modal, tap QR icon, grant camera access, scan a Lightning/Bitcoin QR
  • Deny camera access and verify error message appears
  • Scan a Branta-enabled QR (bitcoin: URI with branta_id/branta_secret) and verify badge shows platform card
  • Verify Branta badge on receive flow (Lightning invoice + on-chain address)
  • Screen reader: verify QR scan and close buttons are announced

🤖 Generated with Claude Code

kylemccullen and others added 3 commits March 26, 2026 19:24
- Add tick() before accessing qrVideoElement to avoid race condition
- Clean up camera stream on error in startQrCamera
- Reuse canvas/context across scanQrFrame calls to reduce GC churn
- Add aria-labels to icon-only QR buttons
- Fix QrCodeIcon import indentation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@spe1020 spe1020 mentioned this pull request Mar 26, 2026
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying frontend with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8d32af3
Status: ✅  Deploy successful!
Preview URL: https://971c423d.frontend-hvd.pages.dev
Branch Preview URL: https://branta-qr-scan.frontend-hvd.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Mar 26, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
frontend 8d32af3 Mar 26 2026, 11:30 PM

@spe1020 spe1020 merged commit 1330c16 into main Mar 26, 2026
2 of 4 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.

2 participants