Skip to content

Conversation

n1kolasM
Copy link
Contributor

No description provided.

@n1kolasM n1kolasM requested review from aonnikov and Copilot October 10, 2025 06:24
Copy link

Connected to Huly®: UBERF-13907

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 prevents duplicating ToDo items when copying and pasting content within text editor documents by implementing deduplication logic.

  • Adds an EditorContextExtension to track the current editor's object context (ID, class, and space)
  • Implements a TodoItemPastePlugin that cleans duplicate ToDo attributes during paste operations
  • Extends ToDo items with parent context attributes to identify their origin

Reviewed Changes

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

File Description
plugins/text-editor-resources/src/kits/editor-kit.ts Integrates the new EditorContextExtension into the editor kit
plugins/text-editor-resources/src/components/extension/todo/todo.ts Implements deduplication logic and adds parent context tracking to ToDo items
plugins/text-editor-resources/src/components/extension/editorContext.ts Creates new extension to provide editor context for ToDo deduplication

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@n1kolasM n1kolasM marked this pull request as draft October 13, 2025 05:20
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