fix(web): open each linked PR in its own tab from the "+" menu (#1636)

This commit is contained in:
Clément Fiere
2026-07-09 20:23:17 +02:00
committed by GitHub
parent e7aa5de634
commit 7e2a460f59
12 changed files with 537 additions and 67 deletions
+11
View File
@@ -1,4 +1,15 @@
import type { TaskPR } from "@/lib/types/github";
/** Shared label for the PR dockview panel tab and dropdown items. */
export function prPanelLabel(prNumber: number): string {
return `PR #${prNumber}`;
}
/**
* Stable per-PR identifier for React keys, DOM ids, and e2e test ids.
* Includes owner + repo + PR number so two repos that share a name (or two
* owners that share a repo name) never collide on PR number alone.
*/
export function prIdentitySlug(pr: TaskPR): string {
return `${pr.owner}-${pr.repo}-${pr.pr_number}`;
}