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

#5186 - Add ambiguous monomers to the library and allow their addition to the canvas #5358

Merged
merged 10 commits into from
Aug 27, 2024

Conversation

rrodionov91
Copy link
Collaborator

@rrodionov91 rrodionov91 commented Aug 26, 2024

How the feature works? / How did you fix the issue?

  • added ambiguous monomers to the library

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

position,
);
if (isAmbiguousMonomerLibraryItem(this.monomer)) {
modelChanges = this.editor.drawingEntitiesManager.addVariantMonomer(
Copy link
Collaborator

Choose a reason for hiding this comment

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

I suppose this method of drawingEntitiesManager has to be renamed as well

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will do in next PR

Copy link
Collaborator

Choose a reason for hiding this comment

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

There was some left gap previously for presets, now it is present for 'No natural analogue' group, probably it might be fixed as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@@ -47,12 +50,13 @@ const MonomerItem = ({
disabled={isDisabled}
data-testid={monomerKey}
data-monomer-item-id={monomerKey}
isVariantMonomer={item.isAmbiguous}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This prop has to be renamed too

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will do in next PR

@rrodionov91 rrodionov91 force-pushed the 5186-add-variant-monomers-to-library branch from 97d66cc to b1f88e3 Compare August 27, 2024 13:25
@rrodionov91 rrodionov91 merged commit 2d3dbf7 into master Aug 27, 2024
5 checks passed
@rrodionov91 rrodionov91 deleted the 5186-add-variant-monomers-to-library branch August 27, 2024 15:46
Guch1g0v pushed a commit that referenced this pull request Oct 17, 2024
…n to the canvas (#5358)

- added ambiguous monomers to the library
- updated screenshots
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.

Add ambiguous monomers to the library and allow their addition to the canvas
2 participants