nextstrain / nextstrain.org

The Nextstrain website
https://nextstrain.org
GNU Affero General Public License v3.0
88 stars 49 forks source link

Add page to edit group customizations #671

Closed joverlee521 closed 1 year ago

joverlee521 commented 1 year ago

Description of proposed changes

Adds a new page for users to edit group customizations, which currently only include the logo and overview. Includes a new OPTIONS route to check if users are authorized to edit group settings.

Only users with the owner role should see the button "EDIT GROUP SETTINGS" to navigate to the new page:

Screen Shot 2023-04-03 at 2 01 52 PM

Other users can still navigate to the new page using the URL /groups/:groupName/settings, but they would only see an error banner:

Screen Shot 2023-04-03 at 2 04 46 PM

The new page allows users to:

Screen Shot 2023-04-03 at 2 13 42 PM

Testing

joverlee521 commented 1 year ago

Manually deployed to https://dev.nextstrain.org for testing.

tsibley commented 1 year ago

I'd also rebase this onto the latest master since it'll make test groups easier now that #676 is in. I rebased locally so I could play with it. :-) If you want me to push the rebased version up here, I can. There was just one minor conflict I had to resolve when doing it.