PUI-43 feat(cms): give the tree its own contract section and schema definitions #116
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/PUI-43-tree-contract-section-and-schema-definitions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The backend contract gets a standalone Tree section and
schema.jsonthe matching definitions (Goal Tree Index, milestone 31, page 45). Docs and schema only. Stacked on the PUI-42 branch, so this PR shows only its own commit; retarget tomainonce PUI-42 merges.docs/cms/backend-contract.md:## Treewith Requirements for the tree request and response (load({ signal }), no query parameters, every record in manual order each followed by its subtree, any depth, nometa), the move (body unchanged:{ id, parent_id, index, sibling_ids }, 2xx then reload, 409 stale order, 422 forbidden, rollback on failure) and search and filters in a tree (not a backend operation:queryevent,matchingkeys, no endpoint required). The list contract's tree remarks are gone.packages/ui/utils/cms/schema.json:TreeResponse,MoveRequestand a sharedRowKey, both envelopes in the top-leveloneOf; existing definitions unchanged.### Addedunder## Unreleased.modules-and-indexes.md(new Tree indexes section),architecture.mdandREADME.mdpoint atTreeIndex.Checks: format:check, lint, typecheck, bun test (165); the doc examples validated against schema.json; anchor check over docs/cms, ADR 0012, CMS_PLAYGROUND.md and CHANGELOG.md: 58 links, 0 broken.