Skip to content

Conversation

nikgraf
Copy link
Collaborator

@nikgraf nikgraf commented Jun 19, 2025

No description provided.

@nikgraf nikgraf requested a review from Copilot June 19, 2025 12:26
Copy link

vercel bot commented Jun 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hypergraph-connect ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 19, 2025 0:33am
hypergraph-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 19, 2025 0:33am

Copy link
Contributor

@Copilot Copilot AI left a 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 updates the handling of space data to include a human-readable name in the spaces list.

  • Adds a new "name" property to the SpaceStorageEntry type and updates the setSpaceFromList event.
  • Updates the message schema and frontend components to use the space name instead of the space id for display.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
packages/hypergraph/src/store.ts Added the "name" property; updated setSpaceFromList event structure and usage in space updating logic.
packages/hypergraph/src/messages/types.ts Extended the list spaces response schema to include space names.
packages/hypergraph-react/src/HypergraphAppContext.tsx Modified event dispatch to include the space name.
apps/events/src/routes/index.tsx Updated UI elements to display space.name in place of space.id.

if (existingSpace.id === event.spaceId) {
const newSpace: SpaceStorageEntry = {
id: existingSpace.id,
name: existingSpace.name,
Copy link

Copilot AI Jun 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the existing space update logic, the event carries a new name but the code reuses the existing space name. Consider using event.name to update the space name consistently.

Suggested change
name: existingSpace.name,
name: event.name,

Copilot uses AI. Check for mistakes.

@nikgraf nikgraf force-pushed the ng/use-space-name-for-spaces-list branch from 4275416 to 643945e Compare June 19, 2025 12:32
@nikgraf nikgraf merged commit 75f4eab into main Jun 19, 2025
7 checks passed
@nikgraf nikgraf deleted the ng/use-space-name-for-spaces-list branch June 19, 2025 12:35
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.

1 participant