From a6a44f026f31c5ddebca28f2b0d157899163449b Mon Sep 17 00:00:00 2001 From: johndoe6345789 Date: Sun, 18 Jan 2026 17:49:07 +0000 Subject: [PATCH] Use shared component registry in orchestration --- .../orchestration/component-registry.ts | 66 +------------------ 1 file changed, 1 insertion(+), 65 deletions(-) diff --git a/src/config/orchestration/component-registry.ts b/src/config/orchestration/component-registry.ts index cc58a1c..70811a9 100644 --- a/src/config/orchestration/component-registry.ts +++ b/src/config/orchestration/component-registry.ts @@ -1,69 +1,5 @@ import { ComponentType } from 'react' -import { Button } from '@/components/ui/button' -import { Input } from '@/components/ui/input' -import { Card, CardHeader, CardTitle, CardDescription, CardContent } from '@/components/ui/card' -import { Badge } from '@/components/ui/badge' -import { Textarea } from '@/components/ui/textarea' - -import { ProjectDashboard } from '@/components/ProjectDashboard' -import { CodeEditor } from '@/components/CodeEditor' -import { JSONModelDesigner } from '@/components/JSONModelDesigner' -import { ComponentTreeBuilder } from '@/components/ComponentTreeBuilder' -import { JSONComponentTreeManager } from '@/components/JSONComponentTreeManager' -import { JSONWorkflowDesigner } from '@/components/JSONWorkflowDesigner' -import { JSONLambdaDesigner } from '@/components/JSONLambdaDesigner' -import { JSONStyleDesigner } from '@/components/JSONStyleDesigner' -import { FileExplorer } from '@/components/FileExplorer' -import { PlaywrightDesigner } from '@/components/PlaywrightDesigner' -import { StorybookDesigner } from '@/components/StorybookDesigner' -import { UnitTestDesigner } from '@/components/UnitTestDesigner' -import { JSONFlaskDesigner } from '@/components/JSONFlaskDesigner' -import { ProjectSettingsDesigner } from '@/components/ProjectSettingsDesigner' -import { ErrorPanel } from '@/components/ErrorPanel' -import { DocumentationView } from '@/components/DocumentationView' -import { SassStylesShowcase } from '@/components/SassStylesShowcase' -import { FeatureToggleSettings } from '@/components/FeatureToggleSettings' -import { PWASettings } from '@/components/PWASettings' -import { FaviconDesigner } from '@/components/FaviconDesigner' -import { FeatureIdeaCloud } from '@/components/FeatureIdeaCloud' -import { JSONUIShowcase } from '@/components/JSONUIShowcase' -import { JSONConversionShowcase } from '@/components/JSONConversionShowcase' - -export const ComponentRegistry: Record> = { - Button, - Input, - Card, - CardHeader, - CardTitle, - CardDescription, - CardContent, - Badge, - Textarea, - - ProjectDashboard, - CodeEditor, - JSONModelDesigner, - ComponentTreeBuilder, - JSONComponentTreeManager, - JSONWorkflowDesigner, - JSONLambdaDesigner, - JSONStyleDesigner, - FileExplorer, - PlaywrightDesigner, - StorybookDesigner, - UnitTestDesigner, - JSONFlaskDesigner, - ProjectSettingsDesigner, - ErrorPanel, - DocumentationView, - SassStylesShowcase, - FeatureToggleSettings, - PWASettings, - FaviconDesigner, - FeatureIdeaCloud, - JSONUIShowcase, - JSONConversionShowcase, -} +import { ComponentRegistry } from '@/lib/component-registry' export function getComponent(name: string): ComponentType | null { return ComponentRegistry[name] || null