From 88e684a5883afa398c588b431b3d5e53bf7c508d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 17 Jan 2026 05:13:54 +0000 Subject: [PATCH 1/2] Initial plan From 168c4b0bb38e60e496d084c52b87992d56fb8045 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 17 Jan 2026 05:23:10 +0000 Subject: [PATCH 2/2] Fix chart-bar component missing default color property Added missing color default value (#8884d8) to: - defaultProps object (required by test) - input definition defaultValue (for consistency) This fixes the failing test in packages/plugin-charts/src/index.test.ts that expected color to be '#8884d8' in defaultProps. Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com> --- packages/plugin-charts/src/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/plugin-charts/src/index.tsx b/packages/plugin-charts/src/index.tsx index a4ef0d3b..e120e6c2 100644 --- a/packages/plugin-charts/src/index.tsx +++ b/packages/plugin-charts/src/index.tsx @@ -54,7 +54,7 @@ ComponentRegistry.register( { name: 'dataKey', type: 'string', label: 'Data Key', defaultValue: 'value' }, { name: 'xAxisKey', type: 'string', label: 'X-Axis Key', defaultValue: 'name' }, { name: 'height', type: 'number', label: 'Height', defaultValue: 400 }, - { name: 'color', type: 'color', label: 'Color' }, + { name: 'color', type: 'color', label: 'Color', defaultValue: '#8884d8' }, ], defaultProps: { data: [ @@ -67,6 +67,7 @@ ComponentRegistry.register( dataKey: 'value', xAxisKey: 'name', height: 400, + color: '#8884d8', }, } );