Skip to content

feat(ui): add Zaidan Storybook baseline - #4

Merged
kattsushi merged 1 commit into
feat/ui-packagefrom
feat/ui-package-zaidan-storybook-css
May 21, 2026
Merged

kattsushi merged 1 commit into
feat/ui-packagefrom
feat/ui-package-zaidan-storybook-css

Conversation

@kattsushi

@kattsushi kattsushi commented May 20, 2026 •

Copy link
Copy Markdown
Owner

Part of tracker #2. Targets feat/ui-package.

Closes #1

PR Type

  • Bug fix
  • New feature
  • Documentation only
  • Code refactoring
  • Maintenance/tooling
  • Breaking change

Summary

  • Adds the PR 2 Zaidan component baseline for @os-copilot/ui.
  • Wires Storybook for Solid/Vite through Nx with mobile-first stories under packages/ui/src/stories/ui.
  • Adds Tailwind v4/tw-animate CSS foundation and keeps chart/ECharts opt-in via subpath export.

Chain Context

master
└── 📍 tracker #2: feat/ui-package
    ├── ✅ PR #3: scaffold package + shadcn routing
    └── 🔎 PR #4: Zaidan baseline + Storybook/CSS

Changes

File Change
packages/ui/src/components/ui/* Adds Zaidan UI component batch and SSR-safe support hook.
packages/ui/src/stories/ui/* Adds Storybook stories for the installed component baseline.
packages/ui/.storybook/* Configures Storybook Solid/Vite with UI styles and mobile viewport defaults.
packages/ui/src/styles.css, packages/ui/src/styles/base.css Adds Tailwind v4, Inter, neutral/Vega tokens, and animation utilities.
packages/ui/package.json, packages/ui/project.json, nx.json Adds Storybook scripts, Nx targets/plugin, exports, and package dependencies.
pnpm-workspace.yaml, pnpm-lock.yaml Centralizes new dependency versions in the workspace catalog.
.gitignore Ignores Storybook static output.

Test Plan

  • pnpm exec dprint check
  • pnpm exec oxlint
  • pnpm nx typecheck ui
  • pnpm nx build ui
  • pnpm nx test ui --run
  • pnpm nx build-storybook ui
  • pnpm nx typecheck web
  • Fresh reviewer audit completed with no blockers.

Notes

  • Storybook emits a non-blocking warning: unable to find package.json for @kobalte/core. This comes from Kobalte not exporting ./package.json in its package exports.
  • The chart story intentionally pulls ECharts and causes a large Storybook chunk; chart is not exported from the root package entry and remains opt-in.

Contributor Checklist

  • Linked an approved issue
  • Added exactly one type:* label
  • Ran shellcheck on modified scripts (not applicable: no shell scripts changed)
  • Skills tested in at least one agent
  • Docs updated if behavior changed
  • Conventional commit format
  • No Co-Authored-By trailers

@kattsushi kattsushi added the type:feature New feature label May 20, 2026
@kattsushi kattsushi mentioned this pull request May 20, 2026
16 of 21 tasks
@kattsushi
kattsushi marked this pull request as ready for review May 20, 2026 21:42
@kattsushi
kattsushi merged commit 3576910 into feat/ui-package May 21, 2026
@kattsushi
kattsushi deleted the feat/ui-package-zaidan-storybook-css branch May 21, 2026 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant