--- id: 3-6 title: 3-6 Calendar File Generation (.ics) status: QA Review date: 2026-09-27 parent: 3 --- ## Description As a client, I want to receive a calendar file when my booking is approved, So that I can easily add the consultation to my calendar app. Context: Integrates with: Consultation model, email attachments; Technology: iCalendar format (RFC 5545); Follows pattern: Service class for generation. Full implementation history: docs/stories/story-3.6-calendar-file-generation.md ## Acceptance Criteria - [ ] Generate valid .ics file on booking approval - [ ] File follows iCalendar specification (RFC 5545) - [ ] Compatible with major calendar apps: - [ ] Event title: "Consultation with Libra Law Firm" (bilingual) - [ ] Date and time (correct timezone) - [ ] Duration: 45 minutes - [ ] Location (office address or "Phone consultation") - [ ] Description with: - [ ] Reminder: 1 hour before - [ ] Attach to approval email - [ ] Available for download from client dashboard - [ ] Proper MIME type (text/calendar) - [ ] Correct filename (consultation-{date}.ics) - [ ] Event title in client's preferred language - [ ] Description in client's preferred language - [ ] Valid iCalendar format (passes validators) - [ ] Tests for file generation - [ ] Tests for calendar app compatibility - [ ] Tests for bilingual content (Arabic/English) - [ ] Tests for download route authorization - [ ] Tests for email attachment