From e09343a7c4271bc7f341ab268a6038d75ccaaa64 Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Mon, 23 Nov 2026 00:05:43 +0900 Subject: [PATCH] =?UTF-8?q?Replace=20TanChat=E2=80=99s=20Lucide=20icons=20?= =?UTF-8?q?with=20Phosphor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/composer-references.test.ts | 29 +++- package.json | 1 - pnpm-lock.yaml | 18 --- src/chat/components/App.tsx | 56 ++++---- src/chat/components/BotWorkspace.tsx | 131 +++++++++--------- src/chat/components/CommandPalette.tsx | 100 ++++++------- src/chat/components/ComposerAttachments.tsx | 13 +- src/chat/components/ComposerReferences.tsx | 62 ++++----- src/chat/components/ConnectionSettings.tsx | 28 ++-- src/chat/components/ContextIndicator.tsx | 6 +- src/chat/components/ConversationDetails.tsx | 60 ++++---- .../components/ConversationDetailsCard.tsx | 6 +- src/chat/components/ConversationMinimap.tsx | 12 +- src/chat/components/ConversationNavigator.tsx | 14 +- src/chat/components/ConversationSession.tsx | 30 ++-- src/chat/components/ConversationThreads.tsx | 14 +- src/chat/components/ConversationTurn.tsx | 34 ++--- src/chat/components/ConversationView.tsx | 4 +- src/chat/components/ConversationWorkspace.tsx | 23 ++- src/chat/components/CopyBotDialog.tsx | 4 +- src/chat/components/CopyButton.tsx | 6 +- src/chat/components/DelegatedTaskHistory.tsx | 4 +- src/chat/components/DelegatedTasks.tsx | 6 +- src/chat/components/DesktopBrowserPanel.tsx | 32 ++--- src/chat/components/DraftBot.tsx | 4 +- .../components/ExecutionSessionHistory.tsx | 4 +- src/chat/components/ExecutionSessionPanel.tsx | 34 ++--- src/chat/components/HomeDashboard.tsx | 22 +-- src/chat/components/KodyCommunity.tsx | 20 ++- src/chat/components/KodyMail.tsx | 6 +- src/chat/components/KodyRunDetails.tsx | 4 +- src/chat/components/MemoryPanel.tsx | 15 +- src/chat/components/MessageAttachments.tsx | 2 +- src/chat/components/MessageReferences.tsx | 18 ++- src/chat/components/Onboarding.tsx | 4 +- src/chat/components/PackageIdentity.tsx | 4 +- src/chat/components/PersonalAssistant.tsx | 4 +- src/chat/components/PluginSettings.tsx | 14 +- src/chat/components/QueuedMessages.tsx | 4 +- src/chat/components/RailNavigation.tsx | 4 +- src/chat/components/RetryComposer.tsx | 36 ++--- src/chat/components/RetryDraftRecovery.tsx | 4 +- src/chat/components/RetryPreparation.tsx | 4 +- src/chat/components/RetryReturn.tsx | 4 +- src/chat/components/RunModelPicker.tsx | 12 +- src/chat/components/SavedFileDeliveries.tsx | 4 +- src/chat/components/SavedFiles.tsx | 34 ++--- src/chat/components/Schedules.tsx | 34 ++--- src/chat/components/SelectField.tsx | 6 +- src/chat/components/SketchPad.tsx | 21 ++- src/chat/components/SkillSettings.tsx | 17 ++- src/chat/components/TaskSources.tsx | 32 ++--- src/chat/components/TaskUsageDetails.tsx | 4 +- src/chat/components/ThreadLifecycle.tsx | 12 +- src/chat/components/ThreadTitle.tsx | 8 +- src/chat/components/ToolCallDetails.tsx | 6 +- src/chat/components/VirtualMessages.tsx | 4 +- src/chat/components/WorkflowHistory.tsx | 6 +- src/chat/components/WorkspaceSkeleton.tsx | 18 ++- src/chat/components/home-resources.ts | 68 ++++----- src/chat/components/ui/ActionCard.tsx | 4 +- src/chat/components/ui/Checkbox.tsx | 6 +- src/chat/components/ui/Modal.tsx | 4 +- src/styles/app.css | 8 -- 64 files changed, 651 insertions(+), 561 deletions(-) diff --git a/harness-tests/core/composer-references.test.ts b/harness-tests/core/composer-references.test.ts index 0ecbf6cd5..3c0735071 100644 --- a/harness-tests/core/composer-references.test.ts +++ b/harness-tests/core/composer-references.test.ts @@ -1,3 +1,10 @@ +import { + BookOpenIcon, + PackageIcon, + PlugIcon, + WrenchIcon, + type Icon, +} from '@phosphor-icons/react' import { createElement } from 'react' import { renderToStaticMarkup } from 'react-dom/server' import { QueryClient, QueryClientProvider } from '@tanstack/react-query' @@ -28,6 +35,12 @@ import { parseReferenceCatalog, } from '../../src/chat/components/ComposerReferences' +function iconMarkup(Icon: Icon, size: number) { + return renderToStaticMarkup( + createElement(Icon, { size, 'aria-hidden': true }), + ) +} + const conversation: MessageReference = { kind: 'conversation', botId: 'one', @@ -493,7 +506,7 @@ describe('tool reference catalog presentation', () => { ) expect(transcript).toContain('Alpha connection') expect(transcript).toContain('Beta connection') - expect(transcript.match(/lucide-wrench/g)).toHaveLength(2) + expect(transcript.split(iconMarkup(WrenchIcon, 14))).toHaveLength(3) expect(transcript).not.toContain(' { }), }), ) - for (const html of [transcript, details, composer]) { + for (const [html, size] of [ + [transcript, 14], + [details, 17], + [composer, 15], + ] as const) { expect(html).toContain('Weekly planning') expect(html).toContain('Installed v1') expect(html).toContain('Installed v3') - expect(html.match(/lucide-package/g)).toHaveLength(2) - expect(html).not.toContain('lucide-plug ') + expect(html.split(iconMarkup(PackageIcon, size))).toHaveLength(3) + expect(html).not.toContain(iconMarkup(PlugIcon, size)) expect(html).not.toContain('Activate') expect(html).not.toContain(plugin.installationId) } @@ -772,6 +789,6 @@ it('renders selected skill identity and exact version without treating it as a c ) expect(html).toContain('weekly-update') expect(html).toContain('Personal · v1') - expect(html).toContain('lucide-book-open') - expect(html).not.toContain('lucide-plug') + expect(html).toContain(iconMarkup(BookOpenIcon, 14)) + expect(html).not.toContain(iconMarkup(PlugIcon, 14)) }) diff --git a/package.json b/package.json index 9252a7fbb..ba6816f26 100644 --- a/package.json +++ b/package.json @@ -158,7 +158,6 @@ "jszip": "^3.10.1", "linkify-it": "^6.1.0", "lru-cache": "^11.2.7", - "lucide-react": "^1.49.0", "maath": "^0.10.8", "match-sorter": "^8.3.0", "mermaid": "^11.14.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 40d153600..415a4d04a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -312,9 +312,6 @@ importers: lru-cache: specifier: ^11.2.7 version: 11.2.7 - lucide-react: - specifier: ^1.49.0 - version: 1.49.0(@types/react@19.2.14)(react@19.2.3) maath: specifier: ^0.10.8 version: 0.10.8(@types/three@0.183.1)(three@0.183.2) @@ -6714,15 +6711,6 @@ packages: resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} engines: {node: '>=10'} - lucide-react@1.49.0: - resolution: {integrity: sha512-ApfaNM4/7jBrVopqLJ84Jz8TMQ1Q1JeZ1PmKh25aeS3E1FTVcMkSh1bEQB7dfzdIrwXRP8p3z4AJjTIHHb5IIA==} - peerDependencies: - '@types/react': '*' - react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0 - peerDependenciesMeta: - '@types/react': - optional: true - maath@0.10.8: resolution: {integrity: sha512-tRvbDF0Pgqz+9XUa4jjfgAQ8/aPKmQdWXilFu2tMy4GWj4NOsx99HlULO4IeREfbO3a0sA145DZYyvXPkybm0g==} peerDependencies: @@ -14797,12 +14785,6 @@ snapshots: dependencies: yallist: 4.0.0 - lucide-react@1.49.0(@types/react@19.2.14)(react@19.2.3): - dependencies: - react: 19.2.3 - optionalDependencies: - '@types/react': 19.2.14 - maath@0.10.8(@types/three@0.183.1)(three@0.183.2): dependencies: '@types/three': 0.183.1 diff --git a/src/chat/components/App.tsx b/src/chat/components/App.tsx index 1e9d93eca..0a437a89c 100644 --- a/src/chat/components/App.tsx +++ b/src/chat/components/App.tsx @@ -45,17 +45,16 @@ import { } from './bootstrap-onboarding' import type { Onboarding as OnboardingSnapshot } from '../core/onboarding' import { - Settings, - ChevronLeft, - ChevronRight, - ChevronDown, - Check, - PanelLeft, - PanelRight, - LogOut, - Bookmark, - Copy, -} from 'lucide-react' + BookmarkSimpleIcon, + CaretDownIcon, + CaretLeftIcon, + CaretRightIcon, + CheckIcon, + CopyIcon, + GearIcon, + SidebarSimpleIcon, + SignOutIcon, +} from '@phosphor-icons/react' import { useNavigate, useParams } from '@tanstack/react-router' import { WorkspaceApiProvider, useWorkspaceApi, ApiError } from './WorkspaceApi' @@ -730,7 +729,7 @@ function WorkspaceApp({ else setDesktopSidebarOpen(true) }} > - + )} @@ -745,14 +744,14 @@ function WorkspaceApp({ aria-label={parentName} onClick={() => selectBot(parentId)} > - {parentName} - - + )} {selected && ( @@ -860,7 +863,7 @@ function WorkspaceApp({ ref={sidebarTrigger} onClick={() => setDesktopSidebarOpen((open) => !open)} > - + {workspaceShortcuts} setSettings('general')} > - + )} @@ -927,7 +930,7 @@ function WorkspaceApp({ aria-label={`Switch workspace: ${data.workspace.name}`} > TanChat - + {item.name} {item.id === data.workspace.id && ( - + )} ))} @@ -973,7 +979,7 @@ function WorkspaceApp({ aria-controls="workspace-sidebar" onClick={closeSidebar} > - + )} @@ -1091,7 +1097,7 @@ function WorkspaceApp({ className="settings-button" onClick={() => setSettings('general')} > - + Settings {data.user.username.slice(0, 1).toUpperCase()} @@ -1697,7 +1703,7 @@ function SettingsDialog({ }} > @@ -2011,7 +2017,7 @@ function SettingsDialog({

{data.recipes.map((r) => (
- +
{r.title}

{r.description}

@@ -2025,7 +2031,7 @@ function SettingsDialog({ .then(() => setNotice('Command copied')) } > - + Copy command
@@ -2094,7 +2100,7 @@ function SettingsDialog({ )} {notice && (

- + {notice}

)} diff --git a/src/chat/components/BotWorkspace.tsx b/src/chat/components/BotWorkspace.tsx index 75bdd3484..f595301da 100644 --- a/src/chat/components/BotWorkspace.tsx +++ b/src/chat/components/BotWorkspace.tsx @@ -38,29 +38,29 @@ import { Tooltip } from '@base-ui/react/tooltip' import { Popover } from '@base-ui/react/popover' import { useHotkeys, formatForDisplay } from '@tanstack/react-hotkeys' import { - Archive, - Bell, - FolderInput, - CheckSquare, - ArchiveRestore, - Check, - ChevronDown, - ChevronRight, - Copy, - GripVertical, - List, - MoreHorizontal, - Pencil, - Pin, - PinOff, - Plus, - Search, - Settings2, - SlidersHorizontal, - Trash2, - Rows3, - X, -} from 'lucide-react' + ArchiveIcon, + BellIcon, + CaretDownIcon, + CaretRightIcon, + CheckIcon, + CheckSquareIcon, + CopyIcon, + DotsSixVerticalIcon, + DotsThreeIcon, + FolderOpenIcon, + ListBulletsIcon, + MagnifyingGlassIcon, + PencilSimpleIcon, + PlusIcon, + PushPinIcon, + PushPinSlashIcon, + RowsIcon, + SlidersHorizontalIcon, + SlidersIcon, + TrashIcon, + TrayArrowUpIcon, + XIcon, +} from '@phosphor-icons/react' import type { BotSection, WorkspaceBot } from '../core/bot-workspace' import { activityLabels, @@ -528,7 +528,7 @@ export function BotWorkspace({ variant="secondary" onClick={() => onCreate(null)} > - + New Chat
@@ -538,7 +538,7 @@ export function BotWorkspace({ aria-label={`Conversation filter: ${activeViewLabel}`} > {activeViewLabel} - + - + {label} @@ -595,7 +595,7 @@ export function BotWorkspace({ }) } > - + {touchControls && hasMovableItems && (

⌘/Ctrl-click to select. Shift-click for a range. @@ -770,9 +771,9 @@ export function BotWorkspace({ }} > {allExpanded ? ( - + ) : ( - + )} {allExpanded ? 'Collapse all' : 'Expand all'} @@ -783,7 +784,7 @@ export function BotWorkspace({ className="bw-menu-item bw-display-reorder" onClick={beginReorder} > - + Reorder )} @@ -796,7 +797,7 @@ export function BotWorkspace({ setManageSections(true) }} > - + Manage sections @@ -809,7 +810,7 @@ export function BotWorkspace({ aria-label="Search conversations" title="Search conversations" > - +

-
{selectedIds.length > 0 && ( @@ -893,7 +894,11 @@ export function BotWorkspace({ void runBulk({ type: 'pin', pinned: !allPinned }) } > - {allPinned ? : } + {allPinned ? ( + + ) : ( + + )} {allArchived ? ( - + ) : ( - + )} @@ -916,7 +921,7 @@ export function BotWorkspace({ aria-label="Move selected to section" disabled={bulkBusy} > - + @@ -1281,7 +1286,7 @@ function SidebarSectionHeader({ setConfirmDelete(true) }} > - + Delete section {error && ( @@ -1333,7 +1338,7 @@ function SidebarSectionHeader({ } }} > - + {busy ? 'Deleting…' : 'Delete section'}
@@ -1352,7 +1357,7 @@ function SidebarSectionHeader({ hidden={!draggable || !editing} {...drag.dragHandleProps} > - +
) @@ -1587,7 +1592,7 @@ function BotRow({ > {bot.name} {bot.pinned && !inPinnedSection && ( - + )}
{parent && ( @@ -1610,9 +1615,9 @@ function BotRow({ onClick={onToggleExpanded} > {expanded ? ( - + ) : ( - + )} )} @@ -1626,7 +1631,7 @@ function BotRow({ hidden={!draggable || !editing} {...drag.dragHandleProps} > - + - + )} @@ -1861,9 +1866,9 @@ export function BotControls({ } > {bot.archived_at === null ? ( - + ) : ( - + )} {bot.archived_at === null ? 'Archive' : 'Unarchive'} @@ -1880,7 +1885,7 @@ export function BotControls({ ) } > - + Rename {formatForDisplay('Mod+Alt+R')} @@ -1898,9 +1903,9 @@ export function BotControls({ } > {bot.pinned ? ( - + ) : ( - + )} {bot.pinned ? 'Unpin' : 'Pin'} @@ -1913,7 +1918,7 @@ export function BotControls({ disabled={mutation.busy} onClick={() => launch(() => onDuplicate(bot))} > - + Duplicate {formatForDisplay('Mod+Alt+D')} @@ -1926,7 +1931,7 @@ export function BotControls({ disabled={mutation.busy} onClick={() => launch(() => onCreate(bot.id))} > - + New chat {formatForDisplay('Mod+Alt+N')} @@ -1941,9 +1946,9 @@ export function BotControls({ onClick={() => launch(() => setEditorOpen(true))} > {bot.deleted_at === null ? ( - + ) : ( - + )} {bot.deleted_at === null ? 'Settings' : 'Restore…'} {bot.deleted_at === null && ( @@ -2332,7 +2337,7 @@ function SectionManager({ onClick={() => setEditing(null)} disabled={mutation.busy} > - + ) : ( @@ -2362,7 +2367,7 @@ function SectionManager({ setEditing(null) }} > - + @@ -2560,12 +2565,12 @@ function SectionDisplayOptions({ { value: 'comfortable', label: 'Standard', - icon: , + icon: , }, { value: 'compact', label: 'Compact', - icon: , + icon: , }, ]} /> diff --git a/src/chat/components/CommandPalette.tsx b/src/chat/components/CommandPalette.tsx index 334caff64..715de3308 100644 --- a/src/chat/components/CommandPalette.tsx +++ b/src/chat/components/CommandPalette.tsx @@ -13,29 +13,29 @@ import { Dialog } from '@base-ui/react/dialog' import { Autocomplete } from '@base-ui/react/autocomplete' import { useHotkey, formatForDisplay } from '@tanstack/react-hotkeys' import { - Archive, - ArrowLeft, - ArrowRight, - Check, - ChevronRight, - Copy, - CornerDownLeft, - File, - GitFork, - LayoutList, - MessageCircle, - MessagesSquare, - MoreHorizontal, - Pencil, - Pin, - Plus, - Search, - Settings, - Sparkles, - Square, - Sun, - X, -} from 'lucide-react' + ArchiveIcon, + ArrowElbowDownLeftIcon, + ArrowLeftIcon, + ArrowRightIcon, + CaretRightIcon, + ChatCircleIcon, + ChatsIcon, + CheckIcon, + CopyIcon, + DotsThreeIcon, + FileIcon, + GearIcon, + GitForkIcon, + ListDashesIcon, + MagnifyingGlassIcon, + PencilSimpleIcon, + PlusIcon, + PushPinIcon, + SparkleIcon, + SquareIcon, + SunIcon, + XIcon, +} from '@phosphor-icons/react' import { parsePaletteVisits, rankPalette, @@ -64,23 +64,23 @@ const kindNames: Record = { setting: 'Setting', } const icons = { - search: Search, - chat: MessageCircle, - thread: MessagesSquare, - file: File, - settings: Settings, - arrow: ArrowRight, - model: Sparkles, - stop: Square, - copy: Copy, - fork: GitFork, - pin: Pin, - archive: Archive, - rename: Pencil, - move: ArrowRight, - plus: Plus, - sun: Sun, - layout: LayoutList, + search: MagnifyingGlassIcon, + chat: ChatCircleIcon, + thread: ChatsIcon, + file: FileIcon, + settings: GearIcon, + arrow: ArrowRightIcon, + model: SparkleIcon, + stop: SquareIcon, + copy: CopyIcon, + fork: GitForkIcon, + pin: PushPinIcon, + archive: ArchiveIcon, + rename: PencilSimpleIcon, + move: ArrowRightIcon, + plus: PlusIcon, + sun: SunIcon, + layout: ListDashesIcon, } export function CommandPaletteTrigger() { @@ -92,7 +92,7 @@ export function CommandPaletteTrigger() { tooltip={`Search and commands (${formatForDisplay('Mod+K')})`} onClick={commands.open} > - + ) } @@ -458,10 +458,10 @@ export function CommandPaletteProvider({
{page ? ( - + ) : ( - + )} - + } /> @@ -574,7 +574,7 @@ export function CommandPaletteProvider({ )} {item.actions && ( - + )} ) @@ -589,7 +589,7 @@ export function CommandPaletteProvider({ )}
- {' '} + {' '} {busy ? 'Working…' : 'Open or run'} {highlighted?.actions && ( @@ -598,7 +598,7 @@ export function CommandPaletteProvider({ disabled={busy} onClick={() => void run(highlighted, true)} > - Actions{' '} + Actions{' '} {formatForDisplay('Mod+Enter')} )} @@ -648,13 +648,13 @@ function PaletteInput({ >
- + {page.title} - + } /> @@ -672,7 +672,7 @@ function PaletteInput({
diff --git a/src/chat/components/ComposerAttachments.tsx b/src/chat/components/ComposerAttachments.tsx index 585cbb9db..015623755 100644 --- a/src/chat/components/ComposerAttachments.tsx +++ b/src/chat/components/ComposerAttachments.tsx @@ -1,5 +1,10 @@ import { useRef, useState, type ReactNode } from 'react' -import { File as FileIcon, Paperclip, RotateCw, X } from 'lucide-react' +import { + ArrowClockwiseIcon, + FileIcon, + PaperclipIcon, + XIcon, +} from '@phosphor-icons/react' import { IconButton } from './IconButton' import { SketchPad } from './SketchPad' import type { RunModelController } from './useRunModel' @@ -105,7 +110,7 @@ export function ComposerAttachments({ } onClick={() => choose()} > - + )} {!!attachments.items.length && ( @@ -141,7 +146,7 @@ export function ComposerAttachments({ : attachments.retry(item.id) } > - + )} attachments.remove(item.id)} > - + ))} diff --git a/src/chat/components/ComposerReferences.tsx b/src/chat/components/ComposerReferences.tsx index b49968569..928c7854d 100644 --- a/src/chat/components/ComposerReferences.tsx +++ b/src/chat/components/ComposerReferences.tsx @@ -6,21 +6,21 @@ import { Popover } from '@base-ui/react/popover' import { Tooltip } from '@base-ui/react/tooltip' import { z } from 'zod' import { - Check, - BookOpen, - ArrowLeft, - File as FileIcon, - Info, - MessageCircle, - PencilLine, - Package, - Plug, - Plus, - RotateCw, - Upload, - Wrench, - X, -} from 'lucide-react' + ArrowClockwiseIcon, + ArrowLeftIcon, + BookOpenIcon, + ChatCircleIcon, + CheckIcon, + FileIcon, + InfoIcon, + PackageIcon, + PencilSimpleLineIcon, + PlugIcon, + PlusIcon, + UploadSimpleIcon, + WrenchIcon, + XIcon, +} from '@phosphor-icons/react' import { messageReferenceSchema, referenceKey, @@ -59,19 +59,19 @@ const categories: Array<{ kind: ReferenceKind; label: string }> = [ ] function ReferenceIcon({ kind }: { kind: ReferenceKind }) { return kind === 'skill' ? ( - + ) : kind === 'plugin' ? ( - + ) : kind === 'file' ? ( ) : kind === 'conversation' ? ( - + ) : kind === 'tool' ? ( - + ) : kind === 'kody' ? ( - + ) : ( - + ) } @@ -128,7 +128,7 @@ function InspectSkill({ <>
- +
@@ -1165,7 +1165,7 @@ export function ComposerReferences({ onUpload() }} > - + Upload files {sketchDisabledReason && ( @@ -1330,7 +1330,7 @@ export function ComposerReferences({ disabled={disabled || references.busy} onClick={() => void references.remove(item)} > - + ))} diff --git a/src/chat/components/ConnectionSettings.tsx b/src/chat/components/ConnectionSettings.tsx index 929104f23..1e91c799b 100644 --- a/src/chat/components/ConnectionSettings.tsx +++ b/src/chat/components/ConnectionSettings.tsx @@ -3,7 +3,13 @@ import { Button } from './ui/Button' import { useEffect, useRef, useState } from 'react' import { useQuery, useQueryClient } from '@tanstack/react-query' import { Menu } from '@base-ui/react/menu' -import { ArrowLeft, MoreHorizontal, Pause, Play, RefreshCw } from 'lucide-react' +import { + ArrowLeftIcon, + ArrowsClockwiseIcon, + DotsThreeIcon, + PauseIcon, + PlayIcon, +} from '@phosphor-icons/react' import { z } from 'zod' import { mcpAccountCommandSchema, @@ -668,7 +674,7 @@ function PrivateConnectionSettings({ disabled={!!kodyServerBusy || !!kodyJobBusy || disabled} onClick={() => void checkKodyServer(item)} > - + ))} {developer && ( @@ -678,9 +684,9 @@ function PrivateConnectionSettings({ onClick={() => void toggleKodyServer(item)} > {item.enabled ? ( - + ) : ( - + )} )} @@ -747,9 +753,9 @@ function PrivateConnectionSettings({ } > {item.enabled ? ( - + ) : ( - + )} )} @@ -837,7 +843,7 @@ function PrivateConnectionSettings({ disabled={disabled} onClick={back} > - + {editing ? 'Edit connection' : 'Custom connection'}
@@ -941,7 +947,7 @@ function PrivateConnectionSettings({ disabled={disabled} onClick={back} > - + {selected?.label ?? 'Connection'}
@@ -1005,7 +1011,7 @@ function PrivateConnectionSettings({ disabled={mutationDisabled || !selected.enabled} onClick={() => void check(selected)} > - +
diff --git a/src/chat/components/ContextIndicator.tsx b/src/chat/components/ContextIndicator.tsx index 7c88f8569..bd8bc55d4 100644 --- a/src/chat/components/ContextIndicator.tsx +++ b/src/chat/components/ContextIndicator.tsx @@ -1,6 +1,6 @@ import { useContext, useEffect, useRef, useState } from 'react' import { Popover } from '@base-ui/react/popover' -import { CircleGauge, X } from 'lucide-react' +import { GaugeIcon, XIcon } from '@phosphor-icons/react' import type { UsageStep } from '../core/usage' import { IconButton } from './IconButton' import { PortalContainer } from './PortalContainer' @@ -188,7 +188,7 @@ export function ContextIndicator({ - + } /> @@ -209,7 +209,7 @@ export function ContextIndicator({ - + } /> diff --git a/src/chat/components/ConversationDetails.tsx b/src/chat/components/ConversationDetails.tsx index 9ee87a081..e371380b4 100644 --- a/src/chat/components/ConversationDetails.tsx +++ b/src/chat/components/ConversationDetails.tsx @@ -2,20 +2,20 @@ import { useDebugDetails } from './useDebugDetails' import type { UIMessage } from '@tanstack/ai' import type { ReactNode } from 'react' import { - Building2, - Monitor, - Cloud, - Cpu, - History, - CircleDot, - MessageSquare, - ChevronRight, - Clock3, - ShieldCheck, - Link2, - ListOrdered, - type LucideIcon, -} from 'lucide-react' + BuildingsIcon, + CaretRightIcon, + ChatCenteredIcon, + ClockCounterClockwiseIcon, + ClockIcon, + CloudIcon, + CpuIcon, + LinkIcon, + ListNumbersIcon, + MonitorIcon, + RecordIcon, + ShieldCheckIcon, + type Icon, +} from '@phosphor-icons/react' import type { Approval, Trace } from '../core/types' import type { PendingTask } from '../core/tasks' import type { QueueSnapshot } from '../core/conversation-queue' @@ -73,7 +73,7 @@ function SummaryRow({ label, value, }: { - icon: LucideIcon + icon: Icon label: string value: string }) { @@ -178,26 +178,30 @@ export function ConversationDetails({

Environment

- + {model && ( @@ -208,17 +212,17 @@ export function ConversationDetails({

Conversation

- + {taskOutcome && ( )} {!!history.queue?.items.length && ( @@ -236,15 +240,15 @@ export function ConversationDetails({ title={requestText} onClick={() => onSelectMessage(requestId)} > - + {requestText} - + )}
{[ - { title: 'Approval needed', items: pending, icon: ShieldCheck }, - { title: 'Running actions', items: running, icon: Clock3 }, + { title: 'Approval needed', items: pending, icon: ShieldCheckIcon }, + { title: 'Running actions', items: running, icon: ClockIcon }, ] .filter((group) => group.items.length) .map((group) => ( @@ -281,7 +285,7 @@ export function ConversationDetails({