Skip to content
This repository was archived by the owner on Dec 19, 2022. It is now read-only.
This repository was archived by the owner on Dec 19, 2022. It is now read-only.

Regional & Saved Variant View Modifications #129

Description

@Fried-man

General

  • abstract the table to its own widget that takes an array of maps of variant data
  • paginate table so it can handle 1000s of variants at once without lagging
  • in header, add button (for now have text say "results") that, after they have selected what they want, open up a card on the home screen that shows results for machine learning training (You are just making the skeleton UI for the card).
    • Screenshot 2022-11-29 at 4 07 45 AM
    • card should take as input for instantiation the an array of variants selected's accession ID string.
  • in header, add button to download data for selected variants. The download should have
    • should open up dialog box of options
      • needs to support JSON
      • needs to support .csv (excel-like)
      • needs to support .txt
    • file name should be "Selected_Variants" or the name of region plus a timestamp of the current date
      • ex. Selected_Variants_10/24/2022_9:59PM.json
      • ex. USA__10/24/2022_9:59PM.txt
  • Make UI look good and thematically consistent with the rest of the website
  • Add column for nucleotide length
    • format the numbers with commas like in the variant card
  • Add column for completeness
    • format the same way as in the variant card (ALL CAPS)
  • Add column for nucleotide completeness
    • format the same way as in the variant card (ALL CAPS)
  • Add column for Release Date
    • format the date like in the variant card but sorting should be done off the DateTime object rather than the string itself. Easiest way is to convert the DateTime into microseconds since epoch (its a function call in DateTime that returns an integer) and sort using that.
  • Add column for Last Update Date
    • format the date like in the variant card but sorting should be done off the DateTime object rather than the string itself. Easiest way is to convert the DateTime into microseconds since epoch (its a function call in DateTime that returns an integer) and sort using that.

Regional Variant View

  • reference the table you made in country view more variant view
  • don't show region or location as columns (we already know they are all from xyz country and continent duh)
  • in header, add a dropdown that allows to filter by state for a country
    • Lecture Nov 28, 2022 at 10347 PM
    • Need to request api to get states of country. Ask @Tangerine2001 how to do that with country string as input
  • get rid of pinned column

Saved Variant View

  • reference the table you made in saved variant view
  • store on Firebase which accession IDs are pinned
  • when user first opens the saved window, pinned variants should be at top already
  • should support sorting by country

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions