7f35297025
Naser confirmed all remaining QA Review / Draft rows (97 subtasks, 16
parent rollups) are done in substance: the site has been in production
for roughly a year. Overrides the conservative QA-Review/Draft mapping
from the prior takeover commit (0f9d12c) at his explicit instruction.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
31 lines
1.4 KiB
Markdown
31 lines
1.4 KiB
Markdown
---
|
|
id: 8-9
|
|
title: 8-9 Admin Notification - New Booking
|
|
status: Done
|
|
date: 2026-09-27
|
|
parent: 8
|
|
---
|
|
|
|
## Description
|
|
|
|
As an admin, I want to be notified when a client submits a booking request, So that I can review and respond promptly. Using Mailable pattern to align with sibling stories (8.2-8.8):. Full implementation history: docs/stories/story-8.9-admin-notification-new-booking.md
|
|
|
|
## Acceptance Criteria
|
|
|
|
- [ ] Sent immediately after successful consultation creation (same trigger as Story 8.3)
|
|
- [ ] Consultation status: pending
|
|
- [ ] Email queued for async delivery
|
|
- [ ] First user with `user_type = 'admin'` in the database
|
|
- [ ] If no admin exists, log error but don't fail the booking process
|
|
- [ ] Subject line: "[Action Required] New Consultation Request" / "[إجراء مطلوب] طلب استشارة جديد"
|
|
- [ ] "New Consultation Request" heading
|
|
- [ ] Client name:
|
|
- [ ] Requested date and time (formatted per admin's language preference)
|
|
- [ ] Problem summary (full text, no truncation)
|
|
- [ ] Client contact information:
|
|
- [ ] "Review Request" button linking to consultation detail in admin dashboard
|
|
- [ ] "[Action Required]" prefix in subject line (English)
|
|
- [ ] "[إجراء مطلوب]" prefix in subject line (Arabic)
|
|
- [ ] Email sent in admin's `preferred_language`
|
|
- [ ] Default to 'en' (English) if admin has no preference set (admin-facing communications default to English)
|