Skip to content

Add @buildcanada/components package with Chromatic visual testing#2

Merged
xrendan merged 3 commits intomasterfrom
feat/buildcanada-components
Jan 18, 2026
Merged

Add @buildcanada/components package with Chromatic visual testing#2
xrendan merged 3 commits intomasterfrom
feat/buildcanada-components

Conversation

@xrendan
Copy link
Member

@xrendan xrendan commented Jan 18, 2026

Summary

  • Adds new @buildcanada/components package with foundational UI components
  • Includes primitives (Button, Checkbox, TextField), content components (Card, Hero, StatBlock), layout components (Container, Divider, Grid, Section, Stack), and navigation (Header, Footer)
  • Sets up SCSS design tokens and typography system
  • Configures Chromatic CI for visual regression testing

Test plan

  • Run bun install and bun run storybook to verify components render
  • Review Chromatic build for visual snapshots
  • Verify typecheck passes with bun run typecheck

🤖 Generated with Claude Code

- Create new components package with design tokens, typography, and brand fonts
- Add primitive components: Button, TextField, Checkbox
- Add layout components: Container, Section, Grid, Stack, Divider
- Add content components: Card, Hero, StatBlock
- Add navigation components: Header, Footer
- Add Storybook stories with interaction tests for all components
- Configure Chromatic for visual regression testing in CI/CD
- Fix process.env browser compatibility issue in charts package
- Set default Storybook background to linen (#F6ECE3)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
xrendan and others added 2 commits January 18, 2026 08:46
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Each chart type now shows data by default:
- LineChart: Canada, US, Germany, Japan
- DiscreteBar: 8 countries across income levels
- StackedArea/Bar: 5 countries
- SlopeChart: 6 countries
- ScatterPlot: 7 countries

Also adds vitest config to components package to pass with no tests.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@xrendan xrendan merged commit 77155b8 into master Jan 18, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant