@devries-cameron20 / t3code-1 / commits / ea0487cc9a
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

refactor(web): remove unused pull request state label (#9984)

Julius Marminge committed Sep 5, 2026 at 00:12 UTC ea0487cc9adf9f51c865fe39128102afc532bcfc
2 files changed -17
apps/web/src/components/pullRequest/pullRequestDetail.logic.test.ts
-10
@@ -38,7 +38,6 @@ import {
38 shouldRefreshPullRequestActivity,
39 resolveBaseFreshness,
40 buildPullRequestTimeline,
41 - describePullRequestState,
41 editPullRequestThreadComment,
42 writePullRequestDetailSnapshot,
43 } from "./pullRequestDetail.logic";
@@ -199,15 +198,6 @@ describe("pull request primary control", () => {
198 });
199 });
200
202 -describe("pull request state description", () => {
203 - it("keeps draft and conflicts orthogonal to the terminal states", () => {
204 - expect(describePullRequestState("open", true)).toBe("Draft");
205 - expect(describePullRequestState("open", false)).toBe("Ready for review");
206 - expect(describePullRequestState("merged", true)).toBe("Merged");
207 - expect(describePullRequestState("closed", false)).toBe("Closed");
208 - });
209 -});
210 -
201 describe("pull request handoff labels", () => {
202 it("names the open thread when actions write to its composer", () => {
203 expect(pullRequestHandoffLabels(true)).toEqual({
apps/web/src/components/pullRequest/pullRequestDetail.logic.ts
-7
@@ -189,13 +189,6 @@ export function isStackedPullRequestBase(
189 return defaultBranch !== baseBranch;
190 }
191
192 -/** Plain-language state, shown beside the author. Conflicts are a merge signal, not a state. */
193 -export function describePullRequestState(state: PullRequestState, isDraft: boolean): string {
194 - if (state === "merged") return "Merged";
195 - if (state === "closed") return "Closed";
196 - return isDraft ? "Draft" : "Ready for review";
197 -}
198 -
192 /** Chronological ascending, oldest to newest — reversed for the "newest" reading order. */
193 export function orderPullRequestComments<T extends { readonly createdAt: string }>(
194 comments: ReadonlyArray<T>,