diff --git a/desktop/src/features/profile/ui/UserProfilePanelSections.tsx b/desktop/src/features/profile/ui/UserProfilePanelSections.tsx index 040f5e288b..e52e951ddb 100644 --- a/desktop/src/features/profile/ui/UserProfilePanelSections.tsx +++ b/desktop/src/features/profile/ui/UserProfilePanelSections.tsx @@ -1,5 +1,5 @@ import * as React from "react"; -import { ChevronDown, ChevronUp, Pencil } from "lucide-react"; +import { ChevronDown, ChevronUp, IdCard, Pencil } from "lucide-react"; import { useAgentWorking } from "@/features/agents/agentWorkingSignal"; import { @@ -38,7 +38,6 @@ import { PassportDialog } from "@/features/profile/ui/PassportDialog"; import { ProfilePersonaPrimaryActions, ProfilePrimaryActions, - ProfileSelfPrimaryActions, } from "@/features/profile/ui/UserProfilePrimaryActions"; import { StatusEmoji } from "@/features/user-status/ui/StatusEmoji"; import { BotIdenticon } from "@/features/messages/ui/BotIdenticon"; @@ -51,6 +50,7 @@ import { cn } from "@/shared/lib/cn"; import { observeElementBlockSize } from "@/shared/layout/observeElementBlockSize"; import { useMeasuredCssVariable } from "@/shared/layout/useMeasuredCssVariable"; import { Badge } from "@/shared/ui/badge"; +import { Tooltip, TooltipContent, TooltipTrigger } from "@/shared/ui/tooltip"; export { AgentInstructionsFocusedView } from "@/features/profile/ui/UserProfilePanelAgentDetails"; @@ -414,6 +414,7 @@ export function ProfileSummaryView({ displayName={displayName} isBot={isBot} onEditAgent={canEditAgent ? handleEditAgent : undefined} + onOpenPassport={onOpenPassport} presenceStatus={avatarStatus} profile={profile} userStatus={userStatus} @@ -434,7 +435,6 @@ export function ProfileSummaryView({ className={primaryActionsMotionClassName} concealed={primaryActionsConcealed} followMutation={followMutation} - onOpenPassport={onOpenPassport} agentActionDisabled={isAgentActionPending} agentActionLabel={ isOwner === true && managedAgent @@ -468,13 +468,6 @@ export function ProfileSummaryView({ unfollowMutation={unfollowMutation} wavePending={isWavePending} /> - ) : isSelf && onOpenPassport ? ( - ) : null} {/* Tab-independent restart badge — visible on every tab so the user @@ -630,6 +623,7 @@ function ProfileHero({ displayName, isBot, onEditAgent, + onOpenPassport, presenceStatus, profile, userStatus, @@ -637,6 +631,7 @@ function ProfileHero({ displayName: string; isBot: boolean; onEditAgent?: () => void; + onOpenPassport?: () => void; presenceStatus: "online" | "away" | "offline" | undefined; profile: ProfileSummaryViewProps["profile"]; userStatus: ProfileSummaryViewProps["userStatus"]; @@ -686,37 +681,60 @@ function ProfileHero({
- {onEditAgent ? ( -

- + + + Passport + + + ) : null} + {onEditAgent ? ( +

- - {displayName} - - {botIndicator} - - -

- ) : ( -

- {displayName} - {botIndicator} -

- )} + + {displayName} + + {botIndicator} + + + + ) : ( +

+ {displayName} + {botIndicator} +

+ )} +
{profile?.about?.trim() ? ( void; onHuddle?: () => void; onMessage?: () => void; - onOpenPassport?: () => void; onWave?: () => void; pubkey: string; unfollowMutation: ReturnType; @@ -81,7 +78,6 @@ export function ProfilePrimaryActions({ onWave !== undefined || onMessage !== undefined || onHuddle !== undefined || - onOpenPassport !== undefined || (onAgentPrimaryAction !== undefined && agentActionLabel !== undefined) || onAgentRestart !== undefined; @@ -144,14 +140,6 @@ export function ProfilePrimaryActions({ testId="user-profile-wave" /> ) : null} - {onOpenPassport ? ( - - ) : null} {showFollowAction ? ( ; - className?: string; - concealed?: boolean; - onOpenPassport: () => void; -}) { - return ( - - - - ); -} - function ProfileActionGroup({ children, className,