-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(protocol-designer, step-generation, components): pipette edit, m…
- Loading branch information
Showing
45 changed files
with
965 additions
and
458 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import * as React from 'react' | ||
|
||
import { getModuleDef2, HEATERSHAKER_MODULE_V1 } from '@opentrons/shared-data' | ||
|
||
import { COLORS } from '../../ui-style-constants' | ||
import { RobotCoordsForeignDiv } from '../Deck' | ||
import { ModuleFromDef } from './ModuleFromDef' | ||
|
||
export interface HeaterShakerVizProps { | ||
targetTemp: number | null | ||
} | ||
|
||
export function HeaterShaker(props: HeaterShakerVizProps): JSX.Element { | ||
const { targetTemp } = props | ||
const def = getModuleDef2(HEATERSHAKER_MODULE_V1) | ||
let ledLightOverlay: JSX.Element | null = null | ||
if (targetTemp != null) { | ||
ledLightOverlay = ( | ||
<RobotCoordsForeignDiv | ||
width="3.5" | ||
height="16" | ||
x="5" | ||
y="38" | ||
innerDivProps={{ | ||
borderRadius: '6px', | ||
backgroundColor: COLORS.red4, | ||
width: '100%', | ||
height: '100%', | ||
}} | ||
/> | ||
) | ||
} | ||
|
||
return ( | ||
<> | ||
<ModuleFromDef def={def} /> | ||
{ledLightOverlay} | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import * as React from 'react' | ||
|
||
import { getModuleDef2, TEMPERATURE_MODULE_V1 } from '@opentrons/shared-data' | ||
|
||
import { COLORS } from '../../ui-style-constants' | ||
import { RobotCoordsForeignDiv } from '../Deck' | ||
import { ModuleFromDef } from './ModuleFromDef' | ||
|
||
export interface TemperatureVizProps { | ||
targetTemperature: number | null | ||
} | ||
|
||
const ROOM_TEMPERATURE_C = 23 | ||
|
||
export function Temperature(props: TemperatureVizProps): JSX.Element { | ||
const { targetTemperature } = props | ||
const def = getModuleDef2(TEMPERATURE_MODULE_V1) | ||
let ledLightOverlay: JSX.Element | null = null | ||
if (targetTemperature != null) { | ||
ledLightOverlay = ( | ||
<RobotCoordsForeignDiv | ||
width="5.5" | ||
height="16" | ||
x="23" | ||
y="36.5" | ||
innerDivProps={{ | ||
borderRadius: '6px', | ||
backgroundColor: | ||
targetTemperature <= ROOM_TEMPERATURE_C | ||
? COLORS.mediumBlueEnabled | ||
: COLORS.red4, | ||
width: '100%', | ||
height: '100%', | ||
}} | ||
/> | ||
) | ||
} | ||
|
||
return ( | ||
<> | ||
<ModuleFromDef def={def} /> | ||
{ledLightOverlay} | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.