Skip to content

feat: Track diff view mode changes#1439

Merged
charlesvien merged 1 commit intomainfrom
cursor/posthog-diff-view-event-bef6
Apr 3, 2026
Merged

feat: Track diff view mode changes#1439
charlesvien merged 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 

@charlesvien charlesvien changed the title Track diff view mode changes feat: Track diff view mode changes Apr 3, 2026
@charlesvien charlesvien marked this pull request as ready for review April 3, 2026 01:00
@adboio adboio requested a review from a team April 3, 2026 03:50
Copy link
Copy Markdown
Member

@charlesvien charlesvien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@charlesvien charlesvien merged commit 70f4a18 into main Apr 3, 2026
15 checks passed
@charlesvien charlesvien deleted the cursor/posthog-diff-view-event-bef6 branch April 3, 2026 04:05
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.

3 participants