From c6dc49488d6f35a176cd7192e074e7d52fd24cd8 Mon Sep 17 00:00:00 2001 From: johndoe6345789 Date: Sun, 18 Jan 2026 02:14:12 +0000 Subject: [PATCH] Add roadmap tasks for JSON UI refactors --- docs/ROADMAP.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index 31d6eae..b7528f1 100644 --- a/docs/ROADMAP.md +++ b/docs/ROADMAP.md @@ -645,6 +645,19 @@ CodeForge is a comprehensive low-code development platform for building producti - [ ] Migration guides - [ ] Best practices guide +#### Molecule/Organism Refactors +- [ ] Identify 3-5 molecule components that can be expressed as JSON schemas with hooks, types, and actions (target: ComponentTree, PropertyEditor, DataSourceCard, SchemaEditorCanvas, NavigationMenu). +- [ ] Create JSON schemas for selected molecules and wire them through `JSONUIRenderer` while keeping existing props contracts stable. +- [ ] Convert at least one organism (e.g., DataSourceManager) into JSON-driven layout with nested molecule schemas. +- [ ] Document the JSON schema patterns for molecule/organism composition (bindings, events, actions) with real examples. + +#### JSON UI Framework Improvements +- [ ] Fix conditional rendering to honor `conditional.then` when conditions pass. +- [ ] Fix loop rendering to avoid self-recursion and render loop children templates. +- [ ] Add data binding support for dot-path string bindings and loop context variables. +- [ ] Apply data binding transforms consistently (support `transform` in JSON schemas). +- [ ] Align JSON UI event/action typings across `src/lib/json-ui` and `src/types/json-ui.ts`. + #### Security - [ ] Regular dependency updates - [ ] Security audit with npm audit