gsxdsm
d6e2f920e4
FN-6682: add themed recharts chart wrappers
Add shared Recharts-powered chart wrappers for Command Center visuals.
- Add reusable themed pie and line chart wrappers with responsive sizing and reduced-motion behavior.
- Sanitize invalid or empty chart inputs and expose accessible empty states.
- Cover wrapper rendering, sanitization, theming, and reduced-motion behavior with dashboard tests.
- Add the recharts dependency and a patch changeset for the published CLI bundle.
Files changed:
.changeset/fn-6681-recharts-charts.md | 5 +
.../command-center/charts/recharts/LineChart.tsx | 128 +++++++
.../command-center/charts/recharts/PieChart.tsx | 104 ++++++
.../charts/recharts/__tests__/LineChart.test.tsx | 83 +++++
.../charts/recharts/__tests__/PieChart.test.tsx | 83 +++++
.../command-center/charts/recharts/index.ts | 15 +
.../command-center/charts/recharts/theme.ts | 84 +++++
packages/dashboard/package.json | 1 +
pnpm-lock.yaml | 390 ++++++++++++++++++++-
9 files changed, 882 insertions(+), 11 deletions(-)
Fusion-Task-Id: FN-6682
Fusion-Task-Lineage: f3253f7a-d0a3-43ef-a7c1-f7d887ec8629
2026-06-18 22:30:01 -07:00
..
2026-06-18 13:41:37 -07:00
2026-06-14 22:43:49 -07:00
2026-06-18 18:48:05 -07:00
2026-06-18 22:30:01 -07:00
2026-06-16 22:29:07 -07:00
2026-06-16 15:08:24 -07:00
2026-06-18 16:58:11 -07:00
2026-06-17 11:46:31 -07:00
2026-06-16 18:09:46 -07:00
2026-06-17 06:12:06 +08:00
2026-06-08 15:19:27 -07:00
2026-06-14 22:43:49 -07:00