Skip to content

Commit 7a0b26b

Browse files
Add todo comments for remaining <Labware>/<LabwareRender> call sites.
1 parent 5360a40 commit 7a0b26b

File tree

26 files changed

+45
-0
lines changed

26 files changed

+45
-0
lines changed

app/src/organisms/ErrorRecoveryFlows/shared/TwoColLwInfoAndDeck.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,12 @@ export function TwoColLwInfoAndDeck(
232232
def={moduleDef}
233233
x={x}
234234
y={y}
235+
// TODO BEFORE MERGE: Unrelated bug, but should this have been passed to LabwareRender too?
235236
orientation={inferModuleOrientationFromXCoordinate(x)}
236237
>
237238
{nestedLabwareDef != null &&
238239
nestedLabwareId !== failedLwId ? (
240+
// TODO BEFORE MERGE
239241
<LabwareRender definition={nestedLabwareDef} />
240242
) : null}
241243
</Module>
@@ -244,6 +246,7 @@ export function TwoColLwInfoAndDeck(
244246
{labwareRenderInfo
245247
.filter(l => l.labwareId !== failedLwId)
246248
.map(({ x, y, labwareDef, labwareId }) => (
249+
// TODO BEFORE MERGE
247250
<g key={labwareId} transform={`translate(${x},${y})`}>
248251
{labwareDef != null && labwareId !== failedLwId ? (
249252
<LabwareRender definition={labwareDef} />

app/src/organisms/InterventionModal/MoveLabwareInterventionContent.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,12 @@ export function MoveLabwareInterventionContent({
216216
def={moduleDef}
217217
x={x}
218218
y={y}
219+
// TODO BEFORE MERGE: Same thing, should this have been passed to LabwareRender
219220
orientation={inferModuleOrientationFromXCoordinate(x)}
220221
>
221222
{nestedLabwareDef != null &&
222223
nestedLabwareId !== command.params.labwareId ? (
224+
// TODO BEFORE MERGE: Needs-to-labware coords, I think
223225
<LabwareRender definition={nestedLabwareDef} />
224226
) : null}
225227
</Module>
@@ -228,6 +230,7 @@ export function MoveLabwareInterventionContent({
228230
{labwareRenderInfo
229231
.filter(l => l.labwareId !== command.params.labwareId)
230232
.map(({ x, y, labwareDef, labwareId }) => (
233+
// TODO BEFORE MERGE
231234
<g key={labwareId} transform={`translate(${x},${y})`}>
232235
{labwareDef != null &&
233236
labwareId !== command.params.labwareId ? (

app/src/organisms/LabwarePositionCheck/steps/HandleLabware/EditOffset/CheckLabware/LPCLabwareJogRender.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export function LPCLabwareJogRender({
4040

4141
return (
4242
<Flex css={RENDER_CONTAINER_STYLE}>
43+
{/* TODO BEFORE MERGE: Is this right? This seems too small to be a deck map viewbox. Is this actually supposed to be a bounding box around the labware? If so, it needs updates for schema 3. */}
4344
<RobotWorkSpace viewBox={DECK_MAP_VIEWBOX}>
4445
{() => (
4546
<>

app/src/organisms/LegacyLabwarePositionCheck/JogToWell.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export const JogToWell = (props: JogToWellProps): JSX.Element | null => {
147147
<LiveOffsetValue {...liveOffset} />
148148
</Flex>
149149
<Flex flex="1" alignItems={ALIGN_CENTER} gridGap={SPACING.spacing20}>
150+
{/* TODO BEFORE MERGE: Same questions about DECK_MAP_VIEWBOX */}
150151
<RobotWorkSpace viewBox={DECK_MAP_VIEWBOX}>
151152
{() => (
152153
<>

app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLabware/SetupLabwareStackView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ export function SetupLabwareStackView({
182182
</StyledText>
183183
) : null}
184184
<LabwareThumbnail
185+
// TODO BEFORE MERGE
185186
viewBox={`${labwareCornerOffsetFromSlot.x} ${labwareCornerOffsetFromSlot.y} ${labwareDimensions.xDimension} ${labwareDimensions.yDimension}`}
186187
>
187188
<g

app/src/organisms/WellSelection/Selection384Wells.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ export function Selection384Wells({
129129
}
130130
return (
131131
<Flex width="100%">
132+
{/* TODO BEFORE MERGE: Not sure how this is working without a parent <svg>. */}
132133
{labwareRender}
133134
<Flex
134135
flex="1 0 0"

components/src/hardware-sim/BaseDeck/BaseDeck.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,12 @@ export function BaseDeck(props: BaseDeckProps): JSX.Element {
306306
>
307307
{nestedLabwareDef != null ? (
308308
<g cursor={onLabwareClick != null ? 'pointer' : ''}>
309+
{/* TODO BEFORE MERGE: Deal with labware-on-module positioning somehow */}
309310
<LabwareRender
310311
definition={nestedLabwareDef}
311312
onLabwareClick={onLabwareClick}
312313
wellFill={nestedLabwareWellFill}
314+
// TODO BEFORE MERGE: Deal with rotation here somehow
313315
shouldRotateAdapterOrientation={
314316
inferModuleOrientationFromXCoordinate(
315317
slotPosition[0]
@@ -367,10 +369,12 @@ export function BaseDeck(props: BaseDeckProps): JSX.Element {
367369
cursor={onLabwareClick != null ? 'pointer' : ''}
368370
transform={`translate(${STACKER_HOPPER_LABWARE_X_OFFSET}, ${STACKER_HOPPER_LABWARE_Y_OFFSET})`}
369371
>
372+
{/* TODO BEFORE MERGE: Deal with labware-on-stacker (???) positioning here somehow */}
370373
<LabwareRender
371374
definition={nestedLabwareDef}
372375
onLabwareClick={onLabwareClick}
373376
wellFill={nestedLabwareWellFill}
377+
// TODO BEFORE MERGE: Deal with rotation here somehow
374378
shouldRotateAdapterOrientation={
375379
inferModuleOrientationFromXCoordinate(
376380
slotPosition[0]
@@ -417,6 +421,8 @@ export function BaseDeck(props: BaseDeckProps): JSX.Element {
417421

418422
return slotPosition != null ? (
419423
<g
424+
// TODO BEFORE MERGE: Flesh out labware-in-deck-slot positioning.
425+
// But also, where in this file are we handling labware-on-adapter-on-*?
420426
key={labwareLocation.slotName}
421427
transform={`translate(${slotPosition[0].toString()},${slotPosition[1].toString()})`}
422428
cursor={onLabwareClick != null ? 'pointer' : ''}

components/src/hardware-sim/Deck/MoveLabwareOnDeck.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ export function MoveLabwareOnDeck(
236236
{backgroundItems}
237237
<AnimatedG style={{ x: springProps.x, y: springProps.y }}>
238238
<g
239+
// TODO BEFORE MERGE
239240
transform={`translate(${cornerOffsetFromSlot.x}, ${cornerOffsetFromSlot.y})`}
240241
>
241242
<LabwareRender definition={movedLabwareDef} highlight={true} />

components/src/hardware-sim/Labware/LabwareRender.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export default {
3939
decorators: [
4040
Story => (
4141
<RobotWorkSpace
42+
// TODO BEFORE MERGE
4243
viewBox={`0 0 ${fixture96Plate.dimensions.xDimension} ${fixture96Plate.dimensions.yDimension}`}
4344
>
4445
{() => <Story />}

components/src/hardware-sim/Labware/labwareInternals/LabwareWellLabels.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ interface LabwareWellLabelsProps {
1919
wellLabelColor?: string
2020
}
2121

22+
// TODO BEFORE MERGE: Go through all this (and other labwareInternals files) and make sure it's still OK with labware schema 3
2223
const Labels = (props: {
2324
definition: LabwareDefinition
2425
wells: string[]

0 commit comments

Comments
 (0)