Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sfoster1 committed Nov 19, 2024
1 parent 05eeed7 commit 0981ea5
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/src/assets/localization/en/error_recovery.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
"skip_to_next_step_same_tips": "Skip to next step with same tips",
"skipping_to_step_succeeded": "Skipping to step {{step}} succeeded.",
"skipping_to_step_succeeded_na": "Skipping to next step succeeded.",
"stall_or_collision_error": "Stall or collision",
"stand_back": "Stand back, robot is in motion",
"stand_back_picking_up_tips": "Stand back, picking up tips",
"stand_back_resuming": "Stand back, resuming current step",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { RecoveryContentProps } from '../types'

export function HomeGantryBeforeRetry(
props: RecoveryContentProps
): JSX.Element {
return (</>)

Check failure on line 6 in app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/HomeGantryBeforeRetry.ts

View workflow job for this annotation

GitHub Actions / js checks

Type expected.

Check failure on line 6 in app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/HomeGantryBeforeRetry.ts

View workflow job for this annotation

GitHub Actions / js checks

Unterminated regular expression literal.
}

Check failure on line 7 in app/src/organisms/ErrorRecoveryFlows/RecoveryOptions/HomeGantryBeforeRetry.ts

View workflow job for this annotation

GitHub Actions / js checks

')' expected.
2 changes: 2 additions & 0 deletions app/src/organisms/ErrorRecoveryFlows/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const DEFINED_ERROR_TYPES = {
TIP_PHYSICALLY_MISSING: 'tipPhysicallyMissing',
TIP_PHYSICALLY_ATTACHED: 'tipPhysicallyAttached',
GRIPPER_MOVEMENT: 'gripperMovement',
STALL_OR_COLLISION: 'stallOrCollision',
}

// Client-defined error-handling flows.
Expand All @@ -32,6 +33,7 @@ export const ERROR_KINDS = {
TIP_NOT_DETECTED: 'TIP_NOT_DETECTED',
TIP_DROP_FAILED: 'TIP_DROP_FAILED',
GRIPPER_ERROR: 'GRIPPER_ERROR',
STALL_OR_COLLISION: 'STALL_OR_COLLISION',
} as const

// TODO(jh, 06-14-24): Consolidate motion routes to a single route with several steps.
Expand Down
2 changes: 2 additions & 0 deletions app/src/organisms/ErrorRecoveryFlows/hooks/useErrorName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export function useErrorName(errorKind: ErrorKind): string {
return t('tip_drop_failed')
case ERROR_KINDS.GRIPPER_ERROR:
return t('gripper_error')
case ERROR_KINDS.STALL_OR_COLLISION:
return t('stall_or_collision_error')
default:
return t('error')
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ export function getRelevantFailedLabwareCmdFrom({
case ERROR_KINDS.GRIPPER_ERROR:
return failedCommandByRunRecord as MoveLabwareRunTimeCommand
case ERROR_KINDS.GENERAL_ERROR:
case ERROR_KINDS.STALL_OR_COLLISION:
return null
default:
console.error(
Expand Down
2 changes: 2 additions & 0 deletions app/src/organisms/ErrorRecoveryFlows/utils/getErrorKind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ export function getErrorKind(
errorType === DEFINED_ERROR_TYPES.GRIPPER_MOVEMENT
) {
return ERROR_KINDS.GRIPPER_ERROR
} else if (errorType === 'stallOrCollision') {
return ERROR_KINDS.STALL_OR_COLLISION
}
}

Expand Down

0 comments on commit 0981ea5

Please sign in to comment.