SACGF / variantgrid

VariantGrid public repo
Other
23 stars 2 forks source link

Review of table filtering & design #195

Open sksmi opened 3 years ago

sksmi commented 3 years ago

Issue Often can't access/view data in tables efficiently and csv download not always avail. As a general rule, I think almost all users have different approaches they like to take for interrogating data eg. by sorting/filtering on different columns - any steps towards more csv-like functionality & consistency between table formats would likely be very much appreciated. Let me know if/when you get to this issue and I can compile examples/use cases from others.

Design considerations:

Couple of quick examples:

Low - mod priority. Think it will likely make users happy and analysis more efficient, but not critical.

davmlaw commented 3 years ago

The filter you have in the screenshot is from jqGrid - the old table library most of the old grids are in.

The plan is to move to data tables (currently used by classifications and event log)

TheMadBug commented 3 years ago

True, but I haven't developed a standard filter for Datatables. Though it's default method of filtering (that I think I've disabled everywhere) is a single text box. The code can automatically filter looking for columns containing the string, or that method can be overridden.

Most other auto filtering solutions I've looked at for Datatables are client side only, so we'd probably have to develop something ourselves.

davmlaw commented 3 years ago

In a magical world, I'd like something like this:

class ClassificationDatatableConfig(DatatableConfig):
    form_class = ClassificationGridForm

Where the form is made into an ajax form, and changing (or clicking a filter button) populates query params from the form then refreshes the grid.

davmlaw commented 3 years ago

Bump, added to 3.1 Milestone as Sarah thinks important