Skip to content

Conversation

@brunobuddy
Copy link
Contributor

The version data was stored in registry.json but not being displayed in the UI. This fix:

  • Updates useSourceCode hook to extract version from the fetched JSON data
  • Passes version to InstallCommandInline component
  • Displays version as a badge (e.g., "v1.0.0") next to the install command

Description

Related Issues

How can it be tested?

Check list before submitting

  • This PR is wrote in a clear language and correctly labeled
  • I have performed a self-review of my code (no debugs, no commented code, good naming, etc.)
  • I wrote the relative tests
  • I created a PR for the documentation if necessary and attached the link to this PR

@vercel
Copy link

vercel bot commented Jan 8, 2026

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

Project Deployment Review Updated (UTC)
manifest-agentic-ui-toolkit Ready Ready Preview Jan 8, 2026 7:19pm

claude added 2 commits January 8, 2026 19:18
The version data was stored in registry.json but not being displayed in the UI.
This fix:
- Updates useSourceCode hook to extract version from the fetched JSON data
- Passes version to InstallCommandInline component
- Displays version as a badge (e.g., "v1.0.0") next to the install command
The shadcn build command doesn't include version fields in the generated
JSON files. This adds a post-build script that:
- Reads versions from registry.json
- Injects them into each component's JSON file in public/r/
- Runs automatically after registry:build

Now /r/stats.json will include "version": "1.0.0" etc.
@brunobuddy brunobuddy force-pushed the claude/fix-json-version-display-iFzcl branch from cae1954 to 1eac5fc Compare January 8, 2026 19:19
@brunobuddy brunobuddy merged commit 61287ae into main Jan 8, 2026
5 checks passed
@brunobuddy brunobuddy deleted the claude/fix-json-version-display-iFzcl branch January 8, 2026 19:34
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