Skip to content

Conversation

@harbournick
Copy link
Collaborator

No description provided.

@harbournick harbournick self-assigned this Dec 3, 2025
@harbournick harbournick changed the title fix(comments): fix threading for round trip google docs comments fix(comments): fix threading for round trip google docs comments [stable] Dec 3, 2025
@harbournick harbournick added the don't merge Don't merge yet label Dec 3, 2025
@harbournick
Copy link
Collaborator Author

don't merge pending manual QA fyi @missysuperdoc

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 516 to +522
const values = comment.getValues();
const richText = values.commentText;
const schema = convertHtmlToSchema(richText);
// Prefer the original DOCX comment JSON captured at import time (Word/Google Docs),
// otherwise rebuild from the stored rich-text HTML.
const schema = values.docxCommentJSON || convertHtmlToSchema(richText);

Choose a reason for hiding this comment

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

P1 Badge Export ignores edits to imported comments

The new export path prefers docxCommentJSON over the current commentText, but docxCommentJSON is only captured once when the comment is created from a DOCX/Google Docs import and is never updated when the user edits the comment (see use-comment.js). As a result, any imported comment that is modified in the app will be re-exported with its original content, silently discarding the user’s edits on round trips.

Useful? React with 👍 / 👎.

Copy link
Collaborator

Choose a reason for hiding this comment

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

From what I can tell, this did export new comments attached to the original imported threads:

image

@palmer-cl
Copy link
Collaborator

@harbournick I did test this and this branch is able to import Google Docs threads to SD, then export docx. When importing the docx back to Google Docs, the comments remain threaded 👍

@chittolinag chittolinag changed the title fix(comments): fix threading for round trip google docs comments [stable] SD-1032 - fix(comments): fix threading for round trip google docs comments [stable] Dec 10, 2025
@linear
Copy link

linear bot commented Dec 10, 2025

@palmer-cl
Copy link
Collaborator

@missysuperdoc this should be ready to test again.

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

Labels

don't merge Don't merge yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants