feat(analytics): add AI consent and event tracking schema#2243
Merged
Conversation
Generated-By: PostHog Code Task-Id: 925c17d3-8b1f-4494-8c9b-f8de61478a85
Contributor
|
jonathanlab
approved these changes
May 20, 2026
- Use strict host matching in inferRepositoryProvider to avoid CodeQL URL substring sanitization issue - Return "none" for unrecognised remotes instead of misclassifying as github - Fire AI consent gate shown once on mount even if isAdmin resolves later - Add Inbox viewed row to SCHEMA.md catalog Generated-By: PostHog Code Task-Id: 925c17d3-8b1f-4494-8c9b-f8de61478a85
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL;DR
Added comprehensive event tracking for AI consent flows and onboarding steps, along with a detailed schema documentation file that defines naming conventions, property standards, and the complete event catalog for the desktop app's PostHog integration.
What changed?
New file:
apps/code/SCHEMA.md- Comprehensive analytics schema documentation including:is_,has_, suffixes like_count,_seconds,_id)task_id,execution_type,adapter,repository_provider, etc.)Ai consent gate shownandAi consent approvedAdded new analytics events to support:
is_org_adminproperty)Onboarding step viewedand related events)How did you test this?
Schema documentation reviewed for compliance with PostHog naming conventions and consistency with existing event patterns in the codebase.
Publish to changelog?
yes
Created with PostHog Code