authorgravatar for 62337003+Bil0000@users.noreply.github.comBilal Bakr <62337003+Bil0000@users.noreply.github.com> 2026-09-24 19:20:52+03:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-24 09:20:52-07:00
logcb1a3f34670b06148d88806a9534772879c30ecd
tree360667b4d1e1fe4c6ed8b9cbe07788fae31717d7
parentb2b43bef73447c483ceae486890cb79f01c369cb
signature Signed by PGP key B5690EEEBB952194

fix(web): show repository names on linked pull requests (#13061)


1 files changed, 12 insertions(+), 1 deletions(-)

apps/web/src/components/pullRequest/ThreadPullRequestsPanel.tsx+12-1
...@@ -16,6 +16,7 @@ import { useAtomCommand } from "~/state/use-atom-command";...@@ -16,6 +16,7 @@ import { useAtomCommand } from "~/state/use-atom-command";
16import { formatRelativeTimeLabel } from "~/timestampFormat";16import { formatRelativeTimeLabel } from "~/timestampFormat";
17import { Button } from "../ui/button";17import { Button } from "../ui/button";
18import { Menu, MenuItem, MenuPopup, MenuTrigger } from "../ui/menu";18import { Menu, MenuItem, MenuPopup, MenuTrigger } from "../ui/menu";
19import { MiddleTruncate } from "../ui/middle-truncate";
19import { ScrollArea } from "../ui/scroll-area";20import { ScrollArea } from "../ui/scroll-area";
20import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";21import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
21import { openLinkPullRequestDialog } from "./LinkPullRequestDialog";22import { openLinkPullRequestDialog } from "./LinkPullRequestDialog";
...@@ -161,7 +162,17 @@ function LinkRow({...@@ -161,7 +162,17 @@ function LinkRow({
161 />162 />
162 ) : null}163 ) : null}
163 {snapshot !== null ? (164 {snapshot !== null ? (
164 <PullRequestRowBranches head={snapshot.headBranch} base={snapshot.baseBranch} />165 <>
166 {/* Cut in the middle: rows from one owner differ in the repository name at the
167 end, which a tail cut would hide. */}
168 <Tooltip>
169 <TooltipTrigger render={<span className="flex min-w-0 max-w-32 font-mono" />}>
170 <MiddleTruncate value={link.repository} showTitle={false} />
171 </TooltipTrigger>
172 <TooltipPopup>{link.repository}</TooltipPopup>
173 </Tooltip>
174 <PullRequestRowBranches head={snapshot.headBranch} base={snapshot.baseBranch} />
175 </>
165 ) : (176 ) : (
166 <span className="truncate font-mono">177 <span className="truncate font-mono">
167 {link.host}/{link.repository}178 {link.host}/{link.repository}