From 56aaa276ee0397b8b36e1698d5555953d31422d4 Mon Sep 17 00:00:00 2001 From: chihlasm Date: Thu, 26 Mar 2026 17:09:14 +0000 Subject: [PATCH] fix: remove unused imports for clean production build Remove unused Wrench import from TaskLane, unused BranchMap import and handleBranchSwitch from AssistantChatPage. Co-Authored-By: Claude Opus 4.6 --- frontend/src/components/assistant/TaskLane.tsx | 3 +-- frontend/src/pages/AssistantChatPage.tsx | 14 -------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/frontend/src/components/assistant/TaskLane.tsx b/frontend/src/components/assistant/TaskLane.tsx index 4fb4f09d..22423b75 100644 --- a/frontend/src/components/assistant/TaskLane.tsx +++ b/frontend/src/components/assistant/TaskLane.tsx @@ -1,8 +1,7 @@ import { useState, useEffect, useRef, useCallback } from 'react' import { Copy, Check, SkipForward, Terminal, ChevronDown, ChevronUp, - Send, Clipboard, Loader2, X, MessageCircleQuestion, Wrench, - Eye, + Send, Clipboard, Loader2, X, MessageCircleQuestion, Eye, } from 'lucide-react' import { cn } from '@/lib/utils' import { toast } from '@/lib/toast' diff --git a/frontend/src/pages/AssistantChatPage.tsx b/frontend/src/pages/AssistantChatPage.tsx index 28f6c159..05747412 100644 --- a/frontend/src/pages/AssistantChatPage.tsx +++ b/frontend/src/pages/AssistantChatPage.tsx @@ -8,7 +8,6 @@ import type { ForkMetadata, ActionItem, QuestionItem } from '@/types/ai-session' import { PageMeta } from '@/components/common/PageMeta' import { aiSessionsApi } from '@/api/aiSessions' import { useBranching } from '@/hooks/useBranching' -import { BranchMap } from '@/components/session/BranchMap' import { analytics } from '@/lib/analytics' import { toast } from '@/lib/toast' import { ChatSidebar } from '@/components/assistant/ChatSidebar' @@ -214,19 +213,6 @@ export default function AssistantChatPage() { toast.info('Pin feature coming soon') } - const handleBranchSwitch = async (branchId: string) => { - if (!activeChatId || loading) return - const result = await branching.switchBranch(activeChatId, branchId) - if (!result) return - - // Load the branch's conversation into the chat - const branchMessages: MessageWithMeta[] = (result.conversation_messages || []).map(m => ({ - role: m.role as 'user' | 'assistant', - content: m.content, - })) - setMessages(branchMessages) - } - const handleSend = async () => { if (!input.trim() || !activeChatId || loading) return