Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): keep earlier PR selections and findings in the composer #25136

Closedjuliusmarmingewants to merge 5 commits intomain fromrefs/pull/25136/headopened View on GitHub

Showing 4 changed files with 7 additions and 35 deletions (loading 3).

x
0 of 4 viewed, 4 left
7 additions and 35 deletionsapps/web/src/components/pullRequest/PullRequestDetailPanel.tsxModified
View file
@@ -116,8 +116,8 @@
buildFixFindingHandoff,
buildFixFindingsHandoff,
buildResolveConflictsPrompt,
- handoffPrompt,
- handoffReviewComments,
+ type ComposerHandoff,
+ writeHandoffToComposer,
latestPullRequestReviewOutcomes,
loadingPullRequestCheckoutCommand,
isPullRequestNotFound,
@@ -137,7 +137,6 @@
resolvePullRequestMergeMethod,
type PullRequestFinding,
shouldRefreshPullRequestActivity,
- stripPullRequestHandoffReferences,
} from "./pullRequestDetail.logic";
import { resolvePickableEnvironments } from "./pullRequestProjectAssignment.logic";
import { PullRequestChecksPopover } from "./PullRequestChecksPopover";
@@ -205,7 +204,7 @@
const PullRequestCodeTab = lazy(loadCodeTab);
​
// Persist handoffs across unmounts; replace only unchanged contributions to preserve user edits.
-const lastHandoffPromptByDraft = new Map<string, string>();
+const lastHandoffByDraft = new Map<string, ComposerHandoff>();
​
const composerTargetKey = (target: ScopedThreadRef | DraftId): string =>
typeof target === "string" ? target : scopedThreadKey(target);