Add guided reflection flow with mood-adaptive CBT/ACT questions
Walks users through 3-4 guided questions based on mood category: positive (great/good) gets gratitude-oriented questions, neutral (average) gets exploratory questions, and negative (bad/horrible) gets empathetic questions. Stored as JSON in MoodEntryModel, integrated into PDF reports, AI summaries, and CSV export. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -350,6 +350,7 @@ extension AnalyticsManager {
|
||||
case paywall = "paywall"
|
||||
case entryDetail = "entry_detail"
|
||||
case noteEditor = "note_editor"
|
||||
case guidedReflection = "guided_reflection"
|
||||
case lockScreen = "lock_screen"
|
||||
case sharing = "sharing"
|
||||
case themePicker = "theme_picker"
|
||||
@@ -382,6 +383,8 @@ extension AnalyticsManager {
|
||||
case noteUpdated(characterCount: Int)
|
||||
case photoAdded
|
||||
case photoDeleted
|
||||
case reflectionStarted
|
||||
case reflectionCompleted(answeredCount: Int)
|
||||
case missingEntriesFilled(count: Int)
|
||||
case entryDeleted(mood: Int)
|
||||
case allDataCleared
|
||||
@@ -491,6 +494,10 @@ extension AnalyticsManager {
|
||||
return ("photo_added", nil)
|
||||
case .photoDeleted:
|
||||
return ("photo_deleted", nil)
|
||||
case .reflectionStarted:
|
||||
return ("reflection_started", nil)
|
||||
case .reflectionCompleted(let count):
|
||||
return ("reflection_completed", ["answered_count": count])
|
||||
case .missingEntriesFilled(let count):
|
||||
return ("missing_entries_filled", ["count": count])
|
||||
case .entryDeleted(let mood):
|
||||
|
||||
Reference in New Issue
Block a user