@wandelbots/wandelbots-js-react-components 2.47.0-pr.feature-add-more-states.390.df5bed1 → 2.47.0-pr.feature-add-more-states.390.15e4e08

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wandelbots/wandelbots-js-react-components",
3
- "version": "2.47.0-pr.feature-add-more-states.390.df5bed1",
3
+ "version": "2.47.0-pr.feature-add-more-states.390.15e4e08",
4
4
  "description": "React UI toolkit for building applications on top of the Wandelbots platform",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -15,6 +15,8 @@ export enum RobotSetupReadinessState {
15
15
  CELL_OPEN = "CELL_OPEN",
16
16
  /** Emergency stop is active and robot cannot operate */
17
17
  E_STOP = "E_STOP",
18
+ /** Robot is in manual mode and requires manual intervention */
19
+ MANUAL_MODE = "MANUAL_MODE",
18
20
  /** Robot is ready for operation */
19
21
  READY = "READY",
20
22
  }
@@ -30,7 +32,7 @@ export interface RobotSetupReadinessIndicatorProps {
30
32
  * A state indicator component that displays the current robot setup readiness state.
31
33
  *
32
34
  * Features:
33
- * - Shows five states: Precondition not fulfilled, Robot disconnected, Cell open, E-Stop, Ready
35
+ * - Shows six states: Precondition not fulfilled, Robot disconnected, Cell open, E-Stop, Manual mode, Ready
34
36
  * - Color-coded based on state (ready: tertiary/main, others: error/main)
35
37
  * - Rendered as Material-UI filled chip with paper-elevation-11 background
36
38
  * - Includes colored circle indicator (8px width)
@@ -80,6 +82,15 @@ export const RobotSetupReadinessIndicator = externalizeComponent(
80
82
  theme.palette.background.paper,
81
83
  textColor: theme.palette.secondary.contrastText,
82
84
  }
85
+ case RobotSetupReadinessState.MANUAL_MODE:
86
+ return {
87
+ label: t("RobotSetupReadinessIndicator.ManualMode.lb"),
88
+ indicatorColor: theme.palette.error.main,
89
+ backgroundColor:
90
+ theme.palette.backgroundPaperElevation?.[11] ||
91
+ theme.palette.background.paper,
92
+ textColor: theme.palette.secondary.contrastText,
93
+ }
83
94
  case RobotSetupReadinessState.PRECONDITION_NOT_FULFILLED:
84
95
  default:
85
96
  return {
@@ -79,6 +79,7 @@
79
79
  "RobotSetupReadinessIndicator.RobotDisconnected.lb": "Roboter getrennt",
80
80
  "RobotSetupReadinessIndicator.CellOpen.lb": "Zelle offen",
81
81
  "RobotSetupReadinessIndicator.EStop.lb": "Not-Stopp",
82
+ "RobotSetupReadinessIndicator.ManualMode.lb": "Manueller Modus",
82
83
  "RobotSetupReadinessIndicator.PreconditionNotFulfilled.lb": "Voraussetzung nicht erfüllt",
83
84
  "RobotCard.Runtime.lb": "Laufzeit",
84
85
  "RobotCard.DriveToHome.bt": "Zur Home-Position fahren"
@@ -80,6 +80,7 @@
80
80
  "RobotSetupReadinessIndicator.RobotDisconnected.lb": "Robot disconnected",
81
81
  "RobotSetupReadinessIndicator.CellOpen.lb": "Cell open",
82
82
  "RobotSetupReadinessIndicator.EStop.lb": "E-Stop",
83
+ "RobotSetupReadinessIndicator.ManualMode.lb": "Manual mode",
83
84
  "RobotSetupReadinessIndicator.PreconditionNotFulfilled.lb": "Precondition not fulfilled",
84
85
  "RobotCard.Runtime.lb": "Runtime",
85
86
  "RobotCard.DriveToHome.bt": "Drive to Home"