feat: MVP-5 Sprint 3 - Sidebar, Work Mode, and Drafts

- Enhance note-connections with collapsible sections and recent versions
- Add work mode toggle in header for focused work
- Add draft autosave with 7-day TTL and recovery banner
- Save drafts on changes for new notes
This commit is contained in:
2026-03-22 18:28:14 -03:00
parent cde0a143a5
commit a40ab18b1b
7 changed files with 225 additions and 18 deletions

View File

@@ -6,6 +6,7 @@ import { usePathname } from 'next/navigation'
import { Button } from '@/components/ui/button'
import { Plus, FileText, Settings, Menu, X } from 'lucide-react'
import { QuickAdd } from '@/components/quick-add'
import { WorkModeToggle } from '@/components/work-mode-toggle'
export function Header() {
const pathname = usePathname()
@@ -43,6 +44,7 @@ export function Header() {
</nav>
<div className="flex items-center gap-2">
<QuickAdd />
<WorkModeToggle />
<Link href="/new">
<Button size="sm" className="gap-1.5">
<Plus className="h-4 w-4" />
@@ -59,6 +61,7 @@ export function Header() {
</Link>
<div className="flex items-center gap-2">
<QuickAdd />
<WorkModeToggle />
<Button
variant="ghost"
size="sm"