@devries-cameron20 / t3code Mirror · read-only / commits / a7028f1399
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 24, 07:45 UTC

fix: use Pierre icons consistently for attachments (#10475)

Julius Marminge committed Sep 6, 2026 at 22:58 UTC a7028f1399911e8ddfd8013914b100ee49b95595
3 files changed +17 -16
apps/mobile/src/components/ComposerAttachmentStrip.tsx
+2 -6
@@ -4,6 +4,7 @@ import { useEffect, useMemo, useState } from "react";
4 import { Image, Pressable, ScrollView, View } from "react-native";
5
6 import { AppText as Text } from "./AppText";
7 +import { PierreEntryIcon } from "./PierreEntryIcon";
8 import {
9 isFileBackedComposerAttachment,
10 type DraftComposerAttachment,
@@ -192,12 +193,7 @@ function ComposerAttachmentContent(props: ComposerAttachmentThumbnailProps) {
193 }
194 style={style}
195 >
195 - <SymbolView
196 - name="doc.text"
197 - size={props.compact ? 15 : 22}
198 - tintColorClassName="accent-icon-subtle"
199 - type="monochrome"
200 - />
196 + <PierreEntryIcon path={attachment.name} kind="file" size={props.compact ? 15 : 22} />
197 {!props.compact ? (
198 <Text className="w-full text-center text-2xs text-foreground" numberOfLines={1}>
199 {attachment.name}
apps/mobile/src/features/threads/ThreadFeed.tsx
+3 -7
@@ -129,6 +129,7 @@ import {
129 import { useAppearancePreferences } from "../settings/appearance/AppearancePreferencesProvider";
130 import { useAppearanceCodeSurface } from "../settings/appearance/useAppearanceCodeSurface";
131 import { markdownFileIconSource } from "@t3tools/mobile-markdown-text/file-icons";
132 +import { PierreEntryIcon } from "../../components/PierreEntryIcon";
133 import { markdownLinkIconSource } from "@t3tools/mobile-markdown-text/link-icons";
134 import {
135 normalizeNativeMarkdownUrl,
@@ -474,12 +475,7 @@ function MessageAttachmentFile(props: {
475 {opening ? (
476 <ActivityIndicator size="small" />
477 ) : (
477 - <SymbolView
478 - name="doc.text"
479 - size={26}
480 - tintColorClassName={isPdf ? "accent-red-500" : "accent-foreground-muted"}
481 - type="monochrome"
482 - />
478 + <PierreEntryIcon path={attachment.name} kind="file" size={26} />
479 )}
480 </View>
481 <View className="min-w-0 flex-1 gap-1">
@@ -508,7 +504,7 @@ function MessageAttachmentFile(props: {
504 function MessageAttachmentUnknown(props: { readonly name: string }) {
505 return (
506 <View className="flex-row items-center gap-2 py-1">
511 - <SymbolView name="doc.text" size={16} tintColor="#a3a3a3" type="monochrome" />
507 + <PierreEntryIcon path={props.name} kind="file" size={16} />
508 <Text className="min-w-0 flex-1 text-sm text-foreground" numberOfLines={1}>
509 {props.name}
510 </Text>
apps/web/src/components/chat/ChatComposer.tsx
+12 -3
@@ -208,6 +208,7 @@ import {
208 submitComposerDraft,
209 } from "./composerSubmission";
210 import { ComposerPromptLengthValidation } from "./ComposerPromptLengthValidation";
211 +import { PierreEntryIcon } from "./PierreEntryIcon";
212 import {
213 createComposerScrollGestureState,
214 recordComposerScrollGestureEvent,
@@ -783,7 +784,6 @@ import { toastManager } from "../ui/toast";
784 import {
785 BotIcon,
786 CircleAlertIcon,
786 - FileIcon,
787 PaperclipIcon,
788 PencilRulerIcon,
789 PlayIcon,
@@ -3767,7 +3767,12 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
3767 {image.previewUrl ? (
3768 <img src={image.previewUrl} alt="" className="size-full object-cover" />
3769 ) : (
3770 - <FileIcon className="m-auto size-3.5 text-secondary-label" />
3770 + <PierreEntryIcon
3771 + pathValue={image.name}
3772 + kind="file"
3773 + theme={resolvedTheme}
3774 + className="m-auto size-3.5"
3775 + />
3776 )}
3777 </button>
3778 ))}
@@ -5320,7 +5325,11 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
5325 key={file.id}
5326 className="flex min-w-0 items-center gap-2 py-1 text-sm text-foreground"
5327 >
5323 - <FileIcon className="size-4 shrink-0 text-secondary-label" />
5328 + <PierreEntryIcon
5329 + pathValue={file.name}
5330 + kind="file"
5331 + theme={resolvedTheme}
5332 + />
5333 <span className="min-w-0 flex-1 truncate">{file.name}</span>
5334 <span className="shrink-0 text-xs text-secondary-label">
5335 {needsReattach