Skip to content

feat: track commit generation and saving events for analytics#9293

Merged
gatzjames merged 3 commits intoKong:feat/generative-aifrom
gatzjames:feat/generate-commits-analytics
Oct 22, 2025
Merged

feat: track commit generation and saving events for analytics#9293
gatzjames merged 3 commits intoKong:feat/generative-aifrom
gatzjames:feat/generate-commits-analytics

Conversation

@gatzjames
Copy link
Contributor

Overview

Adds segment events for AI generated commits

  • recommend_commits_clicked - when the user initially clicked the generate button
  • recommend_commits_generated - when the results come back from the LLM. Includes file_count and group_count (number of groups it generated), time_to_generate in seconds and a has_error boolean indicator if there where any errors in the generation
  • recommend_commits_cancelled - when they user clicked the “Back to Manual” button
  • recommend_commits_saved - when the user actually submitted the generated commits. Includes the group_count (the number of groups they actually committed) and file_excluded_count (how many files they excluded)

@gatzjames gatzjames requested review from a team and ryan-willis October 22, 2025 13:07
@gatzjames gatzjames self-assigned this Oct 22, 2025
@gatzjames gatzjames force-pushed the feat/generate-commits-analytics branch from 37a0bca to 66df3bc Compare October 22, 2025 16:17
@gatzjames gatzjames merged commit 1365a22 into Kong:feat/generative-ai Oct 22, 2025
8 of 9 checks passed
@gatzjames gatzjames deleted the feat/generate-commits-analytics branch October 22, 2025 19:04
gatzjames added a commit that referenced this pull request Oct 23, 2025
* feat: integrate AI plugin and configure LLMs in preferences (#9192)

* poc: LLM configuration

* fix formatting + tidy script

* fix openpath type send method

* exempt node_modules from vitest

* reset package-lock for inso build

* switch from send/on to invoke/handle

* switch to pluginData

* remove unnecessary animation

* remove extraneous external defs in frontend bundle config

* rebase fix

* feat: mock server gen (#9201)

* add ipc handler methods in front of llm config service (#9202)

* feat: gemini first class config support (#9209)

* feat: add gemini as a backend

* fix: save api key the first time

* chore: call plugin from utility process (#9210)

* feat: additional mock server event tracking (#9215)

* feat(Git Commit): Automatically generate commits (#9164)

* feat: add AI-generated commit message functionality in staging modal

* feat: enhance AI commit message generation with error handling and improved UI

* fix: update button icon and text for commit generation state in staging modal

* feat: add diff functionality to Git service and integrate with AI commit message generation

* feat: update isomorphic-git to version 1.33.1 and add stash functionality to Git VCS

* feat: implement multiple commit functionality for Git VCS and integrate with staging modal

* feat: add validation for staged changes before generating commit messages

* feat: implement generateCommitsFromDiff functionality for AI commit message generation

* Cleanup staging modal and use tree data for reordering and submitting multiple commits

* Revert "feat: update isomorphic-git to version 1.33.1 and add stash functionality to Git VCS"

This reverts commit b731372.

* feat: update type definitions for diff changes in Git VCS

* refactor: remove console logs and commented code from staging modal and AI commit generation

* feat: implement git commit generation process using a separate utility process for improved error handling and performance

* fix: improve error handling messages in AI commit generation

* chore: update optional dependency for AI plugin to alpha version 1.0.3

* fix: ensure data dir exists prior to reading (#9220)

* fix: ensure data dir exists prior to reading

* rename handler

* feat: mock server gen ux improvements (#9221)

* fix: include mockgen script in build (#9222)

* feat: add git commit generation process to build script (#9226)

* fix: set min height for git folder selector (#9242)

* chore: ai plugin 1.0.4 (#9243)

* feat: toggle ai features (#9232)

* feat: track commit generation and saving events for analytics (#9293)

* feat: add analytics tracking for commit message generation events

* fix: update segment event names to camelCase for consistency

* Update package-lock with the plugin modules

* fix(build): add x64ArchFiles option back (#9297)

* fix: autoselect self hosted mock when cloud mock disabled (#9299)

* fix: hide ai settings from scratch pad user (#9300)

---------

Co-authored-by: Shelby Moore <13246465+shelby-moore@users.noreply.github.com>
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
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