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 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-03-07 15:13:19 -06:00
parent 73dd440d7b
commit affc45e1b1
2 changed files with 8 additions and 2 deletions

View File

@@ -776,6 +776,11 @@ struct honeyDue: Widget {
startPoint: .topLeading,
endPoint: .bottomTrailing
)
// Honeycomb pattern overlay (if enabled)
if HoneycombSetting.isEnabled {
HoneycombTexture(opacity: 0.10)
}
}
}
}

View File

@@ -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