starter pack metrics (#9116)

* starter pack metrics

* emit starterpack:add/remove user event with starterpack uri in starter pack dialog

* rename metadata field
This commit is contained in:
Chenyu
2025-10-03 10:17:59 -07:00
committed by GitHub
parent 885356256e
commit 12e09a9bd1
4 changed files with 20 additions and 1 deletions
+6 -1
View File
@@ -105,6 +105,11 @@ let ProfileMenu = ({
})
}, [queryClient, profile.did])
const onPressAddToStarterPacks = React.useCallback(() => {
logger.metric('profile:addToStarterPack', {})
addToStarterPacksDialogControl.open()
}, [addToStarterPacksDialogControl])
const onPressShare = React.useCallback(() => {
shareUrl(toShareUrl(makeProfileLink(profile)))
}, [profile])
@@ -306,7 +311,7 @@ let ProfileMenu = ({
<Menu.Item
testID="profileHeaderDropdownStarterPackAddRemoveBtn"
label={_(msg`Add to starter packs`)}
onPress={addToStarterPacksDialogControl.open}>
onPress={onPressAddToStarterPacks}>
<Menu.ItemText>
<Trans>Add to starter packs</Trans>
</Menu.ItemText>