evidence icon indicating copy to clipboard operation
evidence copied to clipboard

Data tables to have accordion feature

Open kkalra11 opened this issue 2 years ago • 2 comments

Feature Description

What would you like to see added to Evidence? The existing data table to have an accordian expansion type of feature

Goal of Feature

Ability to organize more granular data and drill down as-neeeded

What would this feature help you accomplish? same as goal

Current Solution / Workarounds

Have to create more dense tables

What do you do today to accomplish the goal you described above?

Alternatives

Describe any alternative solutions or features you've considered Screenshot 2023-12-07 at 12 34 46 PM

kkalra11 avatar Dec 07 '23 18:12 kkalra11

@kkalra11 we're taking a look at this. Wanted to confirm our understanding:

In the example above you have a table with six columns: Pathogen Group, Virus Name, Collection Date, BarCode Flight Origin Country and Reference Coverage Percent.

In the expanded section, there are three rows that share the pathogen group ABCDE. The table includes a count for collapsed rows, but no other aggregations are possible (e.g. there is no "average reference coverage" for a pathogen group).

We're trying to distinguish between this type of table and this one: https://github.com/evidence-dev/evidence/issues/596

mcrascal avatar Jan 08 '24 21:01 mcrascal

Update:

It seems like 1395 is focusing on the requirement of being able to create a table that can expand and contract as necessary (no need to aggregate the virus name since that is not possible) - especially for the column of virus name which be generally a word and not a quantitative output that requires aggregation

Seems like while 596 could possibly cover the use case of 1395- it is mostly focused on the ability to pivot the table via column + aggregate a numerical count of some sort

archiewood avatar Jan 29 '24 19:01 archiewood

Added in https://github.com/evidence-dev/evidence/pull/1761

archiewood avatar Apr 16 '24 21:04 archiewood