From a8fff2f85cf2cfac2866f931919ecfd188f1cdf7 Mon Sep 17 00:00:00 2001
From: John Wu <76966357+jwu-fisker@users.noreply.github.com>
Date: Wed, 2 Jun 2021 09:47:48 -0700
Subject: [PATCH] CEC-227, CEC-244 Add dashboard page, update car command
control (#46)
* Create multiselect car table control
Remove table overflow containers
* Include trim to add car form
* CEC-252 Replace modal status with link to car details page
* Remove send command from car status page
Fix menu key warning
* Change car command control data
Add Grafana menu items
* Revert
---
.../App/__snapshots__/App.test.js.snap | 640 ++++++++++++++++--
src/components/Cars/List/index.jsx | 2 +-
src/components/Cars/SendCommand/index.jsx | 4 +-
src/components/Dashboard/index.jsx | 28 +
src/components/Layouts/SideMenu.jsx | 16 +-
.../__snapshots__/SideMenu.test.jsx.snap | 94 +++
src/components/ListItemExternalLink.jsx | 46 ++
src/components/Routes/SiteRoutes.jsx | 9 +
src/services/commands.js | 93 +--
9 files changed, 847 insertions(+), 85 deletions(-)
create mode 100644 src/components/Dashboard/index.jsx
create mode 100644 src/components/ListItemExternalLink.jsx
diff --git a/src/components/App/__snapshots__/App.test.js.snap b/src/components/App/__snapshots__/App.test.js.snap
index bbdf041..100fc98 100644
--- a/src/components/App/__snapshots__/App.test.js.snap
+++ b/src/components/App/__snapshots__/App.test.js.snap
@@ -76,6 +76,28 @@ exports[`App Route / authenticated 1`] = `
/>
+
+
+
+
+ Dashboard
+
+
+
+
+
+
+
+
+
+ Create Charts
+
+
+
+
+
@@ -347,6 +394,28 @@ exports[`App Route /carupdate-deploy authenticated 1`] = `
/>
+
+
+
+
+ Dashboard
+
+
+
+
+
+
+
+
+
+ Create Charts
+
+
+
+
+
@@ -1036,6 +1130,28 @@ exports[`App Route /carupdate-status authenticated 1`] = `
/>
+
+
+
+
+ Dashboard
+
+
+
+
+
+
+
+
+
+ Create Charts
+
+
+
+
+
@@ -1475,6 +1616,28 @@ exports[`App Route /home authenticated 1`] = `
/>
+
+
+
+
+ Dashboard
+
+
+
+
+
+
+
+
+
+ Create Charts
+
+
+
+
+
@@ -1746,6 +1934,28 @@ exports[`App Route /package-upload authenticated 1`] = `
/>
+
+
+
+
+ Dashboard
+
+
+
+
+
+
+
+
+
+ Create Charts
+
+
+
+
+
@@ -2250,6 +2485,28 @@ exports[`App Route /page-not-found authenticated 1`] = `
/>
+
+
+
+
+ Dashboard
+
+
+
+
+
+
+
+
+
+ Create Charts
+
+
+
+
+
@@ -2510,6 +2792,28 @@ exports[`App Route /update authenticated 1`] = `
/>
+
+
+
+
+ Dashboard
+
+
+
+
+
+
+
+
+
+ Create Charts
+
+
+
+
+
@@ -3035,6 +3364,28 @@ exports[`App Route /updates authenticated 1`] = `
/>
+
+
+
+
+ Dashboard
+
+
+
+
+
+
+
+
+
+ Create Charts
+
+
+
+
+
@@ -3604,6 +3980,28 @@ exports[`App Route /vehicle-add authenticated 1`] = `
/>
+
+
+
+
+ Dashboard
+
+
+
+
+
+
+
+
+
+ Create Charts
+
+
+
+
+
@@ -4080,6 +4503,28 @@ exports[`App Route /vehicle-status authenticated 1`] = `
/>
+
+
+
+
+ Dashboard
+
+
+
+
+
+
+
+
+
+ Create Charts
+
+
+
+
+
@@ -4616,6 +5086,28 @@ exports[`App Route /vehicles authenticated 1`] = `
/>
+
+
+
+
+ Dashboard
+
+
+
+
+
+
+
+
+
+ Create Charts
+
+
+
+
+
@@ -5225,6 +5742,28 @@ exports[`App Route /vehicles-command authenticated 1`] = `
/>
+
+
+
+
+ Dashboard
+
+
+
+
+
+
+
+
+
+ Create Charts
+
+
+
+
+
@@ -5444,42 +6008,32 @@ exports[`App Route /vehicles-command authenticated 1`] = `
name="send-command"
>
+
+
+
+
-
-
-
-
-
-
@@ -5531,19 +6085,29 @@ exports[`App Route /vehicles-command authenticated 1`] = `
name="send-parameter"
>
+
+