Skip to content

fix: track changes comment text for formatting changes#2013

Open
luccas-harbour wants to merge 4 commits intomainfrom
luccas/sd-1742-bug-style-changes-in-specific-document-from-sd-webpage-apply
Open

fix: track changes comment text for formatting changes#2013
luccas-harbour wants to merge 4 commits intomainfrom
luccas/sd-1742-bug-style-changes-in-specific-document-from-sd-webpage-apply

Conversation

@luccas-harbour
Copy link
Contributor

@luccas-harbour luccas-harbour commented Feb 12, 2026

This PR tightens tracked-formatting behavior and comment generation for style changes.

  • Tracks add/remove mark changes only on real inline text (skips run wrapper nodes) to avoid noisy/incorrect tracked-format entries.
  • Improves removeMarkStep so before/after payloads are built from actual existing mark attrs and avoid duplicate/incorrect entries.
  • Fixes tracked-change formatting comments by normalizing textStyle attrs before translation, preventing "undefined" values in the generated message. It also an adds support for describing removed style properties.
  • Adds regression coverage in comments-plugin.test.js.

Before:
Screenshot 2026-02-12 at 4 08 21 PM

After:
Screenshot 2026-02-12 at 4 08 31 PM

@linear
Copy link

linear bot commented Feb 12, 2026

@github-actions
Copy link
Contributor

github-actions bot commented Feb 12, 2026

Visual diffs detected

Pixel differences were found in visual tests. This is not blocking — reproduce locally with cd tests/visual && pnpm docs:download && pnpm test to review diffs.

@luccas-harbour
Copy link
Contributor Author

Visual diffs detected

Pixel differences were found in visual tests. This is not blocking — reproduce locally with cd tests/visual && pnpm docs:download && pnpm test to review diffs.

The visual test that failed is related to this PR which hasn't been merged yet: #1995

@luccas-harbour luccas-harbour changed the title fix: correctly track formatting changes fix: correctly compare before/after formatting changes Feb 12, 2026
@luccas-harbour luccas-harbour changed the title fix: correctly compare before/after formatting changes fix: compare before/after formatting changes Feb 12, 2026
@luccas-harbour luccas-harbour marked this pull request as ready for review February 12, 2026 19:37
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.

Reviewed commit: d53d326547

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@luccas-harbour luccas-harbour force-pushed the luccas/sd-1742-bug-style-changes-in-specific-document-from-sd-webpage-apply branch from d53d326 to 85da4cf Compare February 12, 2026 21:08
@luccas-harbour luccas-harbour marked this pull request as ready for review February 12, 2026 21:09
@luccas-harbour luccas-harbour changed the title fix: compare before/after formatting changes fix: track changes comment text for formatting changes Feb 12, 2026
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.

Reviewed commit: 85da4cf907

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@luccas-harbour luccas-harbour marked this pull request as draft February 12, 2026 21:16
@luccas-harbour luccas-harbour force-pushed the luccas/sd-1742-bug-style-changes-in-specific-document-from-sd-webpage-apply branch 2 times, most recently from 73d9d03 to ab2d2b1 Compare February 12, 2026 22:40
@luccas-harbour luccas-harbour force-pushed the luccas/sd-1742-bug-style-changes-in-specific-document-from-sd-webpage-apply branch from ab2d2b1 to b24dd07 Compare February 12, 2026 22:54
@luccas-harbour luccas-harbour marked this pull request as ready for review February 12, 2026 22:57
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.

Reviewed commit: b24dd078d4

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Copy link
Contributor

@tupizz tupizz left a comment

Choose a reason for hiding this comment

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

lgtm

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants