Files
Andrew Beveridge ☄️andClaude Opus 4.6 3fac565c76 feat: referral flyer customisation with tabbed QR/flyer dialog (#708)
## Summary

- Expand the QR Code Generator dialog into a tabbed **Referral Tools**
dialog with **QR Code** and **Printable Flyer** tabs
- Add a live flyer preview with extensive customisation: colors, text
overrides, section visibility, custom branding, and print layout (1/2/4
per page)
- Client-side export to PDF, HTML, and PNG (replaces server-side flyer
generation)
- Preset themes (Light/Dark) with save/load custom presets via
localStorage

## Changes

- **New components:** `ReferralToolsDialog`, `QRCodeTab`, `FlyerTab`,
`FlyerPreview`, `FlyerControls`, `FlyerExport`, `flyer-presets`
- **Removed:** `QRCodeDialog` (replaced by `ReferralToolsDialog`)
- **Modified:** `ReferralDashboard.tsx`, `admin/referrals/page.tsx`
(import updates)
- **Dependencies:** Added `html2canvas`, `jspdf` for client-side export
- **i18n:** 30+ new translation keys across all 33 locales

## Testing

- [x] 32 referral-specific tests pass (presets, export, dialog
interaction)
- [x] 743/743 total frontend tests pass
- [x] TypeScript compilation clean (no new errors)
- [x] CodeRabbit CLI review completed locally, feedback addressed

## Review

- [x] Local CodeRabbit review completed (10 findings, 6 fixed, 4 skipped
as nitpicks)
- [x] Review feedback addressed in dedicated commit

@coderabbitai ignore

---
🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 19:02:12 -04:00
..