diff --git a/src/pages/mobile/NotesPage.tsx b/src/pages/mobile/NotesPage.tsx index 83158a1..31c4f59 100644 --- a/src/pages/mobile/NotesPage.tsx +++ b/src/pages/mobile/NotesPage.tsx @@ -5,12 +5,14 @@ import { Input } from "@/components/ui/input"; import { Badge } from "@/components/ui/badge"; import { MobileFAB } from "@/components/mobile/MobileFAB"; import { MobileCard } from "@/components/mobile/MobileCard"; -import { Plus, Search, CheckSquare, Image as ImageIcon, Paperclip, Tag as TagIcon, FileText } from "lucide-react"; +import { Plus, Search, CheckSquare, Image as ImageIcon, Paperclip, Tag as TagIcon, FileText, LayoutGrid, List } from "lucide-react"; import NotesService, { Note } from "@/services/NotesService"; import { showError, showSuccess } from "@/utils/toast"; import { TemplateSelector } from "@/components/TemplateSelector"; import type { NoteTemplate } from "@/utils/noteTemplates"; import { AdvancedSearch, type SearchFilters, type TagOption } from "@/components/AdvancedSearch"; +import { KanbanBoard } from "@/components/KanbanBoard"; +import TagsService from "@/services/TagsService"; const NOTES_PER_PAGE = 10; @@ -29,6 +31,7 @@ export default function NotesPage() { const [showArchived, setShowArchived] = useState(false); const [page, setPage] = useState(0); const [templateSelectorOpen, setTemplateSelectorOpen] = useState(false); + const [viewMode, setViewMode] = useState<'list' | 'kanban'>('list'); const navigate = useNavigate(); const loadNotes = async () => { @@ -209,9 +212,32 @@ export default function NotesPage() { Archivées ({notes.filter(n => n.archived).length}) + + {/* View Mode Toggle */} +