Skip to content

feat!: SW-1917 Remove deprecated Drawer and InputOTP components#146

Open
owilliams-tetrascience wants to merge 1 commit into
mainfrom
claude/competent-snyder-902315
Open

feat!: SW-1917 Remove deprecated Drawer and InputOTP components#146
owilliams-tetrascience wants to merge 1 commit into
mainfrom
claude/competent-snyder-902315

Conversation

@owilliams-tetrascience

@owilliams-tetrascience owilliams-tetrascience commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

Removes the deprecated Drawer and InputOTP components from the UI kit, per SW-1917. Deleting these also lets us drop their dependencies — vaul (Drawer) and input-otp (InputOTP), which were each used only by the removed component.

  • Delete drawer.tsx / input-otp.tsx and their stories
  • Drop both public exports from src/index.ts
  • Remove vaul and input-otp from package.json (lockfile regenerated)
  • Remove both registry.json entries
  • Update README.md, MIGRATION.md, and DESIGN.md component listings
  • Relax the commitlint subject-case rule so JIRA-key-prefixed subjects (the AGENTS.md convention, e.g. feat: SW-1234 …) are accepted

Type of Change

  • Feature (new functionality)
  • Bug fix
  • Refactor
  • Documentation
  • Chore (build, CI, dependencies)
  • Breaking change

Breaking change: Drawer, InputOTP, and their sub-components are no longer exported from @tetrascience-npm/tetrascience-react-ui. Committed as feat! with a BREAKING CHANGE: footer so semantic-release issues a major bump.

Checklist

  • yarn lint passes
  • yarn build passes
  • yarn test:all passes (135 files, 1195 tests)
  • Storybook stories added/updated (stories for both components removed)
  • Code coverage remains the same or increased

Testing

No Zephyr test cases — both removed components were covered only by their own (now-deleted) stories.

Verification

  • Deploys to preview environment for manual verification
  • All CI/E2E checks pass

Notes for reviewer

  • Also includes a small commitlint.config.js fix: the default subject-case rule rejected JIRA-key-prefixed subjects (read as start-case), which conflicted with the AGENTS.md commit convention. Now disabled so feat: SW-1234 Description is accepted.
  • The vendored shadcn skill docs under .agents/skills/shadcn/ still mention Drawer/InputOTP as generic shadcn guidance — left untouched since they're third-party reference material, not this library's API surface.
  • One remaining grep hit for "drawer" (ElevationAndShape.stories.tsx: "Navigation drawers, FABs") is unrelated descriptive text about an elevation level.

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings June 23, 2026 19:58
@owilliams-tetrascience owilliams-tetrascience requested review from a team as code owners June 23, 2026 19:58
@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
ts-lib-ui-kit-storybook Ready Ready Preview, Comment Jun 23, 2026 8:03pm

Request Review

Removes the deprecated Drawer and InputOTP components from the library
along with their now-unused dependencies. Also relaxes the commitlint
subject-case rule so JIRA-key-prefixed subjects (the AGENTS.md convention)
are accepted.

- Delete drawer.tsx / input-otp.tsx and their stories
- Drop public exports from src/index.ts
- Remove vaul (Drawer) and input-otp (InputOTP) deps from package.json
- Remove both registry.json entries
- Update README.md, MIGRATION.md, and DESIGN.md component listings
- Disable commitlint subject-case rule to allow "SW-1234" subject prefixes

BREAKING CHANGE: Drawer and InputOTP (and their sub-components) are no
longer exported from @tetrascience-npm/tetrascience-react-ui.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR removes the deprecated Drawer and InputOTP UI primitives from @tetrascience-npm/tetrascience-react-ui, along with their now-unneeded dependencies, and updates registry/docs to match the reduced public API surface.

Changes:

  • Removed Drawer and InputOTP components (and their Storybook stories) and dropped their root exports.
  • Removed vaul and input-otp dependencies and regenerated the lockfile accordingly.
  • Updated registry.json and public documentation (README.md, MIGRATION.md, DESIGN.md) to remove the deleted components from inventories/lists.

Reviewed changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
yarn.lock Removes vaul / input-otp entries and updates the resolved dependency graph.
package.json Drops vaul and input-otp from dependencies.
src/index.ts Removes public exports for drawer and input-otp.
src/components/ui/drawer.tsx Deletes the deprecated Drawer component implementation.
src/components/ui/drawer.stories.tsx Deletes Storybook stories/play tests for Drawer.
src/components/ui/input-otp.tsx Deletes the deprecated InputOTP component implementation.
src/components/ui/input-otp.stories.tsx Deletes Storybook stories/play tests for InputOTP.
registry.json Removes registry entries for drawer and input-otp.
README.md Updates the UI primitives list to remove Drawer and InputOTP.
MIGRATION.md Removes Drawer / InputOTP from the “New Components” list and removes the vaul dependency mention.
DESIGN.md Updates the component inventory table to remove Drawer and InputOtp.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json
@owilliams-tetrascience owilliams-tetrascience changed the title SW-1917 Remove deprecated Drawer and InputOTP components feat!: SW-1917 Remove deprecated Drawer and InputOTP components Jun 23, 2026
@github-actions

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🟢 Lines 94.76% (🎯 83%)
⬆️ +0.02%
20463 / 21593
🟢 Statements 94.76% (🎯 83%)
⬆️ +0.02%
20463 / 21593
🟢 Functions 93.69% (🎯 74%)
⬆️ +0.11%
907 / 968
🟢 Branches 88.81% (🎯 81%)
⬆️ +0.07%
3754 / 4227
File CoverageNo changed files found.
Generated in workflow #815 for commit a105988 by the Vitest Coverage Report Action

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.

3 participants