implement Space.findManyPublic - #563
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR implements Space.findManyPublic functionality to fetch and filter public spaces from the Graph testnet. It adds both a low-level SDK function and a React hook for convenient integration.
- Adds
Space.findManyPublic()function with optional filtering by member or editor account address - Introduces
usePublicSpaces()React hook with React Query integration - Updates documentation with usage examples for both the SDK function and React hook
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
packages/hypergraph/src/space/find-many-public.ts |
Core implementation with GraphQL queries, schema validation, and filtering logic |
packages/hypergraph/src/space/index.ts |
Exports the new Space module |
packages/hypergraph/test/space/find-many-public.test.ts |
Unit tests for the parsing logic with valid, missing, and invalid data scenarios |
packages/hypergraph-react/src/hooks/usePublicSpaces.ts |
React Query hook wrapper for the SDK function |
packages/hypergraph/src/index.ts |
Adds Space namespace export |
packages/hypergraph-react/src/index.ts |
Exports the new usePublicSpaces hook |
packages/hypergraph/package.json |
Adds package export path for the space module |
docs/docs/query-public-data.md |
Documentation for the new functionality with code examples |
apps/events/src/routes/podcasts.lazy.tsx |
Example migration from useEntities to usePublicSpaces |
.changeset/loud-houses-design.md |
Changeset describing the new feature |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+6
to
+7
| Add Space.findManyPublic plus the usePublicSpaces hook so apps can fetch and render public spaces (with invalid entries surfaced) via one shared SDK call | ||
|
No newline at end of file |
There was a problem hiding this comment.
This line contains trailing whitespace. Consider removing it for consistency with standard formatting practices.
Suggested change
| Add Space.findManyPublic plus the usePublicSpaces hook so apps can fetch and render public spaces (with invalid entries surfaced) via one shared SDK call | |
| Add Space.findManyPublic plus the usePublicSpaces hook so apps can fetch and render public spaces (with invalid entries surfaced) via one shared SDK call |
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.
No description provided.