Skip to content

fix publishing - #287

Merged
nikgraf merged 1 commit into
mainfrom
ng/fix-publishing
Jun 30, 2025
Merged

fix publishing#287
nikgraf merged 1 commit into
mainfrom
ng/fix-publishing

Conversation

@nikgraf

@nikgraf nikgraf commented Jun 30, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 aims to fix publishing issues by updating entity creation and updating space IDs across the Hypergraph-related modules.

  • Adds an "id" property when creating an entity via Graph.createEntity
  • Updates space identifiers in the playground routes and components for consistency

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
packages/hypergraph-react/src/prepare-publish.ts Adds the entity id to the createEntity payload
apps/events/src/routes/playground.lazy.tsx Updates the space ID in the HypergraphSpaceProvider and related components
apps/events/src/components/playground.tsx Updates the space ID for delete and create entity hooks
Comments suppressed due to low confidence (1)

packages/hypergraph-react/src/prepare-publish.ts:94

  • Confirm that adding the id property in the Graph.createEntity payload is supported by the API and that it will not lead to duplicate or unintended id assignments.
      id: entity.id,

function RouteComponent() {
return (
<HypergraphSpaceProvider space="d9814a82-8dab-4d02-86d2-9d413f7dc336">
<HypergraphSpaceProvider space="a57cd482-6dd3-4ba3-ac44-e2e8ea7a2862">

Copilot AI Jun 30, 2025

Copy link

Choose a reason for hiding this comment

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

[nitpick] Consider extracting the space ID literal into a shared constant or configuration file to improve maintainability and reduce duplication.

Copilot uses AI. Check for mistakes.
Comment on lines +25 to +29
space: 'a57cd482-6dd3-4ba3-ac44-e2e8ea7a2862',
});

const createEntity = _useCreateEntityPublic(Event, {
space: '1c954768-7e14-4f0f-9396-0fe9dcd55fe8',
space: 'a57cd482-6dd3-4ba3-ac44-e2e8ea7a2862',

Copilot AI Jun 30, 2025

Copy link

Choose a reason for hiding this comment

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

[nitpick] Consider extracting the space ID literal into a shared constant or configuration file to ensure consistency across the codebase and ease future updates.

Copilot uses AI. Check for mistakes.
@nikgraf
nikgraf merged commit c0a5857 into main Jun 30, 2025
6 checks passed
@nikgraf
nikgraf deleted the ng/fix-publishing branch June 30, 2025 18:22
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