created a new story for guest booking

This commit is contained in:
Naser Mansour
2025-12-29 00:26:09 +02:00
parent a880b3fd1d
commit 45e2be8468
2 changed files with 688 additions and 0 deletions
+30
View File
@@ -29,6 +29,8 @@ Clients book consultations through a calendar interface. Each consultation is 45
- [ ] Consultation reminders (24hr, 2hr)
- [ ] Calendar file (.ics) generation
- [ ] Admin can mark as completed/no-show/cancelled
- [ ] Guests can submit booking requests from public page
- [ ] Admin can approve guest requests and create accounts
---
@@ -226,6 +228,34 @@ Clients book consultations through a calendar interface. Each consultation is 45
---
### Story 3.9: Guest Booking Request
**Description:** Allow website visitors to submit consultation booking requests without an account.
**Acceptance Criteria:**
- [ ] Public `/booking` page accessible without login
- [ ] Guest can select date/time from availability calendar
- [ ] Guest provides full contact details (name, national ID, email, phone)
- [ ] Support for individual and company account types
- [ ] Duplicate check: block if email OR national_id already exists (prompt to login)
- [ ] 1-per-day limit by email for guest requests
- [ ] Confirmation step before submission
- [ ] Guest receives confirmation email
- [ ] Admin receives notification email
- [ ] Guest requests appear in admin queue with "Guest" badge
- [ ] Admin can: Approve + Create Account, Reject, Create Account Only
- [ ] On approval: user account created, welcome email sent, booking approved
- [ ] On rejection: rejection email sent, guest data discarded
- [ ] All actions logged in audit trail
**Technical Notes:**
- Store in guest_booking_requests table (separate from consultations)
- Admin workflow extends Story 3.5 approval process
- On approval, creates user and converts to consultation
- Rejected requests are fully deleted (data not retained)
---
## Dependencies
| Epic | Dependency |