open-event-checkin
open-event-checkin copied to clipboard
Eventyay-tickets Integration
This pull request contains the initial commit addressing Issue #190 (Integrate Badges Plugin with Check-in App for QR Code Scanning) in the eventyay-tickets repository.
Overview: In this PR, a "Register Device" button has been added to the home page. This button redirects organizers to a QR code scan interface, allowing them to register their devices similarly to the functionality of pretix-scan.
Screenshots:
-
Home page with "Register Device" button:
-
QR Code Scan Interface:
QR Code Data Format: The "Connect to Device" QR code in eventyay-tickets provides JSON data in the following format:
{
"handshake_version": 1,
"url": "http://localhost",
"token": "cgakvwle23d2qxwa"
}
Progress Checklist
- [x] Add the required frontend button and route to scan QR code to register a device.
- [x] Implement logic to scan, validate, and connect to the device using the QR code from eventyay-tickets.
- [x] Add functions to retrieve event details.
- [x] Redirect to
panel/select-station
once the device is connected. - [ ] Configure support for tickets from eventyay-tickets.
- [ ] Display a preview of the badge once the attendee is checked in.
This feature enhances the integration between the badges plugin and the check-in app, allowing event organizers to seamlessly register and manage devices using QR codes. The implementation is inspired by the functionality of pretix-scan.
Summary by Sourcery
This pull request introduces a new feature allowing event organizers to register devices via a QR code scan interface. A 'Register Device' button has been added to the home page, leading to a new route and component for device registration. Additionally, the login form has been enhanced with a server selection dropdown and corresponding error handling.
-
New Features:
- Added a 'Register Device' button to the home page, which redirects to a QR code scan interface for device registration.
- Implemented a new route and component for device registration using QR codes.
- Introduced a new store for handling device registration logic and API interactions.
-
Enhancements:
- Updated the login form to include a server selection dropdown and error handling for server selection.