From 61d383534d596217b0ad89aa6fb373fdc38f7a48 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 30 Jan 2026 16:17:27 +0000 Subject: [PATCH 1/3] Initial plan From 688e55ac5c1c25230d60300e9001e2beab45bbcc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 30 Jan 2026 16:26:21 +0000 Subject: [PATCH 2/3] Fix dashboard story schema structure and SchemaRenderer prop spreading Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com> --- .../src/stories-json/dashboard.stories.tsx | 66 +++++++++++-------- packages/react/src/SchemaRenderer.tsx | 3 +- 2 files changed, 40 insertions(+), 29 deletions(-) diff --git a/packages/components/src/stories-json/dashboard.stories.tsx b/packages/components/src/stories-json/dashboard.stories.tsx index 2f272527b..50011e009 100644 --- a/packages/components/src/stories-json/dashboard.stories.tsx +++ b/packages/components/src/stories-json/dashboard.stories.tsx @@ -25,24 +25,30 @@ export const Default: Story = { type: 'dashboard', columns: 3, gap: 4, - children: [ + widgets: [ { - type: 'metric', - label: 'Total Revenue', - value: '$45,231.89', - className: 'col-span-1' + id: 'metric-1', + component: { + type: 'metric', + label: 'Total Revenue', + value: '$45,231.89', + } }, { - type: 'metric', - label: 'Active Users', - value: '2,350', - className: 'col-span-1' + id: 'metric-2', + component: { + type: 'metric', + label: 'Active Users', + value: '2,350', + } }, { - type: 'metric', - label: 'Conversion Rate', - value: '12.5%', - className: 'col-span-1' + id: 'metric-3', + component: { + type: 'metric', + label: 'Conversion Rate', + value: '12.5%', + } } ] } as any, @@ -54,24 +60,28 @@ export const WithCards: Story = { type: 'dashboard', columns: 2, gap: 6, - children: [ + widgets: [ { - type: 'card', - title: 'Schema/Plugins/Sales Overview', - children: [ - { type: 'metric', label: 'Today', value: '$1,234' }, - { type: 'metric', label: 'This Week', value: '$8,456' }, - ], - className: 'col-span-1' + id: 'card-1', + title: 'Sales Overview', + component: { + type: 'card', + children: [ + { type: 'metric', label: 'Today', value: '$1,234' }, + { type: 'metric', label: 'This Week', value: '$8,456' }, + ], + } }, { - type: 'card', - title: 'Schema/Plugins/User Metrics', - children: [ - { type: 'metric', label: 'Online', value: '456' }, - { type: 'metric', label: 'New Today', value: '89' }, - ], - className: 'col-span-1' + id: 'card-2', + title: 'User Metrics', + component: { + type: 'card', + children: [ + { type: 'metric', label: 'Online', value: '456' }, + { type: 'metric', label: 'New Today', value: '89' }, + ], + } } ] } as any, diff --git a/packages/react/src/SchemaRenderer.tsx b/packages/react/src/SchemaRenderer.tsx index 1b3bc974e..4142a113a 100644 --- a/packages/react/src/SchemaRenderer.tsx +++ b/packages/react/src/SchemaRenderer.tsx @@ -57,7 +57,8 @@ export const SchemaRenderer = forwardRef Date: Fri, 30 Jan 2026 16:39:25 +0000 Subject: [PATCH 3/3] Fix React error by excluding schema metadata from prop spreading Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com> --- packages/react/src/SchemaRenderer.tsx | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/packages/react/src/SchemaRenderer.tsx b/packages/react/src/SchemaRenderer.tsx index 4142a113a..dc607d279 100644 --- a/packages/react/src/SchemaRenderer.tsx +++ b/packages/react/src/SchemaRenderer.tsx @@ -55,9 +55,25 @@ export const SchemaRenderer = forwardRef