Generated by Spark: Convert more pages to JSON-driven configuration (Models, Components, Workflows)

This commit is contained in:
2026-01-17 11:46:36 +00:00
committed by GitHub
parent c27eb6d3de
commit 83dd57f259
14 changed files with 2004 additions and 188 deletions
@@ -0,0 +1,18 @@
import { PageRenderer } from '@/lib/json-ui/page-renderer'
import componentTreeSchema from '@/config/pages/component-tree.json'
import { PageSchema } from '@/types/json-ui'
interface JSONComponentTreeManagerProps {
trees: any[]
onTreesChange: (updater: (trees: any[]) => any[]) => void
}
export function JSONComponentTreeManager({ trees, onTreesChange }: JSONComponentTreeManagerProps) {
const schema = componentTreeSchema as PageSchema
const handleCustomAction = async (action: any, event?: any) => {
console.log('[JSONComponentTreeManager] Custom action:', action, event)
}
return <PageRenderer schema={schema} onCustomAction={handleCustomAction} />
}