From e2aecc9f3bc9586942fd9f290202d078cc937036 Mon Sep 17 00:00:00 2001 From: Paul Adamsen <117673433+pauladamseniii@users.noreply.github.com> Date: Wed, 14 Dec 2022 14:21:31 -0500 Subject: [PATCH] CEC-3320 - Add other car fields to edit form (#248) * CEC-3320 - Add other car fields to edit form * info_source readonly --- .../App/__snapshots__/App.test.js.snap | 57 +++++ .../Details/__snapshots__/index.test.jsx.snap | 57 +++++ src/components/Cars/Status/Details/index.jsx | 27 +++ .../__snapshots__/DetailsTab.test.jsx.snap | 57 +++++ .../Status/__snapshots__/index.test.jsx.snap | 54 +++++ .../Update/__snapshots__/index.test.jsx.snap | 224 ++++++++++++++++++ src/components/Cars/Update/index.jsx | 115 +++++++++ 7 files changed, 591 insertions(+) diff --git a/src/components/App/__snapshots__/App.test.js.snap b/src/components/App/__snapshots__/App.test.js.snap index 813de41..6d15848 100644 --- a/src/components/App/__snapshots__/App.test.js.snap +++ b/src/components/App/__snapshots__/App.test.js.snap @@ -7958,6 +7958,63 @@ exports[`App Route /vehicle-status authenticated 1`] = ` : FISKER123

+

+ + ICCID + + : +

+

+ + Model + + : + Ocean +

+

+ + Year + + : + 2021 +

+

+ + Trim + + : + Basic +

+

+ + Country + + : +

+

+ + Powertrain Type + + : +

+

+ + Restraint Type + + : +

+

+ + Body Type + + : +

+

+ + Info Source + + : +

Log Level diff --git a/src/components/Cars/Status/Details/__snapshots__/index.test.jsx.snap b/src/components/Cars/Status/Details/__snapshots__/index.test.jsx.snap index bf46c26..f8ee4b8 100644 --- a/src/components/Cars/Status/Details/__snapshots__/index.test.jsx.snap +++ b/src/components/Cars/Status/Details/__snapshots__/index.test.jsx.snap @@ -30,6 +30,63 @@ exports[`VehicleDetailsTab Render 1`] = ` : TESTVIN1234567890

+

+ + ICCID + + : +

+

+ + Model + + : + Ocean +

+

+ + Year + + : + 2021 +

+

+ + Trim + + : + Basic +

+

+ + Country + + : +

+

+ + Powertrain Type + + : +

+

+ + Restraint Type + + : +

+

+ + Body Type + + : +

+

+ + Info Source + + : +

Log Level diff --git a/src/components/Cars/Status/Details/index.jsx b/src/components/Cars/Status/Details/index.jsx index bfb1c77..3294a80 100644 --- a/src/components/Cars/Status/Details/index.jsx +++ b/src/components/Cars/Status/Details/index.jsx @@ -67,6 +67,33 @@ const MainForm = ({ vin }) => {

VIN: {vin}

+

+ ICCID: {vehicle.iccid} +

+

+ Model: {vehicle.model} +

+

+ Year: {vehicle.year} +

+

+ Trim: {vehicle.trim} +

+

+ Country: {vehicle.country} +

+

+ Powertrain Type: {vehicle.powertrain} +

+

+ Restraint Type: {vehicle.restraint} +

+

+ Body Type: {vehicle.body_type} +

+

+ Info Source: {vehicle.info_source} +

{vehicle.log_level != null && (

Log Level: {vehicle.log_level} diff --git a/src/components/Cars/Status/__snapshots__/DetailsTab.test.jsx.snap b/src/components/Cars/Status/__snapshots__/DetailsTab.test.jsx.snap index d23af12..08c875a 100644 --- a/src/components/Cars/Status/__snapshots__/DetailsTab.test.jsx.snap +++ b/src/components/Cars/Status/__snapshots__/DetailsTab.test.jsx.snap @@ -38,6 +38,63 @@ exports[`DetailsTab Render 1`] = ` : TESTVIN1234567890

+

+ + ICCID + + : +

+

+ + Model + + : + Ocean +

+

+ + Year + + : + 2021 +

+

+ + Trim + + : + Basic +

+

+ + Country + + : +

+

+ + Powertrain Type + + : +

+

+ + Restraint Type + + : +

+

+ + Body Type + + : +

+

+ + Info Source + + : +

Log Level diff --git a/src/components/Cars/Status/__snapshots__/index.test.jsx.snap b/src/components/Cars/Status/__snapshots__/index.test.jsx.snap index 192d0e9..23e1eba 100644 --- a/src/components/Cars/Status/__snapshots__/index.test.jsx.snap +++ b/src/components/Cars/Status/__snapshots__/index.test.jsx.snap @@ -195,6 +195,60 @@ exports[`CarStatus Render 1`] = ` : TESTVIN1234567890

+

+ + ICCID + + : +

+

+ + Model + + : +

+

+ + Year + + : +

+

+ + Trim + + : +

+

+ + Country + + : +

+

+ + Powertrain Type + + : +

+

+ + Restraint Type + + : +

+

+ + Body Type + + : +

+

+ + Info Source + + : +

+
+ +
+ + +
+
@@ -210,6 +247,193 @@ exports[`VehicleUpdate Render 1`] = `
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+