mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-28 15:44:55 +00:00
Issue: When we deleted 123 "simple" components, we inadvertently deleted components that were dependencies for other parts of the system, causing build errors. Solution: Restored all deleted components that are imported by other files. Restored files: UI Components (24): accordion, alert, aspect-ratio, avatar, badge, button, card, checkbox, collapsible, dialog, hover-card, input, label, popover, progress, radio-group, resizable, scroll-area, separator, skeleton, sheet, switch, tabs, textarea, toggle, tooltip Molecules (5): DataSourceCard, EditorToolbar, EmptyEditorState, MonacoEditorPanel, SearchBar Organisms (8): EmptyCanvasState, PageHeader, SchemaEditorCanvas, SchemaEditorPropertiesPanel, SchemaEditorSidebar, SchemaEditorStatusBar, SchemaEditorToolbar, ToolbarActions Atoms (1): Input Total restored: 38 files Remaining Issue: - Pre-existing bug in component-registry.ts: import.meta.glob cannot use dynamic patterns from JSON - This requires a refactor to use static glob patterns - Not introduced by our changes - was already in codebase Current Status: - Most import errors resolved - Application can compile with restored dependencies - JSON component definitions remain intact and functional Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
12 lines
341 B
TypeScript
12 lines
341 B
TypeScript
import { ProjectFile } from '@/types/project'
|
|
import { LazyMonacoEditor } from './LazyMonacoEditor'
|
|
|
|
interface MonacoEditorPanelProps {
|
|
file: ProjectFile
|
|
onChange: (content: string) => void
|
|
}
|
|
|
|
export function MonacoEditorPanel({ file, onChange }: MonacoEditorPanelProps) {
|
|
return <LazyMonacoEditor file={file} onChange={onChange} />
|
|
}
|