Conversation
- Switch knex client from sqlite3 to better-sqlite3 in knexfile.js - Update modelItemsBase.js to support better-sqlite3 client - Remove @vscode/sqlite3 dependency (requires native compilation) - Fix db.js configuration syntax - Prevent selection of unavailable/booked calendar slots - Replace incomplete overlap check with proper range overlap logic - Full-day slots now correctly marked unavailable when half-day is booked - Add overlap detection logic to check existing bookings before creating new ones - Validate resource capacity is not exceeded - Return 409 error when time slot is fully booked - Add token and cancelled columns to bookings table via migration - Implement email service - Auto-generate unique tokens for bookings on creation - Add POST /api/bookings/cancel/:token endpoint for cancellations - Add GET /cancel-booking/:token website route with confirmation page - Update booking queries to filter out cancelled bookings from availability - Update validation to allow optional token/cancelled fields in POST requests - Display booking details (resource, time slot, notes) on confirmation - Show confirmation email notification message - Add Bootstrap modal for cancellation confirmation with booking details - Clean up page headings and improve UI layout
- Add token and cancelled columns to bookings table via migration
Add a date stamp to the token to avoid duplication
…cret files. Part of #74
…ress too. Part of #7
Add sending emails for bookings and ability to cancel bookings
Add email support
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.
Send emails when bookings are made, allow bookings to be cancelled. Most of #7 and #6