Skip to content

🆕 [FEAT] Filter column toggles in tables per result availability #131

@epbrenner

Description

@epbrenner

Description:
Currently, we don't return results for some possible IPR databases, such as TIGRFAM. However, users are able to toggle this column on for results because it isn't clear why it wouldn't ever return results.

Proposed solution:
Make the available columns that can be toggled on (or off) in results tables similar to the handling for figures, where the option to visualize subsets of results only appear if those results actually exist. Put another way, if the column for SUPERFAMILY results is empty in the internal MolEvolvR results, don't present SUPERFAMILY as an option for tabular visualization.

Alternatives:
In the short term, we could simply comment out the parts of the table visualization code that aren't actually searched on the backend. In the future though, a dynamic method of presenting available columns is probably best.

Screenshots:
Image

For graphical visualization, we only allow users to toggle on data that actually exists!

Image

For tabular data, Add/remove column(s) provides all possible columns even if they're empty.

Image

This can yield some real boring tables if people pick particularly poorly.

Metadata

Metadata

Labels

bugSomething isn't workingenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions