Skip to content

refactor: Embed component source code and installation target paths - #60

Merged
Dinil-Thilakarathne merged 1 commit into
masterfrom
dev
Feb 5, 2026
Merged

Dinil-Thilakarathne merged 1 commit into
masterfrom
dev

Conversation

@Dinil-Thilakarathne

@Dinil-Thilakarathne Dinil-Thilakarathne commented Feb 5, 2026 •

Copy link
Copy Markdown
Owner

This pull request primarily updates the Sona UI registry to include direct references to component source files and adds the full source content for several UI components. The changes improve traceability and ease of access to the actual implementation files for each registry entry. Additionally, new or updated implementations for components such as Accordion, BubbleUpButton, ExpandableTabs, LinkPreview, and Marquee are included.

Registry Reference Updates

  • All registry entries in public/r/registry.json now include a "target" field pointing to the corresponding source file in components/sona-ui/, enhancing clarity and maintainability of the registry mapping. [1] [2] [3] [4] [5] [6]

Component Source Additions/Updates

  • Accordion: The full implementation for the Accordion UI component and its animated button is now included, supporting multiple variants and interactive features.
  • BubbleUpButton: Adds a button component with animated bubble effect on hover, using motion controls for smooth transitions.
  • ExpandableTabs: Provides a tab UI with expandable animated labels and icon support, configurable via props.
  • LinkPreview: Implements a link preview feature that displays additional info on hover, with responsive behavior for desktop and mobile.
  • Marquee: Adds a marquee component with smooth, customizable scrolling, supporting dynamic speed and direction based on user interaction and scroll velocity

Summary by CodeRabbit

  • Refactor
    • Updated component registry structure to include embedded content and explicit target path mappings for better component resolution and distribution.
    • Modified build process to exclude file metadata from registry entries while preserving other component metadata.

…irectly into registry JSON files and update the build script.
@vercel

vercel Bot commented Feb 5, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
sona-ui Ready Ready Preview, Comment Feb 5, 2026 10:47am

@Dinil-Thilakarathne Dinil-Thilakarathne added the bug Something isn't working label Feb 5, 2026
@coderabbitai

coderabbitai Bot commented Feb 5, 2026 •

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

The changes add target fields to component registry entries mapping registry paths to their component locations, while embedding full file content directly into individual component manifest JSON files. A build script is updated to exclude files from metadata spreading.

Changes

Cohort / File(s) Summary
Component Manifest Files
public/r/accordion.json, public/r/bubble-up-button.json, public/r/expandable-tabs.json, public/r/link-preview.json, public/r/marquee.json, public/r/ripple-button.json, public/r/spinning-text.json, public/r/stagger-text.json, public/r/vertical-tab.json
Each manifest entry now embeds complete TSX file content under a content field and adds a target field pointing to the corresponding component path in components/sona-ui/.
Registry Manifest Files
public/r/registry.json, registry.json
Added target field to multiple file entries within the files array, mapping registry paths to their component locations in components/sona-ui/ for accordion, animated-plus-minus-button, spinning-text, bubble-up-button, marquee, ripple-button, vertical-tab, expandable-tabs, link-preview, and stagger-text.
Build Script
scripts/build-registry-json.ts
Modified to destructure and exclude metadata.files from the final entry spread, using only remaining metadata fields while preventing files from being applied to the entry.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested labels

enhancement

Poem

🐰 Hop, skip, and a target leap,
Registry paths now run so deep,
Content embedded, no more waiting,
Components manifest, coordinates gating!
Manifest magic, rebuild's neat,
The rabbit's registry's now complete! ✨

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dev

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 and usage tips.

@Dinil-Thilakarathne Dinil-Thilakarathne linked an issue Feb 5, 2026 that may be closed by this pull request
@Dinil-Thilakarathne
Dinil-Thilakarathne merged commit 142bec6 into master Feb 5, 2026
3 of 4 checks passed
@github-actions

github-actions Bot commented Feb 7, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.11.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

This branch was successfully deployed

1 active deployment
Preview — ee3d3888 Deployed Feb 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integrate Sona UI as a Shadcn Registry

1 participant