feat: migrate ConflictDetailsDialog to JSON

This commit is contained in:
2026-01-21 05:06:44 +00:00
parent 7923667557
commit 80d8dcbc9a
3 changed files with 45 additions and 3 deletions

View File

@@ -0,0 +1,35 @@
{
"id": "error-panel-main",
"type": "div",
"className": "h-full flex flex-col bg-background",
"children": [
{
"id": "error-panel-header-wrapper",
"type": "ErrorPanelHeader",
"bindings": {
"props": {
"source": "headerProps",
"transform": "data"
}
}
},
{
"id": "error-panel-content",
"type": "ScrollArea",
"className": "flex-1",
"children": [
{
"id": "error-panel-inner",
"type": "div",
"className": "p-6",
"bindings": {
"children": {
"source": "contentState",
"transform": "data"
}
}
}
]
}
]
}

View File

@@ -0,0 +1,7 @@
import type { ProjectFile } from '@/types/project'
export interface ErrorPanelMainProps {
files: ProjectFile[]
onFileChange: (fileId: string, content: string) => void
onFileSelect: (fileId: string) => void
}