CEC-1387 superset integration and removal of grafana (#138)

* replace grafana with superset

* updating snapshots
This commit is contained in:
Drew Taylor
2022-04-18 09:02:17 -07:00
committed by GitHub
parent 11c85e57d6
commit 491de89269
44 changed files with 1059 additions and 3228 deletions

View File

@@ -4,7 +4,6 @@ jest.mock("../Contexts/VehicleContext");
jest.mock("../Contexts/ManifestCreateContext");
jest.mock("../Contexts/ManifestsContext");
jest.mock("../Contexts/UserContext");
jest.mock("../../services/grafanaAPI");
jest.mock("../../services/monitoring");
jest.mock("../../services/vehiclesAPI");
@@ -38,7 +37,7 @@ const check = async (path, selector, compare) => {
const sleepAndCheck = async (path, selector, compare) => {
const container = await renderRoute(path);
await waitFor(() => {});
await waitFor(() => { });
expect(container.querySelector(selector).innerHTML).toEqual(compare);
expect(container).toMatchSnapshot();
};
@@ -72,14 +71,6 @@ describe("App", () => {
await sleepAndCheck("/home", "span.MuiButton-label", "Sign In");
});
it("Route /datascope unauthenticated", async () => {
await sleepAndCheck("/datascope", "span.MuiButton-label", "Sign In");
});
it("Route /datascope/battery unauthenticated", async () => {
await check("/datascope/battery", "span.MuiButton-label", "Sign In");
});
it("Route /packages unauthenticated", async () => {
await check("/packages", "span.MuiButton-label", "Sign In");
});
@@ -134,16 +125,6 @@ describe("App", () => {
await check("/page-not-found", "h1", "Page Not Found");
});
it("Route /datascope authenticated", async () => {
setToken(TEST_AUTH_OBJECT);
await sleepAndCheck("/datascope", "h6", "Datascope");
});
it("Route /datascope/battery authenticated", async () => {
setToken(TEST_AUTH_OBJECT);
await check("/datascope/battery", "h6", "Battery");
});
it("Route /packages authenticated", async () => {
setToken(TEST_AUTH_OBJECT);
await check("/packages", "h6", "Deployments");

File diff suppressed because it is too large Load Diff

View File

@@ -56,10 +56,10 @@ exports[`CANFiltersAdd Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66"
class="PrivateNotchedOutline-legendLabelled-64"
>
<span>
VIN
@@ -102,10 +102,10 @@ exports[`CANFiltersAdd Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66"
class="PrivateNotchedOutline-legendLabelled-64"
>
<span>
CAN ID
@@ -140,10 +140,10 @@ exports[`CANFiltersAdd Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66"
class="PrivateNotchedOutline-legendLabelled-64"
>
<span>
Interval

View File

@@ -15,13 +15,13 @@ exports[`CANFiltersTable Render 1`] = `
data-testid="mocked-canfiltersprovider"
>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<div
class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2"
>
<div
class="MuiGrid-root makeStyles-textJustifyAlign-49 MuiGrid-item MuiGrid-grid-md-4"
class="MuiGrid-root makeStyles-textJustifyAlign-47 MuiGrid-item MuiGrid-grid-md-4"
>
<a
class="makeStyles-labelInline-9"
@@ -40,10 +40,10 @@ exports[`CANFiltersTable Render 1`] = `
</a>
</div>
<div
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-8"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-8"
>
<div
class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-52"
class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-50"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated"

View File

@@ -56,10 +56,10 @@ exports[`CANFiltersUpdate Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66"
class="PrivateNotchedOutline-legendLabelled-64"
>
<span>
VIN
@@ -103,10 +103,10 @@ exports[`CANFiltersUpdate Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66"
class="PrivateNotchedOutline-legendLabelled-64"
>
<span>
CAN ID
@@ -149,10 +149,10 @@ exports[`CANFiltersUpdate Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66"
class="PrivateNotchedOutline-legendLabelled-64"
>
<span>
Interval

View File

@@ -55,10 +55,10 @@ exports[`VehicleAddForm Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66"
class="PrivateNotchedOutline-legendLabelled-64"
>
<span>
VIN
@@ -101,10 +101,10 @@ exports[`VehicleAddForm Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66 PrivateNotchedOutline-legendNotched-67"
class="PrivateNotchedOutline-legendLabelled-64 PrivateNotchedOutline-legendNotched-65"
>
<span>
Model
@@ -148,10 +148,10 @@ exports[`VehicleAddForm Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66 PrivateNotchedOutline-legendNotched-67"
class="PrivateNotchedOutline-legendLabelled-64 PrivateNotchedOutline-legendNotched-65"
>
<span>
Year
@@ -195,10 +195,10 @@ exports[`VehicleAddForm Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66 PrivateNotchedOutline-legendNotched-67"
class="PrivateNotchedOutline-legendLabelled-64 PrivateNotchedOutline-legendNotched-65"
>
<span>
Trim
@@ -225,19 +225,19 @@ exports[`VehicleAddForm Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
name="log-level-group"
type="radio"
value="trace"
/>
<div
class="PrivateRadioButtonIcon-root-72"
class="PrivateRadioButtonIcon-root-70"
>
<svg
aria-hidden="true"
@@ -251,7 +251,7 @@ exports[`VehicleAddForm Render 1`] = `
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-73"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-71"
focusable="false"
viewBox="0 0 24 24"
>
@@ -276,19 +276,19 @@ exports[`VehicleAddForm Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
name="log-level-group"
type="radio"
value="debug"
/>
<div
class="PrivateRadioButtonIcon-root-72"
class="PrivateRadioButtonIcon-root-70"
>
<svg
aria-hidden="true"
@@ -302,7 +302,7 @@ exports[`VehicleAddForm Render 1`] = `
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-73"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-71"
focusable="false"
viewBox="0 0 24 24"
>
@@ -327,20 +327,20 @@ exports[`VehicleAddForm Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiRadio-root MuiRadio-colorSecondary PrivateSwitchBase-checked-69 Mui-checked MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiRadio-root MuiRadio-colorSecondary PrivateSwitchBase-checked-67 Mui-checked MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
checked=""
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
name="log-level-group"
type="radio"
value="info"
/>
<div
class="PrivateRadioButtonIcon-root-72 PrivateRadioButtonIcon-checked-74"
class="PrivateRadioButtonIcon-root-70 PrivateRadioButtonIcon-checked-72"
>
<svg
aria-hidden="true"
@@ -354,7 +354,7 @@ exports[`VehicleAddForm Render 1`] = `
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-73"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-71"
focusable="false"
viewBox="0 0 24 24"
>
@@ -379,19 +379,19 @@ exports[`VehicleAddForm Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
name="log-level-group"
type="radio"
value="warn"
/>
<div
class="PrivateRadioButtonIcon-root-72"
class="PrivateRadioButtonIcon-root-70"
>
<svg
aria-hidden="true"
@@ -405,7 +405,7 @@ exports[`VehicleAddForm Render 1`] = `
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-73"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-71"
focusable="false"
viewBox="0 0 24 24"
>
@@ -430,19 +430,19 @@ exports[`VehicleAddForm Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
name="log-level-group"
type="radio"
value="error"
/>
<div
class="PrivateRadioButtonIcon-root-72"
class="PrivateRadioButtonIcon-root-70"
>
<svg
aria-hidden="true"
@@ -456,7 +456,7 @@ exports[`VehicleAddForm Render 1`] = `
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-73"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-71"
focusable="false"
viewBox="0 0 24 24"
>
@@ -481,19 +481,19 @@ exports[`VehicleAddForm Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
name="log-level-group"
type="radio"
value="critical"
/>
<div
class="PrivateRadioButtonIcon-root-72"
class="PrivateRadioButtonIcon-root-70"
>
<svg
aria-hidden="true"
@@ -507,7 +507,7 @@ exports[`VehicleAddForm Render 1`] = `
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-73"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-71"
focusable="false"
viewBox="0 0 24 24"
>
@@ -542,14 +542,14 @@ exports[`VehicleAddForm Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiCheckbox-root MuiCheckbox-colorSecondary PrivateSwitchBase-checked-69 Mui-checked MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiCheckbox-root MuiCheckbox-colorSecondary PrivateSwitchBase-checked-67 Mui-checked MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
checked=""
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
data-indeterminate="false"
type="checkbox"
value=""
@@ -608,10 +608,10 @@ exports[`VehicleAddForm Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66 PrivateNotchedOutline-legendNotched-67"
class="PrivateNotchedOutline-legendLabelled-64 PrivateNotchedOutline-legendNotched-65"
>
<span>
Max Memory Buffer Size (0 uses default size)
@@ -626,13 +626,13 @@ exports[`VehicleAddForm Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiCheckbox-root MuiCheckbox-colorSecondary MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiCheckbox-root MuiCheckbox-colorSecondary MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
data-indeterminate="false"
type="checkbox"
value=""
@@ -693,10 +693,10 @@ exports[`VehicleAddForm Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66 PrivateNotchedOutline-legendNotched-67"
class="PrivateNotchedOutline-legendLabelled-64 PrivateNotchedOutline-legendNotched-65"
>
<span>
Max Disk Buffer Size (0 uses default size)

View File

@@ -15,13 +15,13 @@ exports[`VehicleTable Render 1`] = `
data-testid="mocked-vehicleprovider"
>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<div
class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2"
>
<div
class="MuiGrid-root makeStyles-textJustifyAlign-49 MuiGrid-item MuiGrid-grid-md-4"
class="MuiGrid-root makeStyles-textJustifyAlign-47 MuiGrid-item MuiGrid-grid-md-4"
>
<a
href="/vehicle-add"
@@ -39,10 +39,10 @@ exports[`VehicleTable Render 1`] = `
</a>
</div>
<div
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-4"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-4"
>
<div
class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-52"
class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-50"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated"
@@ -93,11 +93,11 @@ exports[`VehicleTable Render 1`] = `
</div>
</div>
<div
class="MuiGrid-root makeStyles-textRightAlign-51 MuiGrid-item MuiGrid-grid-md-4"
class="MuiGrid-root makeStyles-textRightAlign-49 MuiGrid-item MuiGrid-grid-md-4"
/>
</div>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<table
class="MuiTable-root"

View File

@@ -15,13 +15,13 @@ exports[`VehicleDetailsTab Render 1`] = `
data-testid="mocked-vehicleprovider"
>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<div
class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2"
>
<div
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-12"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-12"
>
<p>
<b>
@@ -38,7 +38,7 @@ exports[`VehicleDetailsTab Render 1`] = `
</p>
</div>
<div
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-12"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-12"
>
<b>
CANBus
@@ -80,7 +80,7 @@ exports[`VehicleDetailsTab Render 1`] = `
</p>
</div>
<div
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-12"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-12"
>
<a
class=""

View File

@@ -3,7 +3,7 @@
exports[`CANFiltersTab Render 1`] = `
<div>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<h6
class="MuiTypography-root MuiTypography-h6"
@@ -14,13 +14,13 @@ exports[`CANFiltersTab Render 1`] = `
data-testid="mocked-canfiltersprovider"
>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<div
class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2"
>
<div
class="MuiGrid-root makeStyles-textJustifyAlign-49 MuiGrid-item MuiGrid-grid-md-4"
class="MuiGrid-root makeStyles-textJustifyAlign-47 MuiGrid-item MuiGrid-grid-md-4"
>
<a
class="makeStyles-labelInline-9"
@@ -39,10 +39,10 @@ exports[`CANFiltersTab Render 1`] = `
</a>
</div>
<div
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-8"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-8"
>
<div
class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-52"
class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-50"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated"

View File

@@ -12,7 +12,7 @@ exports[`CarUpdatesTab Render 1`] = `
data-testid="mocked-userprovider"
>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<h6
class="MuiTypography-root MuiTypography-h6"
@@ -282,10 +282,10 @@ exports[`CarUpdatesTab Render 1`] = `
class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2"
>
<div
class="MuiGrid-root makeStyles-textJustifyAlign-49 MuiGrid-item MuiGrid-grid-md-4"
class="MuiGrid-root makeStyles-textJustifyAlign-47 MuiGrid-item MuiGrid-grid-md-4"
/>
<div
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-4"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-4"
>
<h6
class="MuiTypography-root makeStyles-labelInline-9 MuiTypography-h6"
@@ -294,7 +294,7 @@ exports[`CarUpdatesTab Render 1`] = `
</h6>
</div>
<div
class="MuiGrid-root makeStyles-textRightAlign-51 MuiGrid-item MuiGrid-grid-md-4"
class="MuiGrid-root makeStyles-textRightAlign-49 MuiGrid-item MuiGrid-grid-md-4"
>
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained makeStyles-formControl-7 makeStyles-textField-29 MuiButton-containedPrimary"
@@ -313,7 +313,7 @@ exports[`CarUpdatesTab Render 1`] = `
</div>
</div>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<table
class="MuiTable-root"

View File

@@ -12,7 +12,7 @@ exports[`DetailsTab Render 1`] = `
data-testid="mocked-userprovider"
>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<h6
class="MuiTypography-root MuiTypography-h6"
@@ -23,13 +23,13 @@ exports[`DetailsTab Render 1`] = `
data-testid="mocked-vehicleprovider"
>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<div
class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2"
>
<div
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-12"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-12"
>
<p>
<b>
@@ -47,7 +47,7 @@ exports[`DetailsTab Render 1`] = `
</p>
</div>
<div
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-12"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-12"
>
<b>
CANBus
@@ -89,7 +89,7 @@ exports[`DetailsTab Render 1`] = `
</p>
</div>
<div
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-12"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-12"
>
<a
class=""

View File

@@ -12,10 +12,10 @@ exports[`CarStatus Render 1`] = `
data-testid="mocked-userprovider"
>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<div
class="MuiBox-root MuiBox-root-64 makeStyles-tableToolbar-30"
class="MuiBox-root MuiBox-root-62 makeStyles-tableToolbar-30"
>
<div
class="MuiTabs-root"
@@ -85,7 +85,7 @@ exports[`CarStatus Render 1`] = `
</button>
</div>
<span
class="PrivateTabIndicator-root-65 PrivateTabIndicator-colorSecondary-67 MuiTabs-indicator"
class="PrivateTabIndicator-root-63 PrivateTabIndicator-colorSecondary-65 MuiTabs-indicator"
style="left: 0px; width: 0px;"
/>
</div>
@@ -97,10 +97,10 @@ exports[`CarStatus Render 1`] = `
role="tabpanel"
>
<div
class="MuiBox-root MuiBox-root-69"
class="MuiBox-root MuiBox-root-67"
>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<h6
class="MuiTypography-root MuiTypography-h6"
@@ -108,13 +108,13 @@ exports[`CarStatus Render 1`] = `
Vehicle Details
</h6>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<div
class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2"
>
<div
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-12"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-12"
>
<p>
<b>
@@ -124,7 +124,7 @@ exports[`CarStatus Render 1`] = `
</p>
</div>
<div
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-12"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-12"
>
<a
class=""

View File

@@ -57,10 +57,10 @@ exports[`VehicleUpdate Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66"
class="PrivateNotchedOutline-legendLabelled-64"
>
<span>
VIN
@@ -103,10 +103,10 @@ exports[`VehicleUpdate Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66 PrivateNotchedOutline-legendNotched-67"
class="PrivateNotchedOutline-legendLabelled-64 PrivateNotchedOutline-legendNotched-65"
>
<span>
Model
@@ -150,10 +150,10 @@ exports[`VehicleUpdate Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66 PrivateNotchedOutline-legendNotched-67"
class="PrivateNotchedOutline-legendLabelled-64 PrivateNotchedOutline-legendNotched-65"
>
<span>
Year
@@ -197,10 +197,10 @@ exports[`VehicleUpdate Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66 PrivateNotchedOutline-legendNotched-67"
class="PrivateNotchedOutline-legendLabelled-64 PrivateNotchedOutline-legendNotched-65"
>
<span>
Trim
@@ -227,19 +227,19 @@ exports[`VehicleUpdate Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
name="log-level-group"
type="radio"
value="trace"
/>
<div
class="PrivateRadioButtonIcon-root-72"
class="PrivateRadioButtonIcon-root-70"
>
<svg
aria-hidden="true"
@@ -253,7 +253,7 @@ exports[`VehicleUpdate Render 1`] = `
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-73"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-71"
focusable="false"
viewBox="0 0 24 24"
>
@@ -278,19 +278,19 @@ exports[`VehicleUpdate Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
name="log-level-group"
type="radio"
value="debug"
/>
<div
class="PrivateRadioButtonIcon-root-72"
class="PrivateRadioButtonIcon-root-70"
>
<svg
aria-hidden="true"
@@ -304,7 +304,7 @@ exports[`VehicleUpdate Render 1`] = `
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-73"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-71"
focusable="false"
viewBox="0 0 24 24"
>
@@ -329,20 +329,20 @@ exports[`VehicleUpdate Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiRadio-root MuiRadio-colorSecondary PrivateSwitchBase-checked-69 Mui-checked MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiRadio-root MuiRadio-colorSecondary PrivateSwitchBase-checked-67 Mui-checked MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
checked=""
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
name="log-level-group"
type="radio"
value="info"
/>
<div
class="PrivateRadioButtonIcon-root-72 PrivateRadioButtonIcon-checked-74"
class="PrivateRadioButtonIcon-root-70 PrivateRadioButtonIcon-checked-72"
>
<svg
aria-hidden="true"
@@ -356,7 +356,7 @@ exports[`VehicleUpdate Render 1`] = `
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-73"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-71"
focusable="false"
viewBox="0 0 24 24"
>
@@ -381,19 +381,19 @@ exports[`VehicleUpdate Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
name="log-level-group"
type="radio"
value="warn"
/>
<div
class="PrivateRadioButtonIcon-root-72"
class="PrivateRadioButtonIcon-root-70"
>
<svg
aria-hidden="true"
@@ -407,7 +407,7 @@ exports[`VehicleUpdate Render 1`] = `
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-73"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-71"
focusable="false"
viewBox="0 0 24 24"
>
@@ -432,19 +432,19 @@ exports[`VehicleUpdate Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
name="log-level-group"
type="radio"
value="error"
/>
<div
class="PrivateRadioButtonIcon-root-72"
class="PrivateRadioButtonIcon-root-70"
>
<svg
aria-hidden="true"
@@ -458,7 +458,7 @@ exports[`VehicleUpdate Render 1`] = `
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-73"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-71"
focusable="false"
viewBox="0 0 24 24"
>
@@ -483,19 +483,19 @@ exports[`VehicleUpdate Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
name="log-level-group"
type="radio"
value="critical"
/>
<div
class="PrivateRadioButtonIcon-root-72"
class="PrivateRadioButtonIcon-root-70"
>
<svg
aria-hidden="true"
@@ -509,7 +509,7 @@ exports[`VehicleUpdate Render 1`] = `
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-73"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-71"
focusable="false"
viewBox="0 0 24 24"
>
@@ -544,14 +544,14 @@ exports[`VehicleUpdate Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiCheckbox-root MuiCheckbox-colorSecondary PrivateSwitchBase-checked-69 Mui-checked MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiCheckbox-root MuiCheckbox-colorSecondary PrivateSwitchBase-checked-67 Mui-checked MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
checked=""
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
data-indeterminate="false"
type="checkbox"
value=""
@@ -610,10 +610,10 @@ exports[`VehicleUpdate Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66 PrivateNotchedOutline-legendNotched-67"
class="PrivateNotchedOutline-legendLabelled-64 PrivateNotchedOutline-legendNotched-65"
>
<span>
Max Memory Buffer Size (0 uses default size)
@@ -628,13 +628,13 @@ exports[`VehicleUpdate Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiCheckbox-root MuiCheckbox-colorSecondary PrivateSwitchBase-checked-69 Mui-checked MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiCheckbox-root MuiCheckbox-colorSecondary PrivateSwitchBase-checked-67 Mui-checked MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
data-indeterminate="false"
type="checkbox"
value=""
@@ -694,10 +694,10 @@ exports[`VehicleUpdate Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66 PrivateNotchedOutline-legendNotched-67"
class="PrivateNotchedOutline-legendLabelled-64 PrivateNotchedOutline-legendNotched-65"
>
<span>
Max Disk Buffer Size (0 uses default size)

View File

@@ -1,160 +0,0 @@
import React, { useEffect, useState } from "react";
import {
FormControl,
Grid,
InputLabel,
MenuItem,
Paper,
Select,
TextField,
} from "@material-ui/core";
import { useStatusContext } from "../../Contexts/StatusContext";
import useStyles from "../../useStyles";
import ResponsiveIFrame from "../../Controls/ResponsiveIFrame";
import { grafanaCharts } from "../../../services/grafanaCharts";
const Battery = () => {
const classes = useStyles();
const { setTitle, setSitePath } = useStatusContext();
useEffect(() => {
setTitle("Battery");
setSitePath([
{
label: "Datascope",
link: "/datascope",
},
{
label: "Battery",
},
]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const [vin, setVIN] = useState("1F15K3R45N1234567");
const [cellNum, setCellNum] = useState(1);
const handleVINForm = (e) => {
if (e.target.value.length === 17) {
setVIN(e.target.value);
}
};
return (
<div className={classes.paper}>
<Grid container spacing={2}>
<Grid container item md={4} space={2}>
<Grid item md={12}>
<Paper className={classes.grafanaContainer}>
<form className={classes.formControl}>
<TextField
id="vin"
label="VIN"
defaultValue="1F15K3R45N1234567"
variant="outlined"
onChange={handleVINForm}
style={{ width: "100%" }}
/>
</form>
<FormControl variant="outlined" className={classes.formControl}>
<InputLabel id="demo-simple-select-outlined-label">
Cell
</InputLabel>
<Select
labelId="demo-simple-select-outlined-label"
id="demo-simple-select-outlined"
value={cellNum}
onChange={(e) => setCellNum(e.target.value)}
label="Cell"
>
{[...Array(112)].map((_, i) => (
<MenuItem key={i + 1} value={i + 1}>
{i + 1}
</MenuItem>
))}
</Select>
</FormControl>
</Paper>
</Grid>
<Grid item md={12}>
<Paper className={classes.grafanaContainer}>
Cell Voltage {cellNum}
<ResponsiveIFrame
classes={classes}
src={grafanaCharts.CELLVOLTAGE_CHART({ vin, cellNum })}
title="Cell Voltage"
/>
</Paper>
</Grid>
<Grid item md={12}>
<Paper className={classes.grafanaContainer}>
Cell Temperature {cellNum}
<ResponsiveIFrame
classes={classes}
src={grafanaCharts.CELLTEMP_CHART({ vin, cellNum })}
title="Cell Temperature"
/>
</Paper>
</Grid>
<Grid item md={12}>
<Paper className={classes.grafanaContainer}>
<ResponsiveIFrame
classes={classes}
src={grafanaCharts.BATTERYTEMP_CHART({ vin })}
title="Battery Temperature Time Series"
/>
</Paper>
</Grid>
</Grid>
<Grid container item md={8} space={2}>
<Grid item md={12}>
<Paper className={classes.grafanaContainer}>
<ResponsiveIFrame
classes={classes}
src={grafanaCharts.BATTERYCAP_CHART({ vin })}
title="Battery Capacity Time Series"
/>
</Paper>
</Grid>
<Grid item md={12}>
<Paper className={classes.grafanaContainer}>
<ResponsiveIFrame
classes={classes}
src={grafanaCharts.BATTERYPERCENT_CHART({ vin })}
title="Battery Percent Time Series"
/>
</Paper>
</Grid>
<Grid item md={6}>
<Paper className={classes.grafanaContainer}>
<ResponsiveIFrame
classes={classes}
src={grafanaCharts.BATTERY12VPERCENT_CHART({ vin })}
title="12V Battery Percentage Time Series"
/>
</Paper>
</Grid>
<Grid item md={6}>
<Paper className={classes.grafanaContainer}>
<ResponsiveIFrame
classes={classes}
src={grafanaCharts.BATTERY12VVOLTAGE_CHART({ vin })}
title="12V Battery Voltage Time Series"
/>
</Paper>
</Grid>
</Grid>
</Grid>
</div>
);
};
export default Battery;

View File

@@ -1,98 +0,0 @@
import React, { useEffect, useState } from "react";
import { Button, Grid, Link, Paper } from "@material-ui/core";
import CreateIcon from "@material-ui/icons/Create";
import api from "../../../services/grafanaAPI";
import { useStatusContext } from "../../Contexts/StatusContext";
import useStyles from "../../useStyles";
import ResponsiveIFrame from "../../Controls/ResponsiveIFrame";
import { logger } from "../../../services/monitoring";
import { grafanaCharts } from "../../../services/grafanaCharts";
const Datascope = () => {
const classes = useStyles();
const { setTitle, setSitePath } = useStatusContext();
const REQUEST_INTERVAL = 10000;
useEffect(() => {
setTitle("Datascope");
setSitePath([]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const [carsCount, setCarsCount] = useState(0);
useEffect(() => {
api
.getCarsCount()
.then((result) => setCarsCount(result))
.catch((error) => logger.warn(error.stack));
}, []);
const [signalsCount, setSignalsCount] = useState("0");
useEffect(() => {
storeSignals();
const id = setInterval(function () {
storeSignals();
}, REQUEST_INTERVAL);
return () => {
clearInterval(id);
};
}, []);
const storeSignals = () => {
api
.getSignalsCount()
.then((result) => {
let num = result.toLocaleString();
setSignalsCount(num);
})
.catch((error) => logger.warn(error.stack));
};
return (
<div className={classes.paper}>
<Grid container className={classes.root} spacing={2}>
<Grid item md={6}>
<Paper className={classes.grafanaContainer} style={{ height: 150 }}>
<h1 className={classes.datascopeContainerValue}>{carsCount}</h1>
<h2 className={classes.datascopeContainerText}>Cars</h2>
</Paper>
</Grid>
<Grid item md={6}>
<Paper className={classes.grafanaContainer} style={{ height: 150 }}>
<h1 className={classes.datascopeContainerValue}>{signalsCount}</h1>
<h2 className={classes.datascopeContainerText}>
Signals Collected
</h2>
</Paper>
</Grid>
<Grid item md={12}>
<Paper className={classes.grafanaContainer}>
<ResponsiveIFrame
classes={classes}
src={grafanaCharts.HOME_CHART}
title="Signals Time Series"
/>
</Paper>
</Grid>
</Grid>
<Button
style={{ marginTop: 10 }}
aria-label="create"
color="primary"
component={Link}
href={grafanaCharts.BASE}
rel="noopener"
target="_blank"
>
<CreateIcon fontSize="large" />
Go to Grafana
</Button>
</div>
);
};
export default Datascope;

View File

@@ -55,10 +55,10 @@ exports[`FleetAddForm Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66"
class="PrivateNotchedOutline-legendLabelled-64"
>
<span>
Name
@@ -85,19 +85,19 @@ exports[`FleetAddForm Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
name="log-level-group"
type="radio"
value="trace"
/>
<div
class="PrivateRadioButtonIcon-root-72"
class="PrivateRadioButtonIcon-root-70"
>
<svg
aria-hidden="true"
@@ -111,7 +111,7 @@ exports[`FleetAddForm Render 1`] = `
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-73"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-71"
focusable="false"
viewBox="0 0 24 24"
>
@@ -136,19 +136,19 @@ exports[`FleetAddForm Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
name="log-level-group"
type="radio"
value="debug"
/>
<div
class="PrivateRadioButtonIcon-root-72"
class="PrivateRadioButtonIcon-root-70"
>
<svg
aria-hidden="true"
@@ -162,7 +162,7 @@ exports[`FleetAddForm Render 1`] = `
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-73"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-71"
focusable="false"
viewBox="0 0 24 24"
>
@@ -187,20 +187,20 @@ exports[`FleetAddForm Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiRadio-root MuiRadio-colorSecondary PrivateSwitchBase-checked-69 Mui-checked MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiRadio-root MuiRadio-colorSecondary PrivateSwitchBase-checked-67 Mui-checked MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
checked=""
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
name="log-level-group"
type="radio"
value="info"
/>
<div
class="PrivateRadioButtonIcon-root-72 PrivateRadioButtonIcon-checked-74"
class="PrivateRadioButtonIcon-root-70 PrivateRadioButtonIcon-checked-72"
>
<svg
aria-hidden="true"
@@ -214,7 +214,7 @@ exports[`FleetAddForm Render 1`] = `
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-73"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-71"
focusable="false"
viewBox="0 0 24 24"
>
@@ -239,19 +239,19 @@ exports[`FleetAddForm Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
name="log-level-group"
type="radio"
value="warn"
/>
<div
class="PrivateRadioButtonIcon-root-72"
class="PrivateRadioButtonIcon-root-70"
>
<svg
aria-hidden="true"
@@ -265,7 +265,7 @@ exports[`FleetAddForm Render 1`] = `
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-73"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-71"
focusable="false"
viewBox="0 0 24 24"
>
@@ -290,19 +290,19 @@ exports[`FleetAddForm Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
name="log-level-group"
type="radio"
value="error"
/>
<div
class="PrivateRadioButtonIcon-root-72"
class="PrivateRadioButtonIcon-root-70"
>
<svg
aria-hidden="true"
@@ -316,7 +316,7 @@ exports[`FleetAddForm Render 1`] = `
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-73"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-71"
focusable="false"
viewBox="0 0 24 24"
>
@@ -341,19 +341,19 @@ exports[`FleetAddForm Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
name="log-level-group"
type="radio"
value="critical"
/>
<div
class="PrivateRadioButtonIcon-root-72"
class="PrivateRadioButtonIcon-root-70"
>
<svg
aria-hidden="true"
@@ -367,7 +367,7 @@ exports[`FleetAddForm Render 1`] = `
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-73"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-71"
focusable="false"
viewBox="0 0 24 24"
>
@@ -402,14 +402,14 @@ exports[`FleetAddForm Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiCheckbox-root MuiCheckbox-colorSecondary PrivateSwitchBase-checked-69 Mui-checked MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiCheckbox-root MuiCheckbox-colorSecondary PrivateSwitchBase-checked-67 Mui-checked MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
checked=""
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
data-indeterminate="false"
type="checkbox"
value=""
@@ -468,10 +468,10 @@ exports[`FleetAddForm Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66 PrivateNotchedOutline-legendNotched-67"
class="PrivateNotchedOutline-legendLabelled-64 PrivateNotchedOutline-legendNotched-65"
>
<span>
Max Memory Buffer Size (0 uses default size)
@@ -486,13 +486,13 @@ exports[`FleetAddForm Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiCheckbox-root MuiCheckbox-colorSecondary MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiCheckbox-root MuiCheckbox-colorSecondary MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
data-indeterminate="false"
type="checkbox"
value=""
@@ -553,10 +553,10 @@ exports[`FleetAddForm Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66 PrivateNotchedOutline-legendNotched-67"
class="PrivateNotchedOutline-legendLabelled-64 PrivateNotchedOutline-legendNotched-65"
>
<span>
Max Disk Buffer Size (0 uses default size)

View File

@@ -56,10 +56,10 @@ exports[`FleetCANFilterAdd Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66"
class="PrivateNotchedOutline-legendLabelled-64"
>
<span>
Fleet Name
@@ -102,10 +102,10 @@ exports[`FleetCANFilterAdd Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66"
class="PrivateNotchedOutline-legendLabelled-64"
>
<span>
CAN ID
@@ -140,10 +140,10 @@ exports[`FleetCANFilterAdd Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66"
class="PrivateNotchedOutline-legendLabelled-64"
>
<span>
Interval

View File

@@ -15,13 +15,13 @@ exports[`FleetCANFiltersTable Render 1`] = `
data-testid="mocked-fleetprovider"
>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<div
class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2"
>
<div
class="MuiGrid-root makeStyles-textJustifyAlign-49 MuiGrid-item MuiGrid-grid-md-4"
class="MuiGrid-root makeStyles-textJustifyAlign-47 MuiGrid-item MuiGrid-grid-md-4"
>
<a
class="makeStyles-labelInline-9"
@@ -41,10 +41,10 @@ exports[`FleetCANFiltersTable Render 1`] = `
</div>
<div
align="right"
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-8"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-8"
>
<div
class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-52"
class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-50"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated"

View File

@@ -56,10 +56,10 @@ exports[`FleetCANFilterUpdate Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66"
class="PrivateNotchedOutline-legendLabelled-64"
>
<span>
Fleet Name
@@ -103,10 +103,10 @@ exports[`FleetCANFilterUpdate Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66"
class="PrivateNotchedOutline-legendLabelled-64"
>
<span>
CAN ID
@@ -149,10 +149,10 @@ exports[`FleetCANFilterUpdate Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66"
class="PrivateNotchedOutline-legendLabelled-64"
>
<span>
Interval

View File

@@ -15,13 +15,13 @@ exports[`FleetDetailsTab Render 1`] = `
data-testid="mocked-fleetprovider"
>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<div
class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2"
>
<div
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-12"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-12"
>
<p>
<b>
@@ -45,7 +45,7 @@ exports[`FleetDetailsTab Render 1`] = `
</p>
</div>
<div
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-12"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-12"
>
<b>
CANBus
@@ -87,7 +87,7 @@ exports[`FleetDetailsTab Render 1`] = `
</p>
</div>
<div
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-12"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-12"
>
<a
class=""

View File

@@ -55,10 +55,10 @@ exports[`FleetVehicleAdd Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66"
class="PrivateNotchedOutline-legendLabelled-64"
>
<span>
VIN

View File

@@ -15,13 +15,13 @@ exports[`FleetVehiclesTable Render 1`] = `
data-testid="mocked-fleetprovider"
>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<div
class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2"
>
<div
class="MuiGrid-root makeStyles-textJustifyAlign-49 MuiGrid-item MuiGrid-grid-md-4"
class="MuiGrid-root makeStyles-textJustifyAlign-47 MuiGrid-item MuiGrid-grid-md-4"
>
<a
class="makeStyles-labelInline-9"
@@ -41,10 +41,10 @@ exports[`FleetVehiclesTable Render 1`] = `
</div>
<div
align="right"
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-8"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-8"
>
<div
class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-52"
class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-50"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated"

View File

@@ -3,7 +3,7 @@
exports[`CANFiltersTab Render 1`] = `
<div>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<h6
class="MuiTypography-root MuiTypography-h6"
@@ -14,13 +14,13 @@ exports[`CANFiltersTab Render 1`] = `
data-testid="mocked-fleetprovider"
>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<div
class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2"
>
<div
class="MuiGrid-root makeStyles-textJustifyAlign-49 MuiGrid-item MuiGrid-grid-md-4"
class="MuiGrid-root makeStyles-textJustifyAlign-47 MuiGrid-item MuiGrid-grid-md-4"
>
<a
class="makeStyles-labelInline-9"
@@ -40,10 +40,10 @@ exports[`CANFiltersTab Render 1`] = `
</div>
<div
align="right"
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-8"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-8"
>
<div
class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-52"
class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-50"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated"

View File

@@ -12,7 +12,7 @@ exports[`DetailsTab Render 1`] = `
data-testid="mocked-userprovider"
>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<h6
class="MuiTypography-root MuiTypography-h6"
@@ -23,13 +23,13 @@ exports[`DetailsTab Render 1`] = `
data-testid="mocked-fleetprovider"
>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<div
class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2"
>
<div
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-12"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-12"
>
<p>
<b>
@@ -54,7 +54,7 @@ exports[`DetailsTab Render 1`] = `
</p>
</div>
<div
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-12"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-12"
>
<b>
CANBus
@@ -96,7 +96,7 @@ exports[`DetailsTab Render 1`] = `
</p>
</div>
<div
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-12"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-12"
>
<a
class=""

View File

@@ -3,7 +3,7 @@
exports[`VehiclesTab Render 1`] = `
<div>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<h6
class="MuiTypography-root MuiTypography-h6"
@@ -14,13 +14,13 @@ exports[`VehiclesTab Render 1`] = `
data-testid="mocked-fleetprovider"
>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<div
class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2"
>
<div
class="MuiGrid-root makeStyles-textJustifyAlign-49 MuiGrid-item MuiGrid-grid-md-4"
class="MuiGrid-root makeStyles-textJustifyAlign-47 MuiGrid-item MuiGrid-grid-md-4"
>
<a
class="makeStyles-labelInline-9"
@@ -40,10 +40,10 @@ exports[`VehiclesTab Render 1`] = `
</div>
<div
align="right"
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-8"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-8"
>
<div
class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-52"
class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-50"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated"

View File

@@ -12,10 +12,10 @@ exports[`FleetStatus Render 1`] = `
data-testid="mocked-userprovider"
>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<div
class="MuiBox-root MuiBox-root-64 makeStyles-tableToolbar-30"
class="MuiBox-root MuiBox-root-62 makeStyles-tableToolbar-30"
>
<div
class="MuiTabs-root"
@@ -85,7 +85,7 @@ exports[`FleetStatus Render 1`] = `
</button>
</div>
<span
class="PrivateTabIndicator-root-65 PrivateTabIndicator-colorSecondary-67 MuiTabs-indicator"
class="PrivateTabIndicator-root-63 PrivateTabIndicator-colorSecondary-65 MuiTabs-indicator"
style="left: 0px; width: 0px;"
/>
</div>
@@ -97,10 +97,10 @@ exports[`FleetStatus Render 1`] = `
role="tabpanel"
>
<div
class="MuiBox-root MuiBox-root-69"
class="MuiBox-root MuiBox-root-67"
>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<h6
class="MuiTypography-root MuiTypography-h6"
@@ -111,13 +111,13 @@ exports[`FleetStatus Render 1`] = `
data-testid="mocked-fleetprovider"
>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<div
class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2"
>
<div
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-12"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-12"
>
<p>
<b>
@@ -141,7 +141,7 @@ exports[`FleetStatus Render 1`] = `
</p>
</div>
<div
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-12"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-12"
>
<b>
CANBus
@@ -183,7 +183,7 @@ exports[`FleetStatus Render 1`] = `
</p>
</div>
<div
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-12"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-12"
>
<a
class=""

View File

@@ -15,13 +15,13 @@ exports[`FleetTable Render 1`] = `
data-testid="mocked-fleetprovider"
>
<div
class="makeStyles-paper-3 makeStyles-tableSize-55"
class="makeStyles-paper-3 makeStyles-tableSize-53"
>
<div
class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2"
>
<div
class="MuiGrid-root makeStyles-textJustifyAlign-49 MuiGrid-item MuiGrid-grid-md-4"
class="MuiGrid-root makeStyles-textJustifyAlign-47 MuiGrid-item MuiGrid-grid-md-4"
>
<a
class="makeStyles-labelInline-9"
@@ -41,10 +41,10 @@ exports[`FleetTable Render 1`] = `
</div>
<div
align="right"
class="MuiGrid-root makeStyles-textCenterAlign-50 MuiGrid-item MuiGrid-grid-md-4"
class="MuiGrid-root makeStyles-textCenterAlign-48 MuiGrid-item MuiGrid-grid-md-4"
>
<div
class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-52"
class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-50"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated"
@@ -95,7 +95,7 @@ exports[`FleetTable Render 1`] = `
</div>
</div>
<div
class="MuiGrid-root makeStyles-textRightAlign-51 MuiGrid-item MuiGrid-grid-md-4"
class="MuiGrid-root makeStyles-textRightAlign-49 MuiGrid-item MuiGrid-grid-md-4"
/>
</div>
<table

View File

@@ -57,10 +57,10 @@ exports[`FleetUpdate Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66"
class="PrivateNotchedOutline-legendLabelled-64"
>
<span>
Name
@@ -87,19 +87,19 @@ exports[`FleetUpdate Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
name="log-level-group"
type="radio"
value="trace"
/>
<div
class="PrivateRadioButtonIcon-root-72"
class="PrivateRadioButtonIcon-root-70"
>
<svg
aria-hidden="true"
@@ -113,7 +113,7 @@ exports[`FleetUpdate Render 1`] = `
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-73"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-71"
focusable="false"
viewBox="0 0 24 24"
>
@@ -138,19 +138,19 @@ exports[`FleetUpdate Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
name="log-level-group"
type="radio"
value="debug"
/>
<div
class="PrivateRadioButtonIcon-root-72"
class="PrivateRadioButtonIcon-root-70"
>
<svg
aria-hidden="true"
@@ -164,7 +164,7 @@ exports[`FleetUpdate Render 1`] = `
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-73"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-71"
focusable="false"
viewBox="0 0 24 24"
>
@@ -189,20 +189,20 @@ exports[`FleetUpdate Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiRadio-root MuiRadio-colorSecondary PrivateSwitchBase-checked-69 Mui-checked MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiRadio-root MuiRadio-colorSecondary PrivateSwitchBase-checked-67 Mui-checked MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
checked=""
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
name="log-level-group"
type="radio"
value="info"
/>
<div
class="PrivateRadioButtonIcon-root-72 PrivateRadioButtonIcon-checked-74"
class="PrivateRadioButtonIcon-root-70 PrivateRadioButtonIcon-checked-72"
>
<svg
aria-hidden="true"
@@ -216,7 +216,7 @@ exports[`FleetUpdate Render 1`] = `
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-73"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-71"
focusable="false"
viewBox="0 0 24 24"
>
@@ -241,19 +241,19 @@ exports[`FleetUpdate Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
name="log-level-group"
type="radio"
value="warn"
/>
<div
class="PrivateRadioButtonIcon-root-72"
class="PrivateRadioButtonIcon-root-70"
>
<svg
aria-hidden="true"
@@ -267,7 +267,7 @@ exports[`FleetUpdate Render 1`] = `
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-73"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-71"
focusable="false"
viewBox="0 0 24 24"
>
@@ -292,19 +292,19 @@ exports[`FleetUpdate Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
name="log-level-group"
type="radio"
value="error"
/>
<div
class="PrivateRadioButtonIcon-root-72"
class="PrivateRadioButtonIcon-root-70"
>
<svg
aria-hidden="true"
@@ -318,7 +318,7 @@ exports[`FleetUpdate Render 1`] = `
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-73"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-71"
focusable="false"
viewBox="0 0 24 24"
>
@@ -343,19 +343,19 @@ exports[`FleetUpdate Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiRadio-root MuiRadio-colorSecondary MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
name="log-level-group"
type="radio"
value="critical"
/>
<div
class="PrivateRadioButtonIcon-root-72"
class="PrivateRadioButtonIcon-root-70"
>
<svg
aria-hidden="true"
@@ -369,7 +369,7 @@ exports[`FleetUpdate Render 1`] = `
</svg>
<svg
aria-hidden="true"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-73"
class="MuiSvgIcon-root PrivateRadioButtonIcon-layer-71"
focusable="false"
viewBox="0 0 24 24"
>
@@ -404,14 +404,14 @@ exports[`FleetUpdate Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiCheckbox-root MuiCheckbox-colorSecondary PrivateSwitchBase-checked-69 Mui-checked MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiCheckbox-root MuiCheckbox-colorSecondary PrivateSwitchBase-checked-67 Mui-checked MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
checked=""
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
data-indeterminate="false"
type="checkbox"
value=""
@@ -470,10 +470,10 @@ exports[`FleetUpdate Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66 PrivateNotchedOutline-legendNotched-67"
class="PrivateNotchedOutline-legendLabelled-64 PrivateNotchedOutline-legendNotched-65"
>
<span>
Max Memory Buffer Size (0 uses default size)
@@ -488,13 +488,13 @@ exports[`FleetUpdate Render 1`] = `
>
<span
aria-disabled="false"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-68 MuiCheckbox-root MuiCheckbox-colorSecondary PrivateSwitchBase-checked-69 Mui-checked MuiIconButton-colorSecondary"
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-66 MuiCheckbox-root MuiCheckbox-colorSecondary PrivateSwitchBase-checked-67 Mui-checked MuiIconButton-colorSecondary"
>
<span
class="MuiIconButton-label"
>
<input
class="PrivateSwitchBase-input-71"
class="PrivateSwitchBase-input-69"
data-indeterminate="false"
type="checkbox"
value=""
@@ -554,10 +554,10 @@ exports[`FleetUpdate Render 1`] = `
/>
<fieldset
aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline"
class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
>
<legend
class="PrivateNotchedOutline-legendLabelled-66 PrivateNotchedOutline-legendNotched-67"
class="PrivateNotchedOutline-legendLabelled-64 PrivateNotchedOutline-legendNotched-65"
>
<span>
Max Disk Buffer Size (0 uses default size)

View File

@@ -10,7 +10,7 @@ import ListItemLink from "../ListItemLink";
import ListItemExternalLink from "../ListItemExternalLink";
import { useUserContext } from "../Contexts/UserContext";
import { Roles, hasRole } from "../../utils/roles";
import { grafanaCharts } from "../../services/grafanaCharts";
import { SupersetDashboardURL } from "../../services/superset";
const menuData = [
{
@@ -39,19 +39,9 @@ const menuData = [
},
{
label: "Datascope",
to: "/datascope",
url: SupersetDashboardURL,
icon: <AssessmentIcon />,
roles: [Roles.READ, Roles.CREATE],
submenus: [
{
label: "Battery",
to: "/datascope/battery",
},
{
label: "Diagnostics",
url: grafanaCharts.BASE,
},
],
},
];

View File

@@ -152,94 +152,44 @@ exports[`SideMenu Authenticated 1`] = `
/>
</a>
</li>
<span>
<li>
<a
aria-disabled="false"
class="MuiButtonBase-root MuiListItem-root MuiListItem-gutters MuiListItem-button"
href="/datascope"
role="button"
tabindex="0"
<li>
<a
aria-disabled="false"
class="MuiTypography-root MuiLink-root MuiLink-underlineHover MuiButtonBase-root MuiListItem-root makeStyles-menuExternalLink-52 MuiListItem-gutters MuiListItem-button MuiTypography-colorPrimary"
href="http://superset-dev.fisker.internal/r/3"
rel="noopener"
role="button"
tabindex="0"
target="_blank"
>
<div
class="MuiListItemIcon-root"
>
<div
class="MuiListItemIcon-root"
<svg
aria-hidden="true"
class="MuiSvgIcon-root"
focusable="false"
viewBox="0 0 24 24"
>
<svg
aria-hidden="true"
class="MuiSvgIcon-root"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"
/>
</svg>
</div>
<div
class="MuiListItemText-root"
>
<span
class="MuiTypography-root MuiListItemText-primary MuiTypography-body1 MuiTypography-displayBlock"
>
Datascope
</span>
</div>
<span
class="MuiTouchRipple-root"
/>
</a>
</li>
</span>
<ul
style="margin-left: 50px;"
>
<li>
<a
aria-disabled="false"
class="MuiButtonBase-root MuiListItem-root MuiListItem-gutters MuiListItem-button"
href="/datascope/battery"
role="button"
tabindex="0"
<path
d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"
/>
</svg>
</div>
<div
class="MuiListItemText-root"
>
<div
class="MuiListItemText-root"
>
<span
class="MuiTypography-root MuiListItemText-primary MuiTypography-body1 MuiTypography-displayBlock"
>
Battery
</span>
</div>
<span
class="MuiTouchRipple-root"
/>
</a>
</li>
<li>
<a
aria-disabled="false"
class="MuiTypography-root MuiLink-root MuiLink-underlineHover MuiButtonBase-root MuiListItem-root makeStyles-menuExternalLink-54 MuiListItem-gutters MuiListItem-button MuiTypography-colorPrimary"
href="https://dev-grafana.fiskerdps.com"
rel="noopener"
role="button"
tabindex="0"
target="_blank"
>
<div
class="MuiListItemText-root"
class="MuiTypography-root MuiListItemText-primary MuiTypography-body1 MuiTypography-displayBlock"
>
<span
class="MuiTypography-root MuiListItemText-primary MuiTypography-body1 MuiTypography-displayBlock"
>
Diagnostics
</span>
</div>
<span
class="MuiTouchRipple-root"
/>
</a>
</li>
</ul>
Datascope
</span>
</div>
<span
class="MuiTouchRipple-root"
/>
</a>
</li>
</ul>
</div>
</div>

View File

@@ -101,7 +101,7 @@ Object {
data-testid="mocked-manifestsprovider"
>
<div
class="makeStyles-link-89"
class="makeStyles-link-87"
>
Hide Details
</div>
@@ -156,7 +156,7 @@ Object {
data-testid="mocked-manifestsprovider"
>
<div
class="makeStyles-link-89"
class="makeStyles-link-87"
>
Hide Details
</div>

View File

@@ -6,13 +6,11 @@ import { MessageBar } from "../MessageBar";
import { useUserContext } from "../Contexts/UserContext";
import { Roles } from "../../utils/roles";
const BatteryDatascope = React.lazy(() => import("../Datascope/Battery"));
const CANFilterCreate = React.lazy(() => import("../CANFilter/Add"))
const CANFilterUpdate = React.lazy(() => import("../CANFilter/Update"))
const CarsList = React.lazy(() => import("../Cars/List"));
const CarStatus = React.lazy(() => import("../Cars/Status"));
const CarUpdateStatus = React.lazy(() => import("../Cars/UpdateStatus"));
const Datascope = React.lazy(() => import("../Datascope/Home"));
const FleetsList = React.lazy(() => import("../Fleets/Table"));
const FleetStatus = React.lazy(() => import("../Fleets/Status"));
const FleetAddForm = React.lazy(() => import("../Fleets/Add"));
@@ -43,22 +41,6 @@ const SiteRoutes = () => {
type={TYPES.GUEST}
token={token}
/>
<AuthRoute
path="/datascope/battery"
render={() => <BatteryDatascope />}
type={TYPES.PROTECTED}
token={token}
groups={groups}
roles={[Roles.READ, Roles.CREATE]}
/>
<AuthRoute
path="/datascope"
render={() => <Datascope />}
type={TYPES.PROTECTED}
token={token}
groups={groups}
roles={[Roles.READ, Roles.CREATE]}
/>
<AuthRoute
path="/filter-add"
render={() => <CANFilterCreate />}

View File

@@ -3,7 +3,7 @@
exports[`Sign In Form Should render 1`] = `
<div>
<div
class="makeStyles-paper-3 makeStyles-textJustifyAlign-49"
class="makeStyles-paper-3 makeStyles-textJustifyAlign-47"
>
<a
aria-disabled="false"

View File

@@ -233,12 +233,6 @@ const useStyles = makeStyles((theme) => ({
padding: 15,
paddingBottom: 20,
},
datascopeContainerText: {
margin: 0,
},
datascopeContainerValue: {
margin: 0,
},
textJustifyAlign: { textAlign: "justifyContent" },
textCenterAlign: { textAlign: "center" },
textRightAlign: { textAlign: "right" },