From 5576c5d6578bd13c5a26cedd7dce749a9fe3f339 Mon Sep 17 00:00:00 2001 From: Pouria Delfanazari Date: Fri, 9 Feb 2024 12:37:56 -0800 Subject: [PATCH] Fix handle not showing when display name isn't available, hide most parent replies if above threshold --- src/app/(site)/about/page.tsx | 5 +- src/app/dashboard/layout.tsx | 2 +- src/app/providers/composer.tsx | 2 +- .../actions/editProfile/EditProfile.tsx | 32 ++++----- .../contentDisplay/feedItem/FeedItem.tsx | 14 ++-- .../contentDisplay/feedPost/FeedPost.tsx | 2 +- .../notification/NotificationItem.tsx | 4 +- .../profileCard/ProfileCard.tsx | 2 +- .../profileHeader/ProfileHeader.tsx | 5 +- .../savedFeedItem/SavedFeedItem.tsx | 8 +-- .../contentDisplay/searchPost/SearchPost.tsx | 2 +- .../contentDisplay/threadPost/ThreadPost.tsx | 2 +- .../dataDisplay/postEmbed/ListEmbed.tsx | 2 +- .../dataDisplay/postEmbed/RecordEmbed.tsx | 14 ++-- src/components/dataDisplay/reason/Reason.tsx | 4 +- src/components/inputs/editor/Editor.tsx | 4 +- src/components/inputs/editor/QuotePreview.tsx | 10 +-- .../inputs/editor/ReplyToPreview.tsx | 2 +- .../inputs/editor/SuggestionList.tsx | 12 ++-- src/components/inputs/editor/TextEdit.tsx | 8 +-- src/components/inputs/radio/Radio.tsx | 4 +- src/components/inputs/switch/Switch.tsx | 2 +- src/components/inputs/tabGroup/TabGroup.tsx | 4 +- src/components/navigational/aside/Aside.tsx | 8 +-- .../myFeedsContainer/MyFeedsContainer.tsx | 16 ++--- .../settingsContainer/SettingsContainer.tsx | 66 +++++++++---------- src/containers/thread/ParentContainer.tsx | 57 ++++++++++++++-- src/containers/thread/PostThreadContainer.tsx | 14 ++-- src/lib/consts/thread.ts | 2 + src/lib/hooks/bsky/actor/useUpdateProfile.tsx | 4 +- 30 files changed, 178 insertions(+), 135 deletions(-) diff --git a/src/app/(site)/about/page.tsx b/src/app/(site)/about/page.tsx index c596321b..aad74750 100644 --- a/src/app/(site)/about/page.tsx +++ b/src/app/(site)/about/page.tsx @@ -62,14 +62,13 @@ export default function Page() {

The app is being developed and designed by me,{" "} Pouria . I started the project to learn more about the AT Protocol and as fun - way to practice my skills while I look for a full-time role after - graduation. + way to practice my skills.

diff --git a/src/app/dashboard/layout.tsx b/src/app/dashboard/layout.tsx index e81110d7..32b811a9 100644 --- a/src/app/dashboard/layout.tsx +++ b/src/app/dashboard/layout.tsx @@ -21,7 +21,7 @@ export default async function DashboardLayout({ const profile = await getProfile(session?.user.bskySession.handle); return ( -
+
{profile && }
diff --git a/src/app/providers/composer.tsx b/src/app/providers/composer.tsx index acc5cc38..c0f964a6 100644 --- a/src/app/providers/composer.tsx +++ b/src/app/providers/composer.tsx @@ -80,7 +80,7 @@ export const ComposerProvider: React.FC = ({ openComposer, closeComposer, }), - [] + [], ); const state = { diff --git a/src/components/actions/editProfile/EditProfile.tsx b/src/components/actions/editProfile/EditProfile.tsx index 3187f7c6..22692cd2 100644 --- a/src/components/actions/editProfile/EditProfile.tsx +++ b/src/components/actions/editProfile/EditProfile.tsx @@ -49,17 +49,17 @@ export default function EditProfile(props: Props) { }} > - - - -

+ + +

Edit My Profile

-
+
)} -
-
+
+
)}
-
+
-

Display Name

+

Display Name

setDisplayName(e.currentTarget.value)} />
-

Description

+

Description