Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): open View PR externally with modifier click #7099

Closedstephenjason89(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/7099/headopened View on GitHub

Showing 1 changed file with 56 additions and 45 deletions.

x
0 of 1 viewed, 1 left
56 additions and 45 deletionsapps/web/src/components/GitActionsControl.tsxModified
View file
@@ -17,7 +17,15 @@
} from "@t3tools/contracts";
import { useNavigate } from "@tanstack/react-router";
import * as Option from "effect/Option";
-import { useCallback, useEffect, useEffectEvent, useMemo, useRef, useState } from "react";
+import {
+ type MouseEvent,
+ useCallback,
+ useEffect,
+ useEffectEvent,
+ useMemo,
+ useRef,
+ useState,
+} from "react";
import { flushSync } from "react-dom";
import {
CheckIcon,
@@ -90,7 +98,7 @@
import { type DraftId, useComposerDraftStore } from "~/composerDraftStore";
import { readLocalApi } from "~/localApi";
import { getSourceControlPresentation } from "~/sourceControlPresentation";
-import { openPullRequestLink } from "~/lib/openPullRequestLink";
+import { openPullRequestLink, shouldOpenPullRequestExternally } from "~/lib/openPullRequestLink";
​
interface GitActionsControlProps {
gitCwd: string | null;
@@ -1220,44 +1228,47 @@