Mirror — see github.com/blacksky-algorithms/blacksky.community
6
fork

Configure Feed

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

Remove DEV Clear button and add Blacksky community auto-follow

- Remove [DEV] Clear button from onboarding layout (both mobile
and web variants)
- Add did:plc:kta7dqcqoamo5ixlajxbtjps to the list of accounts
new users automatically follow during onboarding

+9 -38
+1
src/lib/constants.ts
··· 121 121 export const MAX_POST_LINES = 25 122 122 123 123 export const BSKY_APP_ACCOUNT_DID = 'did:plc:d2mkddsbmnrgr3domzg5qexf' 124 + export const BLACKSKY_COMMUNITY_DID = 'did:plc:kta7dqcqoamo5ixlajxbtjps' 124 125 export const FOUNDER_DID = 'did:plc:w4xbfzo7kqfes5zb7r6qv3rw' 125 126 126 127 export const BSKY_FEED_OWNER_DIDS = [BSKY_APP_ACCOUNT_DID, FOUNDER_DID]
+2 -37
src/screens/Onboarding/Layout.tsx
··· 4 4 import {msg, Trans} from '@lingui/macro' 5 5 import {useLingui} from '@lingui/react' 6 6 7 - import {useOnboardingDispatch} from '#/state/shell' 8 7 import {useOnboardingInternalState} from '#/screens/Onboarding/state' 9 8 import { 10 9 atoms as a, ··· 15 14 useTheme, 16 15 web, 17 16 } from '#/alf' 18 - import {Button, ButtonIcon, ButtonText} from '#/components/Button' 17 + import {Button, ButtonIcon} from '#/components/Button' 19 18 import {ArrowLeft_Stroke2_Corner0_Rounded as ArrowLeft} from '#/components/icons/Arrow' 20 19 import {HEADER_SLOT_SIZE} from '#/components/Layout' 21 20 import {createPortalGroup} from '#/components/Portal' 22 21 import {P, Text} from '#/components/Typography' 23 22 import {IS_ANDROID, IS_WEB} from '#/env' 24 - import {IS_INTERNAL} from '#/env' 25 23 26 24 const ONBOARDING_COL_WIDTH = 420 27 25 ··· 33 31 const t = useTheme() 34 32 const insets = useSafeAreaInsets() 35 33 const {gtMobile} = useBreakpoints() 36 - const onboardDispatch = useOnboardingDispatch() 37 34 const {state, dispatch} = useOnboardingInternalState() 38 35 const scrollview = useRef<ScrollView>(null) 39 36 const prevActiveStep = useRef<string>(state.activeStep) ··· 101 98 )} 102 99 </HeaderSlot> 103 100 104 - {IS_INTERNAL && ( 105 - <Button 106 - variant="ghost" 107 - color="negative" 108 - size="tiny" 109 - onPress={() => onboardDispatch({type: 'skip'})} 110 - // DEV ONLY 111 - label="Clear onboarding state"> 112 - <ButtonText>[DEV] Clear</ButtonText> 113 - </Button> 114 - )} 115 - 116 101 <HeaderSlot> 117 102 <OnboardingHeaderSlot.Outlet /> 118 103 </HeaderSlot> 119 104 </View> 120 105 </View> 121 106 ) : ( 122 - <> 123 - {IS_INTERNAL && ( 124 - <View 125 - style={[ 126 - a.absolute, 127 - a.align_center, 128 - a.z_10, 129 - {top: 0, left: 0, right: 0}, 130 - ]}> 131 - <Button 132 - variant="ghost" 133 - color="negative" 134 - size="tiny" 135 - onPress={() => onboardDispatch({type: 'skip'})} 136 - // DEV ONLY 137 - label="Clear onboarding state"> 138 - <ButtonText>[DEV] Clear</ButtonText> 139 - </Button> 140 - </View> 141 - )} 142 - </> 107 + <></> 143 108 )} 144 109 145 110 <ScrollView
+6 -1
src/screens/Onboarding/StepFinished/index.tsx
··· 14 14 15 15 import {uploadBlob} from '#/lib/api' 16 16 import { 17 + BLACKSKY_COMMUNITY_DID, 17 18 BSKY_APP_ACCOUNT_DID, 18 19 DISCOVER_SAVED_FEED, 19 20 TIMELINE_SAVED_FEED, ··· 98 99 await Promise.all([ 99 100 bulkWriteFollows( 100 101 agent, 101 - [BSKY_APP_ACCOUNT_DID, ...(listItems?.map(i => i.subject.did) ?? [])], 102 + [ 103 + BSKY_APP_ACCOUNT_DID, 104 + BLACKSKY_COMMUNITY_DID, 105 + ...(listItems?.map(i => i.subject.did) ?? []), 106 + ], 102 107 starterPack 103 108 ? {uri: starterPack.uri, cid: starterPack.cid} 104 109 : undefined,