add metrics to follow all
This commit is contained in:
@@ -93,6 +93,10 @@ export type MetricEvents = {
|
|||||||
'onboarding:suggestedAccounts:tabPressed': {
|
'onboarding:suggestedAccounts:tabPressed': {
|
||||||
tab: string
|
tab: string
|
||||||
}
|
}
|
||||||
|
'onboarding:suggestedAccounts:followAllPressed': {
|
||||||
|
tab: string
|
||||||
|
numAccounts: number
|
||||||
|
}
|
||||||
'onboarding:suggestedAccounts:nextPressed': {
|
'onboarding:suggestedAccounts:nextPressed': {
|
||||||
selectedAccountsLength: number
|
selectedAccountsLength: number
|
||||||
skipped: boolean
|
skipped: boolean
|
||||||
|
|||||||
@@ -109,6 +109,12 @@ export function StepSuggestedAccounts() {
|
|||||||
.map(user => user.did) ?? []
|
.map(user => user.did) ?? []
|
||||||
|
|
||||||
const {mutate: followAll, isPending: isFollowingAll} = useMutation({
|
const {mutate: followAll, isPending: isFollowingAll} = useMutation({
|
||||||
|
onMutate: () => {
|
||||||
|
logger.metric('onboarding:suggestedAccounts:followAllPressed', {
|
||||||
|
tab: selectedInterest ?? 'all',
|
||||||
|
numAccounts: followableDids.length,
|
||||||
|
})
|
||||||
|
},
|
||||||
mutationFn: async () => {
|
mutationFn: async () => {
|
||||||
for (const did of followableDids) {
|
for (const did of followableDids) {
|
||||||
updateProfileShadow(queryClient, did, {
|
updateProfileShadow(queryClient, did, {
|
||||||
|
|||||||
Reference in New Issue
Block a user