diff --git a/package.json b/package.json index ab0e73af3..086a71f93 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "blacksky.community", - "version": "1.130.1", + "version": "1.130.2", "private": true, "packageManager": "pnpm@11.7.0", "engines": { diff --git a/src/components/onboarding-chrome/Screen.web.tsx b/src/components/onboarding-chrome/Screen.web.tsx new file mode 100644 index 000000000..4b8826435 --- /dev/null +++ b/src/components/onboarding-chrome/Screen.web.tsx @@ -0,0 +1,23 @@ +import {View} from 'react-native' + +import {useBrand} from '#/lib/community/BrandContext' +import {LoggedOutLayout} from '#/view/com/util/layouts/LoggedOutLayout' +import {atoms as a} from '#/alf' + +export function Screen({children}: React.PropsWithChildren) { + const brand = useBrand() + + return ( + + {children} + + ) +} + +export function Footer({children}: React.PropsWithChildren) { + return {children} +} diff --git a/src/locale/locales/en/messages.po b/src/locale/locales/en/messages.po index 0bc7e3970..b482a2a8d 100644 --- a/src/locale/locales/en/messages.po +++ b/src/locale/locales/en/messages.po @@ -12561,10 +12561,13 @@ msgstr "" #: src/screens/Login/LoginForm.tsx:164 #: src/screens/Login/LoginForm.tsx:220 #: src/screens/Login/SetNewPasswordForm.tsx:83 -#: src/screens/Signup/index.tsx:132 msgid "Unable to contact your service. Please check your Internet connection." msgstr "" +#: src/screens/Signup/index.tsx:138 +msgid "Unable to contact your service. Please try again shortly." +msgstr "Unable to contact your service. Please try again shortly." + #: src/screens/StarterPack/StarterPackScreen.tsx:700 msgid "Unable to delete" msgstr "" @@ -14159,11 +14162,11 @@ msgstr "You won’t be able to rejoin unless you’re invited." msgid "You: {message}" msgstr "You: {message}" -#: src/screens/Signup/index.tsx:196 +#: src/screens/Signup/index.tsx:202 msgid "You'll follow the suggested users and feeds once you finish creating your account!" msgstr "" -#: src/screens/Signup/index.tsx:201 +#: src/screens/Signup/index.tsx:207 msgid "You'll follow the suggested users once you finish creating your account!" msgstr "" @@ -14430,6 +14433,10 @@ msgstr "" msgid "Your selected interests help us serve you content you care about." msgstr "" +#: src/screens/Signup/index.tsx:135 +msgid "Your service is receiving too many requests. Please wait a few minutes and try again." +msgstr "Your service is receiving too many requests. Please wait a few minutes and try again." + #: src/lib/strings/errors.ts:47 msgid "Your session has expired. Please sign in again." msgstr "Your session has expired. Please sign in again." diff --git a/src/screens/Signup/index.tsx b/src/screens/Signup/index.tsx index 0aae921bf..ac146fb6d 100644 --- a/src/screens/Signup/index.tsx +++ b/src/screens/Signup/index.tsx @@ -2,7 +2,7 @@ import {useEffect, useReducer, useState} from 'react' import {AppState, type AppStateStatus, View} from 'react-native' import ReactNativeDeviceAttest from 'react-native-device-attest' import Animated, {FadeIn, LayoutAnimationConfig} from 'react-native-reanimated' -import {AppBskyGraphStarterpack} from '@atproto/api' +import {AppBskyGraphStarterpack, XRPCError} from '@atproto/api' import {msg} from '@lingui/core/macro' import {useLingui} from '@lingui/react' import {Trans} from '@lingui/react/macro' @@ -84,6 +84,7 @@ export function Signup({ data: serviceInfo, isFetching, isError, + error: serviceError, refetch, } = useServiceQuery(state.serviceUrl) @@ -128,9 +129,13 @@ export function Signup({ }) dispatch({ type: 'setError', - value: _( - msg`Unable to contact your service. Please check your Internet connection.`, - ), + value: + serviceError instanceof XRPCError && + serviceError.error === 'RateLimitExceeded' + ? _( + msg`Your service is receiving too many requests. Please wait a few minutes and try again.`, + ) + : _(msg`Unable to contact your service. Please try again shortly.`), }) } else if (serviceInfo) { dispatch({ @@ -140,7 +145,7 @@ export function Signup({ }) dispatch({type: 'setError', value: ''}) } - }, [_, serviceInfo, isError, availableHandles]) + }, [_, serviceInfo, isError, serviceError, availableHandles]) useEffect(() => { if (state.pendingSubmit) {