From efdb468703e45a058a9cf66e5d16f409990b30e3 Mon Sep 17 00:00:00 2001 From: pdelfan Date: Fri, 17 Apr 2026 14:23:54 -0700 Subject: [PATCH] feat: show on card action if you've connected a card --- .../activityCard/Skeleton.ActivityCard.tsx | 36 +++++++++---------- .../components/urlCard/Skeleton.UrlCard.tsx | 11 +++--- .../cards/components/urlCard/UrlCard.tsx | 2 ++ .../urlCardActions/UrlCardActions.tsx | 4 ++- .../Skeleton.UrlCardContent.tsx | 11 +++--- .../CardsContainerContent.tsx | 1 + .../Skeleton.CollectionCard.tsx | 2 +- .../CollectionContainerContent.tsx | 1 + .../connectionCard/ConnectionCard.tsx | 2 ++ .../connectionItem/ConnectionItem.tsx | 1 + .../feeds/components/feedItem/FeedItem.tsx | 1 + .../components/recentCards/RecentCards.tsx | 1 + .../notificationItem/NotificationItem.tsx | 1 + .../blueskyPost/Skeleton.BlueskyPost.tsx | 6 ++-- .../profileContainer/ProfileContainer.tsx | 1 + .../Skeleton.SearchProfileCard.tsx | 4 +-- .../similarUrlCard/SimilarUrlCard.tsx | 1 + 17 files changed, 48 insertions(+), 38 deletions(-) diff --git a/src/webapp/components/landing/activityCard/Skeleton.ActivityCard.tsx b/src/webapp/components/landing/activityCard/Skeleton.ActivityCard.tsx index 09eb17e1..f938c834 100644 --- a/src/webapp/components/landing/activityCard/Skeleton.ActivityCard.tsx +++ b/src/webapp/components/landing/activityCard/Skeleton.ActivityCard.tsx @@ -9,34 +9,23 @@ import { export default function ActivityCardSkeleton() { return ( - - - - - - - - - - - - - + + + {/* Domain */} - + {/* Title */} - - + {/* Description */} - - - + + + @@ -44,6 +33,15 @@ export default function ActivityCardSkeleton() { + + {/* Url card actions */} + + + + + + + diff --git a/src/webapp/features/cards/components/urlCard/Skeleton.UrlCard.tsx b/src/webapp/features/cards/components/urlCard/Skeleton.UrlCard.tsx index 12f0ecab..b76a5a1d 100644 --- a/src/webapp/features/cards/components/urlCard/Skeleton.UrlCard.tsx +++ b/src/webapp/features/cards/components/urlCard/Skeleton.UrlCard.tsx @@ -9,17 +9,16 @@ export default function UrlCardSkeleton() { {/* Domain */} - + {/* Title */} - - + {/* Description */} - - - + + + diff --git a/src/webapp/features/cards/components/urlCard/UrlCard.tsx b/src/webapp/features/cards/components/urlCard/UrlCard.tsx index 8263bcf2..447b5fee 100644 --- a/src/webapp/features/cards/components/urlCard/UrlCard.tsx +++ b/src/webapp/features/cards/components/urlCard/UrlCard.tsx @@ -26,6 +26,7 @@ interface Props { urlLibraryCount: number; urlIsInLibrary?: boolean; urlConnectionCount: number; + urlIsConnected?: boolean; authorHandle?: string; cardAuthor?: User; viaCardId?: string; @@ -163,6 +164,7 @@ export default function UrlCard(props: Props) { urlLibraryCount={props.urlLibraryCount} urlIsInLibrary={props.urlIsInLibrary ?? false} urlConnectionCount={props.urlConnectionCount} + urlIsConnected={props.urlIsConnected} viaCardId={props.viaCardId} analyticsContext={props.analyticsContext} /> diff --git a/src/webapp/features/cards/components/urlCardActions/UrlCardActions.tsx b/src/webapp/features/cards/components/urlCardActions/UrlCardActions.tsx index 499d4343..7a291ab5 100644 --- a/src/webapp/features/cards/components/urlCardActions/UrlCardActions.tsx +++ b/src/webapp/features/cards/components/urlCardActions/UrlCardActions.tsx @@ -35,6 +35,7 @@ interface Props { currentCollection?: Collection; urlLibraryCount: number; urlIsInLibrary: boolean; + urlIsConnected?: boolean; urlConnectionCount: number; viaCardId?: string; analyticsContext?: CardSaveAnalyticsContext; @@ -111,7 +112,8 @@ export default function UrlCardActions(props: Props) {