From c2780a066f107b2263a7cb00140a4cb775f78982 Mon Sep 17 00:00:00 2001 From: John Wu <76966357+jwu-fisker@users.noreply.github.com> Date: Wed, 29 Mar 2023 15:31:45 -0700 Subject: [PATCH] CEC-3944 Remove paths dashboard (#307) --- .env.cec-euprd | 1 - .env.cec-prd | 1 - .env.dev | 1 - .env.local | 1 - .env.prd | 1 - .env.stg | 1 - .../App/__snapshots__/App.test.js.snap | 387 +----------------- .../index.jsx | 12 +- src/components/Layouts/SideMenu.jsx | 4 +- .../__snapshots__/SideMenu.test.jsx.snap | 50 +-- src/components/Routes/SiteRoutes.jsx | 4 +- src/services/customDashboards.js | 30 ++ src/services/staticDashboards.js | 26 -- 13 files changed, 64 insertions(+), 455 deletions(-) rename src/components/{DashboardStatic => DashboardCustom}/index.jsx (63%) create mode 100644 src/services/customDashboards.js delete mode 100644 src/services/staticDashboards.js diff --git a/.env.cec-euprd b/.env.cec-euprd index ce0d31a..5fb535f 100644 --- a/.env.cec-euprd +++ b/.env.cec-euprd @@ -7,5 +7,4 @@ REACT_APP_MAGNA_GROUP_ID=68273225-9da4-4fa7-aea5-38e16ec471fe REACT_APP_OTA_SERVICE_URL=https://gw.cec-euprd.fiskerinc.com/ota_update 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_STATIC_DASHBOARDS_URL=https://assets.fiskerdps.com/dashboards REACT_APP_SUPERSET_URL=https://superset.cec-euprd.fiskerinc.com diff --git a/.env.cec-prd b/.env.cec-prd index dab893b..67d8f04 100644 --- a/.env.cec-prd +++ b/.env.cec-prd @@ -7,5 +7,4 @@ REACT_APP_MAGNA_GROUP_ID=68273225-9da4-4fa7-aea5-38e16ec471fe REACT_APP_OTA_SERVICE_URL=https://gw.cec-prd.fiskerinc.com/ota_update 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_STATIC_DASHBOARDS_URL=https://assets.fiskerdps.com/dashboards REACT_APP_SUPERSET_URL=https://superset.cec-prd.fiskerinc.com diff --git a/.env.dev b/.env.dev index e838d3e..c2e91da 100644 --- a/.env.dev +++ b/.env.dev @@ -7,5 +7,4 @@ REACT_APP_MAGNA_GROUP_ID=68273225-9da4-4fa7-aea5-38e16ec471fe REACT_APP_OTA_SERVICE_URL=https://dev-gw.cloud.fiskerinc.com/ota_update 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_STATIC_DASHBOARDS_URL=https://assets.fiskerdps.com/dashboards REACT_APP_SUPERSET_URL=https://dev-superset-new.cloud.fiskerinc.com diff --git a/.env.local b/.env.local index d06da61..3656474 100644 --- a/.env.local +++ b/.env.local @@ -7,6 +7,5 @@ REACT_APP_MAGNA_GROUP_ID=68273225-9da4-4fa7-aea5-38e16ec471fe 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_64_URL=https://assets.fiskerdps.com/cloud-supplier/fisker_security_64.dll -REACT_APP_STATIC_DASHBOARDS_URL=https://assets.fiskerdps.com/dashboards REACT_APP_SUPERSET_URL=https://dev-superset-new.cloud.fiskerinc.com diff --git a/.env.prd b/.env.prd index e876224..f075c03 100644 --- a/.env.prd +++ b/.env.prd @@ -7,5 +7,4 @@ REACT_APP_MAGNA_GROUP_ID=68273225-9da4-4fa7-aea5-38e16ec471fe REACT_APP_OTA_SERVICE_URL=https://gw.cloud.fiskerinc.com/ota_update 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_STATIC_DASHBOARDS_URL=https://assets.fiskerdps.com/dashboards REACT_APP_SUPERSET_URL=https://superset.cloud.fiskerinc.com diff --git a/.env.stg b/.env.stg index 33c3843..ad05398 100644 --- a/.env.stg +++ b/.env.stg @@ -7,5 +7,4 @@ REACT_APP_MAGNA_GROUP_ID=68273225-9da4-4fa7-aea5-38e16ec471fe REACT_APP_OTA_SERVICE_URL=https://stg-gw.cloud.fiskerinc.com/ota_update 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_STATIC_DASHBOARDS_URL=https://assets.fiskerdps.com/dashboards REACT_APP_SUPERSET_URL=https://stg-superset.cloud.fiskerinc.com diff --git a/src/components/App/__snapshots__/App.test.js.snap b/src/components/App/__snapshots__/App.test.js.snap index 10cd7ed..b3d9ca4 100644 --- a/src/components/App/__snapshots__/App.test.js.snap +++ b/src/components/App/__snapshots__/App.test.js.snap @@ -334,30 +334,7 @@ exports[`App Route / authenticated 1`] = ` + />
  • - Vehicle Paths + Invalid Dashboard
  • @@ -1042,30 +1019,7 @@ exports[`App Route /dashboards/0 authenticated 1`] = ` + />
  • -