Commit Graph

736 Commits

Author SHA1 Message Date
bf0bc04ad5 feat: add schema repair templates and validation functions- Introduce templates for generating config page schema and repairing registry JSON.- Implement functions to ensure valid schema for config pages and registries.- Add utility functions for JSON manipulation and validation. 2026-01-19 17:58:29 +00:00
749b25eff0 refactor 2026-01-19 13:17:20 +00:00
f224de5a71 should be tough 2026-01-19 12:54:10 +00:00
f7a8b69338 stuff 2026-01-19 12:52:24 +00:00
7208a53d8f stuff 2026-01-19 12:15:20 +00:00
3bcabbf078 feat: add API call delay and logging for retries in migration orchestrator- Introduce a delay of 2 seconds before API calls to manage rate limits.- Enhance logging to provide feedback on retry attempts and failures. 2026-01-19 11:38:13 +00:00
3ac9b53224 feat: implement retry logic for rate-limited agent calls- Add _is_rate_limited function to check for rate limit errors.- Introduce _run_with_retries function to handle retries on rate limit exceptions.- Update agent calls in run_agent_for_component and _resolve_diff_with_agent to use the new retry logic.- Set default model from environment variables for better configuration. 2026-01-19 11:28:38 +00:00
4d8fbbd528 feat: enhance component migration orchestrator with conflict resolution- Add conflict resolution agent to handle unified diffs.- Refactor existing file reading logic to improve clarity.- Update component target categorization to use root name.- Introduce new prompt templates for conflict resolution and analysis.- Improve diff application logic for better error handling and performance. 2026-01-19 11:22:06 +00:00
b55274e5d7 feat: enhance component migration orchestratorRefactor the component migration orchestrator to improve JSON output handling and diff processing. Remove unused imports and functions, streamline prompt generation with existing file contents, and ensure valid JSON structure in the output. Add detailed instructions for JSON formatting and diff representation. 2026-01-19 11:13:01 +00:00
a755203641 feat: enhance snippet merging with diff patching support- replace _append_unique with _merge_snippet for better merging logic- add difflib for generating unified diff patches- create patch files in a new 'patches' directory if specified- ensure unique content is merged without duplicates 2026-01-19 11:05:00 +00:00
7c96537b9e feat: adicionar funções para manipulação de arquivos- Implementar _write_if_content para escrever apenas se o conteúdo não estiver vazio.- Implementar _append_unique para adicionar conteúdo de forma única a arquivos.- Atualizar write_output para usar as novas funções de escrita.- Adicionar opção --clean-out para remover pastas legadas no diretório de saída. 2026-01-19 10:58:46 +00:00
8896f30113 stuff 2026-01-19 10:44:58 +00:00
ee99850c38 stuff 2026-01-19 10:41:06 +00:00
e4a91c729e stuff 2026-01-19 10:39:54 +00:00
11f52fe5b1 funny roof thing 2026-01-19 10:32:57 +00:00
0b74b5ec3e hgfhgfg 2026-01-19 10:15:10 +00:00
6d27d1ccb6 stuff 2026-01-19 10:10:37 +00:00
b98fa82109 mcp 2026-01-19 09:39:35 +00:00
dae3f9fea5 stuff 2026-01-19 09:34:42 +00:00
0210cb4d39 stuff 2026-01-19 09:25:46 +00:00
dd2e246f2f stuff 2026-01-19 09:23:57 +00:00
5e2f117c61 stuff 2026-01-19 09:23:46 +00:00
249f011d40 stuff 2026-01-19 09:23:38 +00:00
9d81e9d2c1 stuff 2026-01-19 09:23:22 +00:00
18b383a156 stuff 2026-01-19 09:17:22 +00:00
ddee18d1dc stuff 2026-01-19 08:58:51 +00:00
5a88b9493b stuff 2026-01-19 08:45:52 +00:00
56376b1094 Merge pull request #208 from johndoe6345789/silly-darwin
feat: Add JSON definitions for menu, password input, and popover comp…
2026-01-19 01:31: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
f0c5680b44 Merge pull request #207 from johndoe6345789/copilot/sub-pr-206
Implement pure JSON component system with hooks loader, fix import paths, delete all wrapper components, and fix build errors
2026-01-19 00:21:43 +00:00
copilot-swe-agent[bot]
5a70926d9d fix: Resolve all unrelated build errors
- Added BasicPageHeader export to atoms/index.ts (was only exported as PageHeader)
- Added Accordion export to atoms/index.ts (file existed but wasn't exported)
- Created AppBranding component in molecules/ (was missing)
- Added AppBranding export to molecules/index.ts
- Added missing exports to FeatureIdeaCloud/constants.ts (GROUP_COLORS, CATEGORIES, PRIORITIES, STATUSES)
- Build now completely clean with zero errors

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-18 23:58:27 +00:00
copilot-swe-agent[bot]
fc231f727d fix: Correct className transform in JSON definitions
- Fixed lazy-d3-bar-chart.json className binding to use className instead of data
- Fixed component-tree.json className binding to use className instead of data
- Code review feedback addressed

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-18 23:51:49 +00:00
copilot-swe-agent[bot]
4ac334a12c feat: Convert final 2 components - ALL wrappers now pure JSON! 🎉
- Created lazy-d3-bar-chart.json with SVG rendering using chartData hook
- Created storage-settings.json with backend switching and import/export
- Deleted LazyD3BarChartWrapper.tsx and StorageSettingsWrapper.tsx
- Updated exports to use JSON components
- ALL 11 components now pure JSON - zero wrappers remaining
- Complete JSON component system with hooks loader proven working

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-18 23:51:09 +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
copilot-swe-agent[bot]
db8759f9e0 feat: Delete ComponentBindingDialog and DataSourceEditorDialog wrappers, update exports
- Deleted ComponentBindingDialogWrapper.tsx and DataSourceEditorDialogWrapper.tsx
- These already have JSON definitions and were exported from json-components
- Updated molecules/index.ts to export from json-components instead of wrappers
- Reduced remaining wrappers from 6 to 4
- All deleted wrappers now pure JSON components

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-18 23:29:36 +00:00
copilot-swe-agent[bot]
4c17cc49c1 feat: Implement hooks loader system for JSON components, convert SaveIndicator to pure JSON
- Created hooks-registry.ts for registering custom React hooks
- Created createJsonComponentWithHooks for JSON components that need hooks
- Implemented SaveIndicator as pure JSON with useSaveIndicator hook
- Moved JSON definitions from wrappers/definitions to components/json-definitions
- Removed wrappers folder entirely
- Fixed NavigationItem JSON to include onClick handler binding
- Deleted legacy NavigationItem.tsx and PageHeaderContent.tsx files
- Architecture: JSON + interfaces + hook loader = fully functional components

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-18 23:22:40 +00:00
copilot-swe-agent[bot]
0514e61000 feat: Remove wrapper system, implement pure JSON components
- Created src/lib/json-ui/interfaces/ folder for component interfaces
- Created createJsonComponent() helper for pure JSON component creation
- Deleted wrapper TypeScript files (LoadingFallbackWrapper, NavigationItemWrapper, PageHeaderContentWrapper, TreeCardWrapper)
- Components now export directly from JSON definitions via json-components.ts
- No more wrapper layer - components are pure JSON with separate interface definitions
- Architecture simplified: JSON definition + interface = component

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-18 23:13:00 +00:00
copilot-swe-agent[bot]
ad68fe8f44 feat: Delete old rigid TypeScript components now loaded via JSON registry
- Deleted TreeCard.tsx and TreeListHeader.tsx
- These components are now loaded dynamically through JSON registry
- import.meta.glob automatically discovers them without TypeScript files
- Consumers already refactored to not import from these files
- JSON system working correctly - no more rigid TypeScript components needed

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-18 22:36:23 +00:00
copilot-swe-agent[bot]
c2112afe29 fix: Update AtomicComponentDemo to import from correct locations, bypass index.ts
- Import DataCard from @/components/atoms/json-ui instead of molecules
- Replace ActionBar with inline Button components
- This bypasses the molecules/index.ts exports as intended
- Components now loaded directly or through JSON registry

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-18 22:31:07 +00:00
copilot-swe-agent[bot]
9a6c7f8652 fix: Remove duplicate LoadingFallbackWrapper export
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-18 22:19:57 +00:00
copilot-swe-agent[bot]
a65a994ec4 feat: Implement JSON components with wrappers for LoadingFallback, NavigationItem, PageHeaderContent
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-18 22:07:46 +00:00
copilot-swe-agent[bot]
a386551f23 Fix: Inline NavigationGroupHeader to complete component migration
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-18 22:01:07 +00:00
copilot-swe-agent[bot]
1bb2eadbe8 Fix: Inline deleted JSON components to resolve build errors
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-18 21:58:04 +00:00
copilot-swe-agent[bot]
56aeb492e6 Initial plan: Root cause analysis of JSON component system
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2026-01-18 21:52:57 +00:00
b3fa462527 Update scripts/refactor-to-dynamic-imports.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-18 21:47:20 +00:00
2478948bcb Update e2e/debug.spec.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-18 21:47:13 +00:00
ff37033102 Update e2e/debug.spec.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-18 21:47:03 +00:00
e63d32eb05 Update scripts/analyze-pure-json-candidates.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-18 21:46:55 +00:00
5f92fbbf54 Update scripts/refactor-to-dynamic-imports.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-18 21:46:46 +00:00
copilot-swe-agent[bot]
d9f2688a91 Initial plan 2026-01-18 21:46:38 +00:00