Skip to content

WEB-2661 Improvements#1

Merged
krijnrijshouwer merged 21 commits into
mainfrom
feature/web-2661-integrate-input
May 28, 2026
Merged

WEB-2661 Improvements#1
krijnrijshouwer merged 21 commits into
mainfrom
feature/web-2661-integrate-input

Conversation

@krijnrijshouwer

Copy link
Copy Markdown
Member

No description provided.

- Added `SlashMenuContent` and `ToolbarSeparatorProps` to improve component functionality and type definitions.
- Refactored `SlashMenu` to utilize new context and streamline item selection.
- Introduced `fieldEditorTextEntryAttrs` utility for managing text entry attributes in editors.
- Updated styles for better visual consistency and responsiveness in the Slash Menu.
- Cleaned up imports and component structure for improved readability and maintainability.
- Added `SlashMenuContent` and `ToolbarSeparatorProps` to improve component functionality and type definitions.
- Refactored `SlashMenu` to utilize new context and streamline item selection.
- Introduced `fieldEditorTextEntryAttrs` utility for managing text entry attributes in editors.
- Updated styles for better visual consistency and responsiveness in the Slash Menu.
- Cleaned up imports and component structure for improved readability and maintainability.
- Introduced `createHeadlessEditor` to support server-side and test workflows without a UI.
- Updated README.md to include usage examples for the new headless editor.
- Added `@pen/export-json` to pnpm-lock.yaml for workspace integration.
- Refactored code for improved readability and consistency across various files.
- Added session diagnostics functionality to the DebugPanel, allowing real-time monitoring of session state and metrics.
- Introduced new constants for session diagnostics endpoint in playgroundAI.ts.
- Updated pnpm-lock.yaml to include `@pen/export-json` for workspace integration.
- Refactored imports and code structure in various files for improved readability and maintainability.
- Deleted the `headless-collaboration-ai-waves.md` file, which outlined the roadmap for Pen library improvements related to local-first applications, AI workflows, and collaboration features.
- This removal reflects a shift in focus or restructuring of documentation within the project.
- Added a test for splitting a block at offset zero by inserting an empty block above, ensuring correct block order and text content.
- Introduced new keyboard handling utilities for editor document interactions, including handling keyboard events for text entry targets and table cell navigation.
- Updated the editor context to support block selection options, allowing for more flexible interaction models.
- Refactored editor components to improve readability and maintainability, including updates to the caret overlay and content handling logic.
…ality

- Updated function signatures for better readability and consistency across the codebase.
- Enhanced inline node handling in the editor, allowing for more flexible text insertion and deletion.
- Improved handling of text deltas to support both string and inline node types.
- Refactored selection and offset calculations to streamline editor interactions.
- Added new data attributes for inline atom management to facilitate future enhancements.
- Introduced new Suggestion Menu components and hooks for improved user interaction.
- Refactored Slash Menu to support better keyboard navigation and selection handling.
- Updated clipboard serialization to ensure consistent text handling.
- Improved code readability and maintainability through various refactorings across components and hooks.
- Increased DEFAULT_DEBOUNCE_MS from 80 to 100 for improved responsiveness in AI autocomplete.
- Added resolveCurrentInputRange method to ContentEditableBackend for better handling of input ranges.
- Refactored selection handling in various components to utilize the new input range resolution logic.
- Improved code readability by standardizing formatting and structure across multiple files.
- Added a test to verify that accepting an inline completion updates the text selection correctly.
- Implemented logic to programmatically commit text selection after accepting inline completions, ensuring accurate caret positioning.
- Updated the FieldEditor interface to include a method for committing programmatic text selections.
- Refactored key handling to synchronize accepted inline completions with the editor's selection state.
- Improved handling of stale EditContext selections to ensure consistent user experience during inline completions.
- Added support for previous and next block text in the prompt builder to improve context awareness during AI completions.
- Implemented tests to verify inline completion behavior, ensuring placeholders are hidden when suggestions are visible.
- Updated placeholder text in the paragraph block to reflect new command shortcuts for better user guidance.
- Refactored inline content rendering to manage visibility of inline completions and placeholders more effectively.
- Added `notifyDomReconciled` method to the `FieldEditorDomController` interface for better synchronization after DOM updates.
- Updated `ContentEditableBackend` and `EditContextBackend` to notify the editor of DOM reconciliations, improving selection management.
- Introduced inline atom data management functions to streamline the handling of inline elements during reconciliation.
- Enhanced key handling to support selection of inline atoms with arrow keys, improving user experience during text navigation.
- Refactored various components to improve readability and maintainability, ensuring consistent handling of inline atom data.
- Added sessionId, turnId, and generationId to AI operations for improved tracking of AI interactions.
- Introduced ApplySuggestedAIOperations type definitions to streamline suggestion application processes.
- Updated PersistentSuggestion and BlockSuggestionMeta interfaces to include new tracking fields.
- Refactored suggestion handling logic to incorporate new identifiers, enhancing the overall suggestion management system.
- Improved focus handling in the FieldEditor to support new focus policies and lifecycle events.
- Introduced `INLINE_COMPLETION_VISIBLE_BLOCK_ATTRIBUTE` for better decoration management in inline completions.
- Enhanced `buildDecorations` method to return block decorations for non-inline suggestions, improving visual feedback.
- Updated AI suggestion application logic to utilize `interceptApplyForSuggestModeWithMetadata`, streamlining suggestion processing.
- Refactored autocomplete controller to manage continuations more effectively, improving state handling during AI interactions.
- Improved selection management in `ContentEditableBackend` and `EditContextBackend` to support new backend selection authority methods.
- Deleted `databaseOps.test.ts` and `editorCore.test.ts` files to streamline the test suite.
- Refactored the `apply.ts` file to improve the application pipeline, consolidating operation execution and boundary emission.
- Enhanced the `DatabaseViewExecutor` by integrating helper methods for better view management and code clarity.
- Updated `documentSession.ts` to utilize new helper functions for scope management, improving maintainability.
- Simplified the `editor.ts` file by extracting common logic into helper functions, enhancing readability and reducing complexity.
- Added '@pen/content-ops' as a dependency in the AI extension package and updated the pnpm-lock.yaml accordingly.
- Introduced new imports and updated the AIControllerImpl class to include an ExternalInlineTurnRegistry for improved inline turn handling.
- Enhanced the AI extension's index and types to support new functionalities related to AI review and inline operations.
- Refactored various components to improve code clarity and maintainability, ensuring better integration of new features.
@krijnrijshouwer krijnrijshouwer merged commit 647cd9b into main May 28, 2026
1 of 3 checks passed
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