BioplatformsAustralia / bpaotu

OTU database access for the Australian Microbiome
GNU Affero General Public License v3.0
5 stars 1 forks source link

Restore 'tables' functionality #63

Closed sztamas closed 6 years ago

sztamas commented 6 years ago

I've added a new FE page for this, although as we discussed this functionality could be incorporated in the main search page, by having a 'Customize Columns' button. Therefore, there is some duplication in there that will go away when we will go with that solution.

Export works just for CSV (as in the original 'tables' page), we could argue that the BIOM file would be huge and slow to generate if it included all the data (there is no way to limit the data returned).

I've added sorting and multi-sorting (SHIFT + click) to the table after all. Also changed the export to CSV to export the rows in the same sorting as the table was sorted at the time of the export.

Every time the additional columns are changed the table is immediately modified and a search is executed. In the original page, you had to hit the Search button to update the table, but I find the auto-update more user-friendly. The Search button is redundant so I commented it out. If you need it just uncomment it in bpaotu/bpaotu/frontend/src/pages/contextual_page/index.tsx