Files
Momento/memento-note/app/(main)/trash/page.tsx
Antigravity 916fb78dfb
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m9s
feat: hierarchical notebook system - trash, selectors, breadcrumb, sidebar tree
- Schema: soft delete with trashedAt on Notebook model
- API: PATCH/GET notebooks support trashedAt filtering with cascade
- Sidebar: recursive tree rendering with collapse/expand, visual guides, hover actions
- HierarchicalNotebookSelector: portal-based dropdown with search, breadcrumbs, dropUp support
- AI chat: context selector with Toutes mes notes + notebook selector
- Agent detail: flat selects replaced with HierarchicalNotebookSelector
- Breadcrumb: notebook path display on home page
- Trash view: card grid with countdown, restore/permanent delete
- CSS: design tokens (ink, paper, blueprint, concrete, etc.)
- Types: parentId, trashedAt added to Notebook interface
2026-05-10 10:52:26 +00:00

14 lines
387 B
TypeScript

import { getTrashedNotes, getTrashedNotebooks } from '@/app/actions/notes'
import { TrashClient } from './trash-client'
export const dynamic = 'force-dynamic'
export default async function TrashPage() {
const [notes, notebooks] = await Promise.all([
getTrashedNotes(),
getTrashedNotebooks(),
])
return <TrashClient initialNotes={notes} initialNotebooks={notebooks} />
}