From 6a3fb390b29f4525a461b6b6de3b15ab76e4b104 Mon Sep 17 00:00:00 2001 From: Yaxue Guo <37635744+yaxue1123@users.noreply.github.com> Date: Wed, 7 Sep 2022 13:18:04 -0400 Subject: [PATCH] Hotfixes (#215) * #198: added user guide section by section to slice builder steps' header * 214: updated the signup step 1 to highlight alert info * #214: updated the signup step 1 to highlight alert info * #212: removed loading spinner when error occurs * #198: added helper text to slice builder * #213: updated role-based projects/ project form * #212: removed loading spinner if error occurs * #213: reversed FO's full access to project management * #213: reversed FO's limited access to project management --- src/components/Experiment/Slices.jsx | 19 +++--- src/components/Footer.jsx | 10 +-- src/components/Header.jsx | 6 +- src/components/Home/FacilityUpdates.jsx | 1 + .../Project/ProjectBasicInfoTable.jsx | 5 +- src/components/Project/ProjectProfile.jsx | 5 +- src/components/Signup/Step1.jsx | 9 +-- src/components/SliceViewer/ProjectTags.jsx | 4 +- src/components/SliceViewer/SideLinks.jsx | 18 +++++- src/components/SliceViewer/SideNodes.jsx | 29 ++++++++- .../SliceViewer/SingleComponent.jsx | 18 +++++- src/components/SshKey/GenerateKey.jsx | 1 + src/components/UserProfile/GlobalRoles.jsx | 6 +- src/components/UserProfile/MyProfile.jsx | 1 + src/components/UserProfile/MyRoles.jsx | 3 +- src/components/UserProfile/ProjectRoles.jsx | 1 + src/pages/Help.jsx | 4 +- src/pages/NewSliceForm.jsx | 46 +++++++++++--- src/pages/ProjectForm.jsx | 33 +++++----- src/pages/Projects.jsx | 22 +++---- src/pages/SliceViewer.jsx | 4 +- src/pages/User.jsx | 1 + src/services/portalData.json | 63 +++++++++++++------ 23 files changed, 218 insertions(+), 91 deletions(-) diff --git a/src/components/Experiment/Slices.jsx b/src/components/Experiment/Slices.jsx index ed392fcd..deb2dd13 100644 --- a/src/components/Experiment/Slices.jsx +++ b/src/components/Experiment/Slices.jsx @@ -16,9 +16,9 @@ import _ from "lodash"; class Slices extends React.Component { jupyterLinkMap = { - "alpha": portalData.jupyterHubLinkAlpha, - "beta": portalData.jupyterHubLinkBeta, - "production": portalData.jupyterHubLinkProduction, + "alpha": portalData.jupyterHubLinks.alpha, + "beta": portalData.jupyterHubLinks.beta, + "production": portalData.jupyterHubLinks.production } state = { @@ -54,8 +54,9 @@ class Slices extends React.Component { // the token has been stored in the browser and is ready to be used. try { const { data: res } = await getSlices(); - this.setState({ slices: res.data, showSpinner: false, }); + this.setState({ slices: res.data, showSpinner: false }); } catch (err) { + this.setState({ showSpinner: false }); toast.error("Failed to load slices. Please re-login and try."); if (err.response.status === 401) { // 401 Error: Provided token is not valid. @@ -184,11 +185,11 @@ class Slices extends React.Component {
Please note: you will always use your institutional credentials to login to FABRIC portal via your institution's Identity Provider - we do not and will never store your password or login information. Any password changes that you go through with your institutional account will also affect how you login to the FABRIC portal.