Skip to content

Bump @policyengine/ui-kit to ^0.8.0#17

Merged
MaxGhenis merged 4 commits into
mainfrom
bump-ui-kit-0.8.0
May 9, 2026
Merged

Bump @policyengine/ui-kit to ^0.8.0#17
MaxGhenis merged 4 commits into
mainfrom
bump-ui-kit-0.8.0

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

Summary

Bumps @policyengine/ui-kit from ^0.4.0 to ^0.8.0. Picks up:

  • Dark mode tokens with verified WCAG contrast (0.6.0)
  • Quarto SCSS theme export for paper renders (0.6.0)
  • Accessible text variants --text-warning, --text-error, --text-success (0.5.0)
  • Visualization, Header/Footer, impact charts (0.4.0)
  • WCAG contrast matrix asserted in CI for every documented pair
  • @policyengine/ui-kit/legacy compat shim for the deprecated design-system (0.8.0)

No breaking API changes for current consumers; the only resolved-color shifts are --destructive #EF4444 → #DC2626 and --text-warning #d9480f → #c2410c, both darker for AA compliance. Verify nothing visual breaks.

Test plan

  • CI green
  • Spot-check the deployed preview if one is available

🤖 Generated with Claude Code

Picks up dark mode tokens, Quarto SCSS theme, WCAG contrast matrix CI,
accessible text variants, and the legacy compat shim shipped in
0.4.0–0.8.0.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 9, 2026

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

Project Deployment Actions Updated (UTC)
policybench-site Ready Ready Preview, Comment May 9, 2026 1:45pm

Request Review

Copy link
Copy Markdown

@policyengine policyengine Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean bump from ui-kit 0.4.0 → 0.8.0. The codebase only consumes CSS custom properties from ui-kit (no component imports), so the upgrade surface is minimal.

Verified:

  • Lock file correctly resolves to @policyengine/ui-kit@0.8.0
  • No direct imports of ui-kit components—only CSS theme via @import "@policyengine/ui-kit/theme.css"
  • Color token references use fallback values (e.g., var(--text-warning, #d9480f)) so the code gracefully degrades if tokens are missing
  • The --destructive token mentioned in the PR description isn't used anywhere in the app code
  • app/public/paper/web/pe-tokens.css is a frozen snapshot from the old design-system (not modified in this PR) and won't be affected
  • app/src/app/theme.css:34 uses --text-warning with the old fallback #d9480f, which will now resolve to the new ui-kit value #c2410c (darker, better contrast per the PR description)

What's good:
The fallback values in theme.css provide a safety net. The PR correctly identifies the only visual changes: --text-warning darkening from #d9480f → #c2410c for WCAG compliance. Since PolicyBench doesn't use --destructive, that change is irrelevant.

No issues found. The upgrade is backward-compatible for this codebase's usage pattern.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Vercel only loads vercel.json from the project root directory, which
the policybench-site project has set to '.'. The previous app/vercel.json
worked for direct CLI deploys (where the CLI uploads from app/) but was
ignored by the git integration that drives PR previews — Vercel was
running 'bun install' at the repo root, which has no package.json.

Add a root vercel.json that runs install/build inside app/ and points
the output directory at app/.next, matching the pattern used by other
PolicyEngine repos with Next.js apps in subdirectories
(e.g. spm-calculator).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@MaxGhenis MaxGhenis merged commit abe770a into main May 9, 2026
4 checks passed
@MaxGhenis MaxGhenis deleted the bump-ui-kit-0.8.0 branch May 9, 2026 13:45
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