Skip to content

feat(storybook): add chart stories with Apollo theme colors#666

Draft
1980computer wants to merge 5 commits into
mainfrom
storybook-updates-for-charts
Draft

feat(storybook): add chart stories with Apollo theme colors#666
1980computer wants to merge 5 commits into
mainfrom
storybook-updates-for-charts

Conversation

@1980computer
Copy link
Copy Markdown
Collaborator

Summary

  • Add chart component stories for Bar, Line, Area, Pie, Radar, Radial, and Tooltip variants
  • Add chart-palette.ts with slot-based color palette wired to Apollo core chart tokens
  • Split THEMES in chart.tsx to 4 keys (light, dark, future-light, future-dark) so each theme resolves the correct color tokens
  • Bridge apollo-core chart token names (--color-chart-*) into future theme blocks in tailwind.consumer.css
  • Add Charts section to Storybook story sort order

Status

Draft — chart bar colors in Future Dark/Light themes need further debugging. The CSS custom property chain is set up correctly but bars are still rendering as black in Storybook. Coming back to resolve once Storybook rendering is confirmed working.

Test plan

  • Verify chart stories appear under Components/Charts in Storybook sidebar
  • Verify bar chart colors render correctly in Future Dark theme
  • Verify bar chart colors render correctly in Future Light theme
  • Verify core light/dark themes show apollo-core chart token colors
  • Verify visualization template story uses themed colors

🤖 Generated with Claude Code

1980computer and others added 5 commits May 7, 2026 12:31
Add 7 individual chart story files under Components/Charts/ (Area, Bar,
Line, Pie, Radar, Radial, Tooltips) with 2-3 variants each extracted from
the Maestro visualization template. Update the All Components gallery with a
Charts category section using real mini Recharts renders as preview tiles.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… in sidebar

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Split THEMES in chart.tsx to 4 keys (light, dark, future-light,
future-dark) so each theme gets the correct color token. Add
chart-palette.ts with slot-based hex values for core themes and
var(--chart-N) vars for future themes. Update all chart story configs
and the visualization template to use the new palette.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ed hex

Replace hardcoded hex values in chart-palette.ts and visualization palette
with var(--color-chart-*, fallback) so each theme automatically resolves
its own color token. Light-HC now shows the correct high-contrast values
instead of sharing the regular-light hex. Future Light/Dark continue to
use var(--chart-N) as before.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Map --color-chart-* token names to --chart-N vars inside the
future-light and future-dark theme blocks so the CSS custom property
chain resolves correctly for all themes without requiring a JS recompile.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (PT)
apollo-design 🟢 Ready Preview, Logs May 08, 2026, 07:31:09 AM
apollo-docs 🟢 Ready Preview, Logs May 08, 2026, 07:30:11 AM
apollo-landing 🟢 Ready Preview, Logs May 08, 2026, 07:28:21 AM
apollo-ui-react 🟢 Ready Preview, Logs May 08, 2026, 07:30:15 AM
apollo-vertex 🟢 Ready Preview, Logs May 08, 2026, 07:29:54 AM

@github-actions github-actions Bot added the size:XXL 1,000+ changed lines. label May 8, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

Dependency License Review

  • 2104 package(s) scanned
  • ✅ No license issues found
  • ⚠️ 15 package(s) excluded (see details below)
License distribution
License Packages
MIT 1825
ISC 104
Apache-2.0 69
BSD-3-Clause 30
BSD-2-Clause 24
Copyright 2022, UiPath, all rights reserved 9
BlueOak-1.0.0 8
MPL-2.0 5
MIT OR Apache-2.0 3
MIT-0 3
Unknown 3
Unlicense 3
CC0-1.0 3
LGPL-3.0-or-later 2
(MIT OR Apache-2.0) 2
Python-2.0 1
CC-BY-4.0 1
(MPL-2.0 OR Apache-2.0) 1
BSD 1
Artistic-2.0 1
(WTFPL OR MIT) 1
(BSD-2-Clause OR MIT OR Apache-2.0) 1
CC-BY-3.0 1
0BSD 1
(MIT OR CC0-1.0) 1
MIT AND ISC 1
Excluded packages
Package Version License Reason
@img/sharp-libvips-linux-x64 1.2.4 LGPL-3.0-or-later LGPL pre-built binary, not linked
@img/sharp-libvips-linuxmusl-x64 1.2.4 LGPL-3.0-or-later LGPL pre-built binary, not linked
@uipath/apollo-angular-elements 5.86.3 Copyright 2022, UiPath, all rights reserved UiPath first-party package
@uipath/apollo-core 4.35.0, 4.35.1 Copyright 2022, UiPath, all rights reserved UiPath first-party package
@uipath/apollo-fonts 1.25.8 Copyright 2022, UiPath, all rights reserved UiPath first-party package
@uipath/apollo-icons 1.33.7 Copyright 2022, UiPath, all rights reserved UiPath first-party package
@uipath/apollo-mui5 2.31.26 Copyright 2022, UiPath, all rights reserved UiPath first-party package
@uipath/portal-shell 3.351.4 Copyright 2022, UiPath, all rights reserved UiPath first-party package
@uipath/portal-shell-react 3.149.36 Copyright 2022, UiPath, all rights reserved UiPath first-party package
@uipath/portal-shell-types 3.325.2 Copyright 2022, UiPath, all rights reserved UiPath first-party package
@uipath/portal-shell-util 1.112.0 Copyright 2022, UiPath, all rights reserved UiPath first-party package
@uipath/apollo-lab 25.12.0 Unknown UiPath first-party package
@uipath/telemetry-client-web 5.1.0 Unknown UiPath first-party package
khroma 2.1.0 Unknown MIT per GitHub repo, missing license field in package.json
hyperx 2.5.4 BSD BSD-2-Clause per LICENSE file, non-SPDX "BSD" in package.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg:apollo-wind size:XXL 1,000+ changed lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant