m2ms/fragalysis-frontend

Sort poses in hit navigator XCA tag / #observations

Opened this issue · 7 comments

New dropdown menu to sort poses and a checkbox to toggle ascending/descending:

Image

Dropdown menu options:

  • Pose name (default)
  • Compound code / alias
  • CanonSites number (prefix)
  • ConformerSites number (prefix)
  • Observation count

@phraenquex reminds @mwinokan and @matej-vavrek that there was an existing sorting modal that was turned off.

@matej-vavrek please check if that code still exists and see how broken it is

Existing sort/filter modal was based more on properties
obrázok

@matej-vavrek says that because the sorting we are asking for here, it may be more difficult to implement with the old functionality (and will need @boriskovar-m2ms to consult)

@kaliif says that the molecular properties are not calculated in the backend at the moment

@phraenquex says to implement the simple dropdown suggested above and save this modal resurrection for another time

@matej-vavrek is making progress and is likely to deploy to his stack later today

@mwinokan, I have updated my stack.

  • I have used classic select/dropdown field, is this ok or we prefer our custom one (like in observation modal)
  • I had to squeeze it a bit so I there is "ASC" intead of "Ascending" but I also added a tooltip for it
  • a pose can have multiple ConformerSites so the first one is used at the moment

Please tell if is these changes are all right or not.

Thanks @matej-vavrek, the functionality is already very useful.

If it's not too difficult could you please expand the text from "ASC" to "Ascending" when the width of the LHS UI permits it? I.e. dynamically change from the shorthand to the expanded form

Looks good in staging