Allow PDF data export when AI is unavailable on Reports screen

Users without Apple Intelligence can now export their mood data as a
visual PDF with charts and statistics instead of seeing a disabled
Generate button. The existing ExportService.exportPDF is reused for
the non-AI path, gated behind the same privacy confirmation dialog.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-03-17 23:04:50 -05:00
parent c7f05335c8
commit 0f128da154
4 changed files with 154 additions and 24 deletions

View File

@@ -179,6 +179,7 @@ enum AccessibilityID {
static let exportButton = "reports_export_button"
static let privacyConfirmation = "reports_privacy_confirmation"
static let minimumEntriesWarning = "reports_minimum_entries_warning"
static let exportDataButton = "reports_export_data_button"
}
// MARK: - Common