From affc45e1b1e12dc5e9f86011accb73c04a29173b Mon Sep 17 00:00:00 2001 From: Trey t Date: Sat, 7 Mar 2026 15:13:19 -0600 Subject: [PATCH] Add honeycomb pattern to widgets and fix PostHog anonymous user tracking - Widget containerBackground now shows honeycomb texture when toggle is enabled - Change PostHog personProfiles from .never to .always so anonymous sessions and unique visitors are properly counted without identifying users Co-Authored-By: Claude Opus 4.6 --- iosApp/HoneyDue/HoneyDue.swift | 5 +++++ iosApp/iosApp/Analytics/AnalyticsManager.swift | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/iosApp/HoneyDue/HoneyDue.swift b/iosApp/HoneyDue/HoneyDue.swift index 99f552d..924e3c2 100644 --- a/iosApp/HoneyDue/HoneyDue.swift +++ b/iosApp/HoneyDue/HoneyDue.swift @@ -776,6 +776,11 @@ struct honeyDue: Widget { startPoint: .topLeading, endPoint: .bottomTrailing ) + + // Honeycomb pattern overlay (if enabled) + if HoneycombSetting.isEnabled { + HoneycombTexture(opacity: 0.10) + } } } } diff --git a/iosApp/iosApp/Analytics/AnalyticsManager.swift b/iosApp/iosApp/Analytics/AnalyticsManager.swift index 31841b9..42de312 100644 --- a/iosApp/iosApp/Analytics/AnalyticsManager.swift +++ b/iosApp/iosApp/Analytics/AnalyticsManager.swift @@ -42,8 +42,9 @@ final class AnalyticsManager { let config = PostHogConfig(apiKey: Self.apiKey, host: Self.host) - // Anonymous-only — no user identification, events use anonymous IDs - config.personProfiles = .never + // Anonymous person profiles — no user identification, but PostHog can + // count unique visitors and tie sessions to anonymous device IDs + config.personProfiles = .always // Auto-capture config.captureElementInteractions = true