Library sidebar: folders, pinned-top, per-page menus, and an all-pages view

- Page.isFolder (migration 027): folders are content-less pages reusing
  parentId; folder delete reparents children one level up
- Sidebar: Pages group becomes Library; Pinned at top; folder tree; page
  menu (duplicate/pin/copy link/rename/move/trash); folder menu
- /pages index: filterable Library table (all/recent/pinned/untagged) with
  folder path + last edit (components/library-index.tsx)
- Docs: API.md isFolder + folder-delete semantics
This commit is contained in:
Andrew S Erwin
2026-12-01 06:07:12 -06:00
parent 50c89c1653
commit 9dbf9fa3ea
9 changed files with 541 additions and 231 deletions
+2
View File
@@ -15,6 +15,8 @@ export type PageSummary = {
pinned: boolean
position: number
parentId: string | null
isFolder?: boolean
updatedAt?: string
tags?: { tag: { id: string; name: string; color: string } }[]
_count?: { bookmarks: number; children?: number }
}