dorfteich/apps/api/src/pages
Claude Fable 5 12ff3c099f
All checks were successful
CD / Build and push images (push) Successful in 3m59s
CD / Deploy to Test (push) Successful in 10s
CI / Lint, typecheck, test (push) Successful in 4m20s
CI / Build container images (push) Has been skipped
CD / Smoke tests against Test (push) Successful in 1m15s
CD / Promote to Int (push) Successful in 13s
CI / Auth e2e pack (push) Successful in 5m42s
CI / Import/export fidelity gate (push) Successful in 47s
Delete modes and subtree trash semantics for the page tree (#107)
DELETE /pages/:id?mode=promote|subtree — promote (the default) moves
the page's live children up to its parent; subtree trashes every live
descendant with one timestamp and requires write permission on all of
them (no partial deletes; trash access is write capability, ADR 0013).

Trashed pages keep their parentId. Restore re-attaches to the nearest
live ancestor (else root), which makes restore order-independent:
restoring a parent afterwards never re-claims an already-restored
child. Purge promotes any remaining children to the purged page's
parent; the FK's SetNull stays as backstop only.

tree-trash.e2e.db.test.ts covers promote, subtree + one-timestamp,
the 403 descendant gate (label-DENY editor), order-independent
restore, and child promotion on purge.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 10:05:10 +02:00
..
collab-token.e2e.db.test.ts Wire real permissions into collab tokens and revocation (#53) 2026-07-09 18:48:42 +02:00
hierarchy.db.test.ts Page hierarchy: parentId, create-under-parent, reparent (#106) 2026-07-14 09:57:47 +02:00
pages.controller.ts Delete modes and subtree trash semantics for the page tree (#107) 2026-07-14 10:05:10 +02:00
pages.e2e.db.test.ts Switch the editor to live collaboration (#36) 2026-07-08 18:00:19 +02:00
pages.module.ts Add watches: follow pages and ponds with auto-watch preferences (#93) 2026-07-11 22:59:11 +02:00
pages.service.ts Delete modes and subtree trash semantics for the page tree (#107) 2026-07-14 10:05:10 +02:00
plugin-api.controller.ts Add pageTool plugins with toc and page-index references (#77) 2026-07-11 13:27:30 +02:00
plugin-api.e2e.db.test.ts Add pageTool plugins with toc and page-index references (#77) 2026-07-11 13:27:30 +02:00
reposition.db.test.ts Enforce permissions in API guards and retire interim access (#52) 2026-07-09 16:31:41 +02:00
sort-key.test.ts Add manual page ordering with drag-and-drop (#45) 2026-07-09 12:18:44 +02:00
sort-key.ts Add manual page ordering with drag-and-drop (#45) 2026-07-09 12:18:44 +02:00
yjs-content.ts Import .docx and .odt documents as new pages (#63) 2026-07-10 07:34:43 +02:00