From 3e598c1f37654a9fb86a19a20df0f3feb9b2bf31 Mon Sep 17 00:00:00 2001 From: Mike Watson Date: Mon, 30 Dec 2024 17:07:34 -0500 Subject: [PATCH 1/2] Jetpack AI: Switch tracking data to camel_case to maintain Tracks' required property format --- .../ai-client/src/components/ai-feedback/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/js-packages/ai-client/src/components/ai-feedback/index.tsx b/projects/js-packages/ai-client/src/components/ai-feedback/index.tsx index c99cea2d47dd5..6bb329039606c 100644 --- a/projects/js-packages/ai-client/src/components/ai-feedback/index.tsx +++ b/projects/js-packages/ai-client/src/components/ai-feedback/index.tsx @@ -96,9 +96,9 @@ export default function AiFeedbackThumbs( { tracks.recordEvent( 'jetpack_ai_feedback', { type: feature, rating: aiRating, - mediaLibraryId: options.mediaLibraryId || null, + media_library_id: options.mediaLibraryId || null, prompt: options.prompt || null, - revisedPrompt: options.revisedPrompt || null, + revised_prompt: options.revisedPrompt || null, block: options.block || null, } ); } From bc1e0b0f68f560c21d01ea3e2c177b0084b6e269 Mon Sep 17 00:00:00 2001 From: Mike Watson Date: Mon, 30 Dec 2024 17:09:19 -0500 Subject: [PATCH 2/2] changelog --- .../ai-client/changelog/change-jetpack-ai-fix-tracks-fields | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 projects/js-packages/ai-client/changelog/change-jetpack-ai-fix-tracks-fields diff --git a/projects/js-packages/ai-client/changelog/change-jetpack-ai-fix-tracks-fields b/projects/js-packages/ai-client/changelog/change-jetpack-ai-fix-tracks-fields new file mode 100644 index 0000000000000..138b187a7fade --- /dev/null +++ b/projects/js-packages/ai-client/changelog/change-jetpack-ai-fix-tracks-fields @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Jetpack AI: Switch tracking data to camel_case to maintain Tracks' required property format