@devries-cameron20 / t3code Mirror · read-only / commits / 2c2fa8cd7d
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 23, 23:00 UTC

fix(web): pull request embed chip shows the state icon (#12951)

oliver committed Sep 21, 2026 at 14:58 UTC 2c2fa8cd7ded97be76587ae1cfce54ee0a65f544
1 file changed +5 -4
apps/web/src/components/contextChipParts.tsx
+5 -4
@@ -9,7 +9,7 @@ import {
9 } from "react";
10
11 import { cn } from "~/lib/utils";
12 -import { PullRequestGlyph } from "~/components/pullRequest/pullRequestIcons";
12 +import { PULL_REQUEST_STATE_PRESENTATION } from "~/components/pullRequest/pullRequestIcons";
13 import { PierreEntryIcon } from "./chat/PierreEntryIcon";
14 import {
15 COMPOSER_INLINE_CHIP_ICON_CLASS_NAME,
@@ -123,6 +123,9 @@ export function PullRequestChip(props: {
123 onOpen: (event: MouseEvent<HTMLElement>, url: string) => void;
124 }) {
125 const previewTarget = usePullRequestPreviewTarget(props.environmentId, props.metadata.url);
126 + const displayState =
127 + props.metadata.state === "open" && props.metadata.isDraft ? "draft" : props.metadata.state;
128 + const StateIcon = PULL_REQUEST_STATE_PRESENTATION[displayState].Icon;
129 const button = (
130 <Button
131 variant="chip"
@@ -136,9 +139,7 @@ export function PullRequestChip(props: {
139 data-markdown-copy={props.copyMarkdown}
140 onClick={(event) => props.onOpen(event, props.metadata.url)}
141 >
139 - <PullRequestGlyph.pullRequest
140 - className={cn(COMPOSER_INLINE_CHIP_ICON_CLASS_NAME, "size-3.5")}
141 - />
142 + <StateIcon className={cn(COMPOSER_INLINE_CHIP_ICON_CLASS_NAME, "size-3.5")} />
143 <span className={props.labelClassName}>{props.label}</span>
144 </Button>
145 );