From b3b64cf3a4827171a049ce7bf5dddb6e853d17c9 Mon Sep 17 00:00:00 2001 From: RitaDias Date: Wed, 4 Sep 2024 13:04:17 +0200 Subject: [PATCH] docs(sanity): clarify unarchive / archive telemetry track --- .../releases/components/BundleMenuButton/BundleMenuButton.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/sanity/src/core/releases/components/BundleMenuButton/BundleMenuButton.tsx b/packages/sanity/src/core/releases/components/BundleMenuButton/BundleMenuButton.tsx index 67301f5776b..be7e62eab4b 100644 --- a/packages/sanity/src/core/releases/components/BundleMenuButton/BundleMenuButton.tsx +++ b/packages/sanity/src/core/releases/components/BundleMenuButton/BundleMenuButton.tsx @@ -84,8 +84,10 @@ export const BundleMenuButton = ({disabled, bundle, documentCount}: BundleMenuBu }) if (isBundleArchived) { + // it's in the process of becoming false, so the event we want to track is unarchive telemetry.log(UnarchivedRelease) } else { + // it's in the process of becoming true, so the event we want to track is archive telemetry.log(ArchivedRelease) } setIsPerformingOperation(false)