From 4188f3132667e72785a022ef92cc32dc09c0ac8c Mon Sep 17 00:00:00 2001 From: Thomas Petersen Date: Wed, 6 May 2026 14:19:44 -0400 Subject: [PATCH] Fix desktop header and popover smoke checks Restore channel descriptions in the header and make the profile popover smoke test target the profile popover explicitly. Co-authored-by: Cursor --- desktop/src/features/chat/ui/ChatHeader.tsx | 8 ++++++++ desktop/src/features/profile/ui/UserProfilePopover.tsx | 3 +++ desktop/tests/e2e/mentions.spec.ts | 9 +++------ 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/desktop/src/features/chat/ui/ChatHeader.tsx b/desktop/src/features/chat/ui/ChatHeader.tsx index 102569732c..fb343b7700 100644 --- a/desktop/src/features/chat/ui/ChatHeader.tsx +++ b/desktop/src/features/chat/ui/ChatHeader.tsx @@ -99,6 +99,14 @@ export function ChatHeader({ ) : null} + {trimmedDescription ? ( +

+ {trimmedDescription} +

+ ) : null} {actions ?
{actions}
: null} diff --git a/desktop/src/features/profile/ui/UserProfilePopover.tsx b/desktop/src/features/profile/ui/UserProfilePopover.tsx index a2ec0555b1..632d94fbcd 100644 --- a/desktop/src/features/profile/ui/UserProfilePopover.tsx +++ b/desktop/src/features/profile/ui/UserProfilePopover.tsx @@ -121,6 +121,7 @@ export function UserProfilePopover({ clearHoverTimer(); if (openProfilePanel) { event.preventDefault(); + event.stopPropagation(); setOpen(false); openProfilePanel(pubkey); } @@ -143,6 +144,7 @@ export function UserProfilePopover({ onKeyDown={(e) => { if ((e.key === "Enter" || e.key === " ") && openProfilePanel) { e.preventDefault(); + e.stopPropagation(); clearHoverTimer(); setOpen(false); openProfilePanel(pubkey); @@ -158,6 +160,7 @@ export function UserProfilePopover({