| ... | ... | @@ -141,7 +141,6 @@ import { |
| 141 | 141 | } from "./pullRequestProjectAssignment.logic"; |
| 142 | 142 | import { PullRequestChecksPopover } from "./PullRequestChecksPopover"; |
| 143 | 143 | import { |
| 144 | | PullRequestActorAvatar, |
| 145 | 144 | PullRequestActorLabel, |
| 146 | 145 | PullRequestDiffStat, |
| 147 | 146 | PullRequestMetaLine, |
| ... | ... | @@ -656,6 +655,13 @@ export function PullRequestDetailPanel({ |
| 656 | 655 | if (detail?.autoMergeMethod !== undefined) setMergeMethod(detail.autoMergeMethod); |
| 657 | 656 | }, [detail?.autoMergeMethod, pullRequestKey]); |
| 658 | 657 | const repositoryUrl = detail === null ? null : changeRequestRepositoryUrl(detail.url); |
| 658 | const authorProfileUrl = |
| 659 | detail?.provider === "github" && |
| 660 | detail.author !== null && |
| 661 | !detail.author.login.endsWith("[bot]") && |
| 662 | repositoryUrl !== null |
| 663 | ? new URL(`/${encodeURIComponent(detail.author.login)}`, repositoryUrl).toString() |
| 664 | : null; |
| 659 | 665 | const checkoutCommand = detail |
| 660 | 666 | ? pullRequestCheckoutCommand( |
| 661 | 667 | detail.provider, |
| ... | ... | @@ -1870,19 +1876,12 @@ export function PullRequestDetailPanel({ |
| 1870 | 1876 | <div className="col-span-2 min-w-0 px-4 pb-2 pt-1"> |
| 1871 | 1877 | <div className="flex min-w-0 items-center gap-2 text-xs text-muted-foreground"> |
| 1872 | 1878 | <span className="flex min-w-0 shrink items-center gap-1.5 overflow-hidden text-xs text-muted-foreground"> |
| 1873 | | <Tooltip> |
| 1874 | | <TooltipTrigger |
| 1875 | | render={ |
| 1876 | | <span |
| 1877 | | className="shrink-0 rounded-full" |
| 1878 | | aria-label={detail.author?.login ?? "ghost"} |
| 1879 | | /> |
| 1880 | | } |
| 1881 | | > |
| 1882 | | <PullRequestActorAvatar actor={detail.author} /> |
| 1883 | | </TooltipTrigger> |
| 1884 | | <TooltipPopup side="top">{detail.author?.login ?? "ghost"}</TooltipPopup> |
| 1885 | | </Tooltip> |
| 1879 | <PullRequestActorLabel |
| 1880 | actor={detail.author} |
| 1881 | profileUrl={authorProfileUrl} |
| 1882 | className="shrink-0 rounded-full" |
| 1883 | labelClassName="sr-only" |
| 1884 | /> |
| 1886 | 1885 | <span className="shrink-0">{formatRelativeTimeLabel(detail.updatedAt)}</span> |
| 1887 | 1886 | </span> |
| 1888 | 1887 | <span aria-hidden className="h-3 w-px shrink-0 bg-border/70" /> |
| ... | ... | @@ -2042,7 +2041,11 @@ export function PullRequestDetailPanel({ |
| 2042 | 2041 | )} |
| 2043 | 2042 | <div className="mt-2 flex min-w-0 items-center gap-2 text-xs text-muted-foreground"> |
| 2044 | 2043 | <PullRequestMetaLine className="min-w-0 whitespace-nowrap"> |
| 2045 | | <PullRequestActorLabel actor={detail.author} className="font-medium" /> |
| 2044 | <PullRequestActorLabel |
| 2045 | actor={detail.author} |
| 2046 | profileUrl={authorProfileUrl} |
| 2047 | className="font-medium" |
| 2048 | /> |
| 2046 | 2049 | <span>updated {formatRelativeTimeLabel(detail.updatedAt)}</span> |
| 2047 | 2050 | </PullRequestMetaLine> |
| 2048 | 2051 | {checkoutCommand ? ( |