Conversation
issue solved and shadcn json file updated
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (121)
📝 WalkthroughWalkthroughThis PR refactors the component registry and documentation system by centralizing CLI dependencies and code snippets into standalone TypeScript maps, updating the Changes
Sequence Diagram(s)sequenceDiagram
participant Doc as Documentation (MDX)
participant Cli as Cli Component
participant DepMap as cliDependenciesMap
participant CodeBlock as CodeBlock Component
participant SnippetMap as codeSnippetsMap
Doc->>Cli: Render <Cli isManual={true} />
Cli->>Cli: usePathname() → extract slug
Cli->>DepMap: Lookup cliDependenciesMap[slug]
DepMap-->>Cli: Return resolved dependencies array
Cli->>Cli: Render dependency commands or fallback
Doc->>CodeBlock: Render <CodeBlock snippetKey="utils-ts" />
CodeBlock->>SnippetMap: Lookup codeSnippetsMap[snippetKey]
SnippetMap-->>CodeBlock: Return CodeSnippet { code, language?, isLanguage? }
CodeBlock->>CodeBlock: Use resolved code & language for syntax highlighting
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Summary by CodeRabbit
New Features
Documentation
Bug Fixes
Refactor