Skip to content

fix: polymer SVG node loss, handle save prompt delay on crash, and refine SVG glyph IDs - v2.x #2774

Merged
PiTrem merged 5 commits intov2.xfrom
bugfix_v2-ketcher-display-issue-with-tools
Nov 13, 2025
Merged

fix: polymer SVG node loss, handle save prompt delay on crash, and refine SVG glyph IDs - v2.x #2774
PiTrem merged 5 commits intov2.xfrom
bugfix_v2-ketcher-display-issue-with-tools

Conversation

@haditariq
Copy link
Contributor

@haditariq haditariq commented Nov 11, 2025

backport of #2582 to v2.x

1- SVG conflicting ID's suffix limited to glyphs
2- Loofah scrub removing SVG elements from the SVG
3- Ketcher API fails to generate SVG, does not affect saving in the editor

HOW
1- More dynamic glyph IDs
2- Custom SVG+HTML tag sanitizer using nokogiri
3- If Ketcher is not able to generate an SVG for the structure, give user feedback that SVG generation failed

end
end
end
end No newline at end of file

Choose a reason for hiding this comment

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

Layout/TrailingEmptyLines: Final newline missing.

@haditariq haditariq changed the title fix: V2.x polymer SVG node loss, handle save prompt delay on crash, and refine SVG glyph IDs fix: v2.x polymer SVG node loss, handle save prompt delay on crash, and refine SVG glyph IDs Nov 11, 2025
end
# rubocop:enable RSpec/MultipleMemoizedHelpers
# rubocop:enable Rspec/IndexedLet
# rubocop:enable Rspec/IndexedLet No newline at end of file

Choose a reason for hiding this comment

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

Layout/TrailingEmptyLines: Final newline missing.

@github-actions
Copy link

LCOV of commit aaa8977 during Continuous Integration #6191

Summary coverage rate:
  lines......: 66.8% (16019 of 23986 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

@haditariq haditariq force-pushed the bugfix_v2-ketcher-display-issue-with-tools branch from cd76a1a to 3d6e2a5 Compare November 12, 2025 08:35
@github-actions
Copy link

LCOV of commit 3d23a29 during Continuous Integration #6194

Summary coverage rate:
  lines......: 66.9% (16035 of 23986 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

rubocop

draft: yarn

nodejs tool

rspec: svg_sanitizer

rubo

extra file

chore: v2 base files
@haditariq haditariq force-pushed the bugfix_v2-ketcher-display-issue-with-tools branch from 24f7cf8 to a117af6 Compare November 12, 2025 08:54
@github-actions
Copy link

LCOV of commit 8b8ffb0 during Continuous Integration #6197

Summary coverage rate:
  lines......: 66.8% (16019 of 23986 lines)
  functions..: no data found
  branches...: no data found

Files changed coverage rate: n/a

@haditariq haditariq requested a review from PiTrem November 12, 2025 09:19
@PiTrem PiTrem changed the title fix: v2.x polymer SVG node loss, handle save prompt delay on crash, and refine SVG glyph IDs fix: polymer SVG node loss, handle save prompt delay on crash, and refine SVG glyph IDs - v2.x Nov 13, 2025
@PiTrem PiTrem merged commit a3b36e8 into v2.x Nov 13, 2025
1 check passed
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