Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove new_user_progress_guide (#4895)

authored by

Eric Bailey and committed by
GitHub
85fe95c9 e1df2b0b

+1 -7
-1
src/lib/statsig/gates.ts
··· 3 3 | 'debug_show_feedcontext' 4 4 | 'native_pwi_disabled' 5 5 | 'new_user_guided_tour' 6 - | 'new_user_progress_guide' 7 6 | 'onboarding_minimum_interests' 8 7 | 'session_withproxy_fix' 9 8 | 'show_avi_follow_button'
+1 -6
src/state/shell/progress-guide.tsx
··· 2 2 import {msg} from '@lingui/macro' 3 3 import {useLingui} from '@lingui/react' 4 4 5 - import {useGate} from '#/lib/statsig/statsig' 6 5 import { 7 6 ProgressGuideToast, 8 7 ProgressGuideToastRef, ··· 61 60 const {data: preferences} = usePreferencesQuery() 62 61 const {mutateAsync, variables, isPending} = 63 62 useSetActiveProgressGuideMutation() 64 - const gate = useGate() 65 63 66 64 const activeProgressGuide = ( 67 65 isPending ? variables : preferences?.bskyAppState?.activeProgressGuide ··· 89 87 const controls = React.useMemo(() => { 90 88 return { 91 89 startProgressGuide(guide: ProgressGuideName) { 92 - if (!gate('new_user_progress_guide')) { 93 - return 94 - } 95 90 if (guide === 'like-10-and-follow-7') { 96 91 const guideObj = { 97 92 guide: 'like-10-and-follow-7', ··· 148 143 mutateAsync(guide?.isComplete ? undefined : guide) 149 144 }, 150 145 } 151 - }, [activeProgressGuide, mutateAsync, gate, setLocalGuideState]) 146 + }, [activeProgressGuide, mutateAsync, setLocalGuideState]) 152 147 153 148 return ( 154 149 <ProgressGuideContext.Provider value={localGuideState}>