Skip to content
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

User page to replace stub #69

Closed
wants to merge 10 commits into from
Closed

Conversation

jameshadfield
Copy link
Member

@jameshadfield jameshadfield commented Jan 2, 2020

Replaces #63 as that was a PR into a now merged & deployed branch. Available for testing at https://nextstrain-dev.herokuapp.com

kairstenfay and others added 10 commits December 31, 2019 12:16
Add the navigation bar (navbar), logos footer to the new `/users/` page.
Format the main message with CSS and spacing in-between group names.
Instead of using the URL query string to parse out the user and
user groups, use the `/whoami` API endpoint to fetch the user
data.

Redirects from `/whoami` to `/users`.
Redirects from `/whoami` to `/users/<username>` is a user is signed in.
Redirects to `/users` if there is no user signed in.
Used a workaround found on github
(gatsbyjs/gatsby#5329 (comment))
to prevent the index or 404 page from flashing during page
redirects.
`user.groups` provides all groups that users are a part of on AWS,
but we only care about groups that match our Nextstrain sources.
Assumes that all group urls follows the format `/group/<group-name>`.
@tsibley tsibley temporarily deployed to nextstrain-s-user-page-hu80yjs January 2, 2020 21:52 Inactive
@jameshadfield jameshadfield temporarily deployed to nextstrain-dev January 2, 2020 21:55 Inactive
@kairstenfay kairstenfay deleted the user-page-to-replace-stub branch January 9, 2020 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants