[Experiment] Add Video feed on signup (#7531)
This commit is contained in:
@@ -139,6 +139,11 @@ export const TIMELINE_SAVED_FEED = {
|
|||||||
value: 'following',
|
value: 'following',
|
||||||
pinned: true,
|
pinned: true,
|
||||||
}
|
}
|
||||||
|
export const VIDEO_SAVED_FEED = {
|
||||||
|
type: 'feed',
|
||||||
|
value: VIDEO_FEED_URI,
|
||||||
|
pinned: true,
|
||||||
|
}
|
||||||
|
|
||||||
export const RECOMMENDED_SAVED_FEEDS: Pick<
|
export const RECOMMENDED_SAVED_FEEDS: Pick<
|
||||||
AppBskyActorDefs.SavedFeed,
|
AppBskyActorDefs.SavedFeed,
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ export type Gate =
|
|||||||
| 'debug_show_feedcontext'
|
| 'debug_show_feedcontext'
|
||||||
| 'debug_subscriptions'
|
| 'debug_subscriptions'
|
||||||
| 'new_postonboarding'
|
| 'new_postonboarding'
|
||||||
|
| 'onboarding_add_video_feed'
|
||||||
| 'remove_show_latest_button'
|
| 'remove_show_latest_button'
|
||||||
| 'test_gate_1'
|
| 'test_gate_1'
|
||||||
| 'test_gate_2'
|
| 'test_gate_2'
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import {
|
|||||||
BSKY_APP_ACCOUNT_DID,
|
BSKY_APP_ACCOUNT_DID,
|
||||||
DISCOVER_SAVED_FEED,
|
DISCOVER_SAVED_FEED,
|
||||||
TIMELINE_SAVED_FEED,
|
TIMELINE_SAVED_FEED,
|
||||||
|
VIDEO_SAVED_FEED,
|
||||||
} from '#/lib/constants'
|
} from '#/lib/constants'
|
||||||
import {useRequestNotificationsPermission} from '#/lib/notifications/notifications'
|
import {useRequestNotificationsPermission} from '#/lib/notifications/notifications'
|
||||||
import {logEvent, useGate} from '#/lib/statsig/statsig'
|
import {logEvent, useGate} from '#/lib/statsig/statsig'
|
||||||
@@ -111,6 +112,12 @@ export function StepFinished() {
|
|||||||
id: TID.nextStr(),
|
id: TID.nextStr(),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
if (gate('onboarding_add_video_feed')) {
|
||||||
|
feedsToSave.push({
|
||||||
|
...VIDEO_SAVED_FEED,
|
||||||
|
id: TID.nextStr(),
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// Any starter pack feeds will be pinned _after_ the defaults
|
// Any starter pack feeds will be pinned _after_ the defaults
|
||||||
if (starterPack && starterPack.feeds?.length) {
|
if (starterPack && starterPack.feeds?.length) {
|
||||||
|
|||||||
Reference in New Issue
Block a user