From fe427094ce319817d1b0aa030d3f72d58e28a39e Mon Sep 17 00:00:00 2001 From: John Wu <76966357+jwu-fisker@users.noreply.github.com> Date: Fri, 5 Aug 2022 13:27:23 -0700 Subject: [PATCH 1/4] CEC-2211 Fix dev Superset link (#178) --- .env.dev | 2 +- .env.local | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.dev b/.env.dev index b51cbe0..a3ecbae 100644 --- a/.env.dev +++ b/.env.dev @@ -2,4 +2,4 @@ REACT_APP_CERT_SERVICE_URL=https://dev-gw.cloud.fiskerinc.com/certificate REACT_APP_AUTH_SERVICE_URL=https://dev-gw.cloud.fiskerinc.com/compute_auth REACT_APP_UPLOAD_SERVICE_URL=https://dev-gw.cloud.fiskerinc.com/ota_update REACT_APP_AUTH_CALLBACK_URL=https://dev-ota-admin.cloud.fiskerinc.com -REACT_APP_SUPERSET_URL=https://superset-dev.cloud.fiskerinc.com/superset/dashboard/8/?native_filters_key=KPnPthpLQ8rT--6PUdsPzQAcwnleRGHk_3dg0PVYfrXc3SE6zZ2x0p7JuerAZ0Pg +REACT_APP_SUPERSET_URL=https://dev-superset.cloud.fiskerinc.com/superset/dashboard/8/?native_filters_key=KPnPthpLQ8rT--6PUdsPzQAcwnleRGHk_3dg0PVYfrXc3SE6zZ2x0p7JuerAZ0Pg diff --git a/.env.local b/.env.local index 5b55344..3a7953b 100644 --- a/.env.local +++ b/.env.local @@ -2,4 +2,4 @@ REACT_APP_AUTH_SERVICE_URL=http://localhost/compute_auth REACT_APP_CERT_SERVICE_URL=http://localhost/certificate REACT_APP_UPLOAD_SERVICE_URL=http://localhost/ota_update REACT_APP_AUTH_CALLBACK_URL=http://localhost:3000 -REACT_APP_SUPERSET_URL=https://superset-dev.cloud.fiskerinc.com/superset/dashboard/8/?native_filters_key=KPnPthpLQ8rT--6PUdsPzQAcwnleRGHk_3dg0PVYfrXc3SE6zZ2x0p7JuerAZ0Pg +REACT_APP_SUPERSET_URL=https://dev-superset.cloud.fiskerinc.com/superset/dashboard/8/?native_filters_key=KPnPthpLQ8rT--6PUdsPzQAcwnleRGHk_3dg0PVYfrXc3SE6zZ2x0p7JuerAZ0Pg From 7d9e5a4b8379286fcab6709f6a6aed693ceebf66 Mon Sep 17 00:00:00 2001 From: John Wu <76966357+jwu-fisker@users.noreply.github.com> Date: Fri, 5 Aug 2022 16:03:59 -0700 Subject: [PATCH 2/4] CEC-2211 fix dashboard site path (#179) --- src/components/Dashboard/index.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Dashboard/index.jsx b/src/components/Dashboard/index.jsx index b2067e9..c58dbe6 100644 --- a/src/components/Dashboard/index.jsx +++ b/src/components/Dashboard/index.jsx @@ -6,10 +6,11 @@ import useStyles from "../useStyles"; const Dashboard = () => { const classes = useStyles(); - const { setTitle } = useStatusContext(); + const { setTitle, setSitePath } = useStatusContext(); useEffect(() => { setTitle("Datascope"); + setSitePath([]); // eslint-disable-next-line react-hooks/exhaustive-deps }, []); From 0d706d82520154dacede2f80a82876f47ec79b3f Mon Sep 17 00:00:00 2001 From: John Wu <76966357+jwu-fisker@users.noreply.github.com> Date: Fri, 5 Aug 2022 21:32:57 -0700 Subject: [PATCH 3/4] CEC-2211 Add CAN signals component to map (#182) Fix timer memory leak --- .../App/__snapshots__/App.test.js.snap | 154 +++++++++--------- .../Add/__snapshots__/index.test.jsx.snap | 12 +- .../Update/__snapshots__/index.test.jsx.snap | 12 +- .../Add/__snapshots__/index.test.jsx.snap | 80 ++++----- src/components/Cars/CANSignals/index.jsx | 81 ++------- .../Status/__snapshots__/index.test.jsx.snap | 6 +- .../Update/__snapshots__/index.test.jsx.snap | 80 ++++----- src/components/Contexts/CANSignalsContext.jsx | 89 ++++++++++ src/components/DigitalTwin/index.js | 3 + .../Add/__snapshots__/index.test.jsx.snap | 68 ++++---- .../Add/__snapshots__/index.test.jsx.snap | 12 +- .../Update/__snapshots__/index.test.jsx.snap | 12 +- .../Add/__snapshots__/index.test.jsx.snap | 4 +- .../Status/__snapshots__/index.test.jsx.snap | 6 +- .../Update/__snapshots__/index.test.jsx.snap | 68 ++++---- .../Details/__snapshots__/index.test.js.snap | 24 +-- src/components/VehicleMap/popup.jsx | 34 +++- src/components/useStyles.jsx | 6 + 18 files changed, 407 insertions(+), 344 deletions(-) create mode 100644 src/components/Contexts/CANSignalsContext.jsx diff --git a/src/components/App/__snapshots__/App.test.js.snap b/src/components/App/__snapshots__/App.test.js.snap index e6a4999..b642c4e 100644 --- a/src/components/App/__snapshots__/App.test.js.snap +++ b/src/components/App/__snapshots__/App.test.js.snap @@ -1459,10 +1459,10 @@ exports[`App Route /package-create authenticated 1`] = ` />