-
Notifications
You must be signed in to change notification settings - Fork 562
Add minimal text domain #26060
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add minimal text domain #26060
Conversation
There was a problem hiding this 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 introduces a minimal internal text domain for the tree DDS, providing schema and utilities for building text editors beyond basic string primitives. The implementation stores text as an array of individual characters and exposes a simple API for text manipulation operations.
Key Changes:
- Adds
TextAsTreenamespace with schema for representing text as a tree structure - Implements basic text editing operations (insert, remove, iterate characters)
- Includes initial test coverage for basic functionality
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/dds/tree/src/text/textDomain.ts | Core implementation defining TextNode class with character array storage and editing methods |
| packages/dds/tree/src/text/index.ts | Public export of TextAsTree namespace |
| packages/dds/tree/src/text/README.md | Documentation noting early work-in-progress status |
| packages/dds/tree/src/test/text/textDomain.spec.ts | Basic tests for text node type validation and common operations |
| packages/dds/tree/src/index.ts | Adds TextAsTree to main package exports |
| * - Support in generateSchemaFromSimpleSchema for recognizing text nodes and generating the appropriate schema. | ||
| * - Ensure above features work well enough to support important scenarios like AI assisted editing and document indexing for search. | ||
| * | ||
| * Again these are general patterns that components with non-trivial encodings and thus part of that work will be establishing and documenting those patterns more generally, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seems to be a typo in this sentence. I'm having trouble parsing it.
|
🔗 No broken links found! ✅ Your attention to detail is admirable. linkcheck output |
## Description Add minimal internal only text domain suitable for building an example text editor or tree.
Description
Add minimal internal only text domain suitable for building an example text editor or tree.
Reviewer Guidance
The review process is outlined on this wiki page.