Skip to content

Commit 14fa20d

Browse files
andresdjassoclaude
andcommitted
style(chat): unify on the bubble-clock icon and rename "All Chats" to "Recents"
The title-bar chat switcher and the home tray launcher pointed at the same chat history with different icons and names. Both now use the BubbleChatDelay icon (the switcher's chat-bubble-with-clock), and the launcher (plus the switcher's tooltip and aria labels) reads "Recents". Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 6bedb57 commit 14fa20d

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

apps/sim/app/workspace/[workspaceId]/components/chat-switcher/chat-switcher.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export function ChatSwitcher({
120120
const trigger = iconOnly ? (
121121
<button
122122
type='button'
123-
aria-label='All Chats'
123+
aria-label='Recents'
124124
onClick={() => setOpen((prev) => !prev)}
125125
className={cn(
126126
'flex h-[30px] flex-shrink-0 items-center gap-1 rounded-lg px-1.5 transition-colors',
@@ -158,7 +158,7 @@ export function ChatSwitcher({
158158
<Tooltip.Root>
159159
<Tooltip.Trigger asChild>{trigger}</Tooltip.Trigger>
160160
<Tooltip.Content side='bottom'>
161-
<p>All Chats</p>
161+
<p>Recents</p>
162162
</Tooltip.Content>
163163
</Tooltip.Root>
164164
</span>

apps/sim/app/workspace/[workspaceId]/home/components/chat-history/chat-history.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { useEffect, useRef, useState } from 'react'
44
import { useParams, useRouter } from 'next/navigation'
55
import { Expandable, ExpandableContent } from '@/components/emcn'
6-
import { Clock } from '@/components/emcn/icons'
6+
import { BubbleChatDelay } from '@/components/emcn/icons'
77
import { cn } from '@/lib/core/utils/cn'
88
import { ChatHistoryList } from '@/app/workspace/[workspaceId]/home/components/chat-history/chat-history-list'
99

@@ -19,7 +19,7 @@ interface ChatHistoryProps {
1919
/**
2020
* A launcher into the workspace's prior Mothership chats, docked into the grey
2121
* shelf beneath the home input (Codex tray pattern). Collapsed, it's a compact
22-
* "All Chats" chip; opening animates a searchable, recency-grouped list open
22+
* "Recents" chip; opening animates a searchable, recency-grouped list open
2323
* INSIDE the grey tray — the shelf grows downward while the centered input
2424
* rides upward, in lockstep (300ms ease). Lives on the new-chat home view so a
2525
* chat can be resumed without the (collapsible) sidebar.
@@ -64,15 +64,15 @@ export function ChatHistory({ onSelectChat }: ChatHistoryProps) {
6464
type='button'
6565
onClick={() => setOpen((prev) => !prev)}
6666
aria-expanded={open}
67-
aria-label='All chats'
67+
aria-label='Recents'
6868
className={cn(
6969
'flex items-center gap-1.5 rounded-[8px] px-2 py-1 transition-colors',
7070
'hover-hover:bg-[var(--surface-active)]',
7171
open && 'bg-[var(--surface-active)]'
7272
)}
7373
>
74-
<Clock className='size-[14px] flex-shrink-0 text-[var(--text-icon)]' />
75-
<span className='text-[var(--text-body)] text-sm'>All Chats</span>
74+
<BubbleChatDelay className='size-[14px] flex-shrink-0 text-[var(--text-icon)]' />
75+
<span className='text-[var(--text-body)] text-sm'>Recents</span>
7676
</button>
7777
</div>
7878

0 commit comments

Comments
 (0)