Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
MUL-8712 fix(sidebar): drop the title tooltip on sidebar issue rows (#10064)
Jiayuan Zhang2d2ec694f18f
diff --git a/packages/views/layout/panels/sidebar-tree.test.tsx b/packages/views/layout/panels/sidebar-tree.test.tsxindex 5c324d08d2..0e3438e84f 100644--- a/packages/views/layout/panels/sidebar-tree.test.tsx+++ b/packages/views/layout/panels/sidebar-tree.test.tsx@@ -227,7 +227,7 @@ describe("sidebar title disclosure", () => {await waitFor(() => expect(document.querySelector("[data-slot=tooltip-content]")).toBeNull());});- it("reveals a clipped issue title after hover while retaining its navigation target", async () => {+ it("shows no tooltip on a clipped issue title", async () => {renderList();const link = screen.getByRole("link", { name: "Issue 1" });clipLabel(screen.getByText("Issue 1"));@@ -238,7 +238,7 @@ describe("sidebar title disclosure", () => {} finally {vi.useRealTimers();}- expect(document.querySelector("[data-slot=tooltip-content]")).toHaveTextContent("Issue 1");+ expect(document.querySelector("[data-slot=tooltip-content]")).toBeNull();expect(link).toHaveAttribute("href", "/acme/issues/issue-1");});});diff --git a/packages/views/layout/panels/sidebar-tree.tsx b/packages/views/layout/panels/sidebar-tree.tsxindex ee7c0a0210..cf73d43448 100644--- a/packages/views/layout/panels/sidebar-tree.tsx+++ b/packages/views/layout/panels/sidebar-tree.tsx@@ -497,23 +497,21 @@ const SidebarIssueRow = memo(function SidebarIssueRow({label={statusLabel}className="size-3"/>- <TruncatedTooltip content={issue.title}>- <AppLink- href={unreadIssueHref(href, unread)}- newTabTitle={issue.title}- aria-current={active ? "page" : undefined}- onKeyDown={onKeyDown}- className={ISSUE_ROW_LINK_CLASS}+ <AppLink+ href={unreadIssueHref(href, unread)}+ newTabTitle={issue.title}+ aria-current={active ? "page" : undefined}+ onKeyDown={onKeyDown}+ className={ISSUE_ROW_LINK_CLASS}+ >+ <ShimmerText+ active={!!agents?.running}+ className={cn("min-w-0 flex-1 truncate", SIDEBAR_SHIMMER_CLASS, !agents && unread && "text-foreground")}>- <ShimmerText- active={!!agents?.running}- className={cn("min-w-0 flex-1 truncate", SIDEBAR_SHIMMER_CLASS, !agents && unread && "text-foreground")}- >- {issue.title}- </ShimmerText>- {agents ? <IssueAgentBadge agents={agents} /> : unread && <IssueUnreadDot unread={unread} />}- </AppLink>- </TruncatedTooltip>+ {issue.title}+ </ShimmerText>+ {agents ? <IssueAgentBadge agents={agents} /> : unread && <IssueUnreadDot unread={unread} />}+ </AppLink></div></IssueActionsContextMenu>);