Complete React Bits component coverage and fix overlapping search matches#57

merged
main
capy/complete-react-bits-component
opened7d agobySscreen-gd
View on GitHubRepository sync pausedPR last imported 7d ago

React Bits now matches its full published free-component catalog as checked on October 7, 2026: 213 components, up from 209. Added Circular Carousel, Flex Carousel, Micro Slats, and Pattern Waves, preserving existing names, aliases, and links. Coverage is 33 text animations, 40 animations, 47 components, 34 micro-interactions, and 59 backgrounds. Implementation variants and paid Pro blocks are not counted as separate components.

Library searches previously pooled every component's name and aliases into one string. For example, circular counter matched React Bits by combining Circular Text with Counter, even though neither component matched the whole query. Component-specific words must now match the same entry; library metadata can still provide context such as react or radix. Facet counts and MCP search_libraries use the same corrected matcher. Ranking excludes library-only context so react split text puts Split Text before Split Flap Text.

Recorded the officially documented command menu alias for shadcn/ui and shadcn-svelte Command. This preserves their existing natural-language search behavior without borrowing menu from another component.

Verification

  • Cross-checked all 213 names and URLs against the published React Bits catalog, sitemap, and official navigation at revision ca44b3f. Verified each corresponding route and all 213 HTTP responses, page titles, and canonical paths; no missing or duplicate entries remain in this catalog snapshot.
  • Added focused directory tests for the four additions, overlapping component words, facet counts, and preserved aliases. Exercised exact-name retrieval for every React Bits component through both MCP search tools.
  • npm test passed: production build and 82/82 tests, including discovery checks.
  • npm run typecheck and git diff --check passed. Existing tests were not weakened or removed.

No public routes, installation requirements, or tool argument schemas changed. Existing llms.txt, robots, sitemap, and agent guidance remain applicable; global coverage stays marked partial because other libraries are not complete. No live browser testing was performed.

Related issue: None.

Open in Capy

Summary by CodeRabbit

  • New Features

    • Added four React Bits components to the searchable catalog.
    • Added “command menu” as a search term for Command components in shadcn UI and shadcn-svelte.
  • Bug Fixes

    • Improved component search so results are tied to components that match the query, rather than combining unrelated component terms.
    • Refined result ranking and matching for queries such as “react counter,” helping surface relevant Counter and Count Up components.

Checks

All checks passed
Sscreen-gdopened·7d ago
V

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

ProjectDeploymentActionsUpdated
External image colReady ReadyPreviewOct 7, 2026 1:25am UTC
C

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: 147b7477-39e2-4c95-8fc2-6fbb26ad195a
📥 Commits

Reviewing files that changed from the base of the PR and between abcfb31011f8661b4114d777bafcae92d43183cb and 8d8f8ae5ae448b35c2d85a3e8e4554dd2a246c61.

📒 Files selected for processing (4)
  • data/components.ts
  • lib/directory.test.mjs
  • lib/directory.ts
  • lib/mcp-tools.test.mjs

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


📝 Walkthrough

Walkthrough

The React Bits index gains four components, and two Command entries gain the “command menu” alias. Directory search now attributes query matches to components and ranks matching components. Tests cover the added entries and query matching.

Changes

Component search

Layer / File(s)Summary
Update component catalog
data/components.ts
The React Bits index adds Circular Carousel, Flex Carousel, Micro Slats, and Pattern Waves. The component count comment changes to 213. The shadcn UI and shadcn-svelte Command entries gain the command menu alias.
Match queries to components
lib/directory.ts, lib/directory.test.mjs, lib/mcp-tools.test.mjs
Directory search filters libraries by category, selected stacks, and use cases, then matches components using query tokens. Matching components are ranked using only their matching tokens. Tests cover the new React Bits entries, component attribution, and queries that should not match React Bits.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Merge Risk: ⚪ Minimal · up to 8d8f8

This change adds four React Bits components and tightens search matching so that terms from different components no longer combine into one match. No actionable merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check nameStatusExplanationResolution
Docstring Coverage⚠️ WarningDocstring coverage is 75.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 4 files.Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check nameStatusExplanation
Description Check✅ PassedCheck skipped - CodeRabbit’s high-level summary is enabled.
Title check✅ PassedThe title clearly summarizes the two main changes: completing React Bits component coverage and fixing overlapping search matches.
Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · 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.

C
capy-ai[bot]Commentedcomment· 8d8f8ae57d ago

Capy found no issues.

View 2 other findings in Capy.

Open in Capy