From 0f65c7bd7e5e4c2286d97d204ac8c650628bce1e Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 8 May 2023 10:35:12 -0500 Subject: [PATCH 1/3] Auth: fix otherAccounts throwing a fullscreen error in local dev --- app/soapbox/actions/auth.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/soapbox/actions/auth.ts b/app/soapbox/actions/auth.ts index 06fe848e2..e4a10edd0 100644 --- a/app/soapbox/actions/auth.ts +++ b/app/soapbox/actions/auth.ts @@ -242,7 +242,8 @@ export const fetchOwnAccounts = () => return state.auth.users.forEach((user) => { const account = state.accounts.get(user.id); if (!account) { - dispatch(verifyCredentials(user.access_token, user.url)); + dispatch(verifyCredentials(user.access_token, user.url)) + .catch(() => console.warn(`Failed to load account: ${user.url}`)); } }); }; From f290ca85e358ebb44f4e68e6127dab0f08314f0e Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 8 May 2023 10:39:25 -0500 Subject: [PATCH 2/3] Thread: scroll up a little more on focus so the thread connector is visible --- app/soapbox/features/status/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/features/status/index.tsx b/app/soapbox/features/status/index.tsx index 64eb9404f..6628db23b 100644 --- a/app/soapbox/features/status/index.tsx +++ b/app/soapbox/features/status/index.tsx @@ -404,7 +404,7 @@ const Thread: React.FC = (props) => { useEffect(() => { scroller.current?.scrollToIndex({ index: ancestorsIds.size, - offset: -140, + offset: -146, }); setImmediate(() => statusRef.current?.querySelector('.detailed-actualStatus')?.focus()); From f47b5f0a20c8885bccb56af27f38903132070d44 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 8 May 2023 10:44:07 -0500 Subject: [PATCH 3/3] Thread: fix display of initial loading indicator --- app/soapbox/features/status/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/soapbox/features/status/index.tsx b/app/soapbox/features/status/index.tsx index 6628db23b..6b41148c4 100644 --- a/app/soapbox/features/status/index.tsx +++ b/app/soapbox/features/status/index.tsx @@ -443,7 +443,9 @@ const Thread: React.FC = (props) => { ); } else if (!status) { return ( - + + + ); }