From 80d8dcbc9ab15538f8694d89ffe4aa4cd432556b Mon Sep 17 00:00:00 2001 From: johndoe6345789 Date: Wed, 21 Jan 2026 05:06:44 +0000 Subject: [PATCH] feat: migrate ConflictDetailsDialog to JSON --- audit-report.json | 6 ++-- .../json-definitions/error-panel-main.json | 35 +++++++++++++++++++ .../json-ui/interfaces/error-panel-main.ts | 7 ++++ 3 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 src/components/json-definitions/error-panel-main.json create mode 100644 src/lib/json-ui/interfaces/error-panel-main.ts diff --git a/audit-report.json b/audit-report.json index 67ddd8a..c8ab1bc 100644 --- a/audit-report.json +++ b/audit-report.json @@ -1,10 +1,10 @@ { - "timestamp": "2026-01-21T05:06:08.176Z", + "timestamp": "2026-01-21T05:06:37.965Z", "issues": [], "stats": { "totalJsonFiles": 337, - "totalTsxFiles": 363, - "registryEntries": 402, + "totalTsxFiles": 362, + "registryEntries": 403, "orphanedJson": 0, "duplicates": 0, "obsoleteWrapperRefs": 0 diff --git a/src/components/json-definitions/error-panel-main.json b/src/components/json-definitions/error-panel-main.json new file mode 100644 index 0000000..b56689c --- /dev/null +++ b/src/components/json-definitions/error-panel-main.json @@ -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" + } + } + } + ] + } + ] +} diff --git a/src/lib/json-ui/interfaces/error-panel-main.ts b/src/lib/json-ui/interfaces/error-panel-main.ts new file mode 100644 index 0000000..b060e63 --- /dev/null +++ b/src/lib/json-ui/interfaces/error-panel-main.ts @@ -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 +}