Skip to content

fix: ensure we do not duplicate bubble text#1934

Merged
caio-pizzol merged 3 commits intomainfrom
colep/sd-1739-bug-tracked-changes-replacements-duplicate-last-character
Feb 12, 2026
Merged

fix: ensure we do not duplicate bubble text#1934
caio-pizzol merged 3 commits intomainfrom
colep/sd-1739-bug-tracked-changes-replacements-duplicate-last-character

Conversation

@palmer-cl
Copy link
Collaborator

  • The document nodes are the source of truth for what appears in the editor, so they should define the comment text.
  • Also keep the fallbacks
  • added tests
image

@linear
Copy link

linear bot commented Feb 4, 2026

Copy link
Contributor

@caio-pizzol caio-pizzol left a comment

Choose a reason for hiding this comment

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

clean one @palmer-cl!

the only addition I would say here is that in this case, it also impacts rendering and interactions with the editor. we should definitely write interaction stories and upload a sample file for visual testing.

@palmer-cl
Copy link
Collaborator Author

@caio-pizzol added VRTs and updated comments.

Copy link
Contributor

@afn afn left a comment

Choose a reason for hiding this comment

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

LGTM, just one minor nit

Comment on lines +884 to +885
// safety net for identity dedupe
// work is done above
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the previous comment ("Remove duplicates by comparing node identity") was clearer

@caio-pizzol caio-pizzol self-requested a review February 12, 2026 18:59
Copy link
Contributor

@caio-pizzol caio-pizzol left a comment

Choose a reason for hiding this comment

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

LGTM -

Missing behavior tests - I will add them later

@caio-pizzol caio-pizzol merged commit c41cf9e into main Feb 12, 2026
3 checks passed
@caio-pizzol caio-pizzol deleted the colep/sd-1739-bug-tracked-changes-replacements-duplicate-last-character branch February 12, 2026 19:44
@palmer-cl
Copy link
Collaborator Author

@caio-pizzol dont the VRT screenshot tests have the behavior embedded in them? we have to perform the user actions before taking the screenshot?

@superdoc-bot
Copy link

superdoc-bot bot commented Feb 12, 2026

🎉 This PR is included in superdoc v1.13.0-next.2

The release is available on GitHub release

@caio-pizzol
Copy link
Contributor

@caio-pizzol dont the VRT screenshot tests have the behavior embedded in them? we have to perform the user actions before taking the screenshot?

behavior test added here: 9a6385f

superdoc-bot bot pushed a commit that referenced this pull request Feb 14, 2026
# [1.13.0](v1.12.0...v1.13.0) (2026-02-14)

### Bug Fixes

* anchor table overlaps text ([#1995](#1995)) ([fc05e29](fc05e29))
* collaboration cursor styles fix ([fd6db10](fd6db10))
* ensure we do not duplicate bubble text ([#1934](#1934)) ([c41cf9e](c41cf9e))
* ignore sdBlockId when pasting content ([#2010](#2010)) ([1b08572](1b08572))
* normalize bookmarks in tables ([#1892](#1892)) ([369b7e1](369b7e1))
* replace Node.js Buffer APIs with browser-native alternatives ([#2028](#2028)) ([b17774a](b17774a)), closes [#exportProcessMediaFiles](https://github.com/superdoc-dev/superdoc/issues/exportProcessMediaFiles)
* use correct template syntax for GitHub release URL in PR comments ([9d1bca2](9d1bca2))

### Features

* enabled telemetry by default and added documentation ([#2001](#2001)) ([8598ef7](8598ef7))
* enhance telemetry handling for sub-editors ([#2017](#2017)) ([37bc030](37bc030))
* update telemetry configuration to prioritize root licenseKey ([#2016](#2016)) ([3b4ff6b](3b4ff6b))
@superdoc-bot
Copy link

superdoc-bot bot commented Feb 14, 2026

🎉 This PR is included in superdoc v1.13.0

The release is available on GitHub release

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.

Comment box shows extra letter when adding in suggesting mode

4 participants