Skip to content

Track diff view mode changes#1439

Draft
adboio wants to merge 1 commit intomainfrom
cursor/posthog-diff-view-event-bef6
Draft

Track diff view mode changes#1439
adboio wants to merge 1 commit intomainfrom
cursor/posthog-diff-view-event-bef6

Conversation

@adboio
Copy link
Copy Markdown
Contributor

@adboio adboio commented Apr 2, 2026

Problem

Add PostHog tracking when users change their diff view mode.

Changes

  • Added a new analytics event Diff view mode changed with from_mode / to_mode properties.
  • Emitted the event from useDiffViewerStore whenever viewMode is updated via setViewMode / toggleViewMode.

How did you test this?

  • Ran biome check on the touched files.
  • (pnpm --filter code typecheck in this environment fails due to missing workspace type modules unrelated to this change.)
Open in Web Open in Cursor 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants