Skip to content

Conversation

@tommerty
Copy link
Collaborator

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

  • Added a new "Preview" (URL preview) block, including its registry entry (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]
  • Improved the "Clipboard" block's metadata, author information, and registry integration, and updated its category to "general." Also linked its registry entry to the new component location. [1] [2] [3]

UI Primitives and Dependencies

  • Added new UI primitives: hover-card (src/components/ui/hover-card.tsx), progress (src/components/ui/progress.tsx), and spinner (src/components/ui/spinner.tsx). These components support the new preview block and enable richer UI interactions. [1] [2] [3]
  • Updated dependencies in package.json to include @radix-ui/react-hover-card and @radix-ui/react-progress for the new primitives.

Project and Documentation Updates

  • Renamed the project from "latest-ui" to "doras-ui" in .cta.json, package.json, and registry.json. Updated repository information and GitHub links to reflect the new project identity. [1] [2] [3] [4]
  • Added documentation and usage instructions for the new preview block, including examples and server-side fetching guidance.
  • Added a note to AGENTS.md about creating Tanstack Start/Router routes to avoid file corruption.

Sidebar and UI Behavior

  • Updated the sidebar to exclude preview blocks from the main blocks list and changed the GitHub link to point to the new repository. [1] [2]

- 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.
@tommerty tommerty merged commit 0c26d44 into main Oct 28, 2025
1 check failed
@tommerty tommerty deleted the improve-meta branch October 28, 2025 17:09
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.

2 participants