epam / NGB

New Genome Browser (NGB) - a Web - based NGS data viewer with unique Structural Variations (SVs) visualization capabilities, high performance, scalability, and cloud data support
MIT License
161 stars 42 forks source link

Ability to restore the default view of table panels #469

Open NShaforostov opened 3 years ago

NShaforostov commented 3 years ago

Background At the moment, user can customize the displayed set of NGB panels, their sizes and/or placement as he/she wants. This customization is automatically being saved for the user. Also user can restore the default view of NGB panels in any moment by the "Restore Default Layout" item in the Panel menu. But if user has customized tables in GENES panel or VARIANTS panel, e.g. has hidden extra columns or vice versa has enabled additional columns, has applied the filter or sorting - in such case, the "Restore Default Layout" item will not return these tables to the origin view (with base columns, default sorting and without filtering). It would be convenient to have additional controls by which such tables might be restored to their default view.

Approach For GENES and VARIANTS panels, add to the context panel menu a new item - "Restore view", e.g.: image

By click this item, the corresponding table shall be restored to its default view:

Tatyana2022 commented 3 years ago

Bug was found: It is impossible to add additional column after applying Restore view button in the VARIANTS panel

Steps to reproduce:

  1. Open SV_Sample1 dataset
  2. Go to Variants panel
  3. Add AC column from Hamburger menu
  4. Click Restore view in Hamburger menu
  5. Expand Hamburger menu
  6. Select AC column

Expected result: AC checkbox should be set. AC column should be displayed in the VARIANTS table Actual result: Checkbox isn't set in AC field. No AC column in the VARIANTS table Extra details This behavior is only relevant for columns that have been selected and then Restore view was applied to them

@mzueva @rodichenko @AlfiyaRF

Verified

NShaforostov commented 3 years ago

Docs were added via #566 and located here.