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

@@ -1,13 +1,4 @@
REACT_APP_AUTH_SERVICE_URL=https://gw-dev.fiskerdps.com/compute_auth REACT_APP_AUTH_SERVICE_URL=https://gw-dev.fiskerdps.com/compute_auth
REACT_APP_UPLOAD_SERVICE_URL=https://gw-dev.fiskerdps.com/ota_update REACT_APP_UPLOAD_SERVICE_URL=https://gw-dev.fiskerdps.com/ota_update
REACT_APP_AUTH_CALLBACK_URL=https://dev-ota-admin.fiskerdps.com REACT_APP_AUTH_CALLBACK_URL=https://dev-ota-admin.fiskerdps.com
REACT_APP_GRAFANA_BASE_URL=https://dev-grafana.fiskerdps.com REACT_APP_SUPERSET_URL=http://superset-dev.fisker.internal
REACT_APP_GRAFANA_HOME_CHART_PATH=/d-solo/1VTVJ_qGk/dashboard?orgId=2&refresh=30s&panelId=12
REACT_APP_GRAFANA_VOLTAGE_CHART_PATH=/d-solo/LVI-aQGnz/diagnostics?orgId=2&var-VIN={vin}&var-Signal=BMS_CellVolt{cellNum}&panelId=2
REACT_APP_GRAFANA_CELLTEMP_CHART_PATH=/d-solo/LVI-aQGnz/diagnostics?orgId=2&var-VIN={vin}&var-Signal=BMS_CellT{cellNum}&panelId=2
REACT_APP_GRAFANA_BATTERYTEMP_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&refresh=1m&panelId=4
REACT_APP_GRAFANA_BATTERYCAP_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&refresh=1m&panelId=6
REACT_APP_GRAFANA_BATTERYPERCENT_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&panelId=12
REACT_APP_GRAFANA_BATTERY12VPERCENT_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&refresh=1m&panelId=2
REACT_APP_GRAFANA_BATTERY12VVOLTAGE_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&refresh=1m&panelId=9
REACT_APP_GRAFANA_API=https://dev-grafana.fiskerdps.com/api/datasources/proxy/2

View File

@@ -1,13 +1,4 @@
REACT_APP_AUTH_SERVICE_URL=http://localhost/compute_auth REACT_APP_AUTH_SERVICE_URL=http://localhost/compute_auth
REACT_APP_UPLOAD_SERVICE_URL=http://localhost/ota_update REACT_APP_UPLOAD_SERVICE_URL=http://localhost/ota_update
REACT_APP_AUTH_CALLBACK_URL=http://localhost:3000 REACT_APP_AUTH_CALLBACK_URL=http://localhost:3000
REACT_APP_GRAFANA_BASE_URL=https://dev-grafana.fiskerdps.com REACT_APP_SUPERSET_URL=http://superset-dev.fisker.internal
REACT_APP_GRAFANA_HOME_CHART_PATH=/d-solo/1VTVJ_qGk/dashboard?orgId=2&refresh=30s&panelId=12
REACT_APP_GRAFANA_VOLTAGE_CHART_PATH=/d-solo/LVI-aQGnz/diagnostics?orgId=2&var-VIN={vin}&var-Signal=BMS_CellVolt{cellNum}&panelId=2
REACT_APP_GRAFANA_CELLTEMP_CHART_PATH=/d-solo/LVI-aQGnz/diagnostics?orgId=2&var-VIN={vin}&var-Signal=BMS_CellT{cellNum}&panelId=2
REACT_APP_GRAFANA_BATTERYTEMP_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&refresh=1m&panelId=4
REACT_APP_GRAFANA_BATTERYCAP_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&refresh=1m&panelId=6
REACT_APP_GRAFANA_BATTERYPERCENT_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&panelId=12
REACT_APP_GRAFANA_BATTERY12VPERCENT_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&refresh=1m&panelId=2
REACT_APP_GRAFANA_BATTERY12VVOLTAGE_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&refresh=1m&panelId=9
REACT_APP_GRAFANA_API=https://dev-grafana.fiskerdps.com/api/datasources/proxy/2

View File

@@ -1,13 +1,4 @@
REACT_APP_AUTH_SERVICE_URL=https://gw.fiskerdps.com/compute_auth REACT_APP_AUTH_SERVICE_URL=https://gw.fiskerdps.com/compute_auth
REACT_APP_UPLOAD_SERVICE_URL=https://gw.fiskerdps.com/ota_update REACT_APP_UPLOAD_SERVICE_URL=https://gw.fiskerdps.com/ota_update
REACT_APP_AUTH_CALLBACK_URL=https://ota-admin.fiskerdps.com REACT_APP_AUTH_CALLBACK_URL=https://ota-admin.fiskerdps.com
REACT_APP_GRAFANA_BASE_URL=https://grafana.fiskerdps.com REACT_APP_SUPERSET_URL=http://superset.fisker.internal
REACT_APP_GRAFANA_HOME_CHART_PATH=/d-solo/1VTVJ_qGk/dashboard?orgId=2&refresh=30s&panelId=12
REACT_APP_GRAFANA_VOLTAGE_CHART_PATH=/d-solo/LVI-aQGnz/diagnostics?orgId=2&var-VIN={vin}&var-Signal=BMS_CellVolt{cellNum}&panelId=2
REACT_APP_GRAFANA_CELLTEMP_CHART_PATH=/d-solo/LVI-aQGnz/diagnostics?orgId=2&var-VIN={vin}&var-Signal=BMS_CellT{cellNum}&panelId=2
REACT_APP_GRAFANA_BATTERYTEMP_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&refresh=1m&panelId=4
REACT_APP_GRAFANA_BATTERYCAP_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&refresh=1m&panelId=6
REACT_APP_GRAFANA_BATTERYPERCENT_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&panelId=12
REACT_APP_GRAFANA_BATTERY12VPERCENT_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&refresh=1m&panelId=2
REACT_APP_GRAFANA_BATTERY12VVOLTAGE_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&refresh=1m&panelId=9
REACT_APP_GRAFANA_API=https://grafana.fiskerdps.com/api/datasources/proxy/1

View File

@@ -1,13 +1,4 @@
REACT_APP_AUTH_SERVICE_URL=https://gw-stg.fiskerdps.com/compute_auth REACT_APP_AUTH_SERVICE_URL=https://gw-stg.fiskerdps.com/compute_auth
REACT_APP_UPLOAD_SERVICE_URL=https://gw-stg.fiskerdps.com/ota_update REACT_APP_UPLOAD_SERVICE_URL=https://gw-stg.fiskerdps.com/ota_update
REACT_APP_AUTH_CALLBACK_URL=https://stg-ota-admin.fiskerdps.com REACT_APP_AUTH_CALLBACK_URL=https://stg-ota-admin.fiskerdps.com
REACT_APP_GRAFANA_BASE_URL=https://stg-grafana.fiskerdps.com REACT_APP_SUPERSET_URL=http://superset-stg.fisker.internal
REACT_APP_GRAFANA_HOME_CHART_PATH=/d-solo/1VTVJ_qGk/dashboard?orgId=2&refresh=30s&panelId=12
REACT_APP_GRAFANA_VOLTAGE_CHART_PATH=/d-solo/LVI-aQGnz/diagnostics?orgId=2&var-VIN={vin}&var-Signal=BMS_CellVolt{cellNum}&panelId=2
REACT_APP_GRAFANA_CELLTEMP_CHART_PATH=/d-solo/LVI-aQGnz/diagnostics?orgId=2&var-VIN={vin}&var-Signal=BMS_CellT{cellNum}&panelId=2
REACT_APP_GRAFANA_BATTERYTEMP_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&refresh=1m&panelId=4
REACT_APP_GRAFANA_BATTERYCAP_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&refresh=1m&panelId=6
REACT_APP_GRAFANA_BATTERYPERCENT_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&panelId=12
REACT_APP_GRAFANA_BATTERY12VPERCENT_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&refresh=1m&panelId=2
REACT_APP_GRAFANA_BATTERY12VVOLTAGE_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&refresh=1m&panelId=9
REACT_APP_GRAFANA_API=https://stg-grafana.fiskerdps.com/api/datasources/proxy/1

View File

@@ -1,13 +1,4 @@
REACT_APP_AUTH_SERVICE_URL=http://localhost/compute_auth REACT_APP_AUTH_SERVICE_URL=http://localhost/compute_auth
REACT_APP_UPLOAD_SERVICE_URL=http://localhost/ota_update REACT_APP_UPLOAD_SERVICE_URL=http://localhost/ota_update
REACT_APP_AUTH_CALLBACK_URL=http://localhost:3000 REACT_APP_AUTH_CALLBACK_URL=http://localhost:3000
REACT_APP_GRAFANA_BASE_URL=https://grafana.fiskerdps.com REACT_APP_SUPERSET_URL=http://superset-dev.fisker.internal
REACT_APP_GRAFANA_HOME_CHART_PATH=/d-solo/1VTVJ_qGk/dashboard?orgId=2&refresh=30s&panelId=12
REACT_APP_GRAFANA_VOLTAGE_CHART_PATH=/d-solo/LVI-aQGnz/diagnostics?orgId=2&var-VIN={vin}&var-Signal=BMS_CellVolt{cellNum}&panelId=2
REACT_APP_GRAFANA_CELLTEMP_CHART_PATH=/d-solo/LVI-aQGnz/diagnostics?orgId=2&var-VIN={vin}&var-Signal=BMS_CellT{cellNum}&panelId=2
REACT_APP_GRAFANA_BATTERYTEMP_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&refresh=1m&panelId=4
REACT_APP_GRAFANA_BATTERYCAP_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&refresh=1m&panelId=6
REACT_APP_GRAFANA_BATTERYPERCENT_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&panelId=12
REACT_APP_GRAFANA_BATTERY12VPERCENT_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&refresh=1m&panelId=2
REACT_APP_GRAFANA_BATTERY12VVOLTAGE_CHART=/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN={vin}&refresh=1m&panelId=9
REACT_APP_GRAFANA_API=https://grafana.fiskerdps.com/api/datasources/proxy/1

View File

@@ -4,7 +4,6 @@ jest.mock("../Contexts/VehicleContext");
jest.mock("../Contexts/ManifestCreateContext"); jest.mock("../Contexts/ManifestCreateContext");
jest.mock("../Contexts/ManifestsContext"); jest.mock("../Contexts/ManifestsContext");
jest.mock("../Contexts/UserContext"); jest.mock("../Contexts/UserContext");
jest.mock("../../services/grafanaAPI");
jest.mock("../../services/monitoring"); jest.mock("../../services/monitoring");
jest.mock("../../services/vehiclesAPI"); jest.mock("../../services/vehiclesAPI");
@@ -38,7 +37,7 @@ const check = async (path, selector, compare) => {
const sleepAndCheck = async (path, selector, compare) => { const sleepAndCheck = async (path, selector, compare) => {
const container = await renderRoute(path); const container = await renderRoute(path);
await waitFor(() => {}); await waitFor(() => { });
expect(container.querySelector(selector).innerHTML).toEqual(compare); expect(container.querySelector(selector).innerHTML).toEqual(compare);
expect(container).toMatchSnapshot(); expect(container).toMatchSnapshot();
}; };
@@ -72,14 +71,6 @@ describe("App", () => {
await sleepAndCheck("/home", "span.MuiButton-label", "Sign In"); 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 () => { it("Route /packages unauthenticated", async () => {
await check("/packages", "span.MuiButton-label", "Sign In"); await check("/packages", "span.MuiButton-label", "Sign In");
}); });
@@ -134,16 +125,6 @@ describe("App", () => {
await check("/page-not-found", "h1", "Page Not Found"); 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 () => { it("Route /packages authenticated", async () => {
setToken(TEST_AUTH_OBJECT); setToken(TEST_AUTH_OBJECT);
await check("/packages", "h6", "Deployments"); 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 <fieldset
aria-hidden="true" aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline" class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
> >
<legend <legend
class="PrivateNotchedOutline-legendLabelled-66" class="PrivateNotchedOutline-legendLabelled-64"
> >
<span> <span>
VIN VIN
@@ -102,10 +102,10 @@ exports[`CANFiltersAdd Render 1`] = `
/> />
<fieldset <fieldset
aria-hidden="true" aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline" class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
> >
<legend <legend
class="PrivateNotchedOutline-legendLabelled-66" class="PrivateNotchedOutline-legendLabelled-64"
> >
<span> <span>
CAN ID CAN ID
@@ -140,10 +140,10 @@ exports[`CANFiltersAdd Render 1`] = `
/> />
<fieldset <fieldset
aria-hidden="true" aria-hidden="true"
class="PrivateNotchedOutline-root-64 MuiOutlinedInput-notchedOutline" class="PrivateNotchedOutline-root-62 MuiOutlinedInput-notchedOutline"
> >
<legend <legend
class="PrivateNotchedOutline-legendLabelled-66" class="PrivateNotchedOutline-legendLabelled-64"
> >
<span> <span>
Interval Interval

View File

@@ -15,13 +15,13 @@ exports[`CANFiltersTable Render 1`] = `
data-testid="mocked-canfiltersprovider" data-testid="mocked-canfiltersprovider"
> >
<div <div
class="makeStyles-paper-3 makeStyles-tableSize-55" class="makeStyles-paper-3 makeStyles-tableSize-53"
> >
<div <div
class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2" class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2"
> >
<div <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 <a
class="makeStyles-labelInline-9" class="makeStyles-labelInline-9"
@@ -40,10 +40,10 @@ exports[`CANFiltersTable Render 1`] = `
</a> </a>
</div> </div>
<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 <div
class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-52" class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-50"
> >
<label <label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated" class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated"

View File

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

View File

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

View File

@@ -15,13 +15,13 @@ exports[`VehicleTable Render 1`] = `
data-testid="mocked-vehicleprovider" data-testid="mocked-vehicleprovider"
> >
<div <div
class="makeStyles-paper-3 makeStyles-tableSize-55" class="makeStyles-paper-3 makeStyles-tableSize-53"
> >
<div <div
class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2" class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2"
> >
<div <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 <a
href="/vehicle-add" href="/vehicle-add"
@@ -39,10 +39,10 @@ exports[`VehicleTable Render 1`] = `
</a> </a>
</div> </div>
<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 <div
class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-52" class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-50"
> >
<label <label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated" class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated"
@@ -93,11 +93,11 @@ exports[`VehicleTable Render 1`] = `
</div> </div>
</div> </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>
<div <div
class="makeStyles-paper-3 makeStyles-tableSize-55" class="makeStyles-paper-3 makeStyles-tableSize-53"
> >
<table <table
class="MuiTable-root" class="MuiTable-root"

View File

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

View File

@@ -3,7 +3,7 @@
exports[`CANFiltersTab Render 1`] = ` exports[`CANFiltersTab Render 1`] = `
<div> <div>
<div <div
class="makeStyles-paper-3 makeStyles-tableSize-55" class="makeStyles-paper-3 makeStyles-tableSize-53"
> >
<h6 <h6
class="MuiTypography-root MuiTypography-h6" class="MuiTypography-root MuiTypography-h6"
@@ -14,13 +14,13 @@ exports[`CANFiltersTab Render 1`] = `
data-testid="mocked-canfiltersprovider" data-testid="mocked-canfiltersprovider"
> >
<div <div
class="makeStyles-paper-3 makeStyles-tableSize-55" class="makeStyles-paper-3 makeStyles-tableSize-53"
> >
<div <div
class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2" class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2"
> >
<div <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 <a
class="makeStyles-labelInline-9" class="makeStyles-labelInline-9"
@@ -39,10 +39,10 @@ exports[`CANFiltersTab Render 1`] = `
</a> </a>
</div> </div>
<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 <div
class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-52" class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-50"
> >
<label <label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated" class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated"

View File

@@ -12,7 +12,7 @@ exports[`CarUpdatesTab Render 1`] = `
data-testid="mocked-userprovider" data-testid="mocked-userprovider"
> >
<div <div
class="makeStyles-paper-3 makeStyles-tableSize-55" class="makeStyles-paper-3 makeStyles-tableSize-53"
> >
<h6 <h6
class="MuiTypography-root MuiTypography-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" class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2"
> >
<div <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 <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 <h6
class="MuiTypography-root makeStyles-labelInline-9 MuiTypography-h6" class="MuiTypography-root makeStyles-labelInline-9 MuiTypography-h6"
@@ -294,7 +294,7 @@ exports[`CarUpdatesTab Render 1`] = `
</h6> </h6>
</div> </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"
> >
<button <button
class="MuiButtonBase-root MuiButton-root MuiButton-contained makeStyles-formControl-7 makeStyles-textField-29 MuiButton-containedPrimary" 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> </div>
<div <div
class="makeStyles-paper-3 makeStyles-tableSize-55" class="makeStyles-paper-3 makeStyles-tableSize-53"
> >
<table <table
class="MuiTable-root" class="MuiTable-root"

View File

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

View File

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

View File

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

View File

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

View File

@@ -15,13 +15,13 @@ exports[`FleetCANFiltersTable Render 1`] = `
data-testid="mocked-fleetprovider" data-testid="mocked-fleetprovider"
> >
<div <div
class="makeStyles-paper-3 makeStyles-tableSize-55" class="makeStyles-paper-3 makeStyles-tableSize-53"
> >
<div <div
class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2" class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2"
> >
<div <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 <a
class="makeStyles-labelInline-9" class="makeStyles-labelInline-9"
@@ -41,10 +41,10 @@ exports[`FleetCANFiltersTable Render 1`] = `
</div> </div>
<div <div
align="right" 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 <div
class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-52" class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-50"
> >
<label <label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated" class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated"

View File

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

View File

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

View File

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

View File

@@ -15,13 +15,13 @@ exports[`FleetVehiclesTable Render 1`] = `
data-testid="mocked-fleetprovider" data-testid="mocked-fleetprovider"
> >
<div <div
class="makeStyles-paper-3 makeStyles-tableSize-55" class="makeStyles-paper-3 makeStyles-tableSize-53"
> >
<div <div
class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2" class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2"
> >
<div <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 <a
class="makeStyles-labelInline-9" class="makeStyles-labelInline-9"
@@ -41,10 +41,10 @@ exports[`FleetVehiclesTable Render 1`] = `
</div> </div>
<div <div
align="right" 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 <div
class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-52" class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-50"
> >
<label <label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated" class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated"

View File

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

View File

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

View File

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

View File

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

View File

@@ -15,13 +15,13 @@ exports[`FleetTable Render 1`] = `
data-testid="mocked-fleetprovider" data-testid="mocked-fleetprovider"
> >
<div <div
class="makeStyles-paper-3 makeStyles-tableSize-55" class="makeStyles-paper-3 makeStyles-tableSize-53"
> >
<div <div
class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2" class="MuiGrid-root makeStyles-root-14 MuiGrid-container MuiGrid-spacing-xs-2"
> >
<div <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 <a
class="makeStyles-labelInline-9" class="makeStyles-labelInline-9"
@@ -41,10 +41,10 @@ exports[`FleetTable Render 1`] = `
</div> </div>
<div <div
align="right" 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 <div
class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-52" class="MuiFormControl-root makeStyles-margin-28 makeStyles-fullWidth-50"
> >
<label <label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated" class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated"
@@ -95,7 +95,7 @@ exports[`FleetTable Render 1`] = `
</div> </div>
</div> </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>
<table <table

View File

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

View File

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

View File

@@ -152,14 +152,15 @@ exports[`SideMenu Authenticated 1`] = `
/> />
</a> </a>
</li> </li>
<span>
<li> <li>
<a <a
aria-disabled="false" aria-disabled="false"
class="MuiButtonBase-root MuiListItem-root MuiListItem-gutters MuiListItem-button" class="MuiTypography-root MuiLink-root MuiLink-underlineHover MuiButtonBase-root MuiListItem-root makeStyles-menuExternalLink-52 MuiListItem-gutters MuiListItem-button MuiTypography-colorPrimary"
href="/datascope" href="http://superset-dev.fisker.internal/r/3"
rel="noopener"
role="button" role="button"
tabindex="0" tabindex="0"
target="_blank"
> >
<div <div
class="MuiListItemIcon-root" class="MuiListItemIcon-root"
@@ -189,57 +190,6 @@ exports[`SideMenu Authenticated 1`] = `
/> />
</a> </a>
</li> </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"
>
<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"
>
<span
class="MuiTypography-root MuiListItemText-primary MuiTypography-body1 MuiTypography-displayBlock"
>
Diagnostics
</span>
</div>
<span
class="MuiTouchRipple-root"
/>
</a>
</li>
</ul>
</ul> </ul>
</div> </div>
</div> </div>

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,36 +0,0 @@
import { fetchRespHandler } from "../utils/http";
import { logger } from "./monitoring";
const API_ENDPOINT = process.env.REACT_APP_GRAFANA_API;
const grafanaAPI = {
getCarsCount: async () =>
fetch(
`${API_ENDPOINT}/?query=SELECT%20countDistinct(VIN)%20as%20count%0AFROM%20default.vehicle_signal%0AWHERE%20Timestamp%20%3C%3D%20toDateTime64(${
Date.now() / Math.pow(10, 3)
}%2C%203)%20AND%20Timestamp%20%3E%3D%20toDateTime64(${
Date.now() / Math.pow(10, 3) - 60 * 60 * 24
}%2C%203)%20FORMAT%20JSON`,
{
method: "GET",
headers: Object.assign({ "Content-Type": "application/json" }),
}
)
.then(fetchRespHandler)
.then((result) => result.data[0].count)
.catch((error) => logger.warn(error.stack)),
getSignalsCount: async () =>
fetch(
`${API_ENDPOINT}/?query=SELECT%20count()%20as%20count%0AFROM%20default.vehicle_signal%20FORMAT%20JSON`,
{
method: "GET",
headers: Object.assign({ "Content-Type": "application/json" }),
}
)
.then(fetchRespHandler)
.then((result) => result.data[0].count)
.catch((error) => logger.warn(error.stack)),
};
export default grafanaAPI;

View File

@@ -1,50 +0,0 @@
const GRAFANA_BASE_URL = process.env.REACT_APP_GRAFANA_BASE_URL;
const template = (props, value) => {
const keys = Object.keys(props);
return keys.reduce(
(current, key) => current.replace(`{${key}}`, props[key]),
value
);
};
export const grafanaCharts = {
BASE: GRAFANA_BASE_URL,
HOME_CHART: `${GRAFANA_BASE_URL}${process.env.REACT_APP_GRAFANA_HOME_CHART_PATH}`,
CELLVOLTAGE_CHART: (props) =>
template(
props,
`${GRAFANA_BASE_URL}${process.env.REACT_APP_GRAFANA_VOLTAGE_CHART_PATH}`
),
CELLTEMP_CHART: (props) =>
template(
props,
`${GRAFANA_BASE_URL}${process.env.REACT_APP_GRAFANA_CELLTEMP_CHART_PATH}`
),
BATTERYTEMP_CHART: (props) =>
template(
props,
`${GRAFANA_BASE_URL}${process.env.REACT_APP_GRAFANA_BATTERYTEMP_CHART}`
),
BATTERYCAP_CHART: (props) =>
template(
props,
`${GRAFANA_BASE_URL}${process.env.REACT_APP_GRAFANA_BATTERYCAP_CHART}`
),
BATTERYPERCENT_CHART: (props) =>
template(
props,
`${GRAFANA_BASE_URL}${process.env.REACT_APP_GRAFANA_BATTERYPERCENT_CHART}`
),
BATTERY12VPERCENT_CHART: (props) =>
template(
props,
`${GRAFANA_BASE_URL}${process.env.REACT_APP_GRAFANA_BATTERY12VPERCENT_CHART}`
),
BATTERY12VVOLTAGE_CHART: (props) =>
template(
props,
`${GRAFANA_BASE_URL}${process.env.REACT_APP_GRAFANA_BATTERY12VVOLTAGE_CHART}`
),
};

View File

@@ -1,59 +0,0 @@
import { grafanaCharts } from "./grafanaCharts";
describe("Grafana Charts URLs", () => {
it("Base", () => {
expect(grafanaCharts.BASE).toEqual("https://dev-grafana.fiskerdps.com");
});
it("Home", () => {
expect(grafanaCharts.HOME_CHART).toEqual(
"https://dev-grafana.fiskerdps.com/d-solo/1VTVJ_qGk/dashboard?orgId=2&refresh=30s&panelId=12"
);
});
it("Cell Voltage", () => {
expect(
grafanaCharts.CELLVOLTAGE_CHART({ vin: "VIN", cellNum: "CELLNUM" })
).toEqual(
"https://dev-grafana.fiskerdps.com/d-solo/LVI-aQGnz/diagnostics?orgId=2&var-VIN=VIN&var-Signal=BMS_CellVoltCELLNUM&panelId=2"
);
});
it("Cell Temperature", () => {
expect(
grafanaCharts.CELLTEMP_CHART({ vin: "VIN", cellNum: "CELLNUM" })
).toEqual(
"https://dev-grafana.fiskerdps.com/d-solo/LVI-aQGnz/diagnostics?orgId=2&var-VIN=VIN&var-Signal=BMS_CellTCELLNUM&panelId=2"
);
});
it("Battery Temperature Time Series", () => {
expect(grafanaCharts.BATTERYTEMP_CHART({ vin: "VIN" })).toEqual(
"https://dev-grafana.fiskerdps.com/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN=VIN&refresh=1m&panelId=4"
);
});
it("Battery Capacity Time Series", () => {
expect(grafanaCharts.BATTERYCAP_CHART({ vin: "VIN" })).toEqual(
"https://dev-grafana.fiskerdps.com/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN=VIN&refresh=1m&panelId=6"
);
});
it("Battery Percent Time Series", () => {
expect(grafanaCharts.BATTERYPERCENT_CHART({ vin: "VIN" })).toEqual(
"https://dev-grafana.fiskerdps.com/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN=VIN&panelId=12"
);
});
it("12V Battery Percentage Time Series", () => {
expect(grafanaCharts.BATTERY12VPERCENT_CHART({ vin: "VIN" })).toEqual(
"https://dev-grafana.fiskerdps.com/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN=VIN&refresh=1m&panelId=2"
);
});
it("12V Battery Voltage Time Series", () => {
expect(grafanaCharts.BATTERY12VVOLTAGE_CHART({ vin: "VIN" })).toEqual(
"https://dev-grafana.fiskerdps.com/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN=VIN&refresh=1m&panelId=9"
);
});
});

5
src/services/superset.js Normal file
View File

@@ -0,0 +1,5 @@
const SUPERSET_BASE_URL = process.env.REACT_APP_SUPERSET_URL;
const SupersetDashboardURL = `${SUPERSET_BASE_URL}/r/3`;
export { SupersetDashboardURL };