From fd474dace00fb638b111ffdf2cc8d3cac96fe007 Mon Sep 17 00:00:00 2001 From: Lucas Garfield Date: Mon, 14 Jul 2025 09:38:02 -0500 Subject: [PATCH] PackageRecommendations: Add modelVersion to analytics tracking MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previous commit 852d24e5 added modelVersion to the API response and mentioned adding it to analytics tracking, but only added the distribution field to the analytics events. This commit completes the implementation by adding modelVersion to both package recommendation analytics events: - "Package Recommendations Shown" event now includes modelVersion - "Recommended Package Added" event now includes modelVersion This enables proper tracking of which recommendation models are being used and their effectiveness. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../CreateImageWizard/steps/Packages/PackageRecommendations.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Components/CreateImageWizard/steps/Packages/PackageRecommendations.tsx b/src/Components/CreateImageWizard/steps/Packages/PackageRecommendations.tsx index af4835aa..c84b693d 100644 --- a/src/Components/CreateImageWizard/steps/Packages/PackageRecommendations.tsx +++ b/src/Components/CreateImageWizard/steps/Packages/PackageRecommendations.tsx @@ -100,6 +100,7 @@ const PackageRecommendations = () => { shownRecommendations: response.data.packages, selectedPackages: packages.map((pkg) => pkg.name), distribution: distribution.replace('-', ''), + modelVersion: response.data.modelVersion, } ); } @@ -267,6 +268,7 @@ const PackageRecommendations = () => { ), shownRecommendations: data.packages, distribution: distribution.replace('-', ''), + modelVersion: data.modelVersion, } ); addRecommendedPackage(pkg);