Bluesky app fork with some witchin' additions 💫 witchsky.app
bluesky fork client

Add some events to landing screen (#4664)

authored by hailey.at and committed by

GitHub 0ab6d540 5641a439

+16
+6
src/lib/statsig/events.ts
··· 188 188 profilesCount: number 189 189 feedsCount: number 190 190 } 191 + 'starterPack:ctaPress': { 192 + starterPack: string 193 + } 194 + 'starterPack:opened': { 195 + starterPack: string 196 + } 191 197 192 198 'test:all:always': {} 193 199 'test:all:sometimes': {}
+4
src/screens/StarterPack/StarterPackLandingScreen.tsx
··· 14 14 import {JOINED_THIS_WEEK} from '#/lib/constants' 15 15 import {isAndroidWeb} from 'lib/browser' 16 16 import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries' 17 + import {logEvent} from 'lib/statsig/statsig' 17 18 import {createStarterPackGooglePlayUri} from 'lib/strings/starter-pack' 18 19 import {isWeb} from 'platform/detection' 19 20 import {useModerationOpts} from 'state/preferences/moderation-opts' ··· 128 129 } else { 129 130 onContinue() 130 131 } 132 + logEvent('starterPack:ctaPress', { 133 + starterPack: starterPack.uri, 134 + }) 131 135 } 132 136 133 137 const onJoinWithoutPress = () => {
+6
src/screens/StarterPack/StarterPackScreen.tsx
··· 152 152 const [link, setLink] = React.useState<string>() 153 153 const [imageLoaded, setImageLoaded] = React.useState(false) 154 154 155 + React.useEffect(() => { 156 + logEvent('starterPack:opened', { 157 + starterPack: starterPack.uri, 158 + }) 159 + }, [starterPack.uri]) 160 + 155 161 const onOpenShareDialog = React.useCallback(() => { 156 162 const rkey = new AtUri(starterPack.uri).rkey 157 163 shortenLink(makeStarterPackLink(starterPack.creator.did, rkey)).then(