From bf5bff209f044219a903643716381d4ef2c18f25 Mon Sep 17 00:00:00 2001 From: omartelo Date: Thu, 16 Jul 2026 16:24:38 -0300 Subject: [PATCH] feat: rich session card tooltip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Session card tooltip showed only the working directory, so a long label clipped in the card was unreadable without widening the sidebar. Expand it into a mini card that opens to the right: full label, path, branch, PR and diff badge — reusing the git/pr data the card already computes. Theme it to match the card (bg-card, border, foreground/muted text) instead of the default inverted pill, and let the tooltip arrow inherit the popup background so it follows any themed instance. --- .../src/components/sidebar/SessionCard.tsx | 28 ++++++++++++++++++- frontend/src/components/ui/tooltip.tsx | 2 +- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/sidebar/SessionCard.tsx b/frontend/src/components/sidebar/SessionCard.tsx index 08758bf80..0f970dd98 100644 --- a/frontend/src/components/sidebar/SessionCard.tsx +++ b/frontend/src/components/sidebar/SessionCard.tsx @@ -206,7 +206,33 @@ export function SessionCard({ - {shownPath} + +
+ {session.label} + {shownPath} + {git?.branch && ( + + + + {git.branch} + + {pr && ( + + #{pr.number} + + )} + {git.files > 0 && ( + + + + )} + + )} +
+
setEditing(true)}> diff --git a/frontend/src/components/ui/tooltip.tsx b/frontend/src/components/ui/tooltip.tsx index 96a9ec257..dc8b59d6b 100644 --- a/frontend/src/components/ui/tooltip.tsx +++ b/frontend/src/components/ui/tooltip.tsx @@ -54,7 +54,7 @@ function TooltipContent({ {...props} > {children} - +