Skip to content

Commit c165f54

Browse files
committed
renamed tasks to chats
1 parent 0dffb7d commit c165f54

9 files changed

Lines changed: 20 additions & 20 deletions

File tree

apps/sim/app/api/mothership/chats/[chatId]/fork/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const POST = withRouteHandler(
8888
: []
8989

9090
const newId = generateId()
91-
const baseTitle = (parent.title ?? 'New task').replace(/^Fork \| /, '')
91+
const baseTitle = (parent.title ?? 'New chat').replace(/^Fork \| /, '')
9292
const title = `Fork | ${baseTitle}`
9393
const now = new Date()
9494

apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-registry/resource-registry.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export const RESOURCE_REGISTRY: Record<MothershipResourceType, ResourceTypeConfi
214214
},
215215
task: {
216216
type: 'task',
217-
label: 'Tasks',
217+
label: 'Chats',
218218
icon: Task,
219219
renderTabIcon: (_resource, className) => (
220220
<Task className={cn(className, 'text-[var(--text-icon)]')} />

apps/sim/app/workspace/[workspaceId]/home/hooks/use-chat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4724,7 +4724,7 @@ export function useChat(
47244724
selectedChatIdRef.current &&
47254725
selectedChatIdRef.current !== requestChatId
47264726
) {
4727-
throw new Error('Queued message was restored because the selected task changed.')
4727+
throw new Error('Queued message was restored because the selected chat changed.')
47284728
}
47294729
if (requestChatId) {
47304730
await queryClient.cancelQueries({ queryKey: taskKeys.detail(requestChatId) })

apps/sim/app/workspace/[workspaceId]/task/[taskId]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getSession } from '@/lib/auth'
33
import { Home } from '@/app/workspace/[workspaceId]/home/home'
44

55
export const metadata: Metadata = {
6-
title: 'Task',
6+
title: 'Chat',
77
}
88

99
interface TaskPageProps {

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/collapsed-sidebar-menu/collapsed-sidebar-menu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export function CollapsedTaskFlyoutItem({
248248
return (
249249
<div className={EDIT_ROW_CLASS}>
250250
<input
251-
aria-label={`Rename task ${task.name}`}
251+
aria-label={`Rename chat ${task.name}`}
252252
ref={inputRef}
253253
value={editValue ?? task.name}
254254
onChange={(e) => onEditValueChange?.(e.target.value)}
@@ -277,7 +277,7 @@ export function CollapsedTaskFlyoutItem({
277277
action={
278278
showActions ? (
279279
<DropdownMenuItemAction
280-
aria-label='Task options'
280+
aria-label='Chat options'
281281
onPointerDown={onMorePointerDown}
282282
onClick={(e) => onMoreClick?.(e, task.id)}
283283
className={cn(isMenuOpen && 'opacity-100')}

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/search-modal/components/search-groups/search-groups.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export const TasksGroup = memo(function TasksGroup({
192192
}) {
193193
if (items.length === 0) return null
194194
return (
195-
<Command.Group heading='Tasks' className={GROUP_HEADING_CLASSNAME}>
195+
<Command.Group heading='Chats' className={GROUP_HEADING_CLASSNAME}>
196196
{items.map((task) => (
197197
<MemoizedTaskItem
198198
key={task.id}

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/workflow-list/components/delete-modal/delete-modal.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export function DeleteModal({
7979
} else if (itemType === 'folder') {
8080
title = isMultiple ? 'Delete Folders' : 'Delete Folder'
8181
} else if (itemType === 'task') {
82-
title = isMultiple ? 'Delete Tasks' : 'Delete Task'
82+
title = isMultiple ? 'Delete Chats' : 'Delete Chat'
8383
} else if (itemType === 'mixed') {
8484
title = 'Delete Items'
8585
} else {
@@ -167,7 +167,7 @@ export function DeleteModal({
167167
<>
168168
Are you sure you want to delete{' '}
169169
<span className='font-medium text-[var(--text-primary)]'>
170-
{displayNames.length} tasks
170+
{displayNames.length} chats
171171
</span>
172172
?{' '}
173173
<span className='text-[var(--text-error)]'>
@@ -189,7 +189,7 @@ export function DeleteModal({
189189
}
190190
return (
191191
<>
192-
Are you sure you want to delete this task?{' '}
192+
Are you sure you want to delete this chat?{' '}
193193
<span className='text-[var(--text-error)]'>
194194
This will permanently remove all conversation history.
195195
</span>

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/sidebar.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ const SidebarTaskItem = memo(function SidebarTaskItem({
237237
)}
238238
<button
239239
type='button'
240-
aria-label='Task options'
240+
aria-label='Chat options'
241241
onPointerDown={onMorePointerDown}
242242
onClick={(e) => {
243243
e.preventDefault()
@@ -1158,7 +1158,7 @@ export const Sidebar = memo(function Sidebar() {
11581158
}, [workspaceId, navigateToPage])
11591159

11601160
const tasksPrimaryAction = {
1161-
label: 'New task',
1161+
label: 'New chat',
11621162
onSelect: handleNewTask,
11631163
}
11641164

@@ -1371,7 +1371,7 @@ export const Sidebar = memo(function Sidebar() {
13711371
)}
13721372
>
13731373
<div className='flex h-[18px] flex-shrink-0 items-center justify-between px-4'>
1374-
<div className='text-[var(--text-muted)] text-small'>Tasks</div>
1374+
<div className='text-[var(--text-muted)] text-small'>Chats</div>
13751375
{!isCollapsed && (
13761376
<div className='flex items-center justify-center gap-2'>
13771377
<Tooltip.Root>
@@ -1387,7 +1387,7 @@ export const Sidebar = memo(function Sidebar() {
13871387
</Tooltip.Trigger>
13881388
<Tooltip.Content>
13891389
<Tooltip.Shortcut keys={isMac ? '⌘⇧K' : 'Ctrl+Shift+K'}>
1390-
New task
1390+
New chat
13911391
</Tooltip.Shortcut>
13921392
</Tooltip.Content>
13931393
</Tooltip.Root>
@@ -1398,7 +1398,7 @@ export const Sidebar = memo(function Sidebar() {
13981398
<CollapsedSidebarMenu
13991399
icon={tasksCollapsedIcon}
14001400
hover={tasksHover}
1401-
ariaLabel='Tasks'
1401+
ariaLabel='Chats'
14021402
className='mt-2'
14031403
primaryAction={tasksPrimaryAction}
14041404
>
@@ -1408,7 +1408,7 @@ export const Sidebar = memo(function Sidebar() {
14081408
Loading...
14091409
</DropdownMenuItem>
14101410
) : tasks.length === 0 ? (
1411-
<DropdownMenuItem disabled>No tasks yet</DropdownMenuItem>
1411+
<DropdownMenuItem disabled>No chats yet</DropdownMenuItem>
14121412
) : (
14131413
tasks.map((task) => (
14141414
<CollapsedTaskFlyoutItem
@@ -1438,7 +1438,7 @@ export const Sidebar = memo(function Sidebar() {
14381438
<>
14391439
{tasks.length === 0 ? (
14401440
<div className='flex h-[30px] items-center px-2 text-[var(--text-muted)] text-small'>
1441-
No tasks yet
1441+
No chats yet
14421442
</div>
14431443
) : null}
14441444
{/* `selectTaskOnly` populates `selectedTasks` on every click, so

apps/sim/hooks/queries/tasks.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ function mapTask(chat: MothershipTask): TaskMetadata {
189189
const updatedAt = new Date(chat.updatedAt)
190190
return {
191191
id: chat.id,
192-
name: chat.title ?? 'New task',
192+
name: chat.title ?? 'New chat',
193193
updatedAt,
194194
isActive: chat.activeStreamId !== null,
195195
isUnread:
@@ -633,7 +633,7 @@ export function useCreateTask(workspaceId?: string) {
633633
const existing = queryClient.getQueryData<TaskMetadata[]>(taskKeys.list(workspaceId)) ?? []
634634
const newTask: TaskMetadata = {
635635
id: data.id,
636-
name: 'New task',
636+
name: 'New chat',
637637
updatedAt: new Date(),
638638
isActive: false,
639639
isUnread: false,
@@ -675,7 +675,7 @@ export function useForkTask(workspaceId?: string) {
675675
const existing = queryClient.getQueryData<TaskMetadata[]>(taskKeys.list(workspaceId))
676676
if (existing) {
677677
const sourceTask = existing.find((t) => t.id === variables.chatId)
678-
const baseName = (sourceTask?.name ?? 'New task').replace(/^Fork \| /, '')
678+
const baseName = (sourceTask?.name ?? 'New chat').replace(/^Fork \| /, '')
679679
const optimisticTask: TaskMetadata = {
680680
id: data.id,
681681
name: `Fork | ${baseName}`,

0 commit comments

Comments
 (0)