Skip to content

Commit 940da57

Browse files
committed
fix(web): route context PR glyphs through shared vocabulary
1 parent 4ba8c63 commit 940da57

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎apps/web/src/components/composerContextPresentation.tsx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ReadOnlySourcePreview } from "./files/AttachmentFilePreview";
33
import type { PreviewAnnotationPayload } from "@t3tools/contracts";
44
import { formatAttachmentSize } from "@t3tools/client-runtime/state/attachments";
55
import { videoMimeType } from "@t3tools/shared/video";
6-
import { GitPullRequestIcon, MessageCircleIcon, MousePointerClickIcon } from "lucide-react";
6+
import { MessageCircleIcon, MousePointerClickIcon } from "lucide-react";
77
import { createContext, type MouseEvent, type ReactElement, type ReactNode, use } from "react";
88

99
import type { ComposerFileAttachment, ComposerImageAttachment } from "~/composerDraftStore";
@@ -14,6 +14,7 @@ import {
1414
type AttachmentUploadState,
1515
} from "~/lib/attachmentUploadState";
1616
import { cn } from "~/lib/utils";
17+
import { PullRequestGlyph } from "~/components/pullRequest/pullRequestIcons";
1718
import {
1819
fileContextReference,
1920
imageContextReference,
@@ -392,7 +393,7 @@ const composerContextPresentationRegistry = createContextPresentationRegistry<
392393
<ContextChip
393394
icon={
394395
isPullRequest ? (
395-
<GitPullRequestIcon
396+
<PullRequestGlyph.pullRequest
396397
className={cn(
397398
COMPOSER_INLINE_CHIP_ICON_CLASS_NAME,
398399
CONTEXT_INLINE_CHIP_ICON_TONE_CLASS_NAMES["pull-request"],

‎apps/web/src/components/contextChipParts.tsx‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { PullRequestContextMetadata } from "@t3tools/contracts";
2-
import { CircleDashedIcon, FilmIcon, GitPullRequestIcon, ImageIcon } from "lucide-react";
2+
import { CircleDashedIcon, FilmIcon, ImageIcon } from "lucide-react";
33
import {
44
useState,
55
type ComponentProps,
@@ -9,6 +9,7 @@ import {
99
} from "react";
1010

1111
import { cn } from "~/lib/utils";
12+
import { PullRequestGlyph } from "~/components/pullRequest/pullRequestIcons";
1213
import { PierreEntryIcon } from "./chat/PierreEntryIcon";
1314
import {
1415
COMPOSER_INLINE_CHIP_ICON_CLASS_NAME,
@@ -134,7 +135,9 @@ export function PullRequestChip(props: {
134135
data-markdown-copy={props.copyMarkdown}
135136
onClick={(event) => props.onOpen(event, props.metadata.url)}
136137
>
137-
<GitPullRequestIcon className={cn(COMPOSER_INLINE_CHIP_ICON_CLASS_NAME, "size-3.5")} />
138+
<PullRequestGlyph.pullRequest
139+
className={cn(COMPOSER_INLINE_CHIP_ICON_CLASS_NAME, "size-3.5")}
140+
/>
138141
<span className={props.labelClassName}>{props.label}</span>
139142
</Button>
140143
}

0 commit comments

Comments
 (0)