Commit Graph

101 Commits

Author SHA1 Message Date
94d67dfed5 feat: migrate DataSourceManager to JSON (Tier 2 - Organism 1)
- Create JSON definition in src/components/json-definitions/data-source-manager.json
- Create TypeScript interface in src/lib/json-ui/interfaces/data-source-manager.ts
- Create custom hook useDataSourceManagerState in src/hooks/use-data-source-manager-state.ts
- Register hook in src/lib/json-ui/hooks-registry.ts
- Export DataSourceManager from src/lib/json-ui/json-components.ts
- Update imports in src/components/DataBindingDesigner.tsx
- Remove legacy TSX files and sub-components
- Update exports in src/components/organisms/index.ts
- Add hook export in src/hooks/index.ts

DataSourceManager now uses JSON-driven architecture with custom hooks for state management.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-21 01:29:19 +00:00
a78943a854 feat: migrate NavigationMenu to JSON (Tier 2 - Organism 2)
- Create NavigationMenuProps interface for type safety
- Implement useNavigationMenu hook with:
  - expandedGroups state management
  - toggleGroup, expandAll, collapseAll actions
  - isItemVisible, getVisibleItemsCount, getItemBadge utilities
  - handleItemHover, handleItemLeave with route preloading
- Create comprehensive JSON definition with:
  - Nested Collapsible groups for navigation sections
  - Dynamic item rendering with visibility filtering
  - Badge support for error count and item badges
  - Active state styling and hover effects
- Register hook in hooks-registry
- Export from json-components.ts with hook integration
- Update json-components-registry.json (source: organisms, jsonCompatible: true)

All state management delegated to useNavigationMenu hook.
Navigation logic fully expressible in JSON with custom hooks.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-21 01:28:33 +00:00
3fc51d5576 feat: migrate AppRouterLayout to JSON with useAppRouterLayout hook 2026-01-21 01:18:31 +00:00
d287d6e0b6 feat: migrate AppLayout to JSON with useAppLayout hook 2026-01-21 01:15:12 +00:00
f05f896a67 feat: Complete JSON component migration for 9 components (atoms + BindingEditor)
Migration complete for:
- 5 atoms: Accordion, CopyButton, FileUpload, FilterInput, Image, Input, PasswordInput, Popover (8 total)
- 1 molecule: BindingEditor

Changes:
- Deleted 9 legacy TSX files that have complete JSON equivalents
- Exported BindingEditor from json-components.ts with useBindingEditor hook
- Registered useBindingEditor in hooks-registry.ts
- Updated all imports across codebase to use JSON-based components
- Fixed build errors: schema-loader dynamic import, DataSourceGroupSection
- Cleaned up component index exports

Build status:  PASSING
- 0 TypeScript errors
- All 9,408 modules transformed successfully
- No blocking build warnings

Next steps:
- 3 organisms still need conversion: DataSourceManager, NavigationMenu, TreeListPanel
- 120+ additional components have TSX versions (need individual migration)
- 22 JSON components now available for use throughout the app

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-21 00:12:50 +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
copilot-swe-agent[bot]
e549f4e0de feat: Convert ComponentTree and SeedDataManager to pure JSON with hooks
- Created useComponentTree hook to flatten recursive tree structure
- Created useStorageBackendInfo hook for backend icon/copy logic
- Created useD3BarChart hook for chart calculations
- Registered all new hooks in hooks-registry
- Created component-tree.json with list rendering using treeData from hook
- Created seed-data-manager.json with full Card/Alert/Button structure
- Deleted ComponentTreeWrapper.tsx and SeedDataManagerWrapper.tsx
- Updated exports to use JSON components
- 9 components now pure JSON, 2 wrappers remaining

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-18 23:48:23 +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
27dfebcb24 Merge pull request #197 from johndoe6345789/codex/refactor-computed-json-configs
Remove legacy `computed` data sources; migrate to expression/valueTemplate and update UI
2026-01-18 18:33:08 +00:00
03cc955d20 Update data source editor copy 2026-01-18 18:32:55 +00:00
9dd5a9c6d0 refactor pwa message handler 2026-01-18 18:02:34 +00:00
966b6f2aa6 Remove legacy compute schema support 2026-01-18 17:41:57 +00:00
c6208fafd1 Replace eval bindings with JSON expression evaluator 2026-01-18 17:09:02 +00:00
83864189a5 Replace legacy schema renderer usage 2026-01-18 16:08:03 +00:00
f547d38539 things 2026-01-18 15:48:29 +00:00
9a9d76865b Merge pull request #156 from johndoe6345789/codex/extend-delete-action-logic-in-use-action-executor
Support computed and nested selectors for `delete` actions
2026-01-18 13:37:02 +00:00
39e5385925 Extend delete action selector resolution 2026-01-18 13:36:49 +00:00
0475085300 Merge branch 'main' into codex/add-open-dialog-and-close-dialog-cases 2026-01-18 13:36:18 +00:00
5080026ef7 Add dialog action handling 2026-01-18 13:35:43 +00:00
67f2c26f10 Add nested target path updates 2026-01-18 13:35:00 +00:00
463201d758 Unify icon registry access 2026-01-18 01:51:56 +00:00
560a75cd69 Expand schema component registry 2026-01-18 01:43:31 +00:00
81c6ada8c1 Merge branch 'main' into codex/extract-logic-into-custom-hooks 2026-01-18 01:27:30 +00:00
9a28805791 Extract dialog state hooks 2026-01-18 01:26:34 +00:00
68f0dcbfbd Merge pull request #90 from johndoe6345789/codex/add-use-component-binding-dialog-hook
Add useComponentBindingDialog hook and refactor ComponentBindingDialog to use it
2026-01-18 01:25:16 +00:00
6700705842 Add component binding dialog hook 2026-01-18 01:25:04 +00:00
530d7d96da Merge pull request #89 from johndoe6345789/codex/create-use-data-source-editor-hook
Add useDataSourceEditor hook and refactor DataSourceEditorDialog to use it
2026-01-18 01:24:46 +00:00
4ee346c69d Add data source editor hook 2026-01-18 01:24:36 +00:00
902253a9be Merge pull request #87 from johndoe6345789/codex/create-hook-for-template-explorer-actions
Add useTemplateExplorerActions hook and refactor TemplateExplorer
2026-01-18 01:22:55 +00:00
1e0cdf034c Add template explorer actions hook 2026-01-18 01:22:45 +00:00
104f9461bc Add component tree expansion hook 2026-01-18 01:22:18 +00:00
b1a1a524db Merge pull request #83 from johndoe6345789/codex/refactor-node-state-and-actions-into-hook
Refactor component tree builder state into hook
2026-01-18 01:16:07 +00:00
3a076efaf6 Refactor component tree builder state 2026-01-18 01:15:58 +00:00
ef1871c1fc Refactor conflict resolution page state 2026-01-18 01:03:03 +00:00
a3ee5db2e9 Merge pull request #74 from johndoe6345789/codex/move-helpers-to-a-custom-hook
Move GitHub badge/format/copy helpers into hook and expose actions
2026-01-18 00:59:32 +00:00
ee39cbb844 Refactor GitHub build status hook helpers 2026-01-18 00:59:19 +00:00
ee6a107dc7 Merge pull request #73 from johndoe6345789/codex/encapsulate-sync-handlers-and-polling
Refactor persistence dashboard handlers and flags
2026-01-18 00:59:02 +00:00
8cf03f303f Refactor persistence dashboard handlers 2026-01-18 00:58:51 +00:00
5f5a5c1c76 Merge pull request #71 from johndoe6345789/codex/centralize-localstorage-handling
Centralize PWA install prompt state handling
2026-01-18 00:58:34 +00:00
33046e0661 Merge pull request #72 from johndoe6345789/codex/move-projectmanager-state-to-new-hook
Extract ProjectManager dialog state and CRUD handlers into hook
2026-01-18 00:58:10 +00:00
af73065f92 Refactor project manager dialog hooks 2026-01-18 00:57:56 +00:00
a197f661fa Centralize PWA install prompt state 2026-01-18 00:57:34 +00:00
86ac40a767 Merge pull request #70 from johndoe6345789/codex/manage-notification-permissions-and-cache-size
PWA: handle unsupported notifications and robust cache estimation
2026-01-18 00:57:17 +00:00
a97d32e1ec Improve PWA permission and cache handling 2026-01-18 00:57:03 +00:00
6a60ccbbe6 Merge pull request #68 from johndoe6345789/codex/encapsulate-seed-and-component-loading
Refactor app bootstrap initialization flow
2026-01-18 00:56:12 +00:00
a3ad9fec6e Refactor app bootstrap loading 2026-01-18 00:55:52 +00:00
a8749ab234 Add save indicator timing hook 2026-01-18 00:55:19 +00:00
b25ccbcad4 Merge pull request #64 from johndoe6345789/codex/create-useprojectmanager-hook
Add project manager hook and refactor ProjectManager to use it
2026-01-18 00:52:39 +00:00
b435abebb2 Add project manager hook 2026-01-18 00:52:28 +00:00
deb084ee1e Merge pull request #63 from johndoe6345789/codex/add-usegithubbuildstatus-hook
Add useGithubBuildStatus hook and refactor GitHubBuildStatus to use it
2026-01-18 00:52:10 +00:00