-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Influenza page #271
Influenza page #271
Commits on Mar 11, 2021
-
fetch sars catalogue from s3 & refactor component;
this fetches the sars-cov-2 build catalogue from s3 instead of using a local version. it also refactors the react components behind /sars-cov-2 to be more flexible for other pathogen pages like /influenza.
Configuration menu - View commit details
-
Copy full SHA for 824978b - Browse repository at this point
Copy the full SHA 824978bView commit details -
rename static-site/src/components/sars-cov-2;
this directory contains components which are now generally applicable to any page that wants to display a collection of info about any grouping of builds (e.g. flu, groups, commeunity), not just for sars-cov-2.
Configuration menu - View commit details
-
Copy full SHA for 4d18952 - Browse repository at this point
Copy the full SHA 4d18952View commit details -
in anticipation of using it for any listing of builds, not specific to sars-cov-2. This picks up where that left off in anticipation of using it for a flu builds page. Specifically this commit allows the build hierarchy to be defined by custom field names in a build catalogue yaml (e.g. static-site/content/allSARS-CoV-2Builds.yaml) . These field names are passed to the builds component so it can create the hierarchy according to them.
Configuration menu - View commit details
-
Copy full SHA for f63ecd7 - Browse repository at this point
Copy the full SHA f63ecd7View commit details -
This creates a page at /influenza analogous to /sars-cov-2 but for flu. Note that this page isn't called /flu because of conflict with existing redirects. In addition to creating a useful hub for gathering resources about flu, this can serve as an example of how it should hopefully now be easier to create more pages like this that show off all that Nextstrain has to offer on a particular pathogen or topic spanning pathogens (e.g. a /groups page that lists all nextstrain groups and links to docs about groups etc). In many cases these pages can serve as a way to dedicate more UI real estate to some things or sections we show off on the splash page and offer a more customized landing page for a particular topic.
Configuration menu - View commit details
-
Copy full SHA for 0e9621a - Browse repository at this point
Copy the full SHA 0e9621aView commit details -
Configuration menu - View commit details
-
Copy full SHA for b4648fa - Browse repository at this point
Copy the full SHA b4648faView commit details -
Configuration menu - View commit details
-
Copy full SHA for 433d83a - Browse repository at this point
Copy the full SHA 433d83aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4373c37 - Browse repository at this point
Copy the full SHA 4373c37View commit details -
Configuration menu - View commit details
-
Copy full SHA for 59b9f91 - Browse repository at this point
Copy the full SHA 59b9f91View commit details -
refactor /sars-cov-2 & /influenza components;
Decouple build map from build dropdown menu. Remove spacers and non-specific stuff from specific components like hierarchical dropdown menu and sit-rep listing. Decouple fetching of build catalogue from dropdown menu.
Configuration menu - View commit details
-
Copy full SHA for 4eaaa44 - Browse repository at this point
Copy the full SHA 4eaaa44View commit details -
Configuration menu - View commit details
-
Copy full SHA for d4ea065 - Browse repository at this point
Copy the full SHA d4ea065View commit details -
restructure influenza build catalogue;
1: Flatten hierarchy in anticipation of flatter UI. 2: Manually add properties for easy parsing in react. The long-term solution here will be to generate things like this by parsing build URLs in collect-pathogen-resources.js
Configuration menu - View commit details
-
Copy full SHA for 9795c6f - Browse repository at this point
Copy the full SHA 9795c6fView commit details -
filterable flat build listing;
this offers an alternative way to list builds that is more flexible - listing them in a flat (non-hierarchical) interface that can be filtered. The listing can easily be converted into a table or other. see #62 (comment) for more details
Configuration menu - View commit details
-
Copy full SHA for b364c25 - Browse repository at this point
Copy the full SHA b364c25View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e606b2 - Browse repository at this point
Copy the full SHA 4e606b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f79e51 - Browse repository at this point
Copy the full SHA 8f79e51View commit details -
influenza build catalogue staging url;
to be changed back. just so we can test in dev apps on github PRs etc
Configuration menu - View commit details
-
Copy full SHA for 7230959 - Browse repository at this point
Copy the full SHA 7230959View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4de28a6 - Browse repository at this point
Copy the full SHA 4de28a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for fcb0f56 - Browse repository at this point
Copy the full SHA fcb0f56View commit details -
Select influenza datasets via keywords
This commit streamlines the dataset selection UI to use generic keywords from filenames. Principally, it: 1. Creates a new light weight collect-datasets.js script from collect-pathogen-resources.js that provisions datasets_influenza.json 2. Modifies influenza.jsx to use this dataset listing 3. Creates a new DatasetSelect component from FilterBuilds that filters by keyword and that implements some row styling
Configuration menu - View commit details
-
Copy full SHA for 20b2193 - Browse repository at this point
Copy the full SHA 20b2193View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f8c0c6 - Browse repository at this point
Copy the full SHA 5f8c0c6View commit details -
Improve layout of dataset selection
This uses react-styled-flexboxgrid for a responsive grid layout. We use Bootstrap elsewhere in nextstrain.org to accomplish a similar outcome, however, Bootstrap css and className="col-md-1" don't interact well with the use of styled-components. Here, I've opted for a Flexbox solution. This adds a dependency to package.json, but allows for an easy, expressive grid and I think should be generally useful. I compared a few similar options for this and this one was my favorite.
Configuration menu - View commit details
-
Copy full SHA for ee8263d - Browse repository at this point
Copy the full SHA ee8263dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 552546b - Browse repository at this point
Copy the full SHA 552546bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c6742eb - Browse repository at this point
Copy the full SHA c6742ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for fac1875 - Browse repository at this point
Copy the full SHA fac1875View commit details -
update https://data.nextstrain.org/datasets_influenza.json every 5 minutes with s3 flu datasets
Configuration menu - View commit details
-
Copy full SHA for 763fadc - Browse repository at this point
Copy the full SHA 763fadcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5db2299 - Browse repository at this point
Copy the full SHA 5db2299View commit details -
Configuration menu - View commit details
-
Copy full SHA for bba165e - Browse repository at this point
Copy the full SHA bba165eView commit details -
remove manually curated influenza catalogue;
#279 gives more flexibility by depending on the output of scripts/collect-datasets.js instead and using a more scalable UI
Configuration menu - View commit details
-
Copy full SHA for 087168c - Browse repository at this point
Copy the full SHA 087168cView commit details -
Configuration menu - View commit details
-
Copy full SHA for eee8c82 - Browse repository at this point
Copy the full SHA eee8c82View commit details -
Configuration menu - View commit details
-
Copy full SHA for 108033f - Browse repository at this point
Copy the full SHA 108033fView commit details -
use local file for sars-cov-2 build list;
an earlier commit on this branch changed this component to fetch the sars-cov-2 builds catalogue that backs /sars-cov-2 from s3. This changes back to the original way of using a local YAML file instead, because we are holding off on the s3 implementation for now.
Configuration menu - View commit details
-
Copy full SHA for 4b02212 - Browse repository at this point
Copy the full SHA 4b02212View commit details