From f273e25cf829ddee345b26274a8a18db2421b7ce Mon Sep 17 00:00:00 2001 From: John Wu <76966357+jwu-fisker@users.noreply.github.com> Date: Thu, 12 Aug 2021 17:51:40 -0700 Subject: [PATCH] CEC-381 Fix install progress (#77) * Fix install progress * Remove unused components and inline styles * Update test * errors are not the final update state * Remove max width for main container * Progress starts at 0 --- .../App/__snapshots__/App.test.js.snap | 702 ++++++++---------- src/components/CarUpdates/Status/index.jsx | 4 +- src/components/Cars/CarSelection/index.jsx | 158 ---- .../Cars/CarSelectionTable/index.jsx | 2 +- src/components/Cars/SendCommand/index.jsx | 4 +- src/components/Cars/SendCommandBulk/index.jsx | 10 +- src/components/Contexts/CarUpdatesContext.jsx | 77 +- src/components/Layouts/MenuDrawer.jsx | 4 +- .../__snapshots__/SideMenu.test.jsx.snap | 3 +- src/components/ListItemExternalLink.jsx | 19 +- src/components/Manifest/Deploy/index.jsx | 4 +- src/components/Manifest/List/index.jsx | 8 +- src/components/Manifest/Status/index.jsx | 4 +- .../__snapshots__/SSOForm.test.js.snap | 3 +- src/components/SSOForm/index.jsx | 2 +- src/components/useStyles.jsx | 26 + src/utils/statusMessage.js | 23 + src/utils/statusMessage.test.js | 48 ++ 18 files changed, 489 insertions(+), 612 deletions(-) delete mode 100644 src/components/Cars/CarSelection/index.jsx create mode 100644 src/utils/statusMessage.js create mode 100644 src/utils/statusMessage.test.js diff --git a/src/components/App/__snapshots__/App.test.js.snap b/src/components/App/__snapshots__/App.test.js.snap index 0d7a7a5..3def351 100644 --- a/src/components/App/__snapshots__/App.test.js.snap +++ b/src/components/App/__snapshots__/App.test.js.snap @@ -6,10 +6,10 @@ exports[`App Route / authenticated 1`] = ` data-testid="mocked-userprovider" >