Add AI mood report feature with PDF export for therapist sharing

Adds a Reports tab to the Insights view with date range selection, two report
types (Quick Summary / Detailed), Foundation Models AI generation with batched
concurrent processing, and clinical PDF export via WKWebView HTML rendering.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-03-11 10:13:54 -05:00
parent 31fb2a7fe2
commit 19b4c8b05b
9 changed files with 2149 additions and 148 deletions

View File

@@ -153,6 +153,20 @@ enum AccessibilityID {
static let skipButton = "onboarding_skip_button"
}
// MARK: - Reports
enum Reports {
static let segmentedPicker = "reports_segmented_picker"
static let dateRangePicker = "reports_date_range_picker"
static let quickSummaryButton = "reports_quick_summary_button"
static let detailedReportButton = "reports_detailed_report_button"
static let generateButton = "reports_generate_button"
static let progressView = "reports_progress_view"
static let cancelButton = "reports_cancel_button"
static let exportButton = "reports_export_button"
static let privacyConfirmation = "reports_privacy_confirmation"
static let minimumEntriesWarning = "reports_minimum_entries_warning"
}
// MARK: - Common
enum Common {
static let lockScreen = "lock_screen"