From c528530a24cf1611224fc7fd872ee02698ef2871 Mon Sep 17 00:00:00 2001 From: gittihub-jpg Date: Sun, 31 May 2026 00:51:22 +0200 Subject: [PATCH] fix(profile): show all package likes instead of just 10 (#2817) Fixes #2817 Signed-off-by: gittihub-jpg --- app/components/Package/Likes.vue | 15 ++- app/pages/profile/[identity]/index.vue | 98 +++++++++++++++++-- app/utils/atproto/likes.ts | 36 +++++++ .../social/profile/[identifier]/likes.get.ts | 7 +- 4 files changed, 146 insertions(+), 10 deletions(-) diff --git a/app/components/Package/Likes.vue b/app/components/Package/Likes.vue index e48f543e62..507d5cf136 100644 --- a/app/components/Package/Likes.vue +++ b/app/components/Package/Likes.vue @@ -68,6 +68,8 @@ const topLikedBadgeLabel = computed(() => const isLikeActionPending = shallowRef(false) +const isCountTruncated = computed(() => (likesData.value?.totalLikes ?? 0) >= 1000) + const likeAction = async () => { if (user.value?.handle == null) { authModal.open() @@ -154,7 +156,18 @@ const likeAction = async () => { class="i-svg-spinners:ring-resize w-3 h-3 my-0.5" aria-hidden="true" /> - {{ compactNumberFormatter.format(likesData?.totalLikes ?? 0) }} + + {{ compactNumberFormatter.format(likesData?.totalLikes ?? 0) }} + + + + + diff --git a/app/pages/profile/[identity]/index.vue b/app/pages/profile/[identity]/index.vue index 61ca0f69eb..93e695de85 100644 --- a/app/pages/profile/[identity]/index.vue +++ b/app/pages/profile/[identity]/index.vue @@ -1,5 +1,6 @@