Skip to content

Commit 0981ea5

Browse files
committed
wip
1 parent 05eeed7 commit 0981ea5

File tree

6 files changed

+15
-0
lines changed

6 files changed

+15
-0
lines changed

app/src/assets/localization/en/error_recovery.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
"skip_to_next_step_same_tips": "Skip to next step with same tips",
9797
"skipping_to_step_succeeded": "Skipping to step {{step}} succeeded.",
9898
"skipping_to_step_succeeded_na": "Skipping to next step succeeded.",
99+
"stall_or_collision_error": "Stall or collision",
99100
"stand_back": "Stand back, robot is in motion",
100101
"stand_back_picking_up_tips": "Stand back, picking up tips",
101102
"stand_back_resuming": "Stand back, resuming current step",
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type { RecoveryContentProps } from '../types'
2+
3+
export function HomeGantryBeforeRetry(
4+
props: RecoveryContentProps
5+
): JSX.Element {
6+
return (</>)
7+
}

app/src/organisms/ErrorRecoveryFlows/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export const DEFINED_ERROR_TYPES = {
2020
TIP_PHYSICALLY_MISSING: 'tipPhysicallyMissing',
2121
TIP_PHYSICALLY_ATTACHED: 'tipPhysicallyAttached',
2222
GRIPPER_MOVEMENT: 'gripperMovement',
23+
STALL_OR_COLLISION: 'stallOrCollision',
2324
}
2425

2526
// Client-defined error-handling flows.
@@ -32,6 +33,7 @@ export const ERROR_KINDS = {
3233
TIP_NOT_DETECTED: 'TIP_NOT_DETECTED',
3334
TIP_DROP_FAILED: 'TIP_DROP_FAILED',
3435
GRIPPER_ERROR: 'GRIPPER_ERROR',
36+
STALL_OR_COLLISION: 'STALL_OR_COLLISION',
3537
} as const
3638

3739
// TODO(jh, 06-14-24): Consolidate motion routes to a single route with several steps.

app/src/organisms/ErrorRecoveryFlows/hooks/useErrorName.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ export function useErrorName(errorKind: ErrorKind): string {
2323
return t('tip_drop_failed')
2424
case ERROR_KINDS.GRIPPER_ERROR:
2525
return t('gripper_error')
26+
case ERROR_KINDS.STALL_OR_COLLISION:
27+
return t('stall_or_collision_error')
2628
default:
2729
return t('error')
2830
}

app/src/organisms/ErrorRecoveryFlows/hooks/useFailedLabwareUtils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ export function getRelevantFailedLabwareCmdFrom({
152152
case ERROR_KINDS.GRIPPER_ERROR:
153153
return failedCommandByRunRecord as MoveLabwareRunTimeCommand
154154
case ERROR_KINDS.GENERAL_ERROR:
155+
case ERROR_KINDS.STALL_OR_COLLISION:
155156
return null
156157
default:
157158
console.error(

app/src/organisms/ErrorRecoveryFlows/utils/getErrorKind.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ export function getErrorKind(
5454
errorType === DEFINED_ERROR_TYPES.GRIPPER_MOVEMENT
5555
) {
5656
return ERROR_KINDS.GRIPPER_ERROR
57+
} else if (errorType === 'stallOrCollision') {
58+
return ERROR_KINDS.STALL_OR_COLLISION
5759
}
5860
}
5961

0 commit comments

Comments
 (0)