Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Remove logging of following prefs (#5021)

authored by

dan and committed by
GitHub
9ebc2785 faf66f31

+2 -34
-6
src/lib/statsig/events.ts
··· 216 216 217 217 'profile:header:suggestedFollowsCard:press': {} 218 218 219 - 'debug:followingPrefs': { 220 - followingShowRepliesFromPref: 'all' | 'following' | 'off' 221 - followingRepliesMinLikePref: number 222 - } 223 - 'debug:followingDisplayed': {} 224 - 225 219 'test:all:always': {} 226 220 'test:all:sometimes': {} 227 221 'test:all:boosted_by_gate1': {reason: 'base' | 'gate1'}
+2 -28
src/view/screens/Home.tsx
··· 10 10 import {useGate} from '#/lib/statsig/statsig' 11 11 import {emitSoftReset} from '#/state/events' 12 12 import {SavedFeedSourceInfo, usePinnedFeedsInfos} from '#/state/queries/feed' 13 - import {FeedDescriptor, FeedParams} from '#/state/queries/post-feed' 13 + import {FeedParams} from '#/state/queries/post-feed' 14 14 import {usePreferencesQuery} from '#/state/queries/preferences' 15 15 import {UsePreferencesQueryResponse} from '#/state/queries/preferences/types' 16 16 import {useSession} from '#/state/session' ··· 108 108 } 109 109 }, [selectedIndex]) 110 110 111 - // Temporary, remove when finished debugging 112 - const debugHasLoggedFollowingPrefs = React.useRef(false) 113 - const debugLogFollowingPrefs = React.useCallback( 114 - (feed: FeedDescriptor) => { 115 - if (debugHasLoggedFollowingPrefs.current) return 116 - if (feed !== 'following') return 117 - logEvent('debug:followingPrefs', { 118 - followingShowRepliesFromPref: preferences.feedViewPrefs.hideReplies 119 - ? 'off' 120 - : preferences.feedViewPrefs.hideRepliesByUnfollowed 121 - ? 'following' 122 - : 'all', 123 - followingRepliesMinLikePref: 124 - preferences.feedViewPrefs.hideRepliesByLikeCount, 125 - }) 126 - debugHasLoggedFollowingPrefs.current = true 127 - }, 128 - [ 129 - preferences.feedViewPrefs.hideReplies, 130 - preferences.feedViewPrefs.hideRepliesByLikeCount, 131 - preferences.feedViewPrefs.hideRepliesByUnfollowed, 132 - ], 133 - ) 134 - 135 111 const {hasSession} = useSession() 136 112 const setMinimalShellMode = useSetMinimalShellMode() 137 113 const setDrawerSwipeDisabled = useSetDrawerSwipeDisabled() ··· 154 130 feedUrl: selectedFeed, 155 131 reason: 'focus', 156 132 }) 157 - debugLogFollowingPrefs(selectedFeed) 158 133 } 159 134 }), 160 135 ) ··· 205 180 feedUrl: feed, 206 181 reason, 207 182 }) 208 - debugLogFollowingPrefs(feed) 209 183 }, 210 - [allFeeds, debugLogFollowingPrefs], 184 + [allFeeds], 211 185 ) 212 186 213 187 const onPressSelected = React.useCallback(() => {