From 0a4f1b81eca9c01ad0f1bb474b3461a423df62ff Mon Sep 17 00:00:00 2001 From: Thomas Petersen Date: Thu, 4 Jun 2026 14:36:39 -0400 Subject: [PATCH] fix(desktop): simplify profile popover header Co-authored-by: Cursor --- .../features/profile/ui/ProfilePopover.tsx | 33 ++++--------------- .../sidebar/ui/SidebarProfileCard.tsx | 1 - 2 files changed, 6 insertions(+), 28 deletions(-) diff --git a/desktop/src/features/profile/ui/ProfilePopover.tsx b/desktop/src/features/profile/ui/ProfilePopover.tsx index 720703a46..95ccaa340 100644 --- a/desktop/src/features/profile/ui/ProfilePopover.tsx +++ b/desktop/src/features/profile/ui/ProfilePopover.tsx @@ -6,7 +6,6 @@ import { ProfileAvatar } from "@/features/profile/ui/ProfileAvatar"; import { PresenceDot } from "@/features/presence/ui/PresenceBadge"; import { getPresenceLabel } from "@/features/presence/lib/presence"; import { SetStatusDialog } from "@/features/user-status/ui/SetStatusDialog"; -import { StatusEmoji } from "@/features/user-status/ui/StatusEmoji"; import type { PresenceStatus } from "@/shared/api/types"; import { isMacPlatform } from "@/shared/lib/platform"; @@ -18,7 +17,6 @@ interface ProfilePopoverProps { open: boolean; onOpenChange: (open: boolean) => void; displayName: string; - nip05?: string | null; avatarUrl: string | null; currentStatus: PresenceStatus; isStatusPending?: boolean; @@ -56,7 +54,6 @@ export function ProfilePopover({ open, onOpenChange, displayName, - nip05, avatarUrl, currentStatus, isStatusPending, @@ -154,31 +151,13 @@ export function ProfilePopover({

{displayName}

-
- {nip05 ? @{nip05} : null} - {nip05 ? : null} - - - {getPresenceLabel(currentStatus)} - +
+ + {getPresenceLabel(currentStatus)}
- {hasUserStatus ? ( -

- {userStatusEmoji ? ( - - ) : null} - {userStatusText} -

- ) : null}
diff --git a/desktop/src/features/sidebar/ui/SidebarProfileCard.tsx b/desktop/src/features/sidebar/ui/SidebarProfileCard.tsx index ac1985a3b..9112e51ba 100644 --- a/desktop/src/features/sidebar/ui/SidebarProfileCard.tsx +++ b/desktop/src/features/sidebar/ui/SidebarProfileCard.tsx @@ -119,7 +119,6 @@ export function SidebarProfileCard({ open={profilePopoverOpen} onOpenChange={setProfilePopoverOpen} displayName={resolvedDisplayName} - nip05={profile?.nip05Handle} avatarUrl={profile?.avatarUrl ?? null} currentStatus={selfPresenceStatus} isStatusPending={isPresencePending}