From 83edb4446ddbee3bb3a64991601aa267b29c98b0 Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 7 Feb 2024 15:07:25 -0800 Subject: [PATCH 01/33] use the palette's font color in the composer (#2791) * use the palette's font color in the composer * correct type for cssproperties * log --- src/view/com/composer/text-input/TextInput.web.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/com/composer/text-input/TextInput.web.tsx b/src/view/com/composer/text-input/TextInput.web.tsx index af0d18743b..dbc2f11d29 100644 --- a/src/view/com/composer/text-input/TextInput.web.tsx +++ b/src/view/com/composer/text-input/TextInput.web.tsx @@ -228,7 +228,7 @@ export const TextInput = React.forwardRef(function TextInputImpl( return ( <> - + {isDropping && ( From 390a9f3dd57aa10c41620bcaeb114f6fb4f06f52 Mon Sep 17 00:00:00 2001 From: Hailey Date: Thu, 8 Feb 2024 07:39:33 -0800 Subject: [PATCH 02/33] use the palette's font color in the composer (as string) (#2792) --- src/view/com/composer/text-input/TextInput.web.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/view/com/composer/text-input/TextInput.web.tsx b/src/view/com/composer/text-input/TextInput.web.tsx index dbc2f11d29..199f1f7499 100644 --- a/src/view/com/composer/text-input/TextInput.web.tsx +++ b/src/view/com/composer/text-input/TextInput.web.tsx @@ -228,7 +228,10 @@ export const TextInput = React.forwardRef(function TextInputImpl( return ( <> - + {isDropping && ( From 0944d2d9ed82cf479ea4546019e706a3343b112c Mon Sep 17 00:00:00 2001 From: dan Date: Thu, 8 Feb 2024 19:50:57 +0000 Subject: [PATCH 03/33] Add composer button to Notifications (#2806) --- src/view/screens/Notifications.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/view/screens/Notifications.tsx b/src/view/screens/Notifications.tsx index 03f0a8f61c..48c834a28f 100644 --- a/src/view/screens/Notifications.tsx +++ b/src/view/screens/Notifications.tsx @@ -29,6 +29,9 @@ import {listenSoftReset, emitSoftReset} from '#/state/events' import {truncateAndInvalidate} from '#/state/queries/util' import {useNonReactiveCallback} from '#/lib/hooks/useNonReactiveCallback' import {isNative} from '#/platform/detection' +import {FAB} from '../com/util/fab/FAB' +import {ComposeIcon2} from 'lib/icons' +import {useComposerControls} from '#/state/shell/composer' type Props = NativeStackScreenProps< NotificationsTabNavigatorParams, @@ -47,6 +50,7 @@ export function NotificationsScreen({}: Props) { const unreadApi = useUnreadNotificationsApi() const hasNew = !!unreadNotifs const isScreenFocused = useIsFocused() + const {openComposer} = useComposerControls() // event handlers // = @@ -156,6 +160,14 @@ export function NotificationsScreen({}: Props) { showIndicator={hasNew} /> )} + openComposer({})} + icon={} + accessibilityRole="button" + accessibilityLabel={_(msg`New post`)} + accessibilityHint="" + /> ) } From 1700b82713d7098e0979c929a6137ed055e97cfe Mon Sep 17 00:00:00 2001 From: Armaan <106045052+Armaan48985@users.noreply.github.com> Date: Fri, 9 Feb 2024 01:22:44 +0530 Subject: [PATCH 04/33] changed Benachrichtigunge (#2805) --- src/locale/locales/de/messages.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/locale/locales/de/messages.po b/src/locale/locales/de/messages.po index f7eae089a1..f5bae98a93 100644 --- a/src/locale/locales/de/messages.po +++ b/src/locale/locales/de/messages.po @@ -2445,7 +2445,7 @@ msgstr "Hinweis: Bluesky ist ein offenes und öffentliches Netzwerk. Diese Einst #: src/view/shell/Drawer.tsx:438 #: src/view/shell/Drawer.tsx:439 msgid "Notifications" -msgstr "Benachrichtigungen" +msgstr "Mitteilungen" #: src/view/com/modals/SelfLabel.tsx:103 msgid "Nudity" From 4041db31e23fef216b93aa3b6e312836b7146b90 Mon Sep 17 00:00:00 2001 From: Edison Lee Date: Fri, 9 Feb 2024 04:00:03 +0800 Subject: [PATCH 05/33] Correct the country code name of Taiwan (#2797) --- src/lib/country-codes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/country-codes.ts b/src/lib/country-codes.ts index ae01528764..9c9da84cff 100644 --- a/src/lib/country-codes.ts +++ b/src/lib/country-codes.ts @@ -219,7 +219,7 @@ export const COUNTRY_CODES: CountryCodeMap[] = [ {code2: 'SE', name: 'Sweden (+46)'}, {code2: 'CH', name: 'Switzerland (+41)'}, {code2: 'SY', name: 'Syrian Arab Republic (+963)'}, - {code2: 'TW', name: 'Taiwan, Province of China (+886)'}, + {code2: 'TW', name: 'Taiwan (+886)'}, {code2: 'TJ', name: 'Tajikistan (+992)'}, {code2: 'TZ', name: 'Tanzania, United Republic of (+255)'}, {code2: 'TH', name: 'Thailand (+66)'}, From 1de1d10cf6b823f075112f8f938963c95b7fd3ba Mon Sep 17 00:00:00 2001 From: Hailey Date: Thu, 8 Feb 2024 12:01:36 -0800 Subject: [PATCH 06/33] Fix error screen on native, use `Not Found` for profile errors instead of `Oops!` (#2789) * remove unnecessary `` * show back header on profile error * use `Not Found` instead of `Oops` for account errors * use `Not Found` instead of `Oops` for account errors --- src/view/com/modals/ProfilePreview.tsx | 2 +- src/view/com/util/error/ErrorScreen.tsx | 98 +++++++++++++------------ src/view/screens/Profile.tsx | 31 ++++---- 3 files changed, 69 insertions(+), 62 deletions(-) diff --git a/src/view/com/modals/ProfilePreview.tsx b/src/view/com/modals/ProfilePreview.tsx index 88b0df71d0..1764b6b901 100644 --- a/src/view/com/modals/ProfilePreview.tsx +++ b/src/view/com/modals/ProfilePreview.tsx @@ -46,7 +46,7 @@ export function Component({did}: {did: string}) { if (profileError) { return ( diff --git a/src/view/com/util/error/ErrorScreen.tsx b/src/view/com/util/error/ErrorScreen.tsx index 45444331cc..98fe6437b6 100644 --- a/src/view/com/util/error/ErrorScreen.tsx +++ b/src/view/com/util/error/ErrorScreen.tsx @@ -11,6 +11,8 @@ import {Button} from '../forms/Button' import {CenteredView} from '../Views' import {Trans, msg} from '@lingui/macro' import {useLingui} from '@lingui/react' +import {ViewHeader} from 'view/com/util/ViewHeader' +import {useWebMediaQueries} from 'lib/hooks/useWebMediaQueries' export function ErrorScreen({ title, @@ -18,66 +20,72 @@ export function ErrorScreen({ details, onPressTryAgain, testID, + showHeader, }: { title: string message: string details?: string onPressTryAgain?: () => void testID?: string + showHeader?: boolean }) { const theme = useTheme() + const {isMobile} = useWebMediaQueries() const pal = usePalette('default') const {_} = useLingui() return ( - - - - - - - - {title} - - {message} - {details && ( - - {details} - - )} - {onPressTryAgain && ( - - + - )} - + + {title} + + {message} + {details && ( + + {details} + + )} + {onPressTryAgain && ( + + + + )} + + ) } diff --git a/src/view/screens/Profile.tsx b/src/view/screens/Profile.tsx index 6d0f15d81a..cc54ad3b2c 100644 --- a/src/view/screens/Profile.tsx +++ b/src/view/screens/Profile.tsx @@ -50,6 +50,7 @@ interface SectionRef { type Props = NativeStackScreenProps export function ProfileScreen({route}: Props) { + const {_} = useLingui() const {currentAccount} = useSession() const name = route.params.name === 'me' ? currentAccount?.did : route.params.name @@ -97,14 +98,13 @@ export function ProfileScreen({route}: Props) { } if (resolveError || profileError) { return ( - - - + ) } if (profile && moderationOpts) { @@ -118,14 +118,13 @@ export function ProfileScreen({route}: Props) { } // should never happen return ( - - - + ) } From 8b239c83475fc959c2a17b538cc18347e025492c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gild=C3=A1sio=20Filho?= Date: Thu, 8 Feb 2024 17:03:23 -0300 Subject: [PATCH 07/33] Update pt-BR translation to 1.68 (#2786) * Update messages.po * Update messages.po --- src/locale/locales/pt-BR/messages.po | 42 ++++++++++++++-------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/locale/locales/pt-BR/messages.po b/src/locale/locales/pt-BR/messages.po index d31b45da52..78c8cfeb56 100644 --- a/src/locale/locales/pt-BR/messages.po +++ b/src/locale/locales/pt-BR/messages.po @@ -8,8 +8,8 @@ msgstr "" "Language: pt-BR\n" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2024-02-07 00:25\n" -"Last-Translator: maisondasilva\n" +"PO-Revision-Date: 2024-02-07 12:00\n" +"Last-Translator: gildaswise\n" "Language-Team: maisondasilva, MightyLoggor, gildaswise, gleydson, faeriarum\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" @@ -260,7 +260,7 @@ msgstr "Avançado" #: src/view/com/auth/login/ForgotPasswordForm.tsx:217 #: src/view/com/modals/ChangePassword.tsx:168 msgid "Already have a code?" -msgstr "" +msgstr "Já tem um código?" #: src/view/com/auth/login/ChooseAccountForm.tsx:98 msgid "Already signed in as @{0}" @@ -642,11 +642,11 @@ msgstr "Alterar meu email" #: src/view/screens/Settings.tsx:726 msgid "Change password" -msgstr "" +msgstr "Alterar senha" #: src/view/screens/Settings.tsx:735 msgid "Change Password" -msgstr "" +msgstr "Alterar Senha" #: src/view/com/composer/select-language/SuggestedLanguage.tsx:73 msgid "Change post language to {0}" @@ -654,7 +654,7 @@ msgstr "Trocar idioma do post para {0}" #: src/view/screens/Settings.tsx:727 msgid "Change your Bluesky password" -msgstr "" +msgstr "Alterar sua senha do Bluesky" #: src/view/com/modals/ChangeEmail.tsx:109 msgid "Change Your Email" @@ -748,7 +748,7 @@ msgstr "Clima e tempo" #: src/view/com/modals/ChangePassword.tsx:265 #: src/view/com/modals/ChangePassword.tsx:268 msgid "Close" -msgstr "" +msgstr "Fechar" #: src/components/Dialog/index.web.tsx:78 msgid "Close active dialog" @@ -1036,7 +1036,7 @@ msgstr "Domínio personalizado" #: src/screens/Onboarding/StepAlgoFeeds/index.tsx:106 msgid "Custom feeds built by the community bring you new experiences and help you find the content you love." -msgstr "" +msgstr "Feeds customizados feitos pela comunidade te proporcionam novas experiências e te ajudam a encontrar o conteúdo que você mais ama." #: src/view/screens/PreferencesExternalEmbeds.tsx:55 msgid "Customize media from external sites." @@ -1057,7 +1057,7 @@ msgstr "Modo escuro" #: src/view/screens/Settings.tsx:492 msgid "Dark Theme" -msgstr "" +msgstr "Modo Escuro" #: src/Navigation.tsx:204 #~ msgid "Debug" @@ -1095,7 +1095,7 @@ msgstr "Excluir minha conta" #: src/view/screens/Settings.tsx:755 msgid "Delete My Account…" -msgstr "" +msgstr "Excluir minha conta…" #: src/view/com/util/forms/PostDropdownBtn.tsx:228 msgid "Delete post" @@ -1134,7 +1134,7 @@ msgstr "Você gostaria de dizer alguma coisa?" #: src/view/screens/Settings.tsx:498 msgid "Dim" -msgstr "" +msgstr "Menos escuro" #: src/view/com/composer/Composer.tsx:144 msgid "Discard" @@ -1372,7 +1372,7 @@ msgstr "Insira o código de confirmação" #: src/view/com/modals/ChangePassword.tsx:151 msgid "Enter the code you received to change your password." -msgstr "" +msgstr "Digite o código recebido para alterar sua senha." #: src/view/com/modals/ChangeHandle.tsx:371 msgid "Enter the domain you want to use" @@ -1871,7 +1871,7 @@ msgstr "Se nenhum for selecionado, adequado para todas as idades." #: src/view/com/modals/ChangePassword.tsx:146 msgid "If you want to change your password, we will send you a code to verify that this is your account." -msgstr "" +msgstr "Se você quiser alterar sua senha, enviaremos um código que para verificar sua identidade." #: src/view/com/util/images/Gallery.tsx:38 msgid "Image" @@ -2466,7 +2466,7 @@ msgstr "Nova senha" #: src/view/com/modals/ChangePassword.tsx:215 msgid "New Password" -msgstr "" +msgstr "Nova Senha" #: src/view/com/feeds/FeedPage.tsx:201 msgctxt "action" @@ -3260,7 +3260,7 @@ msgstr "Solicitar código" #: src/view/com/modals/ChangePassword.tsx:239 #: src/view/com/modals/ChangePassword.tsx:241 msgid "Request Code" -msgstr "" +msgstr "Solicitar Código" #: src/view/screens/Moderation.tsx:188 #~ msgid "Request to limit the visibility of my account" @@ -3281,7 +3281,7 @@ msgstr "Código de redefinição" #: src/view/com/modals/ChangePassword.tsx:190 msgid "Reset Code" -msgstr "" +msgstr "Código de Redefinição" #: src/view/screens/Settings.tsx:806 msgid "Reset onboarding" @@ -3567,11 +3567,11 @@ msgstr "Definir o tema para acompanhar o sistema" #: src/view/screens/Settings.tsx:508 msgid "Set dark theme to the dark theme" -msgstr "" +msgstr "Definir o tema escuro para o padrão" #: src/view/screens/Settings.tsx:501 msgid "Set dark theme to the dim theme" -msgstr "" +msgstr "Definir o tema escuro para a versão menos escura" #: src/view/com/auth/login/SetNewPasswordForm.tsx:104 msgid "Set new password" @@ -4194,7 +4194,7 @@ msgstr "Este usuário está incluído na lista <0/>, que você bloqueou." #: src/view/com/modals/ModerationDetails.tsx:74 msgid "This user is included in the <0/> list which you have muted." -msgstr "" +msgstr "Este usuário está incluído na lista <0/>, que você silenciou." #: src/view/com/modals/ModerationDetails.tsx:74 #~ msgid "This user is included the <0/> list which you have muted." @@ -4680,7 +4680,7 @@ msgstr "Você bloqueou este usuário. Você não pode ver este conteúdo." #: src/view/com/modals/ChangePassword.tsx:87 #: src/view/com/modals/ChangePassword.tsx:121 msgid "You have entered an invalid code. It should look like XXXXX-XXXXX." -msgstr "" +msgstr "Você utilizou um código inválido. O código segue este padrão: XXXXX-XXXXX." #: src/view/com/modals/ModerationDetails.tsx:87 msgid "You have muted this user." @@ -4807,7 +4807,7 @@ msgstr "Seus códigos de convite estão ocultos quando conectado com uma Senha d #: src/view/com/modals/ChangePassword.tsx:155 msgid "Your password has been changed successfully!" -msgstr "" +msgstr "Sua senha foi alterada com sucesso!" #: src/view/com/composer/Composer.tsx:267 msgid "Your post has been published" From de705606d0e90c35e25b9e62ef7da63d9bb3bf9a Mon Sep 17 00:00:00 2001 From: Liberal dev <56965274+liberaldev@users.noreply.github.com> Date: Fri, 9 Feb 2024 05:04:36 +0900 Subject: [PATCH 08/33] fix google translate appear (#2784) --- bskyweb/templates/base.html | 8 ++++---- web/index.html | 9 ++++----- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/bskyweb/templates/base.html b/bskyweb/templates/base.html index e2f563c36b..b7913c3ade 100644 --- a/bskyweb/templates/base.html +++ b/bskyweb/templates/base.html @@ -1,5 +1,5 @@ - + @@ -217,9 +217,9 @@ {%- block body_all %}