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 21, 23:30 UTC
refactor(web): remove icon morphing (#33985)
Toggle and copy icons swap instantly through lucide-react again. Drops the MorphIcon wrapper plus the morphicons and vanilla lucide dependencies that only it used.
maria committed
Nov 11, 2026 at 03:19 UTC
0f13d2ccbd76ee1fc314b8c54f575f9691f78b51
36 files changed
+264
-242
apps/web/package.json
-2
@@ -68,11 +68,9 @@
68
"jsonc-parser": "3.3.1",
69
"jszip": "3.10.1",
70
"katex": "^0.18.2",
71
- "lucide": "^0.564.0",
71
"lucide-react": "^0.564.0",
72
"mdast-util-from-markdown": "^2.0.3",
73
"micromark-util-combine-extensions": "^2.0.1",
75
- "morphicons": "^1.7.1",
74
"pdfjs-dist": "6.4.299",
75
"pele": "catalog:",
76
"react": "catalog:",
apps/web/src/components/CommandBlock.tsx
+2
-3
@@ -1,6 +1,5 @@
1
-import { Check, Copy } from "lucide";
1
+import { CheckIcon, CopyIcon } from "lucide-react";
2
3
-import { MorphIcon } from "~/components/MorphIcon";
3
import { useCopyToClipboard } from "~/hooks/useCopyToClipboard";
4
import { cn } from "~/lib/utils";
5
@@ -37,7 +36,7 @@ export function CommandBlock({
36
aria-label="Copy command"
37
onClick={() => copyToClipboard(command, undefined)}
38
>
40
- <MorphIcon className="size-3.5" icon={isCopied ? Check : Copy} />
39
+ {isCopied ? <CheckIcon className="size-3.5" /> : <CopyIcon className="size-3.5" />}
40
</Button>
41
</div>
42
);
apps/web/src/components/DiffFilePathCopyButton.tsx
+2
-7
@@ -1,14 +1,12 @@
1
-import { Check, Copy } from "lucide";
1
+import { CheckIcon, CopyIcon } from "lucide-react";
2
import { useRef } from "react";
3
import { useCopyToClipboard } from "../hooks/useCopyToClipboard";
4
-import { cn } from "../lib/utils";
4
import {
5
ANCHORED_COPY_TOAST_TIMEOUT_MS,
6
showAnchoredCopyErrorToast,
7
showAnchoredCopySuccessToast,
8
} from "./ui/anchoredCopyToast";
9
import { Button } from "./ui/button";
11
-import { MorphIcon } from "~/components/MorphIcon";
10
import { Tooltip, TooltipPopup, TooltipTrigger } from "./ui/tooltip";
11
12
export function DiffFilePathCopyButton({ filePath }: { filePath: string }) {
@@ -32,10 +30,7 @@ export function DiffFilePathCopyButton({ filePath }: { filePath: string }) {
30
/>
31
}
32
>
35
- <MorphIcon
36
- className={cn("size-3", isCopied && "text-success")}
37
- icon={isCopied ? Check : Copy}
38
- />
33
+ {isCopied ? <CheckIcon className="size-3 text-success" /> : <CopyIcon className="size-3" />}
34
</TooltipTrigger>
35
<TooltipPopup>
36
<p>{isCopied ? "Copied" : "Copy path"}</p>
apps/web/src/components/DiffPanel.tsx
+13
-10
@@ -17,8 +17,10 @@ import {
17
PilcrowIcon,
18
Rows3Icon,
19
TextWrapIcon,
20
+ ChevronRightIcon,
21
+ ChevronsDownUpIcon,
22
+ ChevronsUpDownIcon,
23
} from "lucide-react";
21
-import { ChevronDown, ChevronRight, ChevronsDownUp, ChevronsUpDown } from "lucide";
24
import * as Schema from "effect/Schema";
25
import { type MouseEvent, useEffect, useRef, useState } from "react";
26
import { useCodeViewFileReveal } from "./diffs/useCodeViewFileReveal";
@@ -70,7 +72,6 @@ import { DiffFileTree } from "./diffs/DiffFileTree";
72
import { FileExplorerPane } from "./files/FileExplorerPane";
73
import { diffFileTreeEntries } from "./diffs/diffFileTree.logic";
74
import { Button } from "./ui/button";
73
-import { MorphIcon } from "~/components/MorphIcon";
75
import { ToggleGroup, Toggle } from "./ui/toggle-group";
76
import { Switch } from "./ui/switch";
77
import {
@@ -172,10 +173,11 @@ function DiffFileCollapseToggle({
173
/>
174
}
175
>
175
- <MorphIcon
176
- className="size-4 text-muted-foreground/80"
177
- icon={collapsed ? ChevronRight : ChevronDown}
178
- />
176
+ {collapsed ? (
177
+ <ChevronRightIcon className="size-4 text-muted-foreground/80" />
178
+ ) : (
179
+ <ChevronDownIcon className="size-4 text-muted-foreground/80" />
180
+ )}
181
</TooltipTrigger>
182
<TooltipPopup side="top">{collapsed ? "Expand diff" : "Collapse diff"}</TooltipPopup>
183
</Tooltip>
@@ -1159,10 +1161,11 @@ export default function DiffPanel({
1161
/>
1162
}
1163
>
1162
- <MorphIcon
1163
- className="size-3.5"
1164
- icon={allDiffFilesCollapsed ? ChevronsUpDown : ChevronsDownUp}
1165
- />
1164
+ {allDiffFilesCollapsed ? (
1165
+ <ChevronsUpDownIcon className="size-3.5" />
1166
+ ) : (
1167
+ <ChevronsDownUpIcon className="size-3.5" />
1168
+ )}
1169
</TooltipTrigger>
1170
<TooltipPopup side="top">
1171
{allDiffFilesCollapsed ? "Expand all files" : "Collapse all files"}
apps/web/src/components/MorphIcon.tsx
deleted
-5
@@ -1,5 +0,0 @@
1
-import { MorphIcon as BaseMorphIcon, type MorphIconProps } from "morphicons/react";
2
-
3
-export function MorphIcon({ reducedMotion = "user", ...props }: MorphIconProps) {
4
- return <BaseMorphIcon reducedMotion={reducedMotion} {...props} />;
5
-}
apps/web/src/components/RightPanelTabs.tsx
+7
-3
@@ -46,8 +46,9 @@ import {
46
MessagesSquare,
47
Plus,
48
TerminalSquare,
49
+ Volume2Icon,
50
+ VolumeOffIcon,
51
} from "lucide-react";
50
-import { Volume2, VolumeOff } from "lucide";
52
import {
53
type KeyboardEvent as ReactKeyboardEvent,
54
type MouseEvent as ReactMouseEvent,
@@ -67,7 +68,6 @@ import { resolveShortcutCommand, type ShortcutMatchContext } from "~/keybindings
68
import { readLocalApi } from "~/localApi";
69
import { useStableCallback } from "~/hooks/useStableCallback";
70
import { Button } from "~/components/ui/button";
70
-import { MorphIcon } from "~/components/MorphIcon";
71
import { AndroidIcon, AppleIcon } from "~/components/Icons";
72
import { Tooltip, TooltipPopup, TooltipTrigger } from "~/components/ui/tooltip";
73
import { Kbd } from "~/components/ui/kbd";
@@ -940,7 +940,11 @@ function RightPanelTab(
940
.catch(() => undefined);
941
}}
942
>
943
- <MorphIcon className="size-3" icon={audio === "muted" ? VolumeOff : Volume2} />
943
+ {audio === "muted" ? (
944
+ <VolumeOffIcon className="size-3" />
945
+ ) : (
946
+ <Volume2Icon className="size-3" />
947
+ )}
948
</button>
949
}
950
/>
apps/web/src/components/chat/ChangedFilesTree.tsx
+18
-11
@@ -3,15 +3,20 @@ import { type OrchestrationV2CheckpointFileTotals, type RunId } from "@t3tools/c
3
import { type MouseEvent, type ReactNode, memo, useLayoutEffect, useRef, useState } from "react";
4
import { type TurnDiffFileChange } from "../../types";
5
import { buildTurnDiffTree, type TurnDiffTreeNode } from "../../lib/turnDiffTree";
6
-import { ChevronRightIcon, FileDiffIcon } from "lucide-react";
7
-import { ChevronsDownUp, ChevronsUpDown, Folder, FolderClosed } from "lucide";
6
+import {
7
+ ChevronRightIcon,
8
+ FileDiffIcon,
9
+ ChevronsDownUpIcon,
10
+ ChevronsUpDownIcon,
11
+ FolderClosedIcon,
12
+ FolderIcon,
13
+} from "lucide-react";
14
import { cn } from "~/lib/utils";
15
import { DiffStatLabel, hasNonZeroStat } from "./DiffStatLabel";
16
import { PierreEntryIcon } from "./PierreEntryIcon";
17
import { Button } from "../ui/button";
18
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
19
import { MiddleTruncate } from "../ui/middle-truncate";
14
-import { MorphIcon } from "~/components/MorphIcon";
20
import { observeResize } from "~/lib/observeResize";
21
22
const EMPTY_DIRECTORY_OVERRIDES: Record<string, boolean> = {};
@@ -92,10 +97,11 @@ export const ChangedFilesCard = memo(function ChangedFilesCard(props: {
97
/>
98
}
99
>
95
- <MorphIcon
96
- className="size-3"
97
- icon={allDirectoriesExpanded ? ChevronsDownUp : ChevronsUpDown}
98
- />
100
+ {allDirectoriesExpanded ? (
101
+ <ChevronsDownUpIcon className="size-3" />
102
+ ) : (
103
+ <ChevronsUpDownIcon className="size-3" />
104
+ )}
105
</TooltipTrigger>
106
<TooltipPopup side="top">
107
{allDirectoriesExpanded ? "Collapse all folders" : "Expand all folders"}
@@ -211,10 +217,11 @@ const ChangedFilesTree = memo(function ChangedFilesTree(props: {
217
isExpanded && "rotate-90",
218
)}
219
/>
214
- <MorphIcon
215
- className="size-3.5 shrink-0 text-muted-foreground/75"
216
- icon={isExpanded ? Folder : FolderClosed}
217
- />
220
+ {isExpanded ? (
221
+ <FolderIcon className="size-3.5 shrink-0 text-muted-foreground/75" />
222
+ ) : (
223
+ <FolderClosedIcon className="size-3.5 shrink-0 text-muted-foreground/75" />
224
+ )}
225
<span className="truncate font-mono text-2xs text-muted-foreground/90 group-hover:text-foreground/90">
226
{node.name}
227
</span>
apps/web/src/components/chat/ComposerPrimaryActions.tsx
+11
-4
@@ -1,7 +1,12 @@
1
import { memo, type MouseEventHandler, type PointerEventHandler, type ReactNode } from "react";
2
-import { CheckIcon, ChevronLeftIcon, Minimize2Icon, PlayIcon } from "lucide-react";
3
-import { CornerUpRight, ListPlus } from "lucide";
4
-import { MorphIcon } from "~/components/MorphIcon";
2
+import {
3
+ CheckIcon,
4
+ ChevronLeftIcon,
5
+ Minimize2Icon,
6
+ PlayIcon,
7
+ CornerUpRightIcon,
8
+ ListPlusIcon,
9
+} from "lucide-react";
10
import { useEnvironmentIdentificationMode } from "~/hooks/useSettings";
11
import { formatContextWindowTokens } from "~/lib/contextWindow";
12
import { cn, isMacPlatform } from "~/lib/utils";
@@ -280,8 +285,10 @@ export const ComposerPrimaryActions = memo(function ComposerPrimaryActions({
285
<PlayIcon className="size-4 fill-current" aria-hidden="true" />
286
) : isEditingQueuedMessage ? (
287
<CheckIcon className="size-4" aria-hidden="true" />
288
+ ) : isRunning && isQueuing ? (
289
+ <ListPlusIcon className="size-4" aria-hidden="true" />
290
) : isRunning ? (
284
- <MorphIcon className="size-4" icon={isQueuing ? ListPlus : CornerUpRight} />
291
+ <CornerUpRightIcon className="size-4" aria-hidden="true" />
292
) : (
293
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true">
294
<path
apps/web/src/components/chat/ExpandedImageDialog.tsx
+6
-8
@@ -1,9 +1,7 @@
1
import { memo, useRef, useState, type ReactNode, type KeyboardEvent } from "react";
2
import { flushSync } from "react-dom";
3
-import { ChevronLeftIcon, ChevronRightIcon, XIcon } from "lucide-react";
4
-import { Image as ImageGlyph, Text as TextGlyph } from "lucide";
3
+import { ChevronLeftIcon, ChevronRightIcon, XIcon, ImageIcon, TextIcon } from "lucide-react";
4
import { Button } from "../ui/button";
6
-import { MorphIcon } from "~/components/MorphIcon";
5
import { Dialog, DialogPopup, DialogTitle } from "../ui/dialog";
6
import type { ExpandedImageItem, ExpandedImagePreview } from "./ExpandedImagePreview";
7
import { resolveExternalWebLinkHost } from "./externalLinkContextMenu";
@@ -258,11 +256,11 @@ export const ExpandedImageDialog = memo(function ExpandedImageDialog({
256
/>
257
}
258
>
261
- <MorphIcon
262
- className="size-3"
263
- aria-hidden="true"
264
- icon={showingAccessibilityDetails ? ImageGlyph : TextGlyph}
265
- />
259
+ {showingAccessibilityDetails ? (
260
+ <ImageIcon className="size-3" aria-hidden="true" />
261
+ ) : (
262
+ <TextIcon className="size-3" aria-hidden="true" />
263
+ )}
264
</TooltipTrigger>
265
<TooltipPopup side="top">{contentsLabel}</TooltipPopup>
266
</Tooltip>
apps/web/src/components/chat/MarkdownCodeBlock.tsx
+2
-4
@@ -1,5 +1,4 @@
1
-import { Check, Copy } from "lucide";
2
-import { PlayIcon, WrapTextIcon } from "lucide-react";
1
+import { PlayIcon, WrapTextIcon, CheckIcon, CopyIcon } from "lucide-react";
2
import { toHtml } from "hast-util-to-html";
3
import React, { use, useEffect, useState, type ReactNode } from "react";
4
@@ -17,7 +16,6 @@ import {
16
hasSpecificPierreIconForFileName,
17
syntheticFileNameForLanguageId,
18
} from "../../pierre-icons";
20
-import { MorphIcon } from "../MorphIcon";
19
import { Button } from "../ui/button";
20
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
21
import { HighlightedCodeLines } from "./HighlightedCodeLines";
@@ -193,7 +191,7 @@ export function MarkdownCodeBlock({
191
/>
192
}
193
>
196
- <MorphIcon className="size-3" icon={copied ? Check : Copy} />
194
+ {copied ? <CheckIcon className="size-3" /> : <CopyIcon className="size-3" />}
195
</TooltipTrigger>
196
<TooltipPopup side="top">{copyLabel}</TooltipPopup>
197
</Tooltip>
apps/web/src/components/chat/MarkdownTable.tsx
+2
-3
@@ -1,4 +1,4 @@
1
-import { Check, Copy } from "lucide";
1
+import { CheckIcon, CopyIcon } from "lucide-react";
2
import { useRef, type ComponentProps } from "react";
3
4
import { useCopyToClipboard } from "../../hooks/useCopyToClipboard";
@@ -6,7 +6,6 @@ import {
6
serializeTableElementToCsv,
7
serializeTableElementToMarkdown,
8
} from "../../markdown-clipboard";
9
-import { MorphIcon } from "../MorphIcon";
9
import { Button } from "../ui/button";
10
import { Menu, MenuItem, MenuPopup, MenuTrigger } from "../ui/menu";
11
import { ScrollArea } from "../ui/scroll-area";
@@ -56,7 +55,7 @@ export function MarkdownTable({ children, ...props }: ComponentProps<"table">) {
55
/>
56
}
57
>
59
- <MorphIcon className="size-3" icon={copied ? Check : Copy} />
58
+ {copied ? <CheckIcon className="size-3" /> : <CopyIcon className="size-3" />}
59
</TooltipTrigger>
60
<TooltipPopup side="top">{copyLabel}</TooltipPopup>
61
</Tooltip>
apps/web/src/components/chat/MessageCopyButton.tsx
+4
-9
@@ -1,8 +1,6 @@
1
import { memo, useRef } from "react";
2
-import { Check, Copy } from "lucide";
2
+import { CheckIcon, CopyIcon, type LucideIcon } from "lucide-react";
3
import { Button } from "../ui/button";
4
-import { MorphIcon } from "~/components/MorphIcon";
5
-import { cn } from "~/lib/utils";
4
import { useCopyToClipboard } from "~/hooks/useCopyToClipboard";
5
import {
6
ANCHORED_COPY_TOAST_TIMEOUT_MS,
@@ -14,7 +12,7 @@ import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
12
export const MessageCopyButton = memo(function MessageCopyButton({
13
text,
14
label = "Copy message",
17
- icon = Copy,
15
+ icon: Icon = CopyIcon,
16
extraFlavors,
17
size = "xs",
18
variant = "outline",
@@ -22,7 +20,7 @@ export const MessageCopyButton = memo(function MessageCopyButton({
20
}: {
21
text: string;
22
label?: string;
25
- icon?: typeof Copy;
23
+ icon?: LucideIcon;
24
extraFlavors?: Readonly<Record<string, string>>;
25
size?: "xs" | "icon-xs";
26
variant?: "outline" | "ghost";
@@ -52,10 +50,7 @@ export const MessageCopyButton = memo(function MessageCopyButton({
50
/>
51
}
52
>
55
- <MorphIcon
56
- className={cn("size-3", isCopied && "text-primary")}
57
- icon={isCopied ? Check : icon}
58
- />
53
+ {isCopied ? <CheckIcon className="size-3 text-primary" /> : <Icon className="size-3" />}
54
</TooltipTrigger>
55
<TooltipPopup>
56
<p>{label}</p>
apps/web/src/components/chat/MessagesTimeline.tsx
+12
-7
@@ -59,9 +59,9 @@ import {
59
CircleAlertIcon,
60
MessagesSquareIcon,
61
Minimize2Icon,
62
+ ChevronDownIcon,
63
+ ChevronRightIcon,
64
} from "lucide-react";
63
-import { ChevronDown, ChevronRight } from "lucide";
64
-import { MorphIcon } from "~/components/MorphIcon";
65
import { Skeleton } from "../ui/skeleton";
66
import { ExpandedImagePreview } from "./ExpandedImagePreview";
67
import {
@@ -1660,7 +1660,11 @@ function TurnFoldTimelineRow({ row }: { row: Extract<TimelineRow, { kind: "turn-
1660
{row.label}
1661
{error ? ` · ${error}` : ""}
1662
</span>
1663
- <MorphIcon className="size-3.5" icon={row.expanded ? ChevronDown : ChevronRight} />
1663
+ {row.expanded ? (
1664
+ <ChevronDownIcon className="size-3.5" />
1665
+ ) : (
1666
+ <ChevronRightIcon className="size-3.5" />
1667
+ )}
1668
</button>
1669
<TimelineRowTimestamp
1670
createdAt={row.createdAt}
@@ -1690,10 +1694,11 @@ function AttemptFoldTimelineRow({ row }: { row: Extract<TimelineRow, { kind: "at
1694
aria-busy={loading}
1695
className="flex w-full cursor-pointer select-none items-center gap-2 rounded-md border border-border/60 bg-muted/20 px-2.5 py-2 text-left transition-colors hover:bg-muted/35 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/70"
1696
>
1693
- <MorphIcon
1694
- className="size-3.5 shrink-0 text-muted-foreground"
1695
- icon={row.expanded ? ChevronDown : ChevronRight}
1696
- />
1697
+ {row.expanded ? (
1698
+ <ChevronDownIcon className="size-3.5 shrink-0 text-muted-foreground" />
1699
+ ) : (
1700
+ <ChevronRightIcon className="size-3.5 shrink-0 text-muted-foreground" />
1701
+ )}
1702
<span className="text-xs font-medium text-foreground/80">
1703
{row.label}
1704
{error ? ` · ${error}` : ""}
apps/web/src/components/chat/PanelLayoutControls.tsx
+12
-4
@@ -1,6 +1,10 @@
1
-import { PanelBottomIcon, PanelRightIcon, SquareMenuIcon } from "lucide-react";
2
-import { Maximize2, Minimize2 } from "lucide";
3
-import { MorphIcon } from "~/components/MorphIcon";
1
+import {
2
+ PanelBottomIcon,
3
+ PanelRightIcon,
4
+ SquareMenuIcon,
5
+ Maximize2Icon,
6
+ Minimize2Icon,
7
+} from "lucide-react";
8
import { memo, type ReactNode } from "react";
9
10
import { cn } from "~/lib/utils";
@@ -152,7 +156,11 @@ export const RightPanelMaximizeControl = memo(function RightPanelMaximizeControl
156
variant="ghost"
157
size="sm"
158
>
155
- <MorphIcon className="size-4" icon={maximized ? Minimize2 : Maximize2} />
159
+ {maximized ? (
160
+ <Minimize2Icon className="size-4" />
161
+ ) : (
162
+ <Maximize2Icon className="size-4" />
163
+ )}
164
</Toggle>
165
}
166
/>
apps/web/src/components/chat/ThreadDetailsPrRows.tsx
+7
-8
@@ -7,7 +7,7 @@ import {
7
threadPullRequestKeyOf,
8
visibleThreadPullRequests,
9
} from "@t3tools/client-runtime/thread-pull-requests";
10
-import { ChevronDown, ChevronUp } from "lucide";
10
+import { ChevronDownIcon, ChevronUpIcon } from "lucide-react";
11
import { useState, type ComponentProps, type MouseEvent as ReactMouseEvent } from "react";
12
13
import { sourceControlClients } from "@t3tools/client-runtime/source-control-clients";
@@ -17,7 +17,6 @@ import { useProjects } from "~/state/entities";
17
import { threadEnvironment } from "~/state/threads";
18
import { useAtomCommand } from "~/state/use-atom-command";
19
20
-import { MorphIcon } from "~/components/MorphIcon";
20
import { linkedPullRequestSnapshotStatus, prStatusIndicator } from "../ThreadStatusIndicators";
21
22
import { ThreadDetailsPrRow } from "./ThreadDetailsPrRow";
@@ -125,12 +124,12 @@ export function ThreadDetailsPrRows({
124
tone="muted"
125
className="w-full active:scale-100"
126
>
128
- <MorphIcon
129
- aria-hidden
130
- className="size-4 shrink-0"
131
- // Chevrons, not plus and minus: the plus already means "add" in this card.
132
- icon={expanded ? ChevronUp : ChevronDown}
133
- />
127
+ {/* Chevrons, not plus and minus: the plus already means "add" in this card. */}
128
+ {expanded ? (
129
+ <ChevronUpIcon aria-hidden className="size-4 shrink-0" />
130
+ ) : (
131
+ <ChevronDownIcon aria-hidden className="size-4 shrink-0" />
132
+ )}
133
{expanded ? "Show less" : `Show ${rest.length} more`}
134
</ThreadDetailsControl>
135
</>
apps/web/src/components/chat/ThreadServersPanel.tsx
+12
-8
@@ -10,8 +10,13 @@ import {
10
isAtomCommandInterrupted,
11
squashAtomCommandFailure,
12
} from "@t3tools/client-runtime/state/runtime";
13
-import { ChevronDown, ChevronUp } from "lucide";
14
-import { GlobeIcon, LoaderCircleIcon, SquareIcon } from "lucide-react";
13
+import {
14
+ GlobeIcon,
15
+ LoaderCircleIcon,
16
+ SquareIcon,
17
+ ChevronDownIcon,
18
+ ChevronUpIcon,
19
+} from "lucide-react";
20
import { type MouseEvent, useState } from "react";
21
22
import { resolveDiscoveredServerUrl } from "../../browser/browserTargetResolver";
@@ -22,7 +27,6 @@ import { useEnvironment } from "../../state/environments";
27
import { previewEnvironment } from "../../state/preview";
28
import { useEnvironmentScope } from "../../state/session";
29
import { useAtomCommand } from "../../state/use-atom-command";
25
-import { MorphIcon } from "../MorphIcon";
30
import { openDiscoveredPort } from "../preview/openDiscoveredPort";
31
import { stackedThreadToast, toastManager } from "../ui/toast";
32
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
@@ -190,11 +194,11 @@ function ThreadServersList(props: ThreadServersPanelProps) {
194
tone="muted"
195
className="w-full active:scale-100"
196
>
193
- <MorphIcon
194
- aria-hidden
195
- className="size-4 shrink-0"
196
- icon={hiddenCount > 0 ? ChevronDown : ChevronUp}
197
- />
197
+ {hiddenCount > 0 ? (
198
+ <ChevronDownIcon aria-hidden className="size-4 shrink-0" />
199
+ ) : (
200
+ <ChevronUpIcon aria-hidden className="size-4 shrink-0" />
201
+ )}
202
{hiddenCount > 0 ? `Show ${Math.min(hiddenCount, SERVER_PAGE_COUNT)} more` : "Show less"}
203
</ThreadDetailsControl>
204
) : null}
apps/web/src/components/chat/TimelineUserMessageRow.tsx
+3
-3
@@ -36,8 +36,8 @@ import {
36
MessagesSquareIcon,
37
Redo2Icon,
38
PencilIcon,
39
+ LinkIcon,
40
} from "lucide-react";
40
-import { Link as LinkIconNode } from "lucide";
41
import { Button, InlineButton } from "../ui/button";
42
import { FreshSessionRow, ModelSwitchRow } from "./V2LifecycleRow";
43
import { useAssetUrlRefresh, useAssetUrls, useAssetUrlState } from "../../assets/assetUrls";
@@ -356,7 +356,7 @@ function AutomationMessageRow({ row }: { row: Extract<TimelineRow, { kind: "mess
356
<MessageCopyButton
357
text={promptLink}
358
label="Copy prompt link"
359
- icon={LinkIconNode}
359
+ icon={LinkIcon}
360
variant="ghost"
361
/>
362
)}
@@ -820,7 +820,7 @@ function UserTimelineRow({ row }: { row: Extract<TimelineRow, { kind: "message"
820
<MessageCopyButton
821
text={promptLink}
822
label="Copy prompt link"
823
- icon={LinkIconNode}
823
+ icon={LinkIcon}
824
variant="ghost"
825
/>
826
)}
apps/web/src/components/chat/WorktreeSetupCard.tsx
+3
-3
@@ -12,12 +12,12 @@ import {
12
MinusIcon,
13
TerminalIcon,
14
XIcon,
15
+ ChevronDownIcon,
16
+ ChevronRightIcon,
17
} from "lucide-react";
16
-import { ChevronDown, ChevronRight } from "lucide";
18
import { useState, type ReactNode } from "react";
19
20
import { Button } from "~/components/ui/button";
20
-import { MorphIcon } from "~/components/MorphIcon";
21
import { Spinner } from "~/components/ui/spinner";
22
import { MiddleTruncate } from "../ui/middle-truncate";
23
import { observeVisibleAnimation } from "~/lib/visibleAnimation";
@@ -366,7 +366,7 @@ export function WorktreeSetupCard({
366
aria-expanded={detailsOpen}
367
onClick={() => setDetailsOpen((open) => !open)}
368
>
369
- <MorphIcon aria-hidden icon={detailsOpen ? ChevronDown : ChevronRight} />
369
+ {detailsOpen ? <ChevronDownIcon aria-hidden /> : <ChevronRightIcon aria-hidden />}
370
Details
371
</Button>
372
{showTerminal ? (
apps/web/src/components/device/DeviceControlsRail.tsx
+3
-3
@@ -15,11 +15,11 @@ import {
15
Square,
16
Type,
17
X,
18
+ MoonIcon,
19
+ SunIcon,
20
} from "lucide-react";
19
-import { Moon, Sun } from "lucide";
21
import type { ReactNode } from "react";
22
import { Button } from "~/components/ui/button";
22
-import { MorphIcon } from "~/components/MorphIcon";
23
import {
24
Menu,
25
MenuItem,
@@ -137,7 +137,7 @@ export function DeviceControlsRail(props: {
137
disabled={controls.disabled || !settings?.appearance}
138
onClick={() => void controls.act({ type: "setAppearance", value: nextAppearance })}
139
>
140
- <MorphIcon icon={settings?.appearance === "dark" ? Sun : Moon} />
140
+ {settings?.appearance === "dark" ? <SunIcon /> : <MoonIcon />}
141
</RailButton>
142
<Menu>
143
<MenuTrigger
apps/web/src/components/device/DeviceSetup.tsx
+6
-10
@@ -1,14 +1,12 @@
1
import { DeviceHostUpdates } from "./DeviceHostUpdates";
2
import type { DevicePlatform, DeviceServiceState, EnvironmentId } from "@t3tools/contracts";
3
-import { Check } from "lucide-react";
4
-import { Check as CheckGlyph, CircleAlert } from "lucide";
3
+import { Check, CircleAlert } from "lucide-react";
4
import { AuthSettingsWriteScope } from "@t3tools/contracts";
5
import { useAtomMount } from "@effect/atom-react";
6
import { useState } from "react";
7
8
import { Button } from "~/components/ui/button";
9
import { DialogClose } from "~/components/ui/dialog";
11
-import { MorphIcon } from "~/components/MorphIcon";
10
import { WizardHeader, WizardPanel, WizardSteps, WizardFooter } from "~/components/ui/wizard";
11
import { Spinner } from "~/components/ui/spinner";
12
import { Switch } from "~/components/ui/switch";
@@ -390,13 +388,11 @@ function PlatformStatus(props: {
388
<div
389
className={cn("flex gap-2", !props.compact && "rounded-md border border-border/60 px-3 py-2")}
390
>
393
- <MorphIcon
394
- className={cn(
395
- "mt-0.5 size-4 shrink-0",
396
- props.status.ready ? "text-success" : "text-muted-foreground",
397
- )}
398
- icon={props.status.ready ? CheckGlyph : CircleAlert}
399
- />
391
+ {props.status.ready ? (
392
+ <Check className="mt-0.5 size-4 shrink-0 text-success" />
393
+ ) : (
394
+ <CircleAlert className="mt-0.5 size-4 shrink-0 text-muted-foreground" />
395
+ )}
396
<div className={cn(props.compact && props.status.ready && "flex items-center gap-2")}>
397
<p className="font-medium">{props.platform}</p>
398
<p className="text-xs text-muted-foreground">
apps/web/src/components/diffs/DiffFileTree.tsx
+6
-6
@@ -1,6 +1,6 @@
1
import type { GitStatusEntry } from "@pierre/trees";
2
import { FileTree, useFileTree, useFileTreeSelector } from "@pierre/trees/react";
3
-import { ChevronsDownUp, ChevronsUpDown } from "lucide";
3
+import { ChevronsDownUpIcon, ChevronsUpDownIcon } from "lucide-react";
4
import { useEffect, useRef, useState, type ReactNode } from "react";
5
6
import { useStableCallback } from "~/hooks/useStableCallback";
@@ -10,7 +10,6 @@ import { PIERRE_TREE_UNSAFE_CSS, pierreTreeStyle } from "~/pierre-tree-theme";
10
11
import { areAllDirectoriesExpanded, setAllDirectoriesExpanded } from "../files/fileTreeExpansion";
12
import { Button } from "../ui/button";
13
-import { MorphIcon } from "~/components/MorphIcon";
13
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
14
import {
15
buildDiffFileTreeUpdates,
@@ -206,10 +205,11 @@ export function DiffFileTree({
205
/>
206
}
207
>
209
- <MorphIcon
210
- className="size-3.5"
211
- icon={allDirectoriesExpanded ? ChevronsDownUp : ChevronsUpDown}
212
- />
208
+ {allDirectoriesExpanded ? (
209
+ <ChevronsDownUpIcon className="size-3.5" />
210
+ ) : (
211
+ <ChevronsUpDownIcon className="size-3.5" />
212
+ )}
213
</TooltipTrigger>
214
<TooltipPopup>
215
{allDirectoriesExpanded ? "Collapse all folders" : "Expand all folders"}
apps/web/src/components/files/AttachmentFilePreview.tsx
+20
-8
@@ -10,14 +10,23 @@ import {
10
officePreviewKind,
11
FILE_TEXT_PREVIEW_MAX_BYTES,
12
} from "@t3tools/shared/filePreview";
13
-import { ChevronRightIcon, DownloadIcon, Trash2Icon, WrapTextIcon, XIcon } from "lucide-react";
14
-import { Check, Code2, Copy, Eye, Table2 } from "lucide";
13
+import {
14
+ ChevronRightIcon,
15
+ DownloadIcon,
16
+ Trash2Icon,
17
+ WrapTextIcon,
18
+ XIcon,
19
+ CheckIcon,
20
+ Code2Icon,
21
+ CopyIcon,
22
+ EyeIcon,
23
+ Table2Icon,
24
+} from "lucide-react";
25
import { lazy, Suspense, useEffect, useRef, useState } from "react";
26
27
import { useAssetUrlRefresh } from "~/assets/assetUrls";
28
import ChatMarkdown from "~/components/ChatMarkdown";
29
import { maskMarkdownFrontmatter } from "@t3tools/shared/markdownFrontmatter";
20
-import { MorphIcon } from "~/components/MorphIcon";
30
import { ScrollArea } from "~/components/ui/scroll-area";
31
import { toastManager } from "~/components/ui/toast";
32
import { useCopyToClipboard } from "~/hooks/useCopyToClipboard";
@@ -400,10 +409,13 @@ export function AttachmentFilePreview(props: {
409
pressed={rendered}
410
onPress={() => setRendered((value) => !value)}
411
>
403
- <MorphIcon
404
- className="size-3.5"
405
- icon={rendered ? Code2 : renderedMode === "table" ? Table2 : Eye}
406
- />
412
+ {rendered ? (
413
+ <Code2Icon className="size-3.5" />
414
+ ) : renderedMode === "table" ? (
415
+ <Table2Icon className="size-3.5" />
416
+ ) : (
417
+ <EyeIcon className="size-3.5" />
418
+ )}
419
</FileSurfaceAction>
420
) : null}
421
{showsRawText ? (
@@ -443,7 +455,7 @@ export function AttachmentFilePreview(props: {
455
);
456
}}
457
>
446
- <MorphIcon className="size-3.5" icon={isCopied ? Check : Copy} />
458
+ {isCopied ? <CheckIcon className="size-3.5" /> : <CopyIcon className="size-3.5" />}
459
</FileSurfaceAction>
460
) : null}
461
{url ? (
apps/web/src/components/files/FileBrowserPanel.tsx
+6
-6
@@ -9,12 +9,11 @@ import { settlePromise } from "@t3tools/client-runtime/state/runtime";
9
import { serializeComposerFileLink } from "@t3tools/shared/composerTrigger";
10
import * as AsyncResult from "effect/reactivity/AsyncResult";
11
import * as Cause from "effect/Cause";
12
-import { ChevronsDownUp, ChevronsUpDown } from "lucide";
12
+import { ChevronsDownUpIcon, ChevronsUpDownIcon } from "lucide-react";
13
import { useEffect, useRef, useState } from "react";
14
15
import { Button } from "~/components/ui/button";
16
import { InputGroup, InputGroupInput } from "~/components/ui/input-group";
17
-import { MorphIcon } from "~/components/MorphIcon";
17
import { toastManager } from "~/components/ui/toast";
18
import { Tooltip, TooltipPopup, TooltipTrigger } from "~/components/ui/tooltip";
19
import { useComposerHandleContext } from "~/composerHandleContext";
@@ -513,10 +512,11 @@ export default function FileBrowserPanel({
512
/>
513
}
514
>
516
- <MorphIcon
517
- className="size-3.5"
518
- icon={allDirectoriesExpanded ? ChevronsDownUp : ChevronsUpDown}
519
- />
515
+ {allDirectoriesExpanded ? (
516
+ <ChevronsDownUpIcon className="size-3.5" />
517
+ ) : (
518
+ <ChevronsUpDownIcon className="size-3.5" />
519
+ )}
520
</TooltipTrigger>
521
<TooltipPopup>
522
{expandAll || allDirectoriesExpanded ? "Collapse all folders" : "Expand all folders"}
apps/web/src/components/files/FilePreviewPanel.tsx
+8
-7
@@ -1,4 +1,4 @@
1
-import { DownloadIcon, CopyIcon, CheckIcon } from "lucide-react";
1
+import { DownloadIcon, CopyIcon, CheckIcon, Code2Icon, EyeIcon, Table2Icon } from "lucide-react";
2
import { useCopyToClipboard } from "~/hooks/useCopyToClipboard";
3
import { Spinner } from "~/components/ui/spinner";
4
import {
@@ -46,7 +46,6 @@ import {
46
} from "@t3tools/client-runtime/state/runtime";
47
import { mediaFileReference } from "@t3tools/client-runtime/media-reference";
48
import { FolderTree, Globe2, WrapTextIcon } from "lucide-react";
49
-import { Code2, Eye, Table2 } from "lucide";
49
import * as Schema from "effect/Schema";
50
import { lazy, Suspense, useEffect, useRef, useState } from "react";
51
@@ -55,7 +54,6 @@ import { useAssetUrlRefresh, useAssetUrlState } from "~/assets/assetUrls";
54
import { OpenInPicker } from "~/components/chat/OpenInPicker";
55
import { MediaVideoPlayer } from "~/components/media/MediaVideoPlayer";
56
import { MediaActions, type MediaActionSource } from "~/components/media/MediaActions";
58
-import { MorphIcon } from "~/components/MorphIcon";
57
import { useRemoteOpenState } from "~/remoteOpen";
58
import { useClientSettings } from "~/hooks/useSettings";
59
import { useTheme } from "~/hooks/useTheme";
@@ -1309,10 +1307,13 @@ export default function FilePreviewPanel({
1307
);
1308
}}
1309
>
1312
- <MorphIcon
1313
- className="size-3.5"
1314
- icon={rendered ? Code2 : renderedMode === "table" ? Table2 : Eye}
1315
- />
1310
+ {rendered ? (
1311
+ <Code2Icon className="size-3.5" />
1312
+ ) : renderedMode === "table" ? (
1313
+ <Table2Icon className="size-3.5" />
1314
+ ) : (
1315
+ <EyeIcon className="size-3.5" />
1316
+ )}
1317
</FileSurfaceAction>
1318
) : null}
1319
{showsRawText ? (
apps/web/src/components/mcp/UseInAnotherAppDialog.tsx
+2
-3
@@ -13,7 +13,7 @@ import {
13
sessionGrantsScope,
14
} from "@t3tools/contracts";
15
import { useNavigate } from "@tanstack/react-router";
16
-import { Check, Copy } from "lucide";
16
+import { CheckIcon, CopyIcon } from "lucide-react";
17
import * as Option from "effect/Option";
18
import { Atom } from "effect/reactivity";
19
import * as Result from "effect/Result";
@@ -45,7 +45,6 @@ import { useEnvironmentScope, useEnvironmentSessionState } from "~/state/session
45
import { useAtomCommand } from "~/state/use-atom-command";
46
import { useT3ConnectAuthPrompt } from "../clerk/useT3ConnectAuthPrompt";
47
import { CommandBlock } from "../CommandBlock";
48
-import { MorphIcon } from "../MorphIcon";
48
import { AccessOption, accessConfig } from "../auth/ConnectAgentSurface";
49
import { useAccessEnvironment } from "../settings/useAccessEnvironment";
50
import { Button } from "../ui/button";
@@ -785,7 +784,7 @@ function CopyRow({ label, value }: { readonly label: string; readonly value: str
784
aria-label={`Copy ${label}`}
785
onClick={() => copyToClipboard(value, undefined)}
786
>
788
- <MorphIcon className="size-3.5" icon={isCopied ? Check : Copy} />
787
+ {isCopied ? <CheckIcon className="size-3.5" /> : <CopyIcon className="size-3.5" />}
788
</Button>
789
</div>
790
);
apps/web/src/components/pullRequest/PullRequestCodeTab.tsx
+12
-7
@@ -33,8 +33,9 @@ import {
33
Settings2Icon,
34
TextWrapIcon,
35
TriangleAlertIcon,
36
+ ChevronsDownUpIcon,
37
+ ChevronsUpDownIcon,
38
} from "lucide-react";
37
-import { ChevronDown, ChevronRight, ChevronsDownUp, ChevronsUpDown } from "lucide";
39
import { useAtomRefresh } from "@effect/atom-react";
40
import * as Schema from "effect/Schema";
41
import {
@@ -96,7 +97,6 @@ import { useHideTestFiles } from "../diffs/useHideTestFiles";
97
import { diffFileTreeEntries, orderDiffFilesLikeTree } from "../diffs/diffFileTree.logic";
98
import { StyledDiffCodeView } from "../diffs/StyledDiffCodeView";
99
import { Button } from "../ui/button";
99
-import { MorphIcon } from "~/components/MorphIcon";
100
import { Checkbox } from "../ui/checkbox";
101
import { Collapsible, CollapsiblePanel, CollapsibleTrigger } from "../ui/collapsible";
102
import {
@@ -923,7 +923,11 @@ function PullRequestCodeTab({
923
toggleFile(item.id);
924
}}
925
>
926
- <MorphIcon className="size-4" icon={collapsed ? ChevronRight : ChevronDown} />
926
+ {collapsed ? (
927
+ <ChevronRightIcon className="size-4" />
928
+ ) : (
929
+ <ChevronDownIcon className="size-4" />
930
+ )}
931
</Button>
932
);
933
};
@@ -1385,10 +1389,11 @@ function PullRequestCodeTab({
1389
/>
1390
}
1391
>
1388
- <MorphIcon
1389
- className="size-3.5"
1390
- icon={allFilesCollapsed ? ChevronsUpDown : ChevronsDownUp}
1391
- />
1392
+ {allFilesCollapsed ? (
1393
+ <ChevronsUpDownIcon className="size-3.5" />
1394
+ ) : (
1395
+ <ChevronsDownUpIcon className="size-3.5" />
1396
+ )}
1397
</TooltipTrigger>
1398
<TooltipPopup side="top">
1399
{allFilesCollapsed ? "Expand all files" : "Collapse all files"}
apps/web/src/components/pullRequest/PullRequestReviewAnnotation.tsx
+13
-7
@@ -7,8 +7,14 @@ import type {
7
PullRequestThreadCommentsResult,
8
PullRequestThreadComment,
9
} from "@t3tools/contracts";
10
-import { HammerIcon, MessageSquareIcon, MessageSquarePlusIcon, Trash2Icon } from "lucide-react";
11
-import { Circle, CircleCheck } from "lucide";
10
+import {
11
+ HammerIcon,
12
+ MessageSquareIcon,
13
+ MessageSquarePlusIcon,
14
+ Trash2Icon,
15
+ CircleCheckIcon,
16
+ CircleIcon,
17
+} from "lucide-react";
18
import { useRef, useState } from "react";
19
import { settlePromise, squashAtomCommandFailure } from "@t3tools/client-runtime/state/runtime";
20
@@ -17,7 +23,6 @@ import { cn } from "~/lib/utils";
23
import { SpeechTextField, TextFieldSpeechControls } from "~/speech/useTextFieldSpeech";
24
25
import { Button } from "../ui/button";
20
-import { MorphIcon } from "~/components/MorphIcon";
26
import { PullRequestEditButton } from "./PullRequestEditButton";
27
import { isCommentSubmitShortcut } from "../diffs/commentSubmitShortcut";
28
import {
@@ -234,10 +239,11 @@ export function ReviewThreadCard({
239
onPointerDown={(event) => event.stopPropagation()}
240
>
241
<div className="flex items-center gap-2 text-xs text-muted-foreground">
237
- <MorphIcon
238
- className={cn("size-3.5", thread.isResolved && "text-success-foreground")}
239
- icon={thread.isResolved ? CircleCheck : Circle}
240
- />
242
+ {thread.isResolved ? (
243
+ <CircleCheckIcon className="size-3.5 text-success-foreground" />
244
+ ) : (
245
+ <CircleIcon className="size-3.5" />
246
+ )}
247
<button
248
type="button"
249
className="hover:text-foreground"
apps/web/src/components/settings/DiagnosticsSettings.tsx
+13
-4
@@ -5,8 +5,14 @@ import { AuthOrchestrationOperateScope } from "@t3tools/contracts";
5
import { readEnvironmentScope, useEnvironmentScope } from "../../state/session";
6
import { AuthEnvironmentMaintainScope } from "@t3tools/contracts";
7
import { RefreshIcon } from "~/components/ui/refresh-icon";
8
-import { AlertTriangleIcon, CopyIcon, FolderOpenIcon, InfoIcon } from "lucide-react";
9
-import { ChevronDown, ChevronRight } from "lucide";
8
+import {
9
+ AlertTriangleIcon,
10
+ CopyIcon,
11
+ FolderOpenIcon,
12
+ InfoIcon,
13
+ ChevronDownIcon,
14
+ ChevronRightIcon,
15
+} from "lucide-react";
16
import {
17
isAtomCommandInterrupted,
18
squashAtomCommandFailure,
@@ -29,7 +35,6 @@ import { useEnvironmentQuery } from "../../state/query";
35
import { serverEnvironment } from "../../state/server";
36
import { useCopyToClipboard } from "../../hooks/useCopyToClipboard";
37
import { Button } from "../ui/button";
32
-import { MorphIcon } from "~/components/MorphIcon";
38
import { ScrollArea } from "../ui/scroll-area";
39
import { Toggle, ToggleGroup } from "../ui/toggle-group";
40
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
@@ -267,7 +272,11 @@ function ProcessNameCell({
272
aria-label={isExpanded ? `Collapse ${name}` : `Expand ${name}`}
273
onClick={() => onToggle(process.pid)}
274
>
270
- <MorphIcon className="size-3.5" icon={isExpanded ? ChevronDown : ChevronRight} />
275
+ {isExpanded ? (
276
+ <ChevronDownIcon className="size-3.5" />
277
+ ) : (
278
+ <ChevronRightIcon className="size-3.5" />
279
+ )}
280
</Button>
281
) : (
282
<span className="size-5 shrink-0" aria-hidden="true" />
apps/web/src/components/settings/ProviderInstanceCard.tsx
+7
-6
@@ -11,8 +11,9 @@ import {
11
PlusIcon,
12
Trash2Icon,
13
XIcon,
14
+ LockIcon,
15
+ LockOpenIcon,
16
} from "lucide-react";
15
-import { Lock as LockGlyph, LockOpen } from "lucide";
17
import * as Arr from "effect/Array";
18
import * as Result from "effect/Result";
19
import { Fragment, useState, type ReactElement, type ReactNode } from "react";
@@ -42,7 +43,6 @@ import { useStableCallback } from "../../hooks/useStableCallback";
43
import { normalizeProviderAccentColor } from "../../providerInstances";
44
import { Badge } from "../ui/badge";
45
import { Button } from "../ui/button";
45
-import { MorphIcon } from "~/components/MorphIcon";
46
import { DraftInput } from "../ui/draft-input";
47
import { SecretSourceInput, type SecretSource } from "./SecretSourceInput";
48
import { Popover, PopoverPopup, PopoverTrigger } from "../ui/popover";
@@ -505,10 +505,11 @@ export function ProviderEnvironmentSection(props: {
505
aria-pressed={variable.sensitive}
506
aria-label={`Mark environment variable ${variable.name || index + 1} as sensitive`}
507
>
508
- <MorphIcon
509
- className="size-3"
510
- icon={variable.sensitive ? LockGlyph : LockOpen}
511
- />
508
+ {variable.sensitive ? (
509
+ <LockIcon className="size-3" />
510
+ ) : (
511
+ <LockOpenIcon className="size-3" />
512
+ )}
513
</Button>
514
}
515
/>
apps/web/src/components/settings/ResourceTelemetryDiagnostics.tsx
+7
-3
@@ -10,8 +10,9 @@ import {
10
GaugeIcon,
11
HardDriveIcon,
12
MemoryStickIcon,
13
+ ChevronDownIcon,
14
+ ChevronRightIcon,
15
} from "lucide-react";
14
-import { ChevronDown, ChevronRight } from "lucide";
16
import type {
17
BackgroundBooleanState,
18
EnvironmentId,
@@ -47,7 +48,6 @@ import { readEnvironmentScope, useEnvironmentScope } from "../../state/session";
48
import { useAtomCommand } from "../../state/use-atom-command";
49
import { useRelativeTimeState } from "../../hooks/useRelativeTimeState";
50
import { Button } from "../ui/button";
50
-import { MorphIcon } from "~/components/MorphIcon";
51
import { ScrollArea } from "../ui/scroll-area";
52
import { Toggle, ToggleGroup } from "../ui/toggle-group";
53
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
@@ -473,7 +473,11 @@ function ProcessTreeName({
473
onClick={() => onToggle(process)}
474
aria-label={collapsed ? `Expand ${name}` : `Collapse ${name}`}
475
>
476
- <MorphIcon className="size-3.5" icon={collapsed ? ChevronRight : ChevronDown} />
476
+ {collapsed ? (
477
+ <ChevronRightIcon className="size-3.5" />
478
+ ) : (
479
+ <ChevronDownIcon className="size-3.5" />
480
+ )}
481
</Button>
482
) : (
483
<span className="size-5" aria-hidden />
apps/web/src/components/settings/SourceControlAppSignInSettings.tsx
+2
-4
@@ -6,11 +6,9 @@ import {
6
} from "@t3tools/client-runtime/source-control-clients";
7
import { useAtomValue } from "@effect/atom-react";
8
import * as Cause from "effect/Cause";
9
-import { Check, Copy } from "lucide";
10
-import { CheckIcon, ExternalLinkIcon } from "lucide-react";
9
+import { CheckIcon, ExternalLinkIcon, CopyIcon } from "lucide-react";
10
import { useState, type ReactNode } from "react";
11
13
-import { MorphIcon } from "~/components/MorphIcon";
12
import { T3AppIcon } from "~/components/T3AppIcon";
13
import { useCopyToClipboard } from "~/hooks/useCopyToClipboard";
14
import { useEnvironmentSettings } from "../../hooks/useSettings";
@@ -234,7 +232,7 @@ export function SourceControlAppSignInSettings({
232
aria-label="Copy code"
233
onClick={() => copyToClipboard(waiting.userCode, undefined)}
234
>
237
- <MorphIcon className="size-3.5" icon={isCopied ? Check : Copy} />
235
+ {isCopied ? <CheckIcon className="size-3.5" /> : <CopyIcon className="size-3.5" />}
236
</Button>
237
</div>
238
<div className="grid gap-2 sm:justify-items-end">
apps/web/src/components/settings/ThemeEditorPanel.tsx
+9
-4
@@ -1,5 +1,11 @@
1
-import { MousePointer2Icon, PaintbrushIcon, PlusIcon, XIcon } from "lucide-react";
2
-import { ChevronDown, ChevronUp } from "lucide";
1
+import {
2
+ MousePointer2Icon,
3
+ PaintbrushIcon,
4
+ PlusIcon,
5
+ XIcon,
6
+ ChevronDownIcon,
7
+ ChevronUpIcon,
8
+} from "lucide-react";
9
import { useEffect, useRef, useState, type PointerEvent as ReactPointerEvent } from "react";
10
import {
11
applyThemeColorPreview,
@@ -25,7 +31,6 @@ import {
31
import { useViewportSize } from "../../hooks/useViewportSize";
32
import { cn } from "../../lib/utils";
33
import { Button } from "../ui/button";
28
-import { MorphIcon } from "~/components/MorphIcon";
34
import { Input } from "../ui/input";
35
import { Switch } from "../ui/switch";
36
import { Toggle, ToggleGroup } from "../ui/toggle-group";
@@ -1176,7 +1181,7 @@ export function ThemeEditorPanel({
1181
variant="ghost"
1182
onClick={() => setIsMinimized(!isMinimized)}
1183
>
1179
- <MorphIcon icon={isMinimized ? ChevronUp : ChevronDown} />
1184
+ {isMinimized ? <ChevronUpIcon /> : <ChevronDownIcon />}
1185
</Button>
1186
<Button
1187
aria-label="Close the theme editor"
apps/web/src/components/ui/sidebar.tsx
+2
-3
@@ -1,12 +1,11 @@
1
import { mergeProps } from "@base-ui/react/merge-props";
2
import { useRender } from "@base-ui/react/use-render";
3
import { cva, type VariantProps } from "class-variance-authority";
4
-import { PanelLeft, PanelLeftClose } from "lucide";
4
+import { PanelLeftCloseIcon, PanelLeftIcon } from "lucide-react";
5
import * as React from "react";
6
import { cn } from "~/lib/utils";
7
import { Button } from "~/components/ui/button";
8
import { Input, type InputProps } from "~/components/ui/input";
9
-import { MorphIcon } from "~/components/MorphIcon";
9
import { ScrollArea } from "~/components/ui/scroll-area";
10
import {
11
Sheet,
@@ -419,7 +418,7 @@ function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<t
418
variant="ghost"
419
{...props}
420
>
422
- <MorphIcon className="size-4" icon={isOpen ? PanelLeftClose : PanelLeft} />
421
+ {isOpen ? <PanelLeftCloseIcon className="size-4" /> : <PanelLeftIcon className="size-4" />}
422
<span className="sr-only">Toggle Sidebar</span>
423
</Button>
424
);
apps/web/src/components/ui/toast.tsx
+30
-18
@@ -10,12 +10,20 @@ import {
10
type ReactNode,
11
} from "react";
12
import { type ScopedThreadRef, type ThreadId } from "@t3tools/contracts";
13
-import { CircleAlertIcon, CircleCheckIcon, InfoIcon, TriangleAlertIcon, XIcon } from "lucide-react";
14
-import { Check, ChevronDown, ChevronUp, Copy } from "lucide";
13
+import {
14
+ CircleAlertIcon,
15
+ CircleCheckIcon,
16
+ InfoIcon,
17
+ TriangleAlertIcon,
18
+ XIcon,
19
+ CheckIcon,
20
+ ChevronDownIcon,
21
+ ChevronUpIcon,
22
+ CopyIcon,
23
+} from "lucide-react";
24
25
import { cn } from "~/lib/utils";
26
import { Button, buttonVariants } from "~/components/ui/button";
18
-import { MorphIcon } from "~/components/MorphIcon";
27
import { useComposerDraftStore } from "~/composerDraftStore";
28
import { useCopyToClipboard } from "~/hooks/useCopyToClipboard";
29
import {
@@ -151,10 +159,7 @@ function CopyErrorButton({ text }: { text: string }) {
159
/>
160
}
161
>
154
- <MorphIcon
155
- className={cn("size-3", isCopied && "text-success")}
156
- icon={isCopied ? Check : Copy}
157
- />
162
+ {isCopied ? <CheckIcon className="size-3 text-success" /> : <CopyIcon className="size-3" />}
163
</TooltipTrigger>
164
<TooltipPopup side="top">{label}</TooltipPopup>
165
</Tooltip>
@@ -183,11 +188,11 @@ function ToastExpandableSection({
188
onClick={() => setOpen((prev) => !prev)}
189
type="button"
190
>
186
- <MorphIcon
187
- className="size-3.5 shrink-0 opacity-80"
188
- icon={open ? ChevronUp : ChevronDown}
189
- strokeWidth={2.25}
190
- />
191
+ {open ? (
192
+ <ChevronUpIcon className="size-3.5 shrink-0 opacity-80" strokeWidth={2.25} />
193
+ ) : (
194
+ <ChevronDownIcon className="size-3.5 shrink-0 opacity-80" strokeWidth={2.25} />
195
+ )}
196
{open ? collapseLabel : expandLabel}
197
</button>
198
{open ? <div className={toastExpandablePanelClassName}>{children}</div> : null}
@@ -267,12 +272,19 @@ function ToastDescriptionAndExpandable({
272
data-slot="toast-description"
273
/>
274
</div>
270
- <MorphIcon
271
- aria-hidden
272
- className="size-3.5 h-lh shrink-0 text-muted-foreground opacity-80"
273
- icon={open ? ChevronUp : ChevronDown}
274
- strokeWidth={2.25}
275
- />
275
+ {open ? (
276
+ <ChevronUpIcon
277
+ aria-hidden
278
+ className="size-3.5 h-lh shrink-0 text-muted-foreground opacity-80"
279
+ strokeWidth={2.25}
280
+ />
281
+ ) : (
282
+ <ChevronDownIcon
283
+ aria-hidden
284
+ className="size-3.5 h-lh shrink-0 text-muted-foreground opacity-80"
285
+ strokeWidth={2.25}
286
+ />
287
+ )}
288
</TooltipTrigger>
289
<TooltipPopup side="top">{open ? collapseLabel : expandLabel}</TooltipPopup>
290
</Tooltip>
apps/web/src/routes/__root.tsx
+2
-4
@@ -10,7 +10,7 @@ import {
10
useNavigate,
11
useRouter,
12
} from "@tanstack/react-router";
13
-import { Check, Copy } from "lucide";
13
+import { CheckIcon, CopyIcon } from "lucide-react";
14
import { useEffect, useEffectEvent, useRef, useState } from "react";
15
16
import { APP_DISPLAY_NAME, APP_VERSION } from "../branding";
@@ -36,11 +36,9 @@ import { ChatGptWelcomeCoordinator } from "../components/settings/ChatGptWelcome
36
import { ThemeEditorHost } from "../components/settings/ThemeEditorHost";
37
import { useCopyToClipboard } from "../hooks/useCopyToClipboard";
38
import { Button } from "../components/ui/button";
39
-import { MorphIcon } from "~/components/MorphIcon";
39
import { StandalonePage, StandalonePageHeader } from "../components/ui/standalone-page";
40
import { AnchoredToastProvider, ToastProvider } from "../components/ui/toast";
41
import { isElectron } from "../env";
43
-import { cn } from "../lib/utils";
42
import { useClientSettings } from "../hooks/useSettings";
43
import {
44
deriveLogicalProjectKeyFromSettings,
@@ -269,7 +267,7 @@ function CopyErrorButton({ report }: { report: string }) {
267
268
return (
269
<Button size="sm" variant="outline" onClick={() => copyToClipboard(report)}>
272
- <MorphIcon className={cn(isCopied && "text-success")} icon={isCopied ? Check : Copy} />
270
+ {isCopied ? <CheckIcon className="text-success" /> : <CopyIcon />}
271
{isCopied ? "Copied" : "Copy error"}
272
</Button>
273
);
pnpm-lock.yaml
-37
@@ -1176,9 +1176,6 @@ importers:
1176
katex:
1177
specifier: ^0.18.2
1178
version: 0.18.10
1179
- lucide:
1180
- specifier: ^0.564.0
1181
- version: 0.564.0
1179
lucide-react:
1180
specifier: ^0.564.0
1181
version: 0.564.0(react@19.3.0)
@@ -1188,9 +1185,6 @@ importers:
1185
micromark-util-combine-extensions:
1186
specifier: ^2.0.1
1187
version: 2.0.1
1191
- morphicons:
1192
- specifier: ^1.7.1
1193
- version: 1.7.1(react-native-svg@15.16.1(patch_hash=110f9243ffad03654ce40dd1cdb09f01af16b8fa2ccb2b2cd3d62e682c180399)(react-native@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0))(react-native@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)
1188
pdfjs-dist:
1189
specifier: 6.4.299
1190
version: 6.4.299
@@ -10112,9 +10106,6 @@ packages:
10106
peerDependencies:
10107
react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0
10108
10115
- lucide@0.564.0:
10116
- resolution: {integrity: sha512-FasyXKHWon773WIl3HeCQpd5xS6E0aLjqxiQStlHNKktni+HDncc1sqY+6vRUbCfmDsIaKQz43EEQLAUDLZO0g==}
10117
-
10109
lz-string@1.5.0:
10110
resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==}
10111
hasBin: true
@@ -10466,26 +10457,6 @@ packages:
10457
resolution: {integrity: sha512-LYSks0tNVqbtez/9OB0YFP6qLRSqkdAxJWOQpVaR67lNTbj2zNLyYpowkRMia5lXLCZKzxwoxkxH2MbbBR2aEg==}
10458
engines: {node: '>=18.0.0'}
10459
10469
- morphicons@1.7.1:
10470
- resolution: {integrity: sha512-q5ylxy5/d7vBg0OAzanlooXf05PekovMYDuuQVpr6vAQZxl99lrJbaIi+jJ32PXQf9WEEaDO2pbNBsx1ZhEnFQ==}
10471
- peerDependencies:
10472
- react: '>=18'
10473
- react-native: '>=0.71'
10474
- react-native-svg: 15.16.1
10475
- svelte: '>=5'
10476
- vue: '>=3.3'
10477
- peerDependenciesMeta:
10478
- react:
10479
- optional: true
10480
- react-native:
10481
- optional: true
10482
- react-native-svg:
10483
- optional: true
10484
- svelte:
10485
- optional: true
10486
- vue:
10487
- optional: true
10488
-
10460
mrmime@2.0.1:
10461
resolution: {integrity: sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==}
10462
engines: {node: '>=10'}
@@ -20001,8 +19972,6 @@ snapshots:
19972
dependencies:
19973
react: 19.3.0
19974
20004
- lucide@0.564.0: {}
20005
-
19975
lz-string@1.5.0: {}
19976
19977
magic-string@0.30.21:
@@ -20678,12 +20647,6 @@ snapshots:
20647
20648
modern-tar@0.8.6: {}
20649
20681
- morphicons@1.7.1(react-native-svg@15.16.1(patch_hash=110f9243ffad03654ce40dd1cdb09f01af16b8fa2ccb2b2cd3d62e682c180399)(react-native@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0))(react-native@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0):
20682
- optionalDependencies:
20683
- react: 19.3.0
20684
- react-native: 0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6)
20685
- react-native-svg: 15.16.1(patch_hash=110f9243ffad03654ce40dd1cdb09f01af16b8fa2ccb2b2cd3d62e682c180399)(react-native@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(@react-native/metro-config@0.88.1(@babel/core@7.29.7(supports-color@8.1.1))(bufferutil@4.1.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(supports-color@8.1.1)(utf-8-validate@6.0.6))(react@19.3.0)
20686
-
20650
mrmime@2.0.1: {}
20651
20652
ms@2.0.0: {}