-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'edge' into fix_vitest-unit-test
- Loading branch information
Showing
126 changed files
with
8,497 additions
and
1,019 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
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
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
34 changes: 34 additions & 0 deletions
34
app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/ManualMoveLwAndSkip.tsx
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,34 @@ | ||
import { RECOVERY_MAP } from '../constants' | ||
import { | ||
GripperIsHoldingLabware, | ||
GripperReleaseLabware, | ||
SkipStepInfo, | ||
TwoColLwInfoAndDeck, | ||
} from '../shared' | ||
import { SelectRecoveryOption } from './SelectRecoveryOption' | ||
|
||
import type { RecoveryContentProps } from '../types' | ||
|
||
export function ManualMoveLwAndSkip(props: RecoveryContentProps): JSX.Element { | ||
const { recoveryMap } = props | ||
const { step, route } = recoveryMap | ||
const { MANUAL_MOVE_AND_SKIP } = RECOVERY_MAP | ||
|
||
const buildContent = (): JSX.Element => { | ||
switch (step) { | ||
case MANUAL_MOVE_AND_SKIP.STEPS.GRIPPER_HOLDING_LABWARE: | ||
return <GripperIsHoldingLabware {...props} /> | ||
case MANUAL_MOVE_AND_SKIP.STEPS.GRIPPER_RELEASE_LABWARE: | ||
return <GripperReleaseLabware {...props} /> | ||
case MANUAL_MOVE_AND_SKIP.STEPS.MANUAL_MOVE: | ||
return <TwoColLwInfoAndDeck {...props} /> | ||
case MANUAL_MOVE_AND_SKIP.STEPS.SKIP: | ||
return <SkipStepInfo {...props} /> | ||
default: | ||
console.warn(`${step} in ${route} not explicitly handled. Rerouting.`) | ||
return <SelectRecoveryOption {...props} /> | ||
} | ||
} | ||
|
||
return buildContent() | ||
} |
Oops, something went wrong.