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

Add favorite monomers to canvas from favorite library #3004

Closed
isidoraotasevic opened this issue Jul 31, 2023 · 1 comment · Fixed by #3381
Closed

Add favorite monomers to canvas from favorite library #3004

isidoraotasevic opened this issue Jul 31, 2023 · 1 comment · Fixed by #3381

Comments

@isidoraotasevic
Copy link
Collaborator

isidoraotasevic commented Jul 31, 2023

Background
This task covers adding favorite monomers by click from monomer library to the canvas.
Requirements

  1. User adds monomers to favorites library in the following way:
    -User hovers over a monomer in the library - a greyed out star appears.
    -When user hovers over the star - it changes color to yellow.
    -When user clicks on a star it should persist in yellow color on the monomer item in the library and should also be saved to the "Favorites" library.
  2. User adds favorite monomers from favorite library to canvas in the following way:
    -User clicks on a favorite monomer in a favorite library.
    -Selected favorite monomer becomes highlighted.
    -When a user clicks at the canvas selected favorite monomer is added to the place of a click.
    -Once selected favorite monomer is added to the canvas, the monomer remains selected in the library and can be added again.
  3. Favorite monomers are added to the canvas in a color that corresponds to the color in the favorite library.
  4. Favorite monomers are added to the canvas in a structure that corresponds to the type of a monomer.
@OlZhur OlZhur added this to the Polymer Editor MVP milestone Aug 1, 2023
@Nitvex Nitvex assigned nanoblit and unassigned Nitvex Sep 29, 2023
@nanoblit nanoblit linked a pull request Oct 2, 2023 that will close this issue
9 tasks
nanoblit added a commit that referenced this issue Oct 2, 2023
nanoblit added a commit that referenced this issue Oct 2, 2023
nanoblit added a commit that referenced this issue Oct 2, 2023
Nitvex pushed a commit that referenced this issue Oct 3, 2023
* #3004 - Allow to select items from the Favorites tab

* #3004 - Add test

* #3004 - Remove unnecessary comments

* #3004 - Update tests
@MartaWilliams
Copy link
Collaborator

Tested
2023-10-24_11h24_13

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

Successfully merging a pull request may close this issue.

5 participants