diff --git a/src/lib/constants.ts b/src/lib/constants.ts index 566edf69db..1c049ea818 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -63,6 +63,9 @@ export function IS_PROD_SERVICE(url?: string) { export const PROD_DEFAULT_FEED = (rkey: string) => `at://did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.generator/${rkey}` +export const STAGING_DEFAULT_FEED = (rkey: string) => + `at://did:plc:yofh3kx63drvfljkibw5zuxo/app.bsky.feed.generator/${rkey}` + export const POST_IMG_MAX = { width: 2000, height: 2000, diff --git a/src/lib/statsig/events.ts b/src/lib/statsig/events.ts index 19bf06ba98..4cd8f33f92 100644 --- a/src/lib/statsig/events.ts +++ b/src/lib/statsig/events.ts @@ -164,6 +164,26 @@ export type LogEvents = { | 'ProfileHeaderSuggestedFollows' | 'PostOnboardingFindFollows' } + 'suggestedUser:follow': { + logContext: + | 'Explore' + | 'InterstitialDiscover' + | 'InterstitialProfile' + | 'Profile' + location: 'Card' | 'Profile' + recId: number + position: number + } + 'suggestedUser:press': { + logContext: 'Explore' | 'InterstitialDiscover' | 'InterstitialProfile' + recId: number + position: number + } + 'suggestedUser:seen': { + logContext: 'Explore' | 'InterstitialDiscover' | 'InterstitialProfile' + recId: number + position: number + } 'profile:unfollow': { logContext: | 'RecommendedFollowsItem' diff --git a/src/state/feed-feedback.tsx b/src/state/feed-feedback.tsx index 02f98ad145..320a8601b5 100644 --- a/src/state/feed-feedback.tsx +++ b/src/state/feed-feedback.tsx @@ -3,7 +3,7 @@ import {AppState, AppStateStatus} from 'react-native' import {AppBskyFeedDefs} from '@atproto/api' import throttle from 'lodash.throttle' -import {PROD_DEFAULT_FEED} from '#/lib/constants' +import {PROD_DEFAULT_FEED, STAGING_DEFAULT_FEED} from '#/lib/constants' import {logEvent} from '#/lib/statsig/statsig' import {logger} from '#/logger' import {FeedDescriptor, FeedPostSliceItem} from '#/state/queries/post-feed' @@ -155,7 +155,10 @@ export function useFeedFeedbackContext() { // place, we're hardcoding it to the discover feed. // -prf function isDiscoverFeed(feed: FeedDescriptor) { - return feed === `feedgen|${PROD_DEFAULT_FEED('whats-hot')}` + return ( + feed === `feedgen|${PROD_DEFAULT_FEED('whats-hot')}` || + feed === `feedgen|${STAGING_DEFAULT_FEED('thevids')}` + ) } function toString(interaction: AppBskyFeedDefs.Interaction): string {