Skip to content

Conversation

nikgraf
Copy link
Collaborator

@nikgraf nikgraf commented Jul 30, 2025

There seems to be an issue with snapshot publishing (maybe their infrastructure). Building works fine locally so would proceed with this one for now

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 renames the Type.Checkbox to Type.Boolean to provide a more semantically accurate name for boolean data types. The change affects the hypergraph type system where checkbox fields are now consistently referred to as boolean fields.

  • Updates type exports to rename Checkbox to Boolean
  • Updates all references to use the new Boolean naming throughout the codebase
  • Maintains the same underlying Schema.Boolean implementation

Reviewed Changes

Copilot reviewed 15 out of 16 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/hypergraph/src/type/type.ts Exports Boolean instead of Checkbox with same Schema.Boolean implementation
packages/hypergraph/src/type-utils/type-utils.ts Renames function from isCheckboxOrOptional to isBooleanOrOptional
packages/hypergraph/src/mapping/Mapping.ts Updates literal type and mapping function to use 'Boolean'
packages/hypergraph/src/entity/types.ts Renames EntityCheckboxFilter to EntityBooleanFilter
packages/hypergraph/test/mapping/Mapping.test.ts Updates test to use 'Boolean' input
packages/hypergraph/test/entity/findMany.test.ts Updates entity definition to use Type.Boolean
packages/hypergraph-react/src/prepare-publish.ts Updates function calls to use new boolean type check
packages/hypergraph-react/src/internal/use-query-public.tsx Updates type checking to use new boolean function
packages/hypergraph-react/src/internal/use-create-entity-public.ts Updates type checking to use new boolean function
packages/hypergraph-react/test/prepare-publish.test.ts Updates tests and entity definitions to use Boolean
docs/legacy-files/archived/schema-graph-based.md Updates documentation to use Boolean type
docs/docs/schema.md Updates documentation examples to use Type.Boolean
docs/docs/filtering-query-results.md Updates filter documentation to use Boolean
apps/typesync/client/src/Components/App/CreateAppForm/SchemaBuilder/TypeSelect.tsx Updates UI option from Checkbox to Boolean
apps/events/src/schema.ts Updates entity schemas to use Type.Boolean

@nikgraf nikgraf merged commit c0035eb into main Jul 30, 2025
6 checks passed
@nikgraf nikgraf deleted the ng/change-type-checkbox-to-boolean branch July 30, 2025 18:29
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