From 06ae9b2a0cd07feffd6e9fb85e8e985d4f85504e Mon Sep 17 00:00:00 2001 From: Jiayuan Zhang Date: Fri, 19 Jun 2026 10:23:10 +0200 Subject: [PATCH] fix sidebar issue pin labels (#4334) --- packages/views/layout/app-sidebar.test.tsx | 5 +++-- packages/views/layout/app-sidebar.tsx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/views/layout/app-sidebar.test.tsx b/packages/views/layout/app-sidebar.test.tsx index ca4d5fb2d..3474eae7a 100644 --- a/packages/views/layout/app-sidebar.test.tsx +++ b/packages/views/layout/app-sidebar.test.tsx @@ -172,7 +172,8 @@ describe("PinRow", () => { it("renders loaded details", async () => { detail.current = { isPending: false, isError: false, data: { identifier: "MUL-123", title: "Keep this pin", status: "todo" }, error: null }; render(); - expect(await screen.findByText("MUL-123 Keep this pin")).toBeInTheDocument(); + expect(await screen.findByText("Keep this pin")).toBeInTheDocument(); + expect(screen.queryByText("MUL-123 Keep this pin")).not.toBeInTheDocument(); }); it("does not also highlight the parent workspace nav for an active pin", async () => { @@ -186,7 +187,7 @@ describe("PinRow", () => { const { container } = render(); - expect((await screen.findByText("MUL-123 Keep this pin")).closest("button")).toHaveAttribute( + expect((await screen.findByText("Keep this pin")).closest("button")).toHaveAttribute( "data-active", "true", ); diff --git a/packages/views/layout/app-sidebar.tsx b/packages/views/layout/app-sidebar.tsx index 401917163..79fda8775 100644 --- a/packages/views/layout/app-sidebar.tsx +++ b/packages/views/layout/app-sidebar.tsx @@ -286,7 +286,7 @@ function PinRow({ if (issueQuery.isPending) return ; if (issueQuery.isError || !issueQuery.data) return null; const issue = issueQuery.data; - const label = issue.identifier ? `${issue.identifier} ${issue.title}` : issue.title; + const label = issue.title; const iconNode = ( /* Override parent [&_svg]:size-4 — pinned items need smaller icons to match sm size */