diff options
author | dan <dan.abramov@gmail.com> | 2025-01-21 20:56:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-21 20:56:08 +0000 |
commit | f5b277c9f862c7aed900cf18d72280ad13a90338 (patch) | |
tree | 1007771e8c496e152eed16f26ff6406f988b9a77 | |
parent | 5f9f81f86ccc49be5b415674101cbb22bd6d5042 (diff) | |
download | voidsky-f5b277c9f862c7aed900cf18d72280ad13a90338.tar.zst |
[Experiment] Add Video feed on signup (#7531)
-rw-r--r-- | src/lib/constants.ts | 5 | ||||
-rw-r--r-- | src/lib/statsig/gates.ts | 1 | ||||
-rw-r--r-- | src/screens/Onboarding/StepFinished.tsx | 7 |
3 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/constants.ts b/src/lib/constants.ts index 945e61c99..aa7ff2928 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -139,6 +139,11 @@ export const TIMELINE_SAVED_FEED = { value: 'following', pinned: true, } +export const VIDEO_SAVED_FEED = { + type: 'feed', + value: VIDEO_FEED_URI, + pinned: true, +} export const RECOMMENDED_SAVED_FEEDS: Pick< AppBskyActorDefs.SavedFeed, diff --git a/src/lib/statsig/gates.ts b/src/lib/statsig/gates.ts index d2caa47f2..c0508c2dd 100644 --- a/src/lib/statsig/gates.ts +++ b/src/lib/statsig/gates.ts @@ -3,6 +3,7 @@ export type Gate = | 'debug_show_feedcontext' | 'debug_subscriptions' | 'new_postonboarding' + | 'onboarding_add_video_feed' | 'remove_show_latest_button' | 'test_gate_1' | 'test_gate_2' diff --git a/src/screens/Onboarding/StepFinished.tsx b/src/screens/Onboarding/StepFinished.tsx index fc0ea6a24..587ffa4f7 100644 --- a/src/screens/Onboarding/StepFinished.tsx +++ b/src/screens/Onboarding/StepFinished.tsx @@ -12,6 +12,7 @@ import { BSKY_APP_ACCOUNT_DID, DISCOVER_SAVED_FEED, TIMELINE_SAVED_FEED, + VIDEO_SAVED_FEED, } from '#/lib/constants' import {useRequestNotificationsPermission} from '#/lib/notifications/notifications' import {logEvent, useGate} from '#/lib/statsig/statsig' @@ -111,6 +112,12 @@ export function StepFinished() { 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 if (starterPack && starterPack.feeds?.length) { |