@@ -5,6 +5,9 @@ import { formatProviderSkillDisplayName } from "@t3tools/shared/inlineSkills";
55import { fileBasename } from "@t3tools/shared/path" ;
66import {
77 CircleDashedIcon ,
8+ CircleDotIcon ,
9+ LinkIcon ,
10+ PaintbrushIcon ,
811 ImageIcon ,
912 MessageCircleIcon ,
1013 MessagesSquareIcon ,
@@ -25,6 +28,7 @@ import { ContextChip, ContextChipLabel } from "../ContextChip";
2528import { ContextChipShell } from "../contextChipParts" ;
2629import { PierreEntryIcon } from "./PierreEntryIcon" ;
2730import { SkillChipIcon } from "./SkillInlineText" ;
31+ import { PullRequestGlyph } from "../pullRequest/pullRequestIcons" ;
2832
2933type Theme = "light" | "dark" ;
3034
@@ -40,6 +44,10 @@ const CONTEXT_REFERENCE_ICONS: Record<
4044 "review-comment" : ( ) => < MessageCircleIcon /> ,
4145 thread : ( ) => < MessagesSquareIcon /> ,
4246 environment : ( ) => < MonitorIcon /> ,
47+ "pull-request" : ( ) => < PullRequestGlyph . pullRequest /> ,
48+ jira : ( ) => < LinkIcon /> ,
49+ figma : ( ) => < PaintbrushIcon /> ,
50+ issue : ( ) => < CircleDotIcon /> ,
4351} ;
4452
4553// Mirrors the editor's chip: only a draft record of the same kind resolves a reference.
@@ -97,7 +105,11 @@ export function CollapsedComposerPromptPreview(props: {
97105 return entry ? (
98106 < ContextChipShell
99107 key = { key }
100- kind = { entry . kind }
108+ kind = {
109+ entry . kind === "jira" || entry . kind === "figma" || entry . kind === "issue"
110+ ? "file"
111+ : entry . kind
112+ }
101113 icon = { CONTEXT_REFERENCE_ICONS [ entry . kind ] ( segment . label , props . theme ) }
102114 label = { segment . label }
103115 />
0 commit comments