From 689ac28c15439ddda34bc40cf0e38fce050bc00c Mon Sep 17 00:00:00 2001 From: Charles Vien Date: Mon, 13 Apr 2026 00:42:48 -0700 Subject: [PATCH] Replace task item icons with clearer state indicators --- .../sidebar/components/items/TaskItem.tsx | 60 +++++-------------- 1 file changed, 15 insertions(+), 45 deletions(-) diff --git a/apps/code/src/renderer/features/sidebar/components/items/TaskItem.tsx b/apps/code/src/renderer/features/sidebar/components/items/TaskItem.tsx index 17291dcc1..572852549 100644 --- a/apps/code/src/renderer/features/sidebar/components/items/TaskItem.tsx +++ b/apps/code/src/renderer/features/sidebar/components/items/TaskItem.tsx @@ -3,16 +3,14 @@ import { Tooltip } from "@components/ui/Tooltip"; import type { WorkspaceMode } from "@main/services/workspace/schemas"; import { Archive, - ArrowsClockwise, - ArrowsSplit, - BellRinging, + ChatCircle, + Circle, Cloud as CloudIcon, - Laptop as LaptopIcon, + HandPalm, Pause, PushPin, } from "@phosphor-icons/react"; import { isTerminalStatus, type TaskRunStatus } from "@shared/types"; -import { selectIsFocusedOnWorktree, useFocusStore } from "@stores/focusStore"; import { formatRelativeTimeShort } from "@utils/time"; import { useCallback, useEffect, useRef, useState } from "react"; import { SidebarItem } from "../SidebarItem"; @@ -156,7 +154,6 @@ export function TaskItem({ label, isActive, workspaceMode, - worktreePath, isSuspended = false, isGenerating, isUnread, @@ -173,62 +170,35 @@ export function TaskItem({ onEditSubmit, onEditCancel, }: TaskItemProps) { - const isFocused = useFocusStore( - selectIsFocusedOnWorktree(worktreePath ?? ""), - ); - - const isWorktreeTask = workspaceMode === "worktree"; const isCloudTask = workspaceMode === "cloud"; - const isTerminalCloud = isCloudTask && isTerminalStatus(taskRunStatus); - const icon = isSuspended ? ( - + const icon = needsPermission ? ( + - + - ) : needsPermission ? ( - ) : isTerminalCloud ? ( ) : isGenerating ? ( ) : isCloudTask ? ( + ) : isSuspended ? ( + + + + + ) : isUnread ? ( - - ■ + + ) : isPinned ? ( - ) : isWorktreeTask ? ( - isFocused ? ( - - - - - - ) : ( - - - - - - ) ) : ( - - - - - + ); const timestampNode = timestamp ? (