From a41703fbac2bc8dda8aa2e2420b820f916158028 Mon Sep 17 00:00:00 2001 From: LUIS NOVO Date: Thu, 8 Jan 2026 15:56:26 -0300 Subject: [PATCH] chore: remove unused AddButton component The AddButton component was never imported or used anywhere in the application. Notebook creation is already implemented and working via: - "New Notebook" button on the notebooks page - "Create" button in the sidebar - "Create Notebook" command in the command palette Closes #390 --- frontend/src/components/common/AddButton.tsx | 102 ------------------- 1 file changed, 102 deletions(-) delete mode 100644 frontend/src/components/common/AddButton.tsx diff --git a/frontend/src/components/common/AddButton.tsx b/frontend/src/components/common/AddButton.tsx deleted file mode 100644 index a5b74b0..0000000 --- a/frontend/src/components/common/AddButton.tsx +++ /dev/null @@ -1,102 +0,0 @@ -'use client' - -import { useState } from 'react' -import { Plus, FileText, Book, ChevronDown } from 'lucide-react' -import { Button } from '@/components/ui/button' -import { - DropdownMenu, - DropdownMenuContent, - DropdownMenuItem, - DropdownMenuTrigger, -} from '@/components/ui/dropdown-menu' -import { AddSourceDialog } from '@/components/sources/AddSourceDialog' - -interface AddButtonProps { - variant?: 'default' | 'outline' | 'ghost' - size?: 'sm' | 'default' | 'lg' - className?: string - iconOnly?: boolean -} - -export function AddButton({ - variant = 'default', - size = 'default', - className, - iconOnly = false -}: AddButtonProps) { - const [sourceDialogOpen, setSourceDialogOpen] = useState(false) - - const handleAddSource = () => { - setSourceDialogOpen(true) - } - - const handleAddNotebook = () => { - // TODO: Implement notebook creation when ready - } - - if (iconOnly) { - return ( - <> - - - - - - - - Source - - - - Notebook Coming soon - - - - - - - ) - } - - return ( - <> - - - - - - - - Source - - - - Notebook Coming soon - - - - - - - ) -} \ No newline at end of file