Repository navigation
Ask students to re-enter a possibly wrong name at their next scan - #41
Merged
Merged
Conversation
A librarian can choose "Ask to confirm name" on a student's profile. The next time that student scans, the kiosk says their name may be entered incorrectly and asks them to re-enter it before continuing to check-in or finishing the checkout. The fields start empty so students type their real name instead of tapping past the wrong one; "Skip for now" leaves the request for the following visit. Saving updates the student record, clears the request, and sends a STUDENT_NAME_CONFIRMED event to the Sheets archive with the old name. The Students list gets a "Name check pending" filter and badge. Stored in a new library_students.name_check_requested_at column, added by the existing on-request migration. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
For students whose name is on file wrong when staff don't know the right one.
STUDENT_NAME_CONFIRMEDevent to Google Sheets with the previous name, for example "Re-entered at the kiosk; was Leo Nelson". The Apps Script receiver logs unknown event types in the Events tab and leaves the Visit Log alone.library_students.name_check_requested_atcolumn. It's applied by the existing on-request migration and is also added tolibrary-schema.sql.POST /api/library/confirm-name;admin-name-check;scanresponses now include anameCheckfield.Testing
In
wrangler devagainst a seeded local D1 database:🤖 Generated with Claude Code