1.1.5: add analytics for stats_viewed and week_rated events

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
alexandrev-tibco
2026-06-11 13:49:33 +02:00
parent 946c788ef6
commit 72770801d3
3 changed files with 17 additions and 0 deletions
+1
View File
@@ -168,6 +168,7 @@ final class HomeViewModel: ObservableObject {
func rateWeek(plan: WeekPlan, rating: Int) {
plan.userRating = rating
plan.updatedAt = Date()
AnalyticsService.logWeekRated(rating: rating)
HapticManager.shared.impact(style: .light)
}