complete story 11.4 (documintation updates)
This commit is contained in:
+57
-4
@@ -1,9 +1,9 @@
|
||||
# Product Requirements Document (PRD)
|
||||
## Libra Law Firm Website
|
||||
|
||||
**Version:** 1.1
|
||||
**Date:** December 20, 2025
|
||||
**Domain:** libra.ps
|
||||
**Version:** 1.2
|
||||
**Date:** January 3, 2026
|
||||
**Domain:** libra.ps
|
||||
**Prepared for:** Development Team & Client Review
|
||||
|
||||
---
|
||||
@@ -229,6 +229,53 @@ Libra Law Firm requires a professional, bilingual (Arabic/English) web platform
|
||||
- New user registration (if applicable in future)
|
||||
- System notifications - critical system events
|
||||
|
||||
#### Guest Booking Flow
|
||||
|
||||
In addition to client bookings, the system supports guest bookings for visitors without accounts.
|
||||
|
||||
**Guest Booking Process:**
|
||||
|
||||
1. **Guest Visits /booking:**
|
||||
- Views available dates/times in calendar
|
||||
- Selects preferred date and time
|
||||
- Enters contact information (name, email, phone)
|
||||
- Provides problem summary
|
||||
- Completes captcha verification
|
||||
- Submits booking request
|
||||
|
||||
2. **Spam Protection:**
|
||||
- Custom math-based captcha (no third-party services)
|
||||
- 1 booking request per email per day
|
||||
- 5 booking requests per IP per 24 hours
|
||||
|
||||
3. **Guest Booking Status:**
|
||||
- Booking enters pending queue (same as client bookings)
|
||||
- Admin receives notification with guest contact info
|
||||
- Guest receives email confirmation
|
||||
|
||||
4. **Admin Reviews Guest Booking:**
|
||||
- Guest bookings appear in pending queue with "Guest" indicator
|
||||
- Admin sees guest name, email, phone
|
||||
- Same approval/rejection workflow as client bookings
|
||||
|
||||
5. **Guest Notifications:**
|
||||
- Confirmation email on submission
|
||||
- Approval email with calendar file on approval
|
||||
- Rejection email with reason on rejection
|
||||
|
||||
**Guest vs Client Comparison:**
|
||||
|
||||
| Feature | Client Booking | Guest Booking |
|
||||
|---------|---------------|---------------|
|
||||
| Account Required | Yes | No |
|
||||
| 1-per-day Limit | By user_id | By email |
|
||||
| Contact Info | From user profile | Entered at booking |
|
||||
| Email Notifications | To user email | To guest_email |
|
||||
| View Past Bookings | In dashboard | N/A |
|
||||
| Captcha | Not required | Required |
|
||||
|
||||
**Note:** Logged-in users visiting `/booking` are redirected to the client booking page.
|
||||
|
||||
---
|
||||
|
||||
### 5.5 Case Tracking Timeline System
|
||||
@@ -684,6 +731,11 @@ All emails in both Arabic and English based on user preference:
|
||||
1. **New Booking Request** - With client details and problem summary
|
||||
2. **System Notifications** - Critical system events
|
||||
|
||||
**Guest Emails:**
|
||||
1. **Guest Booking Confirmation** - Request submitted successfully
|
||||
2. **Guest Booking Approved** - With consultation details and calendar file
|
||||
3. **Guest Booking Rejected** - With reason (if provided)
|
||||
|
||||
### 8.3 Email Requirements
|
||||
- Professional email templates matching brand design (Charcoal & Warm Gray)
|
||||
- Mobile-responsive email layout
|
||||
@@ -974,7 +1026,7 @@ All emails in both Arabic and English based on user preference:
|
||||
- id, user_type (individual/company), full_name, national_id, company_name, company_cert_number, contact_person_name, contact_person_id, email, phone, password, status (active/deactivated), preferred_language, created_at, updated_at
|
||||
|
||||
2. **consultations (bookings)**
|
||||
- id, user_id, booking_date, booking_time, duration (45 min), problem_summary, consultation_type (free/paid), payment_amount, payment_status (pending/received), status (pending/approved/rejected/completed/no-show/cancelled), admin_notes, created_at, updated_at
|
||||
- id, user_id (nullable for guests), guest_name, guest_email, guest_phone, booking_date, booking_time, duration (45 min), problem_summary, consultation_type (free/paid), payment_amount, payment_status (pending/received), status (pending/approved/rejected/completed/no-show/cancelled), admin_notes, created_at, updated_at
|
||||
|
||||
3. **timelines**
|
||||
- id, user_id, case_name, case_reference, status (active/archived), created_at, updated_at
|
||||
@@ -1043,6 +1095,7 @@ All emails in both Arabic and English based on user preference:
|
||||
|---------|------|---------|--------|
|
||||
| 1.0 | Nov 26, 2025 | Initial PRD creation | Development Team |
|
||||
| 1.1 | Dec 20, 2025 | Added brand identity section, clarified booking rules (1/day, 45min), multiple timelines, account management (deactivate/delete), exports, analytics, Terms/Privacy pages | Development Team |
|
||||
| 1.2 | Jan 3, 2026 | Added guest booking functionality: public booking form at /booking, custom captcha, 1-per-day limit, guest email notifications, admin guest booking management | Development Team |
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user