Tags: Dsek-LTH/web
Tags
Consume endpoint (#895) * feat: Add QR code scanning for ticket consumption Implements a complete QR code scanning system for validating and consuming event tickets: Features: - QR code scanner component using @zxing/library - Event-specific scan pages at /events/[slug]/scan - Consumable detail view with validation status - Admin QR code management page at /admin/qr - Ticket consumption tracking and history - Support for scanning from inventory page Changes: - Add QRCodeScanner.svelte component with camera access - Add useQRScanner hook for QR code detection - Add consumable.ts server utilities for ticket consumption - Add scan routes for events with ticket validation - Add consume action to mark tickets as used - Add QR code admin page to routes - Filter events with tickets in event listing - Update translations for scanning UI - Add @zxing/library dependency The system validates tickets against the event, checks consumption status, displays owner information, and shows question responses if available. * fix: resolve linting and formatting issues * feat: add visual indication of recent consumption * fix: missing translations * chore: remove snaplet config files * chore: reset config.json to default * feat: minor improvements * Update src/routes/(app)/events/[slug]/scan/[consumable]/+page.svelte Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
PreviousNext