m2ms / fragalysis-frontend

The React, Redux frontend built by webpack
Other
1 stars 1 forks source link

Store and retrieve snapshot actions in/from the backend #455

Open boriskovar-m2ms opened 3 years ago

boriskovar-m2ms commented 3 years ago

When snapshot is saved it is needed to replace current saving and reloading logic with storing the state using the minimal set of actions (implemented in #428) and saving it in the backend using the provided API (POST ../api/snapshot-actions/{snapshot}/). For reloading purposes the list of minimal actions shall be retrieved from the backend using the API (GET ../api/snapshot-actions/?snapshot=) and restore the state of the application (implemented in #429).

Details are in the attached document.

Fragalysis Changes WP1 v0.1.docx

phraenquex commented 3 years ago

"Share snapshot" currently does not work on a page that's been opened from a direct link (one like this: https://fragalysis.diamond.ac.uk/viewer/react/preview/direct/target/Mpro/mols/X11498/L/P).

I assume this ticket will fix it; if it won't, then please create a ticket to capture that bug.

teriraj commented 3 years ago

it is not possible to use the SAVE function. bug is tracking in #454

teriraj commented 3 years ago

persistent problem with saving process (bug is tracking in #454)

teriraj commented 3 years ago

Saving a snapshot: LHS&RHS:

  1. Use the A button to turn on LPC
  2. uncheck P, C, (only L is turned on)
  3. save the snapshot.
  4. After saving, I get a snapshot. The last action - turning off the PC button is written in the action list, but PC buttons are turned on and in the NGL displayed.
teriraj commented 3 years ago

Share action doesn´t work correctly. After pressing Share button modal is displayed, then the copy button is pushed, link is copied to new tab, but nothnig is displayed in the new tab. image

teriraj commented 3 years ago

Saving action is fixed. The problem with sharing is tracking in #476.