Inproving meta and adding new Preview block#1
Merged
Merged
Conversation
- Consolidated clipboard examples into a single examples.tsx file. - Removed individual example files (example-01.tsx, example-02.tsx, example-03.tsx). - Updated code loader to handle new examples structure. - Removed unused clipboard components and sidebar examples. - Added quick start guide for adding new blocks. - Updated documentation for clipboard features and usage.
- Implemented the Preview component to display rich URL previews using OpenGraph metadata. - Added server-side fetching utility to retrieve metadata from URLs. - Created API route for fetching metadata with error handling. - Developed hover card UI components for displaying previews on hover. - Included comprehensive documentation and usage examples for the Preview component.
…d implement progress and spinner components
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new "preview" (URL preview) component block, updates the clipboard block, and makes several improvements to project metadata and dependencies. The changes include new registry entries, new reusable UI primitives, and enhancements to sidebar navigation.
Component and Registry Enhancements
public/r/preview.json,registry.json), main client component (registry/preview/preview.tsx), server-side metadata fetching utility (registry/preview/preview-server.ts), and documentation (registry/preview/README.md). This block provides rich OpenGraph previews for URLs using a hover card interface. [1] [2] [3] [4] [5]UI Primitives and Dependencies
hover-card(src/components/ui/hover-card.tsx),progress(src/components/ui/progress.tsx), andspinner(src/components/ui/spinner.tsx). These components support the new preview block and enable richer UI interactions. [1] [2] [3]package.jsonto include@radix-ui/react-hover-cardand@radix-ui/react-progressfor the new primitives.Project and Documentation Updates
.cta.json,package.json, andregistry.json. Updated repository information and GitHub links to reflect the new project identity. [1] [2] [3] [4]AGENTS.mdabout creating Tanstack Start/Router routes to avoid file corruption.Sidebar and UI Behavior