Commit Graph

42 Commits

Author SHA1 Message Date
5e2f117c61 stuff 2026-01-19 09:23:46 +00:00
ddee18d1dc stuff 2026-01-19 08:58:51 +00:00
809803283b feat: Add JSON definitions for menu, password input, and popover components
- Introduced `menu.json` for menu component structure with bindings for trigger and content.
- Created `password-input.json` for password input handling visibility and value changes.
- Added `popover.json` for popover component with trigger and content bindings.

feat: Implement custom hooks for UI interactions

- Added `useAccordion` for managing accordion state with single/multiple item support.
- Created `useBindingEditor` for managing bindings in a dynamic editor.
- Implemented `useCopyState` for clipboard copy functionality with feedback.
- Developed `useFileUpload` for handling file uploads with drag-and-drop support.
- Introduced `useFocusState` for managing focus state in components.
- Created `useImageState` for handling image loading and error states.
- Added `useMenuState` for managing menu interactions and item clicks.
- Implemented `usePasswordVisibility` for toggling password visibility.
- Developed `usePopoverState` for managing popover visibility and interactions.

feat: Add constants and interfaces for JSON UI components

- Introduced constants for sizes, placements, styles, and object-fit handling.
- Created interfaces for various components including Accordion, Binding Editor, Copy Button, Data Source Editor, File Upload, and more.
- Added type definitions for menu items, popover props, and other UI elements to enhance type safety and maintainability.
2026-01-19 01:30:42 +00:00
bef28e8c91 feat: add Timestamp and Toggle components; implement TreeIcon and EditorActions components
- Introduced Timestamp component for displaying formatted dates and relative time.
- Added Toggle component for switch-like functionality with customizable sizes.
- Implemented TreeIcon component for rendering tree icons using Phosphor icons.
- Created EditorActions component for explain and improve actions with icons.
- Developed FileTabs component for managing open files with close functionality.
- Added LazyInlineMonacoEditor and LazyMonacoEditor for lazy loading Monaco editor.
- Implemented NavigationItem for navigation with badges and icons.
- Created PageHeaderContent for displaying page headers with icons and descriptions.
- Added JSON configuration files for various UI components and layouts.
- Enhanced data binding with new computed data source hook.
- Updated component registry and types for new components.
- Configured Vite for improved hot module replacement experience.
2026-01-18 21:42:51 +00:00
043eb427d3 Fix all validation errors - add missing component definitions
Fixed all "Unknown component type" validation errors by:

1. Restored Card sub-components (CardHeader, CardTitle, CardDescription, CardContent, CardFooter)
   - Restored src/components/ui/card.tsx with all sub-components
   - Created JSON definitions for all 5 Card sub-components

2. Restored Tabs sub-components (TabsList, TabsTrigger, TabsContent)
   - Restored src/components/ui/tabs.tsx with all sub-components
   - Created JSON definitions for all 3 Tabs sub-components

3. Added 20 missing custom page components
   - Created JSON wrappers for all custom page components
   - AtomicLibraryShowcase, CodeEditor, ComponentTreeBuilder, etc.
   - All components properly reference their TypeScript implementations

4. Updated registry system
   - Enhanced update-registry-from-json.ts to support 'custom' source
   - Added components directory scanning
   - Registry now includes all 342 components

Results:
-  All "Unknown component type" errors resolved
-  Registry updated: 322 → 342 components (+20)
-  28 new JSON files created (8 UI sub-components + 20 custom components)
- ⚠️ Remaining validation errors are pre-existing schema format issues in page definitions (unrelated to component conversion)

Registry Statistics:
- Total components: 342
- JSON compatible: 119
- By source: atoms (142), ui (65), molecules (45), icons (38), custom (20), organisms (16), wrappers (10), primitive (6)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-18 19:59:10 +00:00
cf74c35e0a Add JSON component definitions for all 375 components
- Created automated conversion script (convert-tsx-to-json.ts)
- Generated 234 JSON component definitions across atoms, molecules, organisms, UI
- Updated json-components-registry.json with 72 new components (317 total)
- Registry now tracks: 142 atoms, 45 molecules, 16 organisms, 60 UI components

Conversion breakdown:
- 124 simple presentational components (ready for TypeScript deletion)
- 61 components wrapping UI libraries (TypeScript kept)
- 19 components needing wrappers (TypeScript kept for hook logic)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-18 19:37:00 +00:00
d351f05b14 Merge branch 'main' into codex/update-component-registry-paths-and-sources 2026-01-18 18:48:07 +00:00
85fb859131 Add explicit component paths to JSON registry 2026-01-18 18:47:07 +00:00
d408ceff79 Merge pull request #202 from johndoe6345789/codex/add-build-step-for-typescript-union-generation
Generate JSON UI component types from registry and wire into dev/build
2026-01-18 18:46:36 +00:00
b8dc6f38e6 Generate JSON UI component types 2026-01-18 18:46:02 +00:00
4cb9c01748 Add sourceRoots config for component registry 2026-01-18 18:44:59 +00:00
fdd1828fda Move wrapper/icon resolution into JSON registry 2026-01-18 18:26:39 +00:00
395ab80610 Make json-ui registry sources data-driven 2026-01-18 17:57:15 +00:00
9ea7c15f5d Merge pull request #153 from johndoe6345789/codex/unify-breadcrumb-components-implementation
Mark Breadcrumb as JSON compatible
2026-01-18 13:17:10 +00:00
92e9b02d6d Mark breadcrumb as JSON compatible 2026-01-18 13:16:08 +00:00
6f01619141 Merge pull request #152 from johndoe6345789/codex/add-component-types-and-register-them
Support branding and navigation molecules in JSON UI
2026-01-18 13:15:22 +00:00
f627f6955f Support branding and navigation molecules 2026-01-18 13:15:04 +00:00
3f190f7e5a Merge pull request #151 from johndoe6345789/codex/add-component-types-and-registration
Add ListItem and table subcomponents + List/Table/Timeline bindings example
2026-01-18 13:14:43 +00:00
7d04abb7d9 Add list/table/timeline bindings example 2026-01-18 13:14:31 +00:00
83b5e51b7e Merge branch 'main' into codex/identify-components-for-hooks-and-context 2026-01-18 13:05:37 +00:00
5f921e6193 Merge pull request #145 from johndoe6345789/codex/define-deprecation-process-for-components
Add deprecation workflow and runtime warnings for deprecated JSON components
2026-01-18 12:49:14 +00:00
571fe3ef2c Add deprecation guidance and schema warnings 2026-01-18 12:49:03 +00:00
c345e892f9 Add JSON wrapper components for hook-based UI 2026-01-18 12:38:39 +00:00
10a7719e49 Merge branch 'main' into codex/add-component-types-and-update-registry 2026-01-18 12:37:05 +00:00
578b52bb95 Add converted JSON UI components 2026-01-18 12:36:11 +00:00
0a1fe149d3 Merge branch 'main' into codex/identify-json-compatible-components 2026-01-18 12:25:09 +00:00
727a66218e Prioritize JSON-ready molecules in registry 2026-01-18 12:24:25 +00:00
8f8305f95c Merge pull request #128 from johndoe6345789/codex/expand-json-component-support
Normalize json-components-registry and add JSON conversion implementation notes
2026-01-18 12:22:43 +00:00
bcd11011ad Normalize json components registry 2026-01-18 12:22:34 +00:00
9e80117569 Fix wrapper interfaces import order 2026-01-18 12:18:33 +00:00
d952e1e9fc Merge branch 'main' into codex/add-datepicker-and-fileupload-components 2026-01-18 12:00:13 +00:00
0d13710c09 Add DatePicker and FileUpload to JSON UI 2026-01-18 11:59:51 +00:00
af58bcb7c2 Add JSON UI support for progress and divider 2026-01-18 11:54:28 +00:00
4529708f76 Merge branch 'main' into codex/integrate-breadcrumb-component-into-json 2026-01-18 11:42:50 +00:00
8945c746cb Add breadcrumb to JSON component registry 2026-01-18 11:42:27 +00:00
9448b8327d Merge branch 'main' into codex/implement-prop-compatibility-for-components 2026-01-18 11:41:15 +00:00
0d82406e5f Add JSON UI support for feedback atoms 2026-01-18 11:38:50 +00:00
3fe02ed098 Add JSON UI support for data atoms 2026-01-18 11:35:57 +00:00
copilot-swe-agent[bot]
8b00890b9c Fix component registry to include all atoms, molecules, and organisms with JSON compatibility analysis
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-17 22:10:51 +00:00
copilot-swe-agent[bot]
2dac8954ff Fix statistics counts in registry to match actual counts
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-17 21:57:12 +00:00
copilot-swe-agent[bot]
58437b9770 Migrate 20+ components to JSON UI system - now 46 supported
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-17 21:54:51 +00:00
copilot-swe-agent[bot]
b20dc11773 Add JSON components registry and working list script
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-17 21:51:54 +00:00