Quick answers to common questions. For detailed guides, see DEVELOPMENT.md.
Q: What is this?
A: Developer tool for the Voucherify Loyalty V2 API. Not for production use.
Q: What backends work?
A: Any implementing Voucherify Loyalty V2 API (local, sandbox, custom).
Q: Is it open source?
A: Yes, MIT licensed.
Q: What Node.js version?
A: Node.js 22.22.0 required. See DEVELOPMENT.md for installation.
Q: Installation fails?
A: See DEVELOPMENT.md - Troubleshooting for permission errors, memory issues, etc.
Q: Cannot connect to backend?
A: Check: (1) Backend running, (2) Correct base URL in settings, (3) Valid credentials, (4) CORS configured. See DEVELOPMENT.md.
Q: CORS errors?
A: Backend must allow http://localhost:3010 with headers: Content-Type, X-App-Id, X-App-Token, X-Voucherify-API-Version.
Q: 401 Unauthorized?
A: Verify credentials in Settings. Check API Inspector for request headers.
Q: 404 Not Found?
A: Backend doesn't implement the endpoint. Check API Inspector for URL.
Q: How to create a loyalty program?
A: Click Create Program, edit JSON, submit. See API.md for schema.
Q: How to assign entities to programs?
A: Select program → Click Assign → Toggle entities → Save Assignments.
Q: Why can't I assign a tier structure?
A: Only one tier structure per program allowed.
Q: How to test earning rules?
A: Create member → Create earning rule → Assign to program → Create order → Check card balance.
Q: What is the API Inspector?
A: Logs all API requests/responses. Click icon (top-right). Use "Copy as cURL" to reproduce calls.
Q: How to change themes?
A: Settings (gear icon) → Select theme. 32 DaisyUI themes available.
Q: How to add a component?
A: See DEVELOPMENT.md.
Q: How to use shared components?
A: Import from src/components/shared/. Available: JsonDisplay, LoadingState, EmptyState, FormSectionCard, DateTimeField, MetadataEditor, CountBadge, modal components, and more. See STYLE_GUIDE.md.
Q: How to add an API endpoint?
A: Add to src/api/endpoints.js. See DEVELOPMENT.md.
Q: What services are available?
A: memberDataService, entityCrudService, examinationService, reportsService, tierLoaderService, cardActionsService, designerStoreCoordinator, toast. Located in src/services/.
Q: Why use runes instead of stores?
A: Better reactivity, performance, DX. See ARCHITECTURE.md.
Q: Can I use Svelte 4 patterns?
A: No. Svelte 5 only: $props() not export let, $state() not writable().
Q: Port 3010 in use?
A: lsof -ti:3010 | xargs kill -9 or change port in vite.config.js.
Q: HMR not working?
A: Hard refresh (Cmd+Shift+R), restart dev server, or clear cache (rm -rf node_modules/.vite).
Q: Theme not persisting?
A: Check browser doesn't block localStorage. Try non-incognito window.
Q: JSON editor validation errors?
A: Fix syntax (missing comma, quote). Validate at jsonlint.com.
Q: Browser compatibility?
A: Chrome 120+, Firefox 115+, Safari 17+, Edge 120+. IE not supported.
- Bugs: Open bug report
- Features: Request feature
- Questions: Ask question
- Security: SECURITY.md