Skip to content

chore: remove unused shadcn generator dependency - #31737

Merged
nwparker merged 1 commit into
mainfrom
nwparker/remove-unused-dependencies
Oct 22, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/remove-unused-dependencies

Conversation

@nwparker

@nwparker nwparker commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​36 $\color{#cf222e}{\Huge{\mathbf{−}}}$​30 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​6
Prod 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​13 $\color{#cf222e}{\Huge{\mathbf{−}}}$​984 $\color{#cf222e}{\Huge{\mathbf{−}}}$​971

ELI5

Remove the unused shadcn generator CLI from the desktop toolchain. Its removal drops 101 locked package/version entries, including braces, fast-glob, micromatch and ts-morph; no packages are added.

What Changed

  • Remove the direct shadcn dependency and its unused desktop braces patch registration, then regenerate the lockfile with pnpm.
  • Move brace-depth regressions to mobile, where Expo/Metro still uses the patched package. Keep testing the actual installed dependencies without temporary installs or registry access.
  • Update the security-patch documentation to describe the remaining workspace coverage. Checked-in UI components and the separate shadcn lint package keep their existing roles.

Why

The generator's only code reference was a security regression test. Testing the dependency where it is still used lets desktop stop installing the generator and its dependency tree. Follow-up to #31681.

Visual Proof

N/A — dependency metadata and test placement only; no visual or interaction changes.

Testing

  • Fresh frozen, script-free root and mobile installs on macOS arm64; pnpm regenerated the lockfile with 101 entries removed and none added.
  • 64 focused desktop dependency/security/build-contract and queued-editor tests, plus 11 mobile security regressions pass.
  • Full root pnpm tc, formatting, lint and the changed-code quality gate pass.
  • Mobile generated bundles rebuilt and the mobile test typecheck ratchet passes.

Review

  • Self-reviewed the removed dependency graph and remaining patch references. No runtime/client protocol, OS-specific code, folder-workspace behavior or UI changes.
  • No upstream skill-installer source, tests, fixtures, or registry data copied or translated.

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e9ff0bfc-4f9f-4604-842a-7e0d31029700
📥 Commits

Reviewing files that changed from the base of the PR and between 0834610 and 2e18c35.

⛔ Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing: 5
  • config/patches/dependency-security.md
  • config/scripts/dependency-security-patches.test.mjs
  • mobile/scripts/dependency-security-patches.test.ts
  • package.json
  • pnpm-workspace.yaml
💤 Files with no reviewable changes: 3
  • pnpm-workspace.yaml
  • package.json
  • config/scripts/dependency-security-patches.test.mjs

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

📝 Walkthrough

The workspace removes the shadcn development dependency and the braces patch mapping. Desktop tests no longer check braces nesting limits. Mobile tests add nesting-limit checks for braces patterns and AST inputs, plus a simple expansion check. The dependency security documentation updates the listed patch coverage and regression tests.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 2e18c

The cleanup removes the unused desktop braces dependency while retaining patch coverage in workspaces that still use it. No actionable merge risk is indicated.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely identifies the main change: removing the unused shadcn generator dependency.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description is complete and relevant. It explains the user impact, changes, rationale, testing, visual proof, review scope, and agent-skill boundary. The linked issue is referenced as #31681 but i…
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files. (1 skipped: 1 unsupported.)

Full details: Description check

Explanation

The description is complete and relevant. It explains the user impact, changes, rationale, testing, visual proof, review scope, and agent-skill boundary. The linked issue is referenced as #31681 but is not provided as an explicit issue link, and the template Notes and Checklist sections are omitted.

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker force-pushed the nwparker/remove-unused-dependencies branch 2 times, most recently from 2e18c35 to a76c309 Compare October 22, 2026 01:18
@nwparker
nwparker force-pushed the nwparker/remove-unused-dependencies branch from a76c309 to c70a82b Compare October 22, 2026 01:42
@nwparker
nwparker merged commit a8dff64 into main Oct 22, 2026
58 of 60 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