Skip to content

feat: Track individual subscription start and cancel events#2079

Draft
charlesvien wants to merge 1 commit intomainfrom
05-06-track_individual_subscription_start_and_cancel_events
Draft

feat: Track individual subscription start and cancel events#2079
charlesvien wants to merge 1 commit intomainfrom
05-06-track_individual_subscription_start_and_cancel_events

Conversation

@charlesvien
Copy link
Copy Markdown
Member

@charlesvien charlesvien commented May 7, 2026

Problem

Existing billing reports only track at the org level, leaving individual user subscription activity invisible.

Changes

  1. Add Subscription started and Subscription cancelled event types with plan_key properties
  2. Fire start event in seatStore.upgradeToPro on both upgrade and fresh-create paths
  3. Fire cancel event in seatStore.cancelSeat capturing the pre-cancel plan_key
  4. Skip tracking on the no-op upgrade path (already on Pro)
  5. Cover the new tracking in seatStore.test.ts

How did you test this?

Manually

Publish to changelog?

@charlesvien charlesvien changed the title Track individual subscription start and cancel events feat: Track individual subscription start and cancel events May 7, 2026
Copy link
Copy Markdown
Member Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@charlesvien charlesvien changed the base branch from 05-05-handle_ssh_over_https_github_remote_urls to graphite-base/2079 May 7, 2026 06:26
@charlesvien charlesvien force-pushed the graphite-base/2079 branch from 07b789b to ed295c4 Compare May 7, 2026 06:27
@charlesvien charlesvien force-pushed the 05-06-track_individual_subscription_start_and_cancel_events branch from 4b95895 to 20283f4 Compare May 7, 2026 06:27
@graphite-app graphite-app Bot changed the base branch from graphite-base/2079 to main May 7, 2026 06:27
@charlesvien charlesvien force-pushed the 05-06-track_individual_subscription_start_and_cancel_events branch from 20283f4 to 4e338fc Compare May 7, 2026 06:28
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.

1 participant