Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#4145 - implement popup versions of ketcher and routing #6403

Conversation

tanas80
Copy link
Collaborator

@tanas80 tanas80 commented Jan 31, 2025

How does the feature work? / How did you fix the issue?

Fix example serve adding serve.json for popup and iframe urls.

Now npm run serve:standalone executes web server 'serve', which is listening on port 4002 and serving urls:
http://localhost:4002/popup - from the patch
http://localhost:4002/iframe - found in the code
http://localhost:4002/duo - two Editor instances on the same page (two react components, not iframe).
http://localhost:4002/* - as previous

Fix #4145

Check list

  • unit-tests written
  • e2e-tests written
  • documentation updated
  • PR name follows the pattern #1234 – issue name
  • branch name doesn't contain '#'
  • PR is linked with the issue
  • base branch (master or release/xx) is correct
  • task status changed to "Code review"
  • reviewers are notified about the pull request

Screenshots

image
image
image
image

svvald and others added 21 commits January 9, 2025 12:02
…e and radical properties in macro mode (#6249)

* #6237 – Atom properties missing on initial load in Macro mode

* #6235 – Incorrect representation of hydrogens for atom alias in Macro mode

* #6235 – Fix typo

* #6235 – Fix UI tests
… macro switcher enabled by default (#6265)

* #6034 – Combine two editors in ketcher-react package in order to make macro switcher enabled by default

* #6034 – Add loader when switching modes, change disable prop name, adjust readme files
* #6298 – Update Indigo to 1.28.0-rc.2 in-browser module

* #6298 – Update UI tests

* #6298 – Update UI tests
(cherry picked from commit 3284a40)

Co-authored-by: Ljubica Milovic <[email protected]>
…ts content security policy best practises (#6320)

This change uses ajv-cli to pre-compile the validation schema to allow running Ketcher under restrictive CSP header.
- pre-compile schema on dev mode
- prettier ignore compiled schema
- added additional fix for dev build

---------

Co-authored-by: Mouss <[email protected]>
…Ketcher is inside dialog window (#6352)

* #6344 - Excessive scroll appears in macromolecules mode in canvas if Ketcher is inside dialog window
- fixed styles for Ketcher in popup
- fixed layout for right column
- updated screenshot

* #6351 - Update indigo to 1.28.0-rc.3 in browser module
…olecule and Paste from Clipboard/Open from File (#6373)

* #6370 - Inconsistent zoom behavior when inserting a molecule via setMolecule and Paste from Clipboard/Open from File
- added autozoom for setMolecule and addFragment in macro mode

#6375 - Ketcher renders editor twice in dev mode
- removed react strict mode from editor

- updated ketcher to 3.0.0-rc.5
…opup with ketcher and open again (#6380)

- clear isPolymerEditorTurnedOn on Editor destroy
* fixed calcuation sense and antisense backbones

* mark antisense chain only if nucleotide

* removed unused function

* fixed shift complimentary chain even if not antisense connection

* returned back behaviour drop snake mode selection after reinitialization

* updated screenshots
@rrodionov91 rrodionov91 linked an issue Feb 2, 2025 that may be closed by this pull request
3 tasks
Copy link
Collaborator

@svvald svvald left a comment

Choose a reason for hiding this comment

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

Looks good to me, functionality works fine, some minor comments that might be addressed later

example/src/DuoApp.tsx Show resolved Hide resolved
packages/ketcher-react/package.json Show resolved Hide resolved
example/package.json Show resolved Hide resolved
@tanas80 tanas80 changed the base branch from release/3.0 to release/3.1 February 8, 2025 14:32
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.

[1 day] Implement popup versions of ketcher (and routing)
6 participants