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:
@@ -266,6 +266,10 @@ CREATE TABLE "Page" (
|
||||
icon text,
|
||||
pinned boolean NOT NULL DEFAULT false,
|
||||
position int NOT NULL DEFAULT 0,
|
||||
-- Library folders (migration 027): a folder is a content-less Page used purely to
|
||||
-- organize other pages/folders. It reuses the parentId hierarchy, trash and
|
||||
-- reorder; deleting a folder reparents its children to the folder's parent.
|
||||
"isFolder" boolean NOT NULL DEFAULT false,
|
||||
-- Connected pages (phase 3): a page may live under another page. Deleting
|
||||
-- the parent promotes its children to the top level instead of deleting
|
||||
-- them; cycle rejection is enforced by the API.
|
||||
|
||||
Reference in New Issue
Block a user