Skip to content

HAR-9383 - create comments for imported tracked changes#436

Merged
harbournick merged 1 commit intomainfrom
artem-HAR-9383-v2
Mar 28, 2025
Merged

HAR-9383 - create comments for imported tracked changes#436
harbournick merged 1 commit intomainfrom
artem-HAR-9383-v2

Conversation

@artem-harbour
Copy link
Copy Markdown
Contributor

No description provided.

@artem-harbour artem-harbour self-assigned this Mar 28, 2025
const getTrackedChangeText = ({ node, mark, trackedChangeType, isDeletionInsertion, deletionNodes = [] }) => {
const deletionText = deletionNodes.length ? deletionNodes[0].text : null;

let trackedChangeText = isDeletionInsertion ? nextNode.text : node.text;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@harbournick - Not sure what you wanted to do here, but nextNode variable was not defined.

const node = nodes[0];
const nextTrackedNode = null; //
const isDeletionInsertion = (
trackedChangeType === TrackDeleteMarkName && nextTrackedNode?.type?.name === TrackInsertMarkName
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

nextTrackedNode variable was not defined too.

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.

Oh yeah, I'll remove some of this. This was left over from the previous iteration of this and prob not needed. I'll clean it up.

@artem-harbour artem-harbour marked this pull request as ready for review March 28, 2025 19:34
Copy link
Copy Markdown
Collaborator

@harbournick harbournick left a comment

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 e04eaa3 into main Mar 28, 2025
6 checks passed
@harbournick harbournick deleted the artem-HAR-9383-v2 branch March 28, 2025 20:05
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.

2 participants