Skip to content

fix: replace tracked change bubble [SD-484] - #1135

Merged
harbournick merged 1 commit into
mainfrom
fix/tracked-change-replace-bubble
Oct 15, 2025
Merged

fix: replace tracked change bubble [SD-484]#1135
harbournick merged 1 commit into
mainfrom
fix/tracked-change-replace-bubble

Conversation

@palmer-cl

Copy link
Copy Markdown
Collaborator
  • When replacing text, pass insertion ID to deletion to link with the same ID
  • Add tests for single insertion, single deletion and replace
image

@palmer-cl palmer-cl changed the title fix: replace tracked change bubble fix: replace tracked change bubble [SD-484] Oct 15, 2025
@linear

linear Bot commented Oct 15, 2025

Copy link
Copy Markdown

@harbournick
harbournick requested a review from Copilot October 15, 2025 05:05

Copilot AI left a comment

Copy link
Copy Markdown

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 fixes tracked change behavior for replace operations by ensuring that both insertion and deletion marks share the same ID, which is necessary for proper change tracking visualization.

  • Modify markDeletion to accept an optional ID parameter for linking with insertions
  • Update replaceStep to pass the insertion mark ID to the deletion operation
  • Add comprehensive test coverage for replace, insertion-only, and deletion-only scenarios

Reviewed Changes

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

File Description
trackChangesHelpers.test.js Adds comprehensive test suite for replace operations and ID sharing behavior
replaceStep.js Passes insertion mark ID to deletion operation for linking
markDeletion.js Accepts optional ID parameter and uses it when provided

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

@harbournick harbournick left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@harbournick
harbournick merged commit cd8b480 into main Oct 15, 2025
7 checks passed
@harbournick
harbournick deleted the fix/tracked-change-replace-bubble branch October 15, 2025 05:24
@superdocbot

superdocbot Bot commented Oct 15, 2025

Copy link
Copy Markdown

🎉 This PR is included in version 0.25.0-next.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

superdocbot Bot pushed a commit that referenced this pull request Oct 15, 2025
# [0.25.0](v0.24.0...v0.25.0) (2025-10-15)

### Bug Fixes

* replace (addition/deletion) tracked change bubble ([#1135](#1135)) ([cd8b480](cd8b480))
* toolbar font-size when multiple selected ([#1139](#1139)) ([234f8e1](234f8e1))

### Features

* allow customizing of tracked change permissions ([#1132](#1132)) ([1078801](1078801))
@superdocbot

superdocbot Bot commented Oct 15, 2025

Copy link
Copy Markdown

🎉 This PR is included in version 0.25.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants