ebi-gene-expression-group / atlas-web-single-cell

Single Cell Expression Atlas web application
Apache License 2.0
5 stars 5 forks source link

Decoupling tabs in the experiment page and display them after validating #375

Open upendrakumbham opened 8 months ago

upendrakumbham commented 8 months ago

Decoupling tabs in the experiment page and display them after validating

Requirements:

- Result, supplementary and download

Cell-plots part of the Results tab

MarkerGenes and Anatomogram tabs

lingyun1010 commented 7 months ago

The conditional operator hierachy looks good and we need to apply more props check for each tab I think.

upendrakumbham commented 7 months ago

The conditional operator hierachy looks good and we need to apply more props check for each tab I think.

Sure, thanks for the review and comment.

upendrakumbham commented 6 months ago

@Karoy, please review this PR. My local setup has throwing 8000 port already bind issue when I try to test this PR. I will fix it and test, meanwhile suggest issue local experiment.

lingyun1010 commented 6 months ago

Please check the variable tabTypeComponent push logic, if you check/console log tabTypeComponent after each time you push a new item. You may find duplicate items as shown in my screenshot below. Secondly, when you try to click each tab the size of tabTypeComponent will increase too.

Screenshot 2024-02-20 at 18 35 25
upendrakumbham commented 2 months ago

Hi both, I improved the code. Please re-review and add your comments.

lingyun1010 commented 2 months ago

Good work and I have a few comments listed below:

  1. Code format: we do not use ; to end any javascript code line
  2. In the current implementation, we only check one key and one optionsKey, firstly can you explain what is the difference between these two props? Are they required and non-required? As far as I know, we have more than one required props at least for the Result tab. Please double check the other tabs and add more possible checks.
  3. Given the above issue solved, we should remove the corresponding top ribbon fully, not only the ribbon title, here is a screenshot while I tested locally by removing ks from result tab, which may give you some clues about my comment.

Screenshot 2024-06-11 at 14 41 32

upendrakumbham commented 2 months ago

Hi @lingyun1010, gathered all the required validation fields to validate and display their corresponding tabs.

Here is the document: Frontend_tab_validations.docx