CEC-4572 tweak digital twin display and form (#362)
* CEC-4572 tweak form * update snapshots * Clean up * Hide DTC tab
This commit is contained in:
@@ -11266,24 +11266,6 @@ exports[`App Route /vehicle-status authenticated 1`] = `
|
|||||||
class="MuiTouchRipple-root"
|
class="MuiTouchRipple-root"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
<button
|
|
||||||
aria-controls="tabpanel-10"
|
|
||||||
aria-selected="false"
|
|
||||||
class="MuiButtonBase-root MuiTab-root MuiTab-textColorInherit"
|
|
||||||
id="tab-10"
|
|
||||||
role="tab"
|
|
||||||
tabindex="-1"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="MuiTab-wrapper"
|
|
||||||
>
|
|
||||||
DTC Timeline
|
|
||||||
</span>
|
|
||||||
<span
|
|
||||||
class="MuiTouchRipple-root"
|
|
||||||
/>
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
<span
|
<span
|
||||||
class="PrivateTabIndicator-root-0 PrivateTabIndicator-colorSecondary-0 MuiTabs-indicator"
|
class="PrivateTabIndicator-root-0 PrivateTabIndicator-colorSecondary-0 MuiTabs-indicator"
|
||||||
@@ -11386,21 +11368,25 @@ exports[`App Route /vehicle-status authenticated 1`] = `
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<b>
|
<b>
|
||||||
Log Level
|
Tags
|
||||||
</b>
|
</b>
|
||||||
:
|
:
|
||||||
info
|
none
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
||||||
>
|
>
|
||||||
<b>
|
|
||||||
CANBus
|
|
||||||
</b>
|
|
||||||
<p>
|
<p>
|
||||||
<b>
|
<b>
|
||||||
Enabled
|
Log Level
|
||||||
|
</b>
|
||||||
|
:
|
||||||
|
info
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<b>
|
||||||
|
CANBus Enabled
|
||||||
</b>
|
</b>
|
||||||
:
|
:
|
||||||
true
|
true
|
||||||
@@ -11414,7 +11400,7 @@ exports[`App Route /vehicle-status authenticated 1`] = `
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<b>
|
<b>
|
||||||
Enabled
|
Data Logger Enabled
|
||||||
</b>
|
</b>
|
||||||
:
|
:
|
||||||
true
|
true
|
||||||
@@ -11433,15 +11419,12 @@ exports[`App Route /vehicle-status authenticated 1`] = `
|
|||||||
:
|
:
|
||||||
3
|
3
|
||||||
</p>
|
</p>
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
|
||||||
>
|
|
||||||
<p>
|
<p>
|
||||||
<b>
|
<b>
|
||||||
DebugMask
|
DTC Enabled
|
||||||
</b>
|
</b>
|
||||||
:
|
:
|
||||||
|
false
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@@ -11449,7 +11432,7 @@ exports[`App Route /vehicle-status authenticated 1`] = `
|
|||||||
>
|
>
|
||||||
<p>
|
<p>
|
||||||
<b>
|
<b>
|
||||||
Tags
|
Debug Mask
|
||||||
</b>
|
</b>
|
||||||
:
|
:
|
||||||
</p>
|
</p>
|
||||||
@@ -11457,24 +11440,6 @@ exports[`App Route /vehicle-status authenticated 1`] = `
|
|||||||
<div
|
<div
|
||||||
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
||||||
>
|
>
|
||||||
<a
|
|
||||||
class=""
|
|
||||||
href="/vehicle-update?vin=FISKER123"
|
|
||||||
style="margin: 5px;"
|
|
||||||
title="Update \\"FISKER123\\""
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
aria-label="Update \\"FISKER123\\""
|
|
||||||
class="MuiSvgIcon-root"
|
|
||||||
focusable="false"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</a>
|
|
||||||
<label
|
<label
|
||||||
class="MuiFormControlLabel-root"
|
class="MuiFormControlLabel-root"
|
||||||
>
|
>
|
||||||
@@ -11509,18 +11474,18 @@ exports[`App Route /vehicle-status authenticated 1`] = `
|
|||||||
<span
|
<span
|
||||||
class="MuiTypography-root MuiFormControlLabel-label MuiTypography-body1"
|
class="MuiTypography-root MuiFormControlLabel-label MuiTypography-body1"
|
||||||
>
|
>
|
||||||
FORCE CONFIG PUSH
|
Force Config Update
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<a
|
<a
|
||||||
class=""
|
class=""
|
||||||
href="/vehicle-status/FISKER123"
|
href="/vehicle-status/FISKER123"
|
||||||
title="Push Config \\"FISKER123\\""
|
title="Push Config Update to \\"FISKER123\\""
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
aria-label="Push Config \\"FISKER123\\""
|
aria-label="Push Config Update to \\"FISKER123\\""
|
||||||
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
|
class="MuiSvgIcon-root MuiSvgIcon-fontSizeLarge css-tzssek-MuiSvgIcon-root"
|
||||||
data-testid="UploadIcon"
|
data-testid="UploadIcon"
|
||||||
focusable="false"
|
focusable="false"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
@@ -11531,6 +11496,28 @@ exports[`App Route /vehicle-status authenticated 1`] = `
|
|||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
class=""
|
||||||
|
href="/vehicle-update?vin=FISKER123"
|
||||||
|
style="margin: 5px;"
|
||||||
|
title="Update \\"FISKER123\\""
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
aria-hidden="true"
|
||||||
|
aria-label="Update \\"FISKER123\\""
|
||||||
|
class="MuiSvgIcon-root MuiSvgIcon-fontSizeLarge"
|
||||||
|
focusable="false"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div />
|
<div />
|
||||||
<div />
|
<div />
|
||||||
@@ -11593,12 +11580,6 @@ exports[`App Route /vehicle-status authenticated 1`] = `
|
|||||||
id="tabpanel-9"
|
id="tabpanel-9"
|
||||||
role="tabpanel"
|
role="tabpanel"
|
||||||
/>
|
/>
|
||||||
<div
|
|
||||||
aria-labelledby="tab-10"
|
|
||||||
hidden=""
|
|
||||||
id="tabpanel-10"
|
|
||||||
role="tabpanel"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@@ -89,21 +89,25 @@ exports[`VehicleDetailsTab Render 1`] = `
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<b>
|
<b>
|
||||||
Log Level
|
Tags
|
||||||
</b>
|
</b>
|
||||||
:
|
:
|
||||||
info
|
none
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
||||||
>
|
>
|
||||||
<b>
|
|
||||||
CANBus
|
|
||||||
</b>
|
|
||||||
<p>
|
<p>
|
||||||
<b>
|
<b>
|
||||||
Enabled
|
Log Level
|
||||||
|
</b>
|
||||||
|
:
|
||||||
|
info
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<b>
|
||||||
|
CANBus Enabled
|
||||||
</b>
|
</b>
|
||||||
:
|
:
|
||||||
true
|
true
|
||||||
@@ -117,7 +121,7 @@ exports[`VehicleDetailsTab Render 1`] = `
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<b>
|
<b>
|
||||||
Enabled
|
Data Logger Enabled
|
||||||
</b>
|
</b>
|
||||||
:
|
:
|
||||||
true
|
true
|
||||||
@@ -136,15 +140,12 @@ exports[`VehicleDetailsTab Render 1`] = `
|
|||||||
:
|
:
|
||||||
3
|
3
|
||||||
</p>
|
</p>
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
|
||||||
>
|
|
||||||
<p>
|
<p>
|
||||||
<b>
|
<b>
|
||||||
DebugMask
|
DTC Enabled
|
||||||
</b>
|
</b>
|
||||||
:
|
:
|
||||||
|
false
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@@ -152,7 +153,7 @@ exports[`VehicleDetailsTab Render 1`] = `
|
|||||||
>
|
>
|
||||||
<p>
|
<p>
|
||||||
<b>
|
<b>
|
||||||
Tags
|
Debug Mask
|
||||||
</b>
|
</b>
|
||||||
:
|
:
|
||||||
</p>
|
</p>
|
||||||
@@ -160,24 +161,6 @@ exports[`VehicleDetailsTab Render 1`] = `
|
|||||||
<div
|
<div
|
||||||
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
||||||
>
|
>
|
||||||
<a
|
|
||||||
class=""
|
|
||||||
href="/vehicle-update?vin=TESTVIN1234567890"
|
|
||||||
style="margin: 5px;"
|
|
||||||
title="Update \\"TESTVIN1234567890\\""
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
aria-label="Update \\"TESTVIN1234567890\\""
|
|
||||||
class="MuiSvgIcon-root"
|
|
||||||
focusable="false"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</a>
|
|
||||||
<label
|
<label
|
||||||
class="MuiFormControlLabel-root"
|
class="MuiFormControlLabel-root"
|
||||||
>
|
>
|
||||||
@@ -212,18 +195,18 @@ exports[`VehicleDetailsTab Render 1`] = `
|
|||||||
<span
|
<span
|
||||||
class="MuiTypography-root MuiFormControlLabel-label MuiTypography-body1"
|
class="MuiTypography-root MuiFormControlLabel-label MuiTypography-body1"
|
||||||
>
|
>
|
||||||
FORCE CONFIG PUSH
|
Force Config Update
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<a
|
<a
|
||||||
class=""
|
class=""
|
||||||
href="/"
|
href="/"
|
||||||
title="Push Config \\"TESTVIN1234567890\\""
|
title="Push Config Update to \\"TESTVIN1234567890\\""
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
aria-label="Push Config \\"TESTVIN1234567890\\""
|
aria-label="Push Config Update to \\"TESTVIN1234567890\\""
|
||||||
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
|
class="MuiSvgIcon-root MuiSvgIcon-fontSizeLarge css-tzssek-MuiSvgIcon-root"
|
||||||
data-testid="UploadIcon"
|
data-testid="UploadIcon"
|
||||||
focusable="false"
|
focusable="false"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
@@ -234,6 +217,28 @@ exports[`VehicleDetailsTab Render 1`] = `
|
|||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
class=""
|
||||||
|
href="/vehicle-update?vin=TESTVIN1234567890"
|
||||||
|
style="margin: 5px;"
|
||||||
|
title="Update \\"TESTVIN1234567890\\""
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
aria-hidden="true"
|
||||||
|
aria-label="Update \\"TESTVIN1234567890\\""
|
||||||
|
class="MuiSvgIcon-root MuiSvgIcon-fontSizeLarge"
|
||||||
|
focusable="false"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div />
|
<div />
|
||||||
<div />
|
<div />
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Grid, Tooltip, Checkbox, FormControlLabel } from "@material-ui/core";
|
import { Checkbox, FormControlLabel, Grid, Tooltip } from "@material-ui/core";
|
||||||
import DeleteIcon from "@material-ui/icons/Delete";
|
import DeleteIcon from "@material-ui/icons/Delete";
|
||||||
import EditIcon from "@material-ui/icons/Edit";
|
import EditIcon from "@material-ui/icons/Edit";
|
||||||
import UploadIcon from '@mui/icons-material/Upload';
|
import UploadIcon from '@mui/icons-material/Upload';
|
||||||
@@ -114,23 +114,26 @@ const MainForm = ({ vin }) => {
|
|||||||
<p>
|
<p>
|
||||||
<b>Info Source</b>: {vehicle.info_source}
|
<b>Info Source</b>: {vehicle.info_source}
|
||||||
</p>
|
</p>
|
||||||
{vehicle.log_level != null && (
|
<p>
|
||||||
|
<b>Tags</b>: {vehicle.tags ? vehicle.tags.join(", ") : "none" }
|
||||||
|
</p>
|
||||||
|
</Grid>
|
||||||
|
<Grid item md={12} className={classes.textCenterAlign}>
|
||||||
|
{vehicle.log_level != null && (
|
||||||
<p>
|
<p>
|
||||||
<b>Log Level</b>: {vehicle.log_level}
|
<b>Log Level</b>: {vehicle.log_level}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
</Grid>
|
|
||||||
{vehicle.canbus && (
|
{vehicle.canbus && (
|
||||||
<Grid item md={12} className={classes.textCenterAlign}>
|
<>
|
||||||
<b>CANBus</b>
|
|
||||||
<p>
|
<p>
|
||||||
<b>Enabled</b>: {vehicle.canbus.enabled.toString()}
|
<b>CANBus Enabled</b>: {vehicle.canbus.enabled.toString()}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<b>Max Memory Buffer Size</b>: {vehicle.canbus.max_mem_buffer_size ?? "Default"}
|
<b>Max Memory Buffer Size</b>: {vehicle.canbus.max_mem_buffer_size ?? "Default"}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<b>Enabled</b>: {vehicle.canbus.data_logger_enabled.toString()}
|
<b>Data Logger Enabled</b>: {vehicle.canbus.data_logger_enabled.toString()}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<b>Max Disk Buffer Size</b>: {vehicle.canbus.max_disk_buffer_size ?? "Default"}
|
<b>Max Disk Buffer Size</b>: {vehicle.canbus.max_disk_buffer_size ?? "Default"}
|
||||||
@@ -138,19 +141,40 @@ const MainForm = ({ vin }) => {
|
|||||||
<p>
|
<p>
|
||||||
<b>Filters</b>: {vehicle.canbus.filters ? vehicle.canbus.filters.length : 0}
|
<b>Filters</b>: {vehicle.canbus.filters ? vehicle.canbus.filters.length : 0}
|
||||||
</p>
|
</p>
|
||||||
</Grid>
|
<p>
|
||||||
|
<b>DTC Enabled</b>: { (vehicle.canbus.dtc_enabled || false).toString() }
|
||||||
|
</p>
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
|
</Grid>
|
||||||
{showDebugMask && (
|
{showDebugMask && (
|
||||||
<Grid item md={12} className={classes.textCenterAlign}>
|
<Grid item md={12} className={classes.textCenterAlign}>
|
||||||
<p>
|
<p>
|
||||||
<b>DebugMask</b>: {vehicle.debug_mask}
|
<b>Debug Mask</b>: {vehicle.debug_mask}
|
||||||
</p>
|
</p>
|
||||||
</Grid>
|
</Grid>
|
||||||
)}
|
)}
|
||||||
<Grid item md={12} className={classes.textCenterAlign}>
|
<Grid item md={12} className={classes.textCenterAlign}>
|
||||||
<p>
|
<RoleWrap
|
||||||
<b>Tags</b>: {vehicle.tags}
|
groups={groups}
|
||||||
</p>
|
providers={providers}
|
||||||
|
rolesPerProvider={Permissions.FiskerCreate}
|
||||||
|
>
|
||||||
|
<FormControlLabel
|
||||||
|
label="Force Config Update"
|
||||||
|
control={
|
||||||
|
<Checkbox
|
||||||
|
checked={forced}
|
||||||
|
onChange={onForcedChange}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
<Tooltip key={`push-config-${vin}`} title={`Push Config Update to "${vin}"`}>
|
||||||
|
<Link to="#" onClick={() => setShowUploadConfigModal(true)} >
|
||||||
|
<UploadIcon aria-label={`Push Config Update to "${vin}"`} fontSize="large" />
|
||||||
|
</Link>
|
||||||
|
</Tooltip>
|
||||||
|
</RoleWrap>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid item md={12} className={classes.textCenterAlign}>
|
<Grid item md={12} className={classes.textCenterAlign}>
|
||||||
<RoleWrap
|
<RoleWrap
|
||||||
@@ -160,31 +184,10 @@ const MainForm = ({ vin }) => {
|
|||||||
>
|
>
|
||||||
<Tooltip key={`update-${vin}`} title={`Update "${vin}"`}>
|
<Tooltip key={`update-${vin}`} title={`Update "${vin}"`}>
|
||||||
<Link to={`/vehicle-update?vin=${vin}`} style={{ margin: 5 }}>
|
<Link to={`/vehicle-update?vin=${vin}`} style={{ margin: 5 }}>
|
||||||
<EditIcon aria-label={`Update "${vin}"`} />
|
<EditIcon aria-label={`Update "${vin}"`} fontSize="large" />
|
||||||
</Link>
|
</Link>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</RoleWrap>
|
</RoleWrap>
|
||||||
<RoleWrap
|
|
||||||
groups={groups}
|
|
||||||
providers={providers}
|
|
||||||
rolesPerProvider={Permissions.FiskerCreate}
|
|
||||||
>
|
|
||||||
<FormControlLabel
|
|
||||||
label="FORCE CONFIG PUSH"
|
|
||||||
control={
|
|
||||||
<Checkbox
|
|
||||||
checked={forced}
|
|
||||||
onChange={onForcedChange}
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
<Tooltip key={`push-config-${vin}`} title={`Push Config "${vin}"`}>
|
|
||||||
<Link to="#" onClick={() => setShowUploadConfigModal(true)}>
|
|
||||||
<UploadIcon aria-label={`Push Config "${vin}"`} />
|
|
||||||
</Link>
|
|
||||||
</Tooltip>
|
|
||||||
</RoleWrap>
|
|
||||||
|
|
||||||
<RoleWrap
|
<RoleWrap
|
||||||
groups={groups}
|
groups={groups}
|
||||||
providers={providers}
|
providers={providers}
|
||||||
@@ -192,7 +195,7 @@ const MainForm = ({ vin }) => {
|
|||||||
>
|
>
|
||||||
<Tooltip key={`delete-${vin}`} title={`Delete "${vin}"`}>
|
<Tooltip key={`delete-${vin}`} title={`Delete "${vin}"`}>
|
||||||
<Link to="#" onClick={() => setShowDeleteModal(true)}>
|
<Link to="#" onClick={() => setShowDeleteModal(true)}>
|
||||||
<DeleteIcon aria-label={`Delete "${vin}"`} />
|
<DeleteIcon aria-label={`Delete "${vin}"`} fontSize="large" />
|
||||||
</Link>
|
</Link>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</RoleWrap>
|
</RoleWrap>
|
||||||
|
|||||||
@@ -97,21 +97,25 @@ exports[`DetailsTab Render 1`] = `
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<b>
|
<b>
|
||||||
Log Level
|
Tags
|
||||||
</b>
|
</b>
|
||||||
:
|
:
|
||||||
info
|
none
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
||||||
>
|
>
|
||||||
<b>
|
|
||||||
CANBus
|
|
||||||
</b>
|
|
||||||
<p>
|
<p>
|
||||||
<b>
|
<b>
|
||||||
Enabled
|
Log Level
|
||||||
|
</b>
|
||||||
|
:
|
||||||
|
info
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<b>
|
||||||
|
CANBus Enabled
|
||||||
</b>
|
</b>
|
||||||
:
|
:
|
||||||
true
|
true
|
||||||
@@ -125,7 +129,7 @@ exports[`DetailsTab Render 1`] = `
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<b>
|
<b>
|
||||||
Enabled
|
Data Logger Enabled
|
||||||
</b>
|
</b>
|
||||||
:
|
:
|
||||||
true
|
true
|
||||||
@@ -144,15 +148,12 @@ exports[`DetailsTab Render 1`] = `
|
|||||||
:
|
:
|
||||||
3
|
3
|
||||||
</p>
|
</p>
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
|
||||||
>
|
|
||||||
<p>
|
<p>
|
||||||
<b>
|
<b>
|
||||||
DebugMask
|
DTC Enabled
|
||||||
</b>
|
</b>
|
||||||
:
|
:
|
||||||
|
false
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
@@ -160,7 +161,7 @@ exports[`DetailsTab Render 1`] = `
|
|||||||
>
|
>
|
||||||
<p>
|
<p>
|
||||||
<b>
|
<b>
|
||||||
Tags
|
Debug Mask
|
||||||
</b>
|
</b>
|
||||||
:
|
:
|
||||||
</p>
|
</p>
|
||||||
@@ -168,24 +169,6 @@ exports[`DetailsTab Render 1`] = `
|
|||||||
<div
|
<div
|
||||||
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
||||||
>
|
>
|
||||||
<a
|
|
||||||
class=""
|
|
||||||
href="/vehicle-update?vin=TESTVIN1234567890"
|
|
||||||
style="margin: 5px;"
|
|
||||||
title="Update \\"TESTVIN1234567890\\""
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
aria-label="Update \\"TESTVIN1234567890\\""
|
|
||||||
class="MuiSvgIcon-root"
|
|
||||||
focusable="false"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</a>
|
|
||||||
<label
|
<label
|
||||||
class="MuiFormControlLabel-root"
|
class="MuiFormControlLabel-root"
|
||||||
>
|
>
|
||||||
@@ -220,18 +203,18 @@ exports[`DetailsTab Render 1`] = `
|
|||||||
<span
|
<span
|
||||||
class="MuiTypography-root MuiFormControlLabel-label MuiTypography-body1"
|
class="MuiTypography-root MuiFormControlLabel-label MuiTypography-body1"
|
||||||
>
|
>
|
||||||
FORCE CONFIG PUSH
|
Force Config Update
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<a
|
<a
|
||||||
class=""
|
class=""
|
||||||
href="/testroute/TESTVIN1234567890"
|
href="/testroute/TESTVIN1234567890"
|
||||||
title="Push Config \\"TESTVIN1234567890\\""
|
title="Push Config Update to \\"TESTVIN1234567890\\""
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
aria-label="Push Config \\"TESTVIN1234567890\\""
|
aria-label="Push Config Update to \\"TESTVIN1234567890\\""
|
||||||
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
|
class="MuiSvgIcon-root MuiSvgIcon-fontSizeLarge css-tzssek-MuiSvgIcon-root"
|
||||||
data-testid="UploadIcon"
|
data-testid="UploadIcon"
|
||||||
focusable="false"
|
focusable="false"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
@@ -242,6 +225,28 @@ exports[`DetailsTab Render 1`] = `
|
|||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
class=""
|
||||||
|
href="/vehicle-update?vin=TESTVIN1234567890"
|
||||||
|
style="margin: 5px;"
|
||||||
|
title="Update \\"TESTVIN1234567890\\""
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
aria-hidden="true"
|
||||||
|
aria-label="Update \\"TESTVIN1234567890\\""
|
||||||
|
class="MuiSvgIcon-root MuiSvgIcon-fontSizeLarge"
|
||||||
|
focusable="false"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div />
|
<div />
|
||||||
<div />
|
<div />
|
||||||
|
|||||||
@@ -213,24 +213,6 @@ exports[`CarStatus Render 1`] = `
|
|||||||
class="MuiTouchRipple-root"
|
class="MuiTouchRipple-root"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
<button
|
|
||||||
aria-controls="tabpanel-10"
|
|
||||||
aria-selected="false"
|
|
||||||
class="MuiButtonBase-root MuiTab-root MuiTab-textColorInherit"
|
|
||||||
id="tab-10"
|
|
||||||
role="tab"
|
|
||||||
tabindex="-1"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="MuiTab-wrapper"
|
|
||||||
>
|
|
||||||
DTC Timeline
|
|
||||||
</span>
|
|
||||||
<span
|
|
||||||
class="MuiTouchRipple-root"
|
|
||||||
/>
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
<span
|
<span
|
||||||
class="PrivateTabIndicator-root-0 PrivateTabIndicator-colorSecondary-0 MuiTabs-indicator"
|
class="PrivateTabIndicator-root-0 PrivateTabIndicator-colorSecondary-0 MuiTabs-indicator"
|
||||||
@@ -325,48 +307,30 @@ exports[`CarStatus Render 1`] = `
|
|||||||
</b>
|
</b>
|
||||||
:
|
:
|
||||||
</p>
|
</p>
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
|
||||||
>
|
|
||||||
<p>
|
|
||||||
<b>
|
|
||||||
DebugMask
|
|
||||||
</b>
|
|
||||||
:
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
|
||||||
>
|
|
||||||
<p>
|
<p>
|
||||||
<b>
|
<b>
|
||||||
Tags
|
Tags
|
||||||
</b>
|
</b>
|
||||||
:
|
:
|
||||||
|
none
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
||||||
|
/>
|
||||||
|
<div
|
||||||
|
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
||||||
|
>
|
||||||
|
<p>
|
||||||
|
<b>
|
||||||
|
Debug Mask
|
||||||
|
</b>
|
||||||
|
:
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
||||||
>
|
>
|
||||||
<a
|
|
||||||
class=""
|
|
||||||
href="/vehicle-update?vin=TESTVIN1234567890"
|
|
||||||
style="margin: 5px;"
|
|
||||||
title="Update \\"TESTVIN1234567890\\""
|
|
||||||
>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
aria-label="Update \\"TESTVIN1234567890\\""
|
|
||||||
class="MuiSvgIcon-root"
|
|
||||||
focusable="false"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</a>
|
|
||||||
<label
|
<label
|
||||||
class="MuiFormControlLabel-root"
|
class="MuiFormControlLabel-root"
|
||||||
>
|
>
|
||||||
@@ -401,18 +365,18 @@ exports[`CarStatus Render 1`] = `
|
|||||||
<span
|
<span
|
||||||
class="MuiTypography-root MuiFormControlLabel-label MuiTypography-body1"
|
class="MuiTypography-root MuiFormControlLabel-label MuiTypography-body1"
|
||||||
>
|
>
|
||||||
FORCE CONFIG PUSH
|
Force Config Update
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<a
|
<a
|
||||||
class=""
|
class=""
|
||||||
href="/"
|
href="/"
|
||||||
title="Push Config \\"TESTVIN1234567890\\""
|
title="Push Config Update to \\"TESTVIN1234567890\\""
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
aria-label="Push Config \\"TESTVIN1234567890\\""
|
aria-label="Push Config Update to \\"TESTVIN1234567890\\""
|
||||||
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-i4bv87-MuiSvgIcon-root"
|
class="MuiSvgIcon-root MuiSvgIcon-fontSizeLarge css-tzssek-MuiSvgIcon-root"
|
||||||
data-testid="UploadIcon"
|
data-testid="UploadIcon"
|
||||||
focusable="false"
|
focusable="false"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
@@ -423,6 +387,28 @@ exports[`CarStatus Render 1`] = `
|
|||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
class="MuiGrid-root makeStyles-textCenterAlign-0 MuiGrid-item MuiGrid-grid-md-12"
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
class=""
|
||||||
|
href="/vehicle-update?vin=TESTVIN1234567890"
|
||||||
|
style="margin: 5px;"
|
||||||
|
title="Update \\"TESTVIN1234567890\\""
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
aria-hidden="true"
|
||||||
|
aria-label="Update \\"TESTVIN1234567890\\""
|
||||||
|
class="MuiSvgIcon-root MuiSvgIcon-fontSizeLarge"
|
||||||
|
focusable="false"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div />
|
<div />
|
||||||
<div />
|
<div />
|
||||||
@@ -484,12 +470,6 @@ exports[`CarStatus Render 1`] = `
|
|||||||
id="tabpanel-9"
|
id="tabpanel-9"
|
||||||
role="tabpanel"
|
role="tabpanel"
|
||||||
/>
|
/>
|
||||||
<div
|
|
||||||
aria-labelledby="tab-10"
|
|
||||||
hidden=""
|
|
||||||
id="tabpanel-10"
|
|
||||||
role="tabpanel"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ import ECUsTab from "./ECUsTab";
|
|||||||
import FleetsTab from "./FleetsTab";
|
import FleetsTab from "./FleetsTab";
|
||||||
import RemoteCommandsTab from "./RemoteCommandsTab";
|
import RemoteCommandsTab from "./RemoteCommandsTab";
|
||||||
import TRexLogsTab from "./TRexLogsTab";
|
import TRexLogsTab from "./TRexLogsTab";
|
||||||
import DTCTimeline from "../../DTCTimeline/DTCTimeline";
|
|
||||||
|
|
||||||
const tabHashes = ["details", "updates", "filters"];
|
const tabHashes = ["details", "updates", "filters"];
|
||||||
|
|
||||||
@@ -74,12 +73,13 @@ const TabViews = [
|
|||||||
component: SelfServeTab,
|
component: SelfServeTab,
|
||||||
rolesPerProvider: Permissions.FiskerRead,
|
rolesPerProvider: Permissions.FiskerRead,
|
||||||
},
|
},
|
||||||
|
/*
|
||||||
{
|
{
|
||||||
label: "DTC Timeline",
|
label: "DTC Timeline",
|
||||||
component: DTCTimeline,
|
component: DTCTimeline,
|
||||||
rolesPerProvider: Permissions.FiskerMagnaRead,
|
rolesPerProvider: Permissions.FiskerMagnaRead,
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
];
|
];
|
||||||
|
|
||||||
const filterTabs = (data, groups, providers) => {
|
const filterTabs = (data, groups, providers) => {
|
||||||
|
|||||||
@@ -434,6 +434,43 @@ exports[`VehicleUpdate Render 1`] = `
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
|
||||||
|
>
|
||||||
|
<label
|
||||||
|
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-outlined"
|
||||||
|
data-shrink="true"
|
||||||
|
for="tag"
|
||||||
|
id="tag-label"
|
||||||
|
>
|
||||||
|
Tags (comma separated, alphanumeric and - only)
|
||||||
|
</label>
|
||||||
|
<div
|
||||||
|
class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
|
||||||
|
>
|
||||||
|
<input
|
||||||
|
aria-invalid="false"
|
||||||
|
class="MuiInputBase-input MuiOutlinedInput-input"
|
||||||
|
id="tag"
|
||||||
|
maxlength="1024"
|
||||||
|
name="tags"
|
||||||
|
type="text"
|
||||||
|
value=""
|
||||||
|
/>
|
||||||
|
<fieldset
|
||||||
|
aria-hidden="true"
|
||||||
|
class="PrivateNotchedOutline-root-0 MuiOutlinedInput-notchedOutline"
|
||||||
|
>
|
||||||
|
<legend
|
||||||
|
class="PrivateNotchedOutline-legendLabelled-0 PrivateNotchedOutline-legendNotched-0"
|
||||||
|
>
|
||||||
|
<span>
|
||||||
|
Tags (comma separated, alphanumeric and - only)
|
||||||
|
</span>
|
||||||
|
</legend>
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<label
|
<label
|
||||||
class="MuiFormLabel-root"
|
class="MuiFormLabel-root"
|
||||||
id="demo-row-radio-buttons-group-label"
|
id="demo-row-radio-buttons-group-label"
|
||||||
@@ -884,44 +921,6 @@ exports[`VehicleUpdate Render 1`] = `
|
|||||||
Data Logger Enabled
|
Data Logger Enabled
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<label
|
|
||||||
class="MuiFormControlLabel-root"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
aria-disabled="false"
|
|
||||||
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-0 MuiCheckbox-root MuiCheckbox-colorSecondary PrivateSwitchBase-checked-0 Mui-checked MuiIconButton-colorSecondary"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="MuiIconButton-label"
|
|
||||||
>
|
|
||||||
<input
|
|
||||||
checked=""
|
|
||||||
class="PrivateSwitchBase-input-0"
|
|
||||||
data-indeterminate="false"
|
|
||||||
type="checkbox"
|
|
||||||
value=""
|
|
||||||
/>
|
|
||||||
<svg
|
|
||||||
aria-hidden="true"
|
|
||||||
class="MuiSvgIcon-root"
|
|
||||||
focusable="false"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</span>
|
|
||||||
<span
|
|
||||||
class="MuiTouchRipple-root"
|
|
||||||
/>
|
|
||||||
</span>
|
|
||||||
<span
|
|
||||||
class="MuiTypography-root MuiFormControlLabel-label MuiTypography-body1"
|
|
||||||
>
|
|
||||||
DTC Enabled
|
|
||||||
</span>
|
|
||||||
</label>
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
|
class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
|
||||||
@@ -969,6 +968,44 @@ exports[`VehicleUpdate Render 1`] = `
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<label
|
||||||
|
class="MuiFormControlLabel-root"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
aria-disabled="false"
|
||||||
|
class="MuiButtonBase-root MuiIconButton-root PrivateSwitchBase-root-0 MuiCheckbox-root MuiCheckbox-colorSecondary PrivateSwitchBase-checked-0 Mui-checked MuiIconButton-colorSecondary"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
class="MuiIconButton-label"
|
||||||
|
>
|
||||||
|
<input
|
||||||
|
checked=""
|
||||||
|
class="PrivateSwitchBase-input-0"
|
||||||
|
data-indeterminate="false"
|
||||||
|
type="checkbox"
|
||||||
|
value=""
|
||||||
|
/>
|
||||||
|
<svg
|
||||||
|
aria-hidden="true"
|
||||||
|
class="MuiSvgIcon-root"
|
||||||
|
focusable="false"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</span>
|
||||||
|
<span
|
||||||
|
class="MuiTouchRipple-root"
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
|
<span
|
||||||
|
class="MuiTypography-root MuiFormControlLabel-label MuiTypography-body1"
|
||||||
|
>
|
||||||
|
DTC Enabled
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
<div
|
<div
|
||||||
class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
|
class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
|
||||||
>
|
>
|
||||||
@@ -978,7 +1015,7 @@ exports[`VehicleUpdate Render 1`] = `
|
|||||||
for="debug_mask"
|
for="debug_mask"
|
||||||
id="debug_mask-label"
|
id="debug_mask-label"
|
||||||
>
|
>
|
||||||
DebugMask
|
Debug Mask
|
||||||
</label>
|
</label>
|
||||||
<div
|
<div
|
||||||
class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
|
class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
|
||||||
@@ -1000,44 +1037,7 @@ exports[`VehicleUpdate Render 1`] = `
|
|||||||
class="PrivateNotchedOutline-legendLabelled-0 PrivateNotchedOutline-legendNotched-0"
|
class="PrivateNotchedOutline-legendLabelled-0 PrivateNotchedOutline-legendNotched-0"
|
||||||
>
|
>
|
||||||
<span>
|
<span>
|
||||||
DebugMask
|
Debug Mask
|
||||||
</span>
|
|
||||||
</legend>
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="MuiFormControl-root MuiTextField-root MuiFormControl-marginNormal MuiFormControl-fullWidth"
|
|
||||||
>
|
|
||||||
<label
|
|
||||||
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-outlined"
|
|
||||||
data-shrink="true"
|
|
||||||
for="tag"
|
|
||||||
id="tag-label"
|
|
||||||
>
|
|
||||||
Tags (comma separated, alphanumeric and - only)
|
|
||||||
</label>
|
|
||||||
<div
|
|
||||||
class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-fullWidth MuiInputBase-formControl"
|
|
||||||
>
|
|
||||||
<input
|
|
||||||
aria-invalid="false"
|
|
||||||
class="MuiInputBase-input MuiOutlinedInput-input"
|
|
||||||
id="tag"
|
|
||||||
maxlength="1024"
|
|
||||||
name="tags"
|
|
||||||
type="text"
|
|
||||||
value=""
|
|
||||||
/>
|
|
||||||
<fieldset
|
|
||||||
aria-hidden="true"
|
|
||||||
class="PrivateNotchedOutline-root-0 MuiOutlinedInput-notchedOutline"
|
|
||||||
>
|
|
||||||
<legend
|
|
||||||
class="PrivateNotchedOutline-legendLabelled-0 PrivateNotchedOutline-legendNotched-0"
|
|
||||||
>
|
|
||||||
<span>
|
|
||||||
Tags (comma separated, alphanumeric and - only)
|
|
||||||
</span>
|
</span>
|
||||||
</legend>
|
</legend>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|||||||
@@ -337,6 +337,22 @@ const MainForm = () => {
|
|||||||
fullWidth
|
fullWidth
|
||||||
inputRef={infoSourceEl}
|
inputRef={infoSourceEl}
|
||||||
/>
|
/>
|
||||||
|
<TextField
|
||||||
|
id="tag"
|
||||||
|
name="tags"
|
||||||
|
label='Tags (comma separated, alphanumeric and - only)'
|
||||||
|
InputLabelProps={{
|
||||||
|
shrink: true
|
||||||
|
}}
|
||||||
|
defaultValue=""
|
||||||
|
variant="outlined"
|
||||||
|
margin="normal"
|
||||||
|
inputProps={{
|
||||||
|
maxLength: "1024",
|
||||||
|
}}
|
||||||
|
fullWidth
|
||||||
|
inputRef={tagsEl}
|
||||||
|
/>
|
||||||
<FormLabel id="demo-row-radio-buttons-group-label">Log Level</FormLabel>
|
<FormLabel id="demo-row-radio-buttons-group-label">Log Level</FormLabel>
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
row
|
row
|
||||||
@@ -384,12 +400,6 @@ const MainForm = () => {
|
|||||||
disabled={!canbusEnabled}
|
disabled={!canbusEnabled}
|
||||||
/>
|
/>
|
||||||
} label="Data Logger Enabled" />
|
} label="Data Logger Enabled" />
|
||||||
<FormControlLabel control={
|
|
||||||
<Checkbox
|
|
||||||
checked={dtcEnabled}
|
|
||||||
onChange={onDtcEnabledChange}
|
|
||||||
/>
|
|
||||||
} label="DTC Enabled" />
|
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
<TextField
|
<TextField
|
||||||
id="max_disk_buffer_size"
|
id="max_disk_buffer_size"
|
||||||
@@ -407,11 +417,17 @@ const MainForm = () => {
|
|||||||
required
|
required
|
||||||
fullWidth
|
fullWidth
|
||||||
/>
|
/>
|
||||||
|
<FormControlLabel control={
|
||||||
|
<Checkbox
|
||||||
|
checked={dtcEnabled}
|
||||||
|
onChange={onDtcEnabledChange}
|
||||||
|
/>
|
||||||
|
} label="DTC Enabled" />
|
||||||
{showDebugMask && (
|
{showDebugMask && (
|
||||||
<TextField
|
<TextField
|
||||||
id="debug_mask"
|
id="debug_mask"
|
||||||
name="debug_mask"
|
name="debug_mask"
|
||||||
label="DebugMask"
|
label="Debug Mask"
|
||||||
InputLabelProps={{
|
InputLabelProps={{
|
||||||
shrink: true
|
shrink: true
|
||||||
}}
|
}}
|
||||||
@@ -425,22 +441,6 @@ const MainForm = () => {
|
|||||||
inputRef={debugMaskEl}
|
inputRef={debugMaskEl}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<TextField
|
|
||||||
id="tag"
|
|
||||||
name="tags"
|
|
||||||
label='Tags (comma separated, alphanumeric and - only)'
|
|
||||||
InputLabelProps={{
|
|
||||||
shrink: true
|
|
||||||
}}
|
|
||||||
defaultValue=""
|
|
||||||
variant="outlined"
|
|
||||||
margin="normal"
|
|
||||||
inputProps={{
|
|
||||||
maxLength: "1024",
|
|
||||||
}}
|
|
||||||
fullWidth
|
|
||||||
inputRef={tagsEl}
|
|
||||||
/>
|
|
||||||
<Button
|
<Button
|
||||||
type="submit"
|
type="submit"
|
||||||
disabled={busy}
|
disabled={busy}
|
||||||
|
|||||||
Reference in New Issue
Block a user