diff --git a/apps/web/src/components/pullRequest/PullRequestDetailPanel.tsx b/apps/web/src/components/pullRequest/PullRequestDetailPanel.tsx index 5678533a97eb..1a6d4bbb5d8f 100644 --- a/apps/web/src/components/pullRequest/PullRequestDetailPanel.tsx +++ b/apps/web/src/components/pullRequest/PullRequestDetailPanel.tsx @@ -1787,6 +1787,7 @@ export function PullRequestDetailPanel({ @@ -1882,7 +1883,11 @@ export function PullRequestDetailPanel({ /> } author={ - + } updated={ diff --git a/apps/web/src/components/pullRequest/PullRequestSummaryTab.browser.test.tsx b/apps/web/src/components/pullRequest/PullRequestSummaryTab.browser.test.tsx index a74b8f716604..6d7c4f39267a 100644 --- a/apps/web/src/components/pullRequest/PullRequestSummaryTab.browser.test.tsx +++ b/apps/web/src/components/pullRequest/PullRequestSummaryTab.browser.test.tsx @@ -394,3 +394,35 @@ it("opens comment timestamps through the link-target setting, not a popup", asyn localStorage.removeItem("t3code:pull-request-comment-filter:v1"); } }); + +it("opens a comment author's profile through the link-target setting, not a popup", async () => { + setup(); + await using screen = await render({ + ...detail, + comments: [ + { + id: "1", + kind: "issue-comment" as const, + body: "Looks good", + author: { login: "reviewer", name: null, avatarUrl: null }, + createdAt: "2026-09-01T00:00:00Z", + url: null, + path: null, + reviewState: null, + }, + ], + commentCount: 1, + }); + const link = await vi.waitFor(() => { + const found = screen.container.querySelector('a[aria-label="Open reviewer\'s profile"]'); + expect(found).not.toBeNull(); + return found!; + }); + const href = link.getAttribute("href")!; + const click = new MouseEvent("click", { bubbles: true, cancelable: true }); + link.dispatchEvent(click); + + expect(click.defaultPrevented).toBe(true); + expect(state.openLink).toHaveBeenCalledOnce(); + expect(state.openLink).toHaveBeenCalledWith(href, { event: expect.anything() }); +}); diff --git a/apps/web/src/components/pullRequest/PullRequestSummaryTab.tsx b/apps/web/src/components/pullRequest/PullRequestSummaryTab.tsx index 5df3b61feece..f8b19eee80de 100644 --- a/apps/web/src/components/pullRequest/PullRequestSummaryTab.tsx +++ b/apps/web/src/components/pullRequest/PullRequestSummaryTab.tsx @@ -135,7 +135,12 @@ function CommentIdentity({ : null; return (

- + @@ -529,6 +534,10 @@ export function PullRequestActorLabel({ aria-label={gt("Open {login}'s profile", { login })} /> } + onClick={(event) => { + event.preventDefault(); + void openLink(profileUrl, { event }).catch(console.error); + }} /> ) : (