fix(web): open each linked PR in its own tab from the "+" menu (#1636)
This commit is contained in:
@@ -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}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user