From d30fe56475cf9c1f9e5568ab3de81d7fe9b46700 Mon Sep 17 00:00:00 2001 From: Eduard Voronkin <116690094+eduardvoronkin@users.noreply.github.com> Date: Mon, 2 Oct 2023 13:47:52 -0700 Subject: [PATCH] CEC-5146 restore DTC timeline. (#451) * CEC-5146 restore DTC timeline. * remove VIN and id. * null checks --- .../App/__snapshots__/App.test.js.snap | 25 ++++++ .../Status/__snapshots__/index.test.jsx.snap | 25 ++++++ src/components/Cars/Status/index.jsx | 5 +- .../__snapshots__/index.test.jsx.snap | 89 +++++++++---------- .../DTCTimeline/DTCTimeline/index.jsx | 44 +++++---- 5 files changed, 122 insertions(+), 66 deletions(-) diff --git a/src/components/App/__snapshots__/App.test.js.snap b/src/components/App/__snapshots__/App.test.js.snap index 04f7423..ebdfb75 100644 --- a/src/components/App/__snapshots__/App.test.js.snap +++ b/src/components/App/__snapshots__/App.test.js.snap @@ -11643,6 +11643,24 @@ exports[`App Route /vehicle-status authenticated 1`] = ` class="MuiTouchRipple-root" /> + +
diff --git a/src/components/Cars/Status/__snapshots__/index.test.jsx.snap b/src/components/Cars/Status/__snapshots__/index.test.jsx.snap index e09f5ac..17a22f2 100644 --- a/src/components/Cars/Status/__snapshots__/index.test.jsx.snap +++ b/src/components/Cars/Status/__snapshots__/index.test.jsx.snap @@ -213,6 +213,24 @@ exports[`CarStatus Render 1`] = ` class="MuiTouchRipple-root" /> + + diff --git a/src/components/Cars/Status/index.jsx b/src/components/Cars/Status/index.jsx index de180d4..b8f3a7b 100644 --- a/src/components/Cars/Status/index.jsx +++ b/src/components/Cars/Status/index.jsx @@ -20,6 +20,7 @@ import FleetsTab from "./FleetsTab"; import RemoteCommandsTab from "./RemoteCommandsTab"; import RemoteDiagnosticCommandsTab from "./RemoteDiagnosticCommands"; import TRexLogsTab from "./TRexLogsTab"; +import DTCTimeline from "../../DTCTimeline/DTCTimeline"; const tabHashes = ["details", "updates", "filters"]; @@ -79,13 +80,13 @@ const TabViews = [ component: SelfServeTab, rolesPerProvider: Permissions.FiskerRead, }, - /* + { label: "DTC Timeline", component: DTCTimeline, rolesPerProvider: Permissions.FiskerMagnaRead, } - */ + ]; const filterTabs = (data, groups, providers) => { diff --git a/src/components/DTCTimeline/DTCTimeline/__snapshots__/index.test.jsx.snap b/src/components/DTCTimeline/DTCTimeline/__snapshots__/index.test.jsx.snap index 156a9b6..0fee44a 100644 --- a/src/components/DTCTimeline/DTCTimeline/__snapshots__/index.test.jsx.snap +++ b/src/components/DTCTimeline/DTCTimeline/__snapshots__/index.test.jsx.snap @@ -462,52 +462,6 @@ exports[`Render Render 1`] = `