improve project listing (templates)#457
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
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
Imageentity and extendedProjectschema with optional fields for description, Twitter URL, and avatar relation - Implemented search functionality to filter projects by name
- Added
GraphImagecomponent 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 |
…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>
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.
closes #429