Repository navigation
Ask about long visits before checking everyone out - #35
Merged
Merged
Conversation
Checks everyone out through the existing clear path so every visit still gets its sheet event, then moves the checkout times the librarian corrected. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Check everyone out now asks about visits over 30 minutes when more than one student is affected, so forgotten checkouts can be retimed first. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Validates the whole batch before writing so one stale row cannot leave the rest half applied. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Select several visits and correct their durations together. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
flow | b79cb97 | Aug 11 2026, 05:40 PM |
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.
Two related fixes for visits where a student forgot to scan out.
Checkout reminder on the live roster
Clicking Check everyone out when 2 or more students have been checked in for more than 30 minutes now opens a review dialog instead of the plain confirm:
New
POST /api/library/admin-clear-with-durationsclears through the existing path first, so every student still gets their Google Sheets event, then rewrites the corrected checkout times.Multi-select duration editing in History
A checkbox column leads the history table. Selecting rows reveals a bar with N visits selected · Edit duration · Clear selection, opening an editor with one minutes field per selected visit plus the same Apply to all control.
New
POST /api/library/admin-update-visit-durationsvalidates the entire batch before writing, so one stale row cannot leave the rest half applied.Structure
Follows the existing layer-on-layer pattern:
admin-v6→admin-v7on the worker chain,admin-ui-v8→admin-ui-v9on the markup chain, withaccess-router.tsandadmin-ui.tsrepointed at the new heads.Testing
tsc --noEmitclean, no console errors. Both endpoints were exercised against a SQLite-backed D1 stand-in and both UIs were driven in a browser:CLEAR_ALLsheet events fired.🤖 Generated with Claude Code