Merge remote-tracking branch 'origin/main' into next/base
* origin/main: Fix "log in", "log out" to "sign in", "sign out" (#7739)
This commit is contained in:
+1
-1
@@ -118,7 +118,7 @@ function InnerApp() {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
return listenSessionDropped(() => {
|
return listenSessionDropped(() => {
|
||||||
Toast.show(
|
Toast.show(
|
||||||
_(msg`Sorry! Your session expired. Please log in again.`),
|
_(msg`Sorry! Your session expired. Please sign in again.`),
|
||||||
'info',
|
'info',
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|||||||
+1
-1
@@ -94,7 +94,7 @@ function InnerApp() {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
return listenSessionDropped(() => {
|
return listenSessionDropped(() => {
|
||||||
Toast.show(
|
Toast.show(
|
||||||
_(msg`Sorry! Your session expired. Please log in again.`),
|
_(msg`Sorry! Your session expired. Please sign in again.`),
|
||||||
'info',
|
'info',
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ export function AccountList({
|
|||||||
testID="chooseAddAccountBtn"
|
testID="chooseAddAccountBtn"
|
||||||
style={[a.flex_1]}
|
style={[a.flex_1]}
|
||||||
onPress={pendingDid ? undefined : onPressAddAccount}
|
onPress={pendingDid ? undefined : onPressAddAccount}
|
||||||
label={_(msg`Login to account that is not listed`)}>
|
label={_(msg`Sign in to account that is not listed`)}>
|
||||||
{({hovered, pressed}) => (
|
{({hovered, pressed}) => (
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ function SigninDialogInner({}: {control: Dialog.DialogOuterProps['control']}) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog.ScrollableInner
|
<Dialog.ScrollableInner
|
||||||
label={_(msg`Sign into Bluesky or create a new account`)}
|
label={_(msg`Sign in to Bluesky or create a new account`)}
|
||||||
style={[gtMobile ? {width: 'auto', maxWidth: 420} : a.w_full]}>
|
style={[gtMobile ? {width: 'auto', maxWidth: 420} : a.w_full]}>
|
||||||
<View style={[!isNative && a.p_2xl]}>
|
<View style={[!isNative && a.p_2xl]}>
|
||||||
<View
|
<View
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ export function Deactivated() {
|
|||||||
case 'Bad token scope':
|
case 'Bad token scope':
|
||||||
setError(
|
setError(
|
||||||
_(
|
_(
|
||||||
msg`You're logged in with an App Password. Please log in with your main password to continue deactivating your account.`,
|
msg`You're signed in with an App Password. Please sign in with your main password to continue deactivating your account.`,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
break
|
break
|
||||||
@@ -148,7 +148,7 @@ export function Deactivated() {
|
|||||||
{pending && <ButtonIcon icon={Loader} position="right" />}
|
{pending && <ButtonIcon icon={Loader} position="right" />}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
label={_(msg`Cancel reactivation and log out`)}
|
label={_(msg`Cancel reactivation and sign out`)}
|
||||||
size="large"
|
size="large"
|
||||||
variant="solid"
|
variant="solid"
|
||||||
color="secondary"
|
color="secondary"
|
||||||
@@ -183,7 +183,7 @@ export function Deactivated() {
|
|||||||
<>
|
<>
|
||||||
<Text
|
<Text
|
||||||
style={[t.atoms.text_contrast_medium, a.pb_md, a.leading_snug]}>
|
style={[t.atoms.text_contrast_medium, a.pb_md, a.leading_snug]}>
|
||||||
<Trans>Or, log into one of your other accounts.</Trans>
|
<Trans>Or, sign in to one of your other accounts.</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
<AccountList
|
<AccountList
|
||||||
onSelectAccount={onSelectAccount}
|
onSelectAccount={onSelectAccount}
|
||||||
@@ -199,13 +199,13 @@ export function Deactivated() {
|
|||||||
<Trans>Or, continue with another account.</Trans>
|
<Trans>Or, continue with another account.</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
<Button
|
<Button
|
||||||
label={_(msg`Log in or sign up`)}
|
label={_(msg`Sign in or sign up`)}
|
||||||
size="large"
|
size="large"
|
||||||
variant="solid"
|
variant="solid"
|
||||||
color="secondary"
|
color="secondary"
|
||||||
onPress={() => setShowLoggedOut(true)}>
|
onPress={() => setShowLoggedOut(true)}>
|
||||||
<ButtonText>
|
<ButtonText>
|
||||||
<Trans>Log in or sign up</Trans>
|
<Trans>Sign in or sign up</Trans>
|
||||||
</ButtonText>
|
</ButtonText>
|
||||||
</Button>
|
</Button>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -298,7 +298,9 @@ export const LoginForm = ({
|
|||||||
/>
|
/>
|
||||||
</TextField.Root>
|
</TextField.Root>
|
||||||
<Text style={[a.text_sm, t.atoms.text_contrast_medium, a.mt_sm]}>
|
<Text style={[a.text_sm, t.atoms.text_contrast_medium, a.mt_sm]}>
|
||||||
<Trans>Check your email for a login code and enter it here.</Trans>
|
<Trans>
|
||||||
|
Check your email for a sign in code and enter it here.
|
||||||
|
</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
@@ -319,7 +321,7 @@ export const LoginForm = ({
|
|||||||
<Button
|
<Button
|
||||||
testID="loginRetryButton"
|
testID="loginRetryButton"
|
||||||
label={_(msg`Retry`)}
|
label={_(msg`Retry`)}
|
||||||
accessibilityHint={_(msg`Retries login`)}
|
accessibilityHint={_(msg`Retries sign in`)}
|
||||||
variant="solid"
|
variant="solid"
|
||||||
color="secondary"
|
color="secondary"
|
||||||
size="large"
|
size="large"
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ function CreateDialogInner({passwords}: {passwords: string[]}) {
|
|||||||
</Text>
|
</Text>
|
||||||
<Text style={[a.text_md, a.leading_snug]}>
|
<Text style={[a.text_md, a.leading_snug]}>
|
||||||
<Trans>
|
<Trans>
|
||||||
Use this to sign into the other app along with your handle.
|
Use this to sign in to the other app along with your handle.
|
||||||
</Trans>
|
</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
<CopyButton
|
<CopyButton
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ function DeactivateAccountDialogInner({
|
|||||||
case 'Bad token scope':
|
case 'Bad token scope':
|
||||||
setError(
|
setError(
|
||||||
_(
|
_(
|
||||||
msg`You're logged in with an App Password. Please log in with your main password to continue deactivating your account.`,
|
msg`You're signed in with an App Password. Please sign in with your main password to continue deactivating your account.`,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
break
|
break
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export function Email2FAToggle() {
|
|||||||
<Prompt.Basic
|
<Prompt.Basic
|
||||||
control={enableDialogControl}
|
control={enableDialogControl}
|
||||||
title={_(msg`Enable Email 2FA`)}
|
title={_(msg`Enable Email 2FA`)}
|
||||||
description={_(msg`Require an email code to log in to your account.`)}
|
description={_(msg`Require an email code to sign in to your account.`)}
|
||||||
onConfirm={enableEmailAuthFactor}
|
onConfirm={enableEmailAuthFactor}
|
||||||
confirmButtonCta={_(msg`Enable`)}
|
confirmButtonCta={_(msg`Enable`)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -90,10 +90,10 @@ export function SignupQueued() {
|
|||||||
variant="ghost"
|
variant="ghost"
|
||||||
size="large"
|
size="large"
|
||||||
color="primary"
|
color="primary"
|
||||||
label={_(msg`Log out`)}
|
label={_(msg`Sign out`)}
|
||||||
onPress={() => logoutCurrentAccount('SignupQueued')}>
|
onPress={() => logoutCurrentAccount('SignupQueued')}>
|
||||||
<ButtonText>
|
<ButtonText>
|
||||||
<Trans>Log out</Trans>
|
<Trans>Sign out</Trans>
|
||||||
</ButtonText>
|
</ButtonText>
|
||||||
</Button>
|
</Button>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -82,10 +82,10 @@ export function Takendown() {
|
|||||||
variant="solid"
|
variant="solid"
|
||||||
size="large"
|
size="large"
|
||||||
color="secondary_inverted"
|
color="secondary_inverted"
|
||||||
label={_(msg`Log out`)}
|
label={_(msg`Sign out`)}
|
||||||
onPress={() => logoutCurrentAccount('Takendown')}>
|
onPress={() => logoutCurrentAccount('Takendown')}>
|
||||||
<ButtonText>
|
<ButtonText>
|
||||||
<Trans>Log Out</Trans>
|
<Trans>Sign Out</Trans>
|
||||||
</ButtonText>
|
</ButtonText>
|
||||||
</Button>
|
</Button>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ export function useListMembershipAddMutation() {
|
|||||||
>({
|
>({
|
||||||
mutationFn: async ({listUri, actorDid}) => {
|
mutationFn: async ({listUri, actorDid}) => {
|
||||||
if (!currentAccount) {
|
if (!currentAccount) {
|
||||||
throw new Error('Not logged in')
|
throw new Error('Not signed in')
|
||||||
}
|
}
|
||||||
const res = await agent.app.bsky.graph.listitem.create(
|
const res = await agent.app.bsky.graph.listitem.create(
|
||||||
{repo: currentAccount.did},
|
{repo: currentAccount.did},
|
||||||
@@ -160,7 +160,7 @@ export function useListMembershipRemoveMutation() {
|
|||||||
>({
|
>({
|
||||||
mutationFn: async ({membershipUri}) => {
|
mutationFn: async ({membershipUri}) => {
|
||||||
if (!currentAccount) {
|
if (!currentAccount) {
|
||||||
throw new Error('Not logged in')
|
throw new Error('Not signed in')
|
||||||
}
|
}
|
||||||
const membershipUrip = new AtUri(membershipUri)
|
const membershipUrip = new AtUri(membershipUri)
|
||||||
await agent.app.bsky.graph.listitem.delete({
|
await agent.app.bsky.graph.listitem.delete({
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ export function useListCreateMutation() {
|
|||||||
avatar,
|
avatar,
|
||||||
}) {
|
}) {
|
||||||
if (!currentAccount) {
|
if (!currentAccount) {
|
||||||
throw new Error('Not logged in')
|
throw new Error('Not signed in')
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
purpose !== 'app.bsky.graph.defs#curatelist' &&
|
purpose !== 'app.bsky.graph.defs#curatelist' &&
|
||||||
@@ -129,7 +129,7 @@ export function useListMetadataMutation() {
|
|||||||
async mutationFn({uri, name, description, descriptionFacets, avatar}) {
|
async mutationFn({uri, name, description, descriptionFacets, avatar}) {
|
||||||
const {hostname, rkey} = new AtUri(uri)
|
const {hostname, rkey} = new AtUri(uri)
|
||||||
if (!currentAccount) {
|
if (!currentAccount) {
|
||||||
throw new Error('Not logged in')
|
throw new Error('Not signed in')
|
||||||
}
|
}
|
||||||
if (currentAccount.did !== hostname) {
|
if (currentAccount.did !== hostname) {
|
||||||
throw new Error('You do not own this list')
|
throw new Error('You do not own this list')
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export function useUpdateActorDeclaration({
|
|||||||
|
|
||||||
return useMutation({
|
return useMutation({
|
||||||
mutationFn: async (allowIncoming: 'all' | 'none' | 'following') => {
|
mutationFn: async (allowIncoming: 'all' | 'none' | 'following') => {
|
||||||
if (!currentAccount) throw new Error('Not logged in')
|
if (!currentAccount) throw new Error('Not signed in')
|
||||||
const result = await agent.api.com.atproto.repo.putRecord({
|
const result = await agent.api.com.atproto.repo.putRecord({
|
||||||
repo: currentAccount.did,
|
repo: currentAccount.did,
|
||||||
collection: 'chat.bsky.actor.declaration',
|
collection: 'chat.bsky.actor.declaration',
|
||||||
@@ -68,7 +68,7 @@ export function useDeleteActorDeclaration() {
|
|||||||
|
|
||||||
return useMutation({
|
return useMutation({
|
||||||
mutationFn: async () => {
|
mutationFn: async () => {
|
||||||
if (!currentAccount) throw new Error('Not logged in')
|
if (!currentAccount) throw new Error('Not signed in')
|
||||||
const result = await agent.api.com.atproto.repo.deleteRecord({
|
const result = await agent.api.com.atproto.repo.deleteRecord({
|
||||||
repo: currentAccount.did,
|
repo: currentAccount.did,
|
||||||
collection: 'chat.bsky.actor.declaration',
|
collection: 'chat.bsky.actor.declaration',
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export function usePinnedPostMutation() {
|
|||||||
updatePostShadow(queryClient, postUri, {pinned: pinCurrentPost})
|
updatePostShadow(queryClient, postUri, {pinned: pinCurrentPost})
|
||||||
|
|
||||||
// get the currently pinned post so we can optimistically remove the pin from it
|
// get the currently pinned post so we can optimistically remove the pin from it
|
||||||
if (!currentAccount) throw new Error('Not logged in')
|
if (!currentAccount) throw new Error('Not signed in')
|
||||||
const {data: profile} = await agent.getProfile({
|
const {data: profile} = await agent.getProfile({
|
||||||
actor: currentAccount.did,
|
actor: currentAccount.did,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -294,7 +294,7 @@ export function useDeleteStarterPackMutation({
|
|||||||
return useMutation({
|
return useMutation({
|
||||||
mutationFn: async ({listUri, rkey}: {listUri?: string; rkey: string}) => {
|
mutationFn: async ({listUri, rkey}: {listUri?: string; rkey: string}) => {
|
||||||
if (!agent.session) {
|
if (!agent.session) {
|
||||||
throw new Error(`Requires logged in user`)
|
throw new Error(`Requires signed in user`)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (listUri) {
|
if (listUri) {
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ export const SplashScreen = ({
|
|||||||
onPress={onPressSignin}
|
onPress={onPressSignin}
|
||||||
label={_(msg`Sign in`)}
|
label={_(msg`Sign in`)}
|
||||||
accessibilityHint={_(
|
accessibilityHint={_(
|
||||||
msg`Opens flow to sign into your existing Bluesky account`,
|
msg`Opens flow to sign in to your existing Bluesky account`,
|
||||||
)}
|
)}
|
||||||
size="large"
|
size="large"
|
||||||
variant="solid"
|
variant="solid"
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ export const SplashScreen = ({
|
|||||||
onPress={onPressSignin}
|
onPress={onPressSignin}
|
||||||
label={_(msg`Sign in`)}
|
label={_(msg`Sign in`)}
|
||||||
accessibilityHint={_(
|
accessibilityHint={_(
|
||||||
msg`Opens flow to sign into your existing Bluesky account`,
|
msg`Opens flow to sign in to your existing Bluesky account`,
|
||||||
)}
|
)}
|
||||||
size="large"
|
size="large"
|
||||||
variant="solid"
|
variant="solid"
|
||||||
|
|||||||
@@ -399,7 +399,7 @@ let ProfileMenu = ({
|
|||||||
control={loggedOutWarningPromptControl}
|
control={loggedOutWarningPromptControl}
|
||||||
title={_(msg`Note about sharing`)}
|
title={_(msg`Note about sharing`)}
|
||||||
description={_(
|
description={_(
|
||||||
msg`This profile is only visible to logged-in users. It won't be visible to people who aren't logged in.`,
|
msg`This profile is only visible to logged-in users. It won't be visible to people who aren't signed in.`,
|
||||||
)}
|
)}
|
||||||
onConfirm={onPressShare}
|
onConfirm={onPressShare}
|
||||||
confirmButtonCta={_(msg`Share anyway`)}
|
confirmButtonCta={_(msg`Share anyway`)}
|
||||||
|
|||||||
@@ -717,7 +717,7 @@ let PostDropdownMenuItems = ({
|
|||||||
control={loggedOutWarningPromptControl}
|
control={loggedOutWarningPromptControl}
|
||||||
title={_(msg`Note about sharing`)}
|
title={_(msg`Note about sharing`)}
|
||||||
description={_(
|
description={_(
|
||||||
msg`This post is only visible to logged-in users. It won't be visible to people who aren't logged in.`,
|
msg`This post is only visible to logged-in users. It won't be visible to people who aren't signed in.`,
|
||||||
)}
|
)}
|
||||||
onConfirm={onSharePost}
|
onConfirm={onSharePost}
|
||||||
confirmButtonCta={_(msg`Share anyway`)}
|
confirmButtonCta={_(msg`Share anyway`)}
|
||||||
|
|||||||
@@ -366,7 +366,7 @@ let PostCtrls = ({
|
|||||||
control={loggedOutWarningPromptControl}
|
control={loggedOutWarningPromptControl}
|
||||||
title={_(msg`Note about sharing`)}
|
title={_(msg`Note about sharing`)}
|
||||||
description={_(
|
description={_(
|
||||||
msg`This post is only visible to logged-in users. It won't be visible to people who aren't logged in.`,
|
msg`This post is only visible to logged-in users. It won't be visible to people who aren't signed in.`,
|
||||||
)}
|
)}
|
||||||
onConfirm={onShare}
|
onConfirm={onShare}
|
||||||
confirmButtonCta={_(msg`Share anyway`)}
|
confirmButtonCta={_(msg`Share anyway`)}
|
||||||
|
|||||||
@@ -379,9 +379,9 @@ export const DebugModScreen = ({}: NativeStackScreenProps<
|
|||||||
<Toggle.Checkbox />
|
<Toggle.Checkbox />
|
||||||
<Toggle.LabelText>Adult disabled</Toggle.LabelText>
|
<Toggle.LabelText>Adult disabled</Toggle.LabelText>
|
||||||
</Toggle.Item>
|
</Toggle.Item>
|
||||||
<Toggle.Item name="loggedOut" label="Logged out">
|
<Toggle.Item name="loggedOut" label="Signed out">
|
||||||
<Toggle.Checkbox />
|
<Toggle.Checkbox />
|
||||||
<Toggle.LabelText>Logged out</Toggle.LabelText>
|
<Toggle.LabelText>Signed out</Toggle.LabelText>
|
||||||
</Toggle.Item>
|
</Toggle.Item>
|
||||||
</View>
|
</View>
|
||||||
</Toggle.Group>
|
</Toggle.Group>
|
||||||
|
|||||||
Reference in New Issue
Block a user