From 5208c387386c58b2e927e955b17d89aa6f3cc324 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Fri, 20 Feb 2026 02:19:59 -0500 Subject: [PATCH] feat: Add new turtle commands for scanning, extraction, building, and autocrafting with error and warning displays --- client/src/components/ControlPanel.jsx | 95 ++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/client/src/components/ControlPanel.jsx b/client/src/components/ControlPanel.jsx index 1a0e8f4..eabeb21 100644 --- a/client/src/components/ControlPanel.jsx +++ b/client/src/components/ControlPanel.jsx @@ -19,6 +19,10 @@ function TurtleCard({ turtle, isSelected, onSelect }) { dumpInventory: '#a855f7', dumping: '#a855f7', moving: '#06b6d4', + scan: '#8b5cf6', + extraction: '#f97316', + building: '#14b8a6', + autocraft: '#ec4899', unknown: '#6b7280' }; @@ -134,9 +138,36 @@ function TurtleDetails({ turtle }) { } + {turtle.error && ( +
+ Error: + {turtle.error} +
+ )} + {turtle.warning && ( +
+ Warning: + {turtle.warning} +
+ )} + {/* Peripherals section */} + {turtle.peripherals && Object.keys(turtle.peripherals).length > 0 && ( +
+

Peripherals

+
+ {Object.entries(turtle.peripherals).map(([side, type]) => ( +
+ {side}: + {type} +
+ ))} +
+
+ )} +

State Machine

@@ -204,6 +235,70 @@ function TurtleDetails({ turtle }) { > 🧭 Move To + + + +