diff --git a/src/lib/constants.ts b/src/lib/constants.ts index e0b89980..0efaed44 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -13,6 +13,15 @@ export const EMBED_SERVICE = 'https://embed.bsky.app' export const EMBED_SCRIPT = `${EMBED_SERVICE}/static/embed.js` export const BSKY_DOWNLOAD_URL = 'https://bsky.app/download' +// HACK +// Yes, this is exactly what it looks like. It's a hard-coded constant +// reflecting the number of new users in the last week. We don't have +// time to add a route to the servers for this so we're just going to hard +// code and update this number with each release until we can get the +// server route done. +// -prf +export const JOINED_THIS_WEEK = 37115 // as of June24 2024 + const BASE_FEEDBACK_FORM_URL = `${HELP_DESK_URL}/requests/new` export function FEEDBACK_FORM_URL({ email, diff --git a/src/screens/StarterPack/StarterPackLandingScreen.tsx b/src/screens/StarterPack/StarterPackLandingScreen.tsx index 1c9587a7..cd4ca151 100644 --- a/src/screens/StarterPack/StarterPackLandingScreen.tsx +++ b/src/screens/StarterPack/StarterPackLandingScreen.tsx @@ -11,6 +11,7 @@ import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' +import {JOINED_THIS_WEEK} from '#/lib/constants' import {isAndroidWeb} from 'lib/browser' import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries' import {createStarterPackGooglePlayUri} from 'lib/strings/starter-pack' @@ -21,6 +22,7 @@ import { useActiveStarterPack, useSetActiveStarterPack, } from 'state/shell/starter-pack' +import {formatCount} from '#/view/com/util/numeric/format' import {LoggedOutScreenState} from 'view/com/auth/LoggedOut' import {CenteredView} from 'view/com/util/Views' import {Logo} from 'view/icons/Logo' @@ -95,7 +97,7 @@ function LandingScreenLoaded({ setScreenState: (state: LoggedOutScreenState) => void moderationOpts: ModerationOpts }) { - const {record, creator, listItemsSample, feeds, joinedWeekCount} = starterPack + const {record, creator, listItemsSample, feeds} = starterPack const {_} = useLingui() const t = useTheme() const activeStarterPack = useActiveStarterPack() @@ -200,24 +202,22 @@ function LandingScreenLoaded({ Join Bluesky - {joinedWeekCount && joinedWeekCount >= 25 ? ( - - - - 123,659 joined this week - - - ) : null} + + + + {formatCount(JOINED_THIS_WEEK)} joined this week + + {Boolean(listItemsSample?.length) && (