change Type.Checkbox to Type.Boolean#409
Merged
Merged
Conversation
eafe19d to
d983875
Compare
Open
Contributor
There was a problem hiding this comment.
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 |
cmwhited
approved these changes
Jul 30, 2025
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.
There seems to be an issue with snapshot publishing (maybe their infrastructure). Building works fine locally so would proceed with this one for now