Skip to content

fix(links): link styles should be removed when tracked change is rejected#2465

Merged
caio-pizzol merged 6 commits intomainfrom
colep/sd-2251-bug-rejecting-a-hyperlink-tc-does-not-remove-the-hyperlink
Mar 23, 2026
Merged

fix(links): link styles should be removed when tracked change is rejected#2465
caio-pizzol merged 6 commits intomainfrom
colep/sd-2251-bug-rejecting-a-hyperlink-tc-does-not-remove-the-hyperlink

Conversation

@palmer-cl
Copy link
Copy Markdown
Collaborator

  • Fixed tracked-change reject for hyperlink suggestions so rejecting a suggested link removes both the link mark and transient hyperlink styling

  • Hardened layout invalidation by including hyperlink/underline/strike in diff and cache keys, so reject/apply formatting changes always trigger correct re-rendering instead of stale cached runs.

@linear
Copy link
Copy Markdown

linear Bot commented Mar 19, 2026

Copy link
Copy Markdown

@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: 8289f71cdc

ℹ️ 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
Copy Markdown
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.

@palmer-cl nice fix — removing "after" marks before restoring "before" marks is clean and the overlap matcher fills a real gap. no correctness issues. tests are solid across all layers. left a couple inline suggestions on duplicated code and one note on visual test coverage.

Comment thread packages/layout-engine/layout-bridge/src/cache.ts Outdated
Comment thread tests/behavior/tests/comments/sd-2251-reject-hyperlink-suggestion.spec.ts Outdated
Test-only utility was defined in the production documentHelpers
module. Move it to @tests/helpers/helpers.js so it doesn't ship
in the production bundle.
Copy link
Copy Markdown
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.

@palmer-cl all three items from last round are done. pushed a commit moving a test-only helper out of production code.

looks good, approving.

@caio-pizzol caio-pizzol enabled auto-merge (squash) March 23, 2026 23:27
@caio-pizzol caio-pizzol self-assigned this Mar 23, 2026
@caio-pizzol caio-pizzol merged commit 5933c96 into main Mar 23, 2026
42 checks passed
@caio-pizzol caio-pizzol deleted the colep/sd-2251-bug-rejecting-a-hyperlink-tc-does-not-remove-the-hyperlink branch March 23, 2026 23:36
@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Mar 23, 2026

🎉 This PR is included in superdoc v1.22.0-next.14

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Mar 23, 2026

🎉 This PR is included in superdoc-sdk v1.1.0-next.14

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Mar 23, 2026

🎉 This PR is included in superdoc-cli v0.4.0-next.14

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Mar 24, 2026

🎉 This PR is included in superdoc v1.22.0

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Mar 24, 2026

🎉 This PR is included in superdoc-sdk v1.1.0

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Mar 24, 2026

🎉 This PR is included in superdoc-cli v0.4.0

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Mar 30, 2026

🎉 This PR is included in esign v2.2.0-next.3

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Mar 30, 2026

🎉 This PR is included in template-builder v1.3.0-next.2

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.

3 participants