Add self check-in for events and workshops - #2801
Merged
Merged
Conversation
mroderick
force-pushed
the
feature/self-check-in
branch
from
August 9, 2026 18:54
e3a5cfd to
309a15f
Compare
mroderick
marked this pull request as ready for review
August 9, 2026 19:00
Contributor
|
This change is so so awesome! however in terms of reviewing the code I'm not sure I'm the best person 👀 @matyikriszta if you have some time would you be able to take a look? |
olleolleolle
approved these changes
Sep 1, 2026
olleolleolle
left a comment
Collaborator
There was a problem hiding this comment.
A couple of things that I saw, nothing blocking,
- the name parent, perhaps we can figure one out that's more intent-revealing?
- the place where we picked between two routes (e/w for event and workshop), perhaps it could be just an if/else with concrete routes and not use public_send?
- where we picked up check_in_code, assign a local and use it, that would fit the Ruby "omit hash value if key matches the name" Hash thing.
<3
Adds check_in_code to events and workshops, and source to invitations and workshop_invitations, with regenerated schema.
Events and workshops generate a check-in code on create. Invitations now record their source (admin, check-in, etc.) via shared constants.
Adds admin-only check-in instructions and a landscape QR-code PDF for events and workshops. Includes the prawn/pdf dependencies, word list, codebar logo asset, and route helpers.
Members can scan the QR code, sign in, select Student/Coach, and check in. Enforces the event-time window, capacity, waiting list, and a single role per member.
Rename `parent` to `check_in_target` throughout the check-in feature to name the shared concept (Event or Workshop identified by check-in code). Replace `public_send` in `CheckInCode#check_in_url` with concrete route calls, use a local with Ruby hash shorthand in the controller path helpers, and delete the `check_in_submit_path` duplicate of `check_in_new_path`.
CheckInCode described the generated code, but the concern carries all check-in behaviour on a host (code, URL, open window, spaces). Rename to CheckInable to match the Invitable/Listable concern convention.
mroderick
force-pushed
the
feature/self-check-in
branch
from
September 1, 2026 07:53
82eaa2e to
9f9ce6f
Compare
mroderick
enabled auto-merge
September 1, 2026 07:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It is vitally important for codebar to keep accurate attendance records, here are some arguments why.
The PR allows organisers to take some of the workload of keeping attendance and let's members check themselves in.
Hopefully, this will lead to better attendance keeping and less work for organisers during events and workshops.
What
Adds a self check-in flow for codebar events and workshops.
Admittedly, the PDF could be improved. I think this is OK for a first iteration and allows us to get it in the hands of organisers for a field test or two.
Changes
check_in_codeon events/workshops and asourceon invitations.CheckInCodeconcern for code generation and window/capacity helpers.lib/words/README.md.sourcefor admin and check-in invitations.Manual verification
Member.find_by(email: "you@example.com").add_role(:admin).ends_at) — it should be blocked.Testing