CEC-4231: Link to superset portal (#324)
* CEC-4231: Link to superset portal * Update snapshots --------- Co-authored-by: jwu-fisker <jwu@fiskerinc.com>
This commit is contained in:
committed by
GitHub
parent
cc1922008e
commit
05b8e9fc3d
@@ -7,7 +7,7 @@ REACT_APP_MAGNA_GROUP_ID=68273225-9da4-4fa7-aea5-38e16ec471fe
|
|||||||
REACT_APP_OTA_SERVICE_URL=http://localhost/ota_update
|
REACT_APP_OTA_SERVICE_URL=http://localhost/ota_update
|
||||||
REACT_APP_SECURITY_DLL_URL=https://assets.fiskerdps.com/cloud-supplier/fisker_security_32.dll
|
REACT_APP_SECURITY_DLL_URL=https://assets.fiskerdps.com/cloud-supplier/fisker_security_32.dll
|
||||||
REACT_APP_SECURITY_DLL_64_URL=https://assets.fiskerdps.com/cloud-supplier/fisker_security_64.dll
|
REACT_APP_SECURITY_DLL_64_URL=https://assets.fiskerdps.com/cloud-supplier/fisker_security_64.dll
|
||||||
REACT_APP_SUPERSET_URL=https://dev-superset-new.cloud.fiskerinc.com
|
REACT_APP_SUPERSET_URL=https://dev-superset.cloud.fiskerinc.com
|
||||||
REACT_APP_ROLE_CREATE=efcc3025-e2d8-4212-8227-805c7be39d2c
|
REACT_APP_ROLE_CREATE=efcc3025-e2d8-4212-8227-805c7be39d2c
|
||||||
REACT_APP_ROLE_READ_ONLY=a729bbd4-2038-4649-9127-16782bb1e701
|
REACT_APP_ROLE_READ_ONLY=a729bbd4-2038-4649-9127-16782bb1e701
|
||||||
REACT_APP_ROLE_DELETE=8f78dce7-f5f9-4033-a10c-c9c7408bfcfe
|
REACT_APP_ROLE_DELETE=8f78dce7-f5f9-4033-a10c-c9c7408bfcfe
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -9,10 +9,8 @@ import HomeIcon from "@material-ui/icons/Home";
|
|||||||
import SettingsInputCompositeIcon from "@material-ui/icons/SettingsInputComposite";
|
import SettingsInputCompositeIcon from "@material-ui/icons/SettingsInputComposite";
|
||||||
import { default as React, useEffect, useState } from "react";
|
import { default as React, useEffect, useState } from "react";
|
||||||
|
|
||||||
import { getCustomDashboardSubmenu } from "../../services/customDashboards";
|
|
||||||
import { hasRole, Permissions } from "../../utils/roles";
|
import { hasRole, Permissions } from "../../utils/roles";
|
||||||
import { useUserContext } from "../Contexts/UserContext";
|
import { useUserContext } from "../Contexts/UserContext";
|
||||||
import SupersetDashboardList from "../SupersetDashboardList/SupersetDashboardList";
|
|
||||||
import { ExpandableSideMenuItem, MenuItem } from "./MenuItem";
|
import { ExpandableSideMenuItem, MenuItem } from "./MenuItem";
|
||||||
const menuData = [
|
const menuData = [
|
||||||
{
|
{
|
||||||
@@ -47,11 +45,9 @@ const menuData = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Datascope",
|
label: "Datascope",
|
||||||
to: null,
|
url: process.env.REACT_APP_SUPERSET_URL,
|
||||||
icon: <AssessmentIcon />,
|
icon: <AssessmentIcon />,
|
||||||
rolesPerProvider: Permissions.FiskerMagnaRead,
|
rolesPerProvider: Permissions.FiskerMagnaRead,
|
||||||
component: SupersetDashboardList,
|
|
||||||
submenus: getCustomDashboardSubmenu(Permissions.FiskerMagnaRead),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Suppliers",
|
label: "Suppliers",
|
||||||
|
|||||||
@@ -188,72 +188,44 @@ exports[`SideMenu Authenticated 1`] = `
|
|||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<span>
|
<li>
|
||||||
<li>
|
<a
|
||||||
|
aria-disabled="false"
|
||||||
|
class="MuiTypography-root MuiLink-root MuiLink-underlineHover MuiButtonBase-root MuiListItem-root makeStyles-menuExternalLink-0 MuiListItem-gutters MuiListItem-button MuiTypography-colorPrimary"
|
||||||
|
href="https://dev-superset.cloud.fiskerinc.com"
|
||||||
|
rel="noopener"
|
||||||
|
role="button"
|
||||||
|
tabindex="0"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
aria-disabled="false"
|
class="MuiListItemIcon-root"
|
||||||
class="MuiButtonBase-root MuiListItem-root MuiListItem-gutters MuiListItem-button"
|
|
||||||
role="button"
|
|
||||||
tabindex="0"
|
|
||||||
>
|
>
|
||||||
<div
|
<svg
|
||||||
class="MuiListItemIcon-root"
|
aria-hidden="true"
|
||||||
|
class="MuiSvgIcon-root"
|
||||||
|
focusable="false"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
>
|
>
|
||||||
<svg
|
<path
|
||||||
aria-hidden="true"
|
d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"
|
||||||
class="MuiSvgIcon-root"
|
/>
|
||||||
focusable="false"
|
</svg>
|
||||||
viewBox="0 0 24 24"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="MuiListItemText-root"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="MuiTypography-root MuiListItemText-primary MuiTypography-body1 MuiTypography-displayBlock"
|
|
||||||
>
|
|
||||||
Datascope
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<span
|
|
||||||
class="MuiTouchRipple-root"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<ul
|
<div
|
||||||
style="margin-left: 50px;"
|
class="MuiListItemText-root"
|
||||||
>
|
>
|
||||||
<li>
|
<span
|
||||||
<a
|
class="MuiTypography-root MuiListItemText-primary MuiTypography-body1 MuiTypography-displayBlock"
|
||||||
aria-disabled="false"
|
>
|
||||||
class="MuiButtonBase-root MuiListItem-root MuiListItem-gutters MuiListItem-button"
|
Datascope
|
||||||
href="/datascope/00000000-0000-0000-0000-000000000000"
|
</span>
|
||||||
role="button"
|
</div>
|
||||||
tabindex="0"
|
<span
|
||||||
>
|
class="MuiTouchRipple-root"
|
||||||
<div
|
/>
|
||||||
class="MuiListItemText-root"
|
</a>
|
||||||
>
|
</li>
|
||||||
<span
|
|
||||||
class="MuiTypography-root MuiListItemText-primary MuiTypography-body1 MuiTypography-displayBlock"
|
|
||||||
>
|
|
||||||
test title
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<span
|
|
||||||
class="MuiTouchRipple-root"
|
|
||||||
/>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</span>
|
|
||||||
<ul
|
|
||||||
style="margin-left: 50px;"
|
|
||||||
/>
|
|
||||||
<li>
|
<li>
|
||||||
<a
|
<a
|
||||||
aria-disabled="false"
|
aria-disabled="false"
|
||||||
@@ -497,72 +469,44 @@ exports[`SideMenu Magna Authenticated 1`] = `
|
|||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<span>
|
<li>
|
||||||
<li>
|
<a
|
||||||
|
aria-disabled="false"
|
||||||
|
class="MuiTypography-root MuiLink-root MuiLink-underlineHover MuiButtonBase-root MuiListItem-root makeStyles-menuExternalLink-0 MuiListItem-gutters MuiListItem-button MuiTypography-colorPrimary"
|
||||||
|
href="https://dev-superset.cloud.fiskerinc.com"
|
||||||
|
rel="noopener"
|
||||||
|
role="button"
|
||||||
|
tabindex="0"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
aria-disabled="false"
|
class="MuiListItemIcon-root"
|
||||||
class="MuiButtonBase-root MuiListItem-root MuiListItem-gutters MuiListItem-button"
|
|
||||||
role="button"
|
|
||||||
tabindex="0"
|
|
||||||
>
|
>
|
||||||
<div
|
<svg
|
||||||
class="MuiListItemIcon-root"
|
aria-hidden="true"
|
||||||
|
class="MuiSvgIcon-root"
|
||||||
|
focusable="false"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
>
|
>
|
||||||
<svg
|
<path
|
||||||
aria-hidden="true"
|
d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"
|
||||||
class="MuiSvgIcon-root"
|
/>
|
||||||
focusable="false"
|
</svg>
|
||||||
viewBox="0 0 24 24"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="MuiListItemText-root"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="MuiTypography-root MuiListItemText-primary MuiTypography-body1 MuiTypography-displayBlock"
|
|
||||||
>
|
|
||||||
Datascope
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<span
|
|
||||||
class="MuiTouchRipple-root"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<ul
|
<div
|
||||||
style="margin-left: 50px;"
|
class="MuiListItemText-root"
|
||||||
>
|
>
|
||||||
<li>
|
<span
|
||||||
<a
|
class="MuiTypography-root MuiListItemText-primary MuiTypography-body1 MuiTypography-displayBlock"
|
||||||
aria-disabled="false"
|
>
|
||||||
class="MuiButtonBase-root MuiListItem-root MuiListItem-gutters MuiListItem-button"
|
Datascope
|
||||||
href="/datascope/00000000-0000-0000-0000-000000000000"
|
</span>
|
||||||
role="button"
|
</div>
|
||||||
tabindex="0"
|
<span
|
||||||
>
|
class="MuiTouchRipple-root"
|
||||||
<div
|
/>
|
||||||
class="MuiListItemText-root"
|
</a>
|
||||||
>
|
</li>
|
||||||
<span
|
|
||||||
class="MuiTypography-root MuiListItemText-primary MuiTypography-body1 MuiTypography-displayBlock"
|
|
||||||
>
|
|
||||||
test title
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<span
|
|
||||||
class="MuiTouchRipple-root"
|
|
||||||
/>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
</span>
|
|
||||||
<ul
|
|
||||||
style="margin-left: 50px;"
|
|
||||||
/>
|
|
||||||
<span>
|
<span>
|
||||||
<li>
|
<li>
|
||||||
<a
|
<a
|
||||||
|
|||||||
Reference in New Issue
Block a user