Generated by Spark: Load more of UI from JSON declarations and break up large components into atomic and create hooks as needed

This commit is contained in:
2026-01-17 12:35:17 +00:00
committed by GitHub
parent 55114937a7
commit 9fde2a100c
9 changed files with 689 additions and 0 deletions

4
PRD.md
View File

@@ -12,6 +12,10 @@ Build a comprehensive JSON-driven UI system that allows building entire user int
- ✅ Enhanced JSON schema system with additional UI components and patterns
- ✅ Created focused custom hooks for common UI patterns (useConfirmDialog, useFormState, useListOperations)
- ✅ Built additional atomic components for improved composability
-**NEW:** Created `useJSONRenderer` hook with data binding utilities (resolveBinding, resolveValue, resolveProps)
-**NEW:** Created `useDataSources` hook for unified KV, static, and computed data management
-**NEW:** Built atomic JSON UI components: IconRenderer, DataCard (<50 LOC each)
-**NEW:** Established hooks/json-ui and components/atoms/json-ui directories for modularity
**Experience Qualities**:
1. **Modular** - Every component under 150 LOC, highly composable and reusable