Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Set up the global 'joined this week' (#4625)

authored by

Paul Frazee and committed by
GitHub
ed940c63 9e89ddeb

+28 -19
+9
src/lib/constants.ts
··· 13 13 export const EMBED_SCRIPT = `${EMBED_SERVICE}/static/embed.js` 14 14 export const BSKY_DOWNLOAD_URL = 'https://bsky.app/download' 15 15 16 + // HACK 17 + // Yes, this is exactly what it looks like. It's a hard-coded constant 18 + // reflecting the number of new users in the last week. We don't have 19 + // time to add a route to the servers for this so we're just going to hard 20 + // code and update this number with each release until we can get the 21 + // server route done. 22 + // -prf 23 + export const JOINED_THIS_WEEK = 37115 // as of June24 2024 24 + 16 25 const BASE_FEEDBACK_FORM_URL = `${HELP_DESK_URL}/requests/new` 17 26 export function FEEDBACK_FORM_URL({ 18 27 email,
+19 -19
src/screens/StarterPack/StarterPackLandingScreen.tsx
··· 11 11 import {msg, Trans} from '@lingui/macro' 12 12 import {useLingui} from '@lingui/react' 13 13 14 + import {JOINED_THIS_WEEK} from '#/lib/constants' 14 15 import {isAndroidWeb} from 'lib/browser' 15 16 import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries' 16 17 import {createStarterPackGooglePlayUri} from 'lib/strings/starter-pack' ··· 21 22 useActiveStarterPack, 22 23 useSetActiveStarterPack, 23 24 } from 'state/shell/starter-pack' 25 + import {formatCount} from '#/view/com/util/numeric/format' 24 26 import {LoggedOutScreenState} from 'view/com/auth/LoggedOut' 25 27 import {CenteredView} from 'view/com/util/Views' 26 28 import {Logo} from 'view/icons/Logo' ··· 95 97 setScreenState: (state: LoggedOutScreenState) => void 96 98 moderationOpts: ModerationOpts 97 99 }) { 98 - const {record, creator, listItemsSample, feeds, joinedWeekCount} = starterPack 100 + const {record, creator, listItemsSample, feeds} = starterPack 99 101 const {_} = useLingui() 100 102 const t = useTheme() 101 103 const activeStarterPack = useActiveStarterPack() ··· 200 202 <Trans>Join Bluesky</Trans> 201 203 </ButtonText> 202 204 </Button> 203 - {joinedWeekCount && joinedWeekCount >= 25 ? ( 204 - <View style={[a.flex_row, a.align_center, a.gap_sm]}> 205 - <FontAwesomeIcon 206 - icon="arrow-trend-up" 207 - size={12} 208 - color={t.atoms.text_contrast_medium.color} 209 - /> 210 - <Text 211 - style={[ 212 - a.font_semibold, 213 - a.text_sm, 214 - t.atoms.text_contrast_medium, 215 - ]} 216 - numberOfLines={1}> 217 - 123,659 joined this week 218 - </Text> 219 - </View> 220 - ) : null} 205 + <View style={[a.flex_row, a.align_center, a.gap_sm]}> 206 + <FontAwesomeIcon 207 + icon="arrow-trend-up" 208 + size={12} 209 + color={t.atoms.text_contrast_medium.color} 210 + /> 211 + <Text 212 + style={[ 213 + a.font_semibold, 214 + a.text_sm, 215 + t.atoms.text_contrast_medium, 216 + ]} 217 + numberOfLines={1}> 218 + <Trans>{formatCount(JOINED_THIS_WEEK)} joined this week</Trans> 219 + </Text> 220 + </View> 221 221 </View> 222 222 <View style={[a.gap_3xl]}> 223 223 {Boolean(listItemsSample?.length) && (