From 4f6f710e95b918cfd753f56ecb0fe03781bb33e0 Mon Sep 17 00:00:00 2001 From: vineyardbovines Date: Thu, 5 Mar 2026 08:58:26 -0500 Subject: [PATCH] show separate alert if you're on your own profile --- src/components/BotAccountInfoDialog.tsx | 35 +++++++++++++++++-- src/components/BotBadge.tsx | 6 ++-- .../Profile/Header/ProfileHeaderStandard.tsx | 2 +- src/screens/Settings/Settings.tsx | 2 +- 4 files changed, 39 insertions(+), 6 deletions(-) diff --git a/src/components/BotAccountInfoDialog.tsx b/src/components/BotAccountInfoDialog.tsx index 42230ca992..8ca56f282c 100644 --- a/src/components/BotAccountInfoDialog.tsx +++ b/src/components/BotAccountInfoDialog.tsx @@ -8,24 +8,29 @@ import {Button, ButtonText} from '#/components/Button' import * as Dialog from '#/components/Dialog' import {Robot_Filled_Corner2_Rounded as RobotIcon} from '#/components/icons/Robot' import {Text} from '#/components/Typography' +import {navigate} from '#/Navigation' export function BotAccountInfoDialog({ control, + isMe, }: { control: Dialog.DialogControlProps + isMe?: boolean }) { return ( - + ) } function BotAccountInfoDialogInner({ control, + isMe, }: { control: Dialog.DialogControlProps + isMe?: boolean }) { const {_} = useLingui() const t = useTheme() @@ -37,7 +42,16 @@ function BotAccountInfoDialogInner({ - This account has been marked as automated by its owner + {isMe ? ( + + You have marked this account as automated. You can remove it at + any time from your account settings. + + ) : ( + + This account has been marked as automated by its owner + + )} + {isMe && ( + + )} diff --git a/src/components/BotBadge.tsx b/src/components/BotBadge.tsx index 80b84559f6..41ef567688 100644 --- a/src/components/BotBadge.tsx +++ b/src/components/BotBadge.tsx @@ -3,13 +3,13 @@ import {type ComAtprotoLabelDefs} from '@atproto/api' import {msg} from '@lingui/core/macro' import {useLingui} from '@lingui/react' -import {useAnalytics} from '#/analytics' import {isBotAccount} from '#/lib/bots' import {atoms as a, useBreakpoints, useTheme} from '#/alf' import {BotAccountInfoDialog} from '#/components/BotAccountInfoDialog' import {Button} from '#/components/Button' import {useDialogControl} from '#/components/Dialog' import {Robot_Filled_Corner2_Rounded as RobotIcon} from '#/components/icons/Robot' +import {useAnalytics} from '#/analytics' export function BotBadge({ profile, @@ -36,9 +36,11 @@ export function BotBadge({ export function BotBadgeButton({ profile, size, + isMe, }: { profile: {did: string; labels?: ComAtprotoLabelDefs.Label[]} size: 'lg' | 'md' | 'sm' + isMe?: boolean }) { const t = useTheme() const ax = useAnalytics() @@ -86,7 +88,7 @@ export function BotBadgeButton({ )} - + ) } diff --git a/src/screens/Profile/Header/ProfileHeaderStandard.tsx b/src/screens/Profile/Header/ProfileHeaderStandard.tsx index 3eace8132b..12b02423ad 100644 --- a/src/screens/Profile/Header/ProfileHeaderStandard.tsx +++ b/src/screens/Profile/Header/ProfileHeaderStandard.tsx @@ -147,7 +147,7 @@ let ProfileHeaderStandard = ({ - + diff --git a/src/screens/Settings/Settings.tsx b/src/screens/Settings/Settings.tsx index 526024b826..1e9c07fad4 100644 --- a/src/screens/Settings/Settings.tsx +++ b/src/screens/Settings/Settings.tsx @@ -381,7 +381,7 @@ function ProfilePreview({ marginTop: platform({web: 8, ios: 8, android: 10}), }, ]}> - +