-
Notifications
You must be signed in to change notification settings - Fork 8
improve project listing (templates) #457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR improves the project listing functionality in both Vite React and Next.js templates by adding enhanced visual elements and search capabilities. The changes make the project explorer more user-friendly by displaying avatar images, descriptions, and social media links for each project.
Key changes:
- Added new
Image
entity and extendedProject
schema with optional fields for description, Twitter URL, and avatar relation - Implemented search functionality to filter projects by name
- Added
GraphImage
component to handle IPFS image URLs from the hypergraph - Enhanced UI to display project avatars, descriptions, Twitter links, and project IDs
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.
Show a summary per file
File | Description |
---|---|
apps/create-hypergraph/template-vite-react/src/schema.ts | Added Image entity and extended Project with description, xUrl, and avatar fields |
apps/create-hypergraph/template-vite-react/src/routes/explore-public-knowledge.tsx | Added search UI and enhanced project cards with avatars, descriptions, and Twitter links |
apps/create-hypergraph/template-vite-react/src/mapping.ts | Added mapping for Image entity and new Project fields |
apps/create-hypergraph/template-vite-react/src/components/graph-image.tsx | Created GraphImage component to handle IPFS URLs |
apps/create-hypergraph/template-nextjs/app/schema.ts | Mirror changes to schema for Next.js template |
apps/create-hypergraph/template-nextjs/app/mapping.ts | Mirror mapping changes for Next.js template |
apps/create-hypergraph/template-nextjs/Components/PublicKnowledge/Explore.tsx | Enhanced project explorer with search and improved UI |
apps/create-hypergraph/template-nextjs/Components/GraphImage.tsx | GraphImage component for Next.js template |
.changeset/clean-spies-stare.md | Changeset documentation |
apps/create-hypergraph/template-vite-react/src/components/graph-image.tsx
Outdated
Show resolved
Hide resolved
apps/create-hypergraph/template-vite-react/src/components/graph-image.tsx
Outdated
Show resolved
Hide resolved
apps/create-hypergraph/template-nextjs/Components/GraphImage.tsx
Outdated
Show resolved
Hide resolved
apps/create-hypergraph/template-nextjs/Components/GraphImage.tsx
Outdated
Show resolved
Hide resolved
…h-image.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…h-image.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
closes #429