Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Handle onboarding in non-prod envs (#2698)

authored by

Eric Bailey and committed by
GitHub
42fe0e16 2b0f92c7

+4 -1
+2 -1
src/screens/Onboarding/StepAlgoFeeds/index.tsx
··· 3 3 import {useLingui} from '@lingui/react' 4 4 import {msg, Trans} from '@lingui/macro' 5 5 6 + import {IS_PROD} from '#/env' 6 7 import {atoms as a, tokens, useTheme} from '#/alf' 7 8 import {ChevronRight_Stroke2_Corner0_Rounded as ChevronRight} from '#/components/icons/Chevron' 8 9 import {Button, ButtonIcon, ButtonText} from '#/components/Button' ··· 29 30 30 31 const PRIMARY_FEEDS: FeedConfig[] = [ 31 32 { 32 - default: true, 33 + default: IS_PROD, // these feeds are only available in prod 33 34 uri: 'at://did:plc:wqowuobffl66jv3kpsvo7ak4/app.bsky.feed.generator/the-algorithm', 34 35 gradient: tokens.gradients.midnight, 35 36 },
+2
src/screens/Onboarding/StepTopicalFeeds.tsx
··· 3 3 import {useLingui} from '@lingui/react' 4 4 import {msg, Trans} from '@lingui/macro' 5 5 6 + import {IS_PROD} from '#/env' 6 7 import {atoms as a} from '#/alf' 7 8 import {ChevronRight_Stroke2_Corner0_Rounded as ChevronRight} from '#/components/icons/Chevron' 8 9 import {ListMagnifyingGlass_Stroke2_Corner0_Rounded as ListMagnifyingGlass} from '#/components/icons/ListMagnifyingGlass' ··· 29 30 const [selectedFeedUris, setSelectedFeedUris] = React.useState<string[]>([]) 30 31 const [saving, setSaving] = React.useState(false) 31 32 const suggestedFeedUris = React.useMemo(() => { 33 + if (!IS_PROD) return [] 32 34 return aggregateInterestItems( 33 35 state.interestsStepResults.selectedInterests, 34 36 state.interestsStepResults.apiResponse.suggestedFeedUris,