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