Build all app schemas at runtime and persist schema edits #29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "codex/24-runtime-schema"
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?
All nine apps now construct their NextGraph ORM shapes at runtime from authored Atomic JSON-AD through a shared TypeScript
defineShapebuilder. Generated schemas and Atomic bindings remain optional compatibility snapshots; starting and building an app no longer runs schema generation.Native and Atomic tables, including the embedded tables in all five expense demos, derive columns and controls from runtime metadata from the start. Labels, currency formatting, defaults and field dependencies live outside the generic renderer. Handwritten expense cards keep their domain TypeScript contracts; they do not become arbitrary-schema forms.
The schema editor persists JSON-AD in the selected NextGraph graph. Predicate renames migrate existing values after preflight validation, and native/Atomic/Joep projections refresh from the saved schema. The shared runtime/build converter preserves the direct Atomic-to-NextGraph pipeline merged in #31, without restoring a ShEx intermediate.
The pinned ORM compatibility wrappers replace schema-blind cached subscriptions when schema contents change and remove its JavaScript-only error callback at the WASM JSON boundary. These are application adapters, not changes to the NextGraph engine or published ORM.
Validation:
Schema revisions are whole-document replacements. Preflight does not lock concurrent record writes. Native verification covers the local engine, not peer transport or durable restarts; the broker-backed native suite was not rerun. Fixed expense cards do not follow renamed required predicates; use the schema-driven table editors for edited schemas.
Closes #24. Built on merged #31 (#28).
WIP: Enable runtime schema editing in database table editorsto Build all app schemas at runtime and persist schema edits