-
Notifications
You must be signed in to change notification settings - Fork 67
fix: ensure we do not duplicate bubble text #1934
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
fix: ensure we do not duplicate bubble text #1934
Conversation
palmer-cl
commented
Feb 4, 2026
- 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
caio-pizzol
left a comment
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.
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.
packages/super-editor/src/extensions/comment/comments-plugin.js
Outdated
Show resolved
Hide resolved
packages/super-editor/src/extensions/comment/comments-plugin.js
Outdated
Show resolved
Hide resolved
|
@caio-pizzol added VRTs and updated comments. |
afn
left a comment
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.
LGTM, just one minor nit
| // safety net for identity dedupe | ||
| // work is done above |
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.
I think the previous comment ("Remove duplicates by comparing node identity") was clearer
caio-pizzol
left a comment
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.
LGTM -
Missing behavior tests - I will add them later
|
@caio-pizzol dont the VRT screenshot tests have the behavior embedded in them? we have to perform the user actions before taking the screenshot? |
|
🎉 This PR is included in superdoc v1.13.0-next.2 The release is available on GitHub release |